mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-01-23 02:34:42 +00:00
Clean
This commit is contained in:
parent
92e59672f9
commit
cdbb5e98f5
3 changed files with 4 additions and 20 deletions
|
|
@ -131,12 +131,12 @@
|
|||
<script src="js/room.js?v=3"></script>
|
||||
<script src="js/network/ajax.js?v=3"></script>
|
||||
<script src="js/network/socket.js?v=4"></script>
|
||||
<script src="js/network/webrtc.js?v=3"></script>
|
||||
<script src="js/network/webrtc.js?v=4"></script>
|
||||
<script src="js/recording.js?v=1"></script>
|
||||
<script src="js/api/api.js?v=3"></script>
|
||||
<script src="js/workerManager.js?v=1"></script>
|
||||
<script src="js/stats/stats.js?v=1"></script>
|
||||
<script src="js/controller.js?v=8"></script>
|
||||
<script src="js/controller.js?v=9"></script>
|
||||
<script src="js/input/keyboard.js?v=6"></script>
|
||||
<script src="js/input/touch.js?v=3"></script>
|
||||
<script src="js/input/joystick.js?v=3"></script>
|
||||
|
|
|
|||
|
|
@ -126,12 +126,6 @@
|
|||
|
||||
stream.play()
|
||||
|
||||
// TODO get current game from the URL and not from the list?
|
||||
// if we are opening a share link it will send the default game name to the server
|
||||
// currently it's a game with the index 1
|
||||
// on the server this game is ignored and the actual game will be extracted from the share link
|
||||
// so there's no point in doing this and this' really confusing
|
||||
|
||||
api.game.start(
|
||||
gameList.selected,
|
||||
room.getId(),
|
||||
|
|
@ -276,7 +270,7 @@
|
|||
|
||||
const handleRecordingStatus = (data) => {
|
||||
if (data === 'ok') {
|
||||
message.show(`Recording ${recording.isActive() ? 'on' : 'off'}`, true)
|
||||
message.show(`Recording ${recording.isActive() ? 'on' : 'off'}`)
|
||||
if (recording.isActive()) {
|
||||
recording.setIndicator(true)
|
||||
}
|
||||
|
|
@ -284,7 +278,7 @@
|
|||
message.show(`Recording failed ):`)
|
||||
recording.setIndicator(false)
|
||||
}
|
||||
console.log("recording is ", recording.isActive())
|
||||
log.debug("recording is ", recording.isActive())
|
||||
}
|
||||
|
||||
const _default = {
|
||||
|
|
|
|||
|
|
@ -146,7 +146,6 @@ const webrtc = (() => {
|
|||
event.pub(WEBRTC_SDP_ANSWER, {sdp: answer});
|
||||
media.srcObject = mediaStream;
|
||||
},
|
||||
// setMessageHandler: (handler) => onMessage = handler,
|
||||
addCandidate: (data) => {
|
||||
if (data === '') {
|
||||
event.pub(WEBRTC_ICE_CANDIDATES_FLUSH);
|
||||
|
|
@ -166,15 +165,6 @@ const webrtc = (() => {
|
|||
});
|
||||
isFlushing = false;
|
||||
},
|
||||
// message: (mess = '') => {
|
||||
// try {
|
||||
// inputChannel.send(mess)
|
||||
// return true
|
||||
// } catch (error) {
|
||||
// log.error('[rtc] input channel broken ' + error)
|
||||
// return false
|
||||
// }
|
||||
// },
|
||||
input: (data) => dataChannel.send(data),
|
||||
isConnected: () => connected,
|
||||
isInputReady: () => inputReady,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue