webrtc-streaming-core
Advanced tools
Comparing version 1.1.10 to 1.1.11
@@ -67,9 +67,7 @@ "use strict"; | ||
return; | ||
this.datachannels.set(a.channel.label, new datachannel_1.DataChannel(a.channel, (data) => { | ||
if (a.channel.label == "hid" && this.hid != null) { | ||
if (a.channel.label == "hid") { | ||
this.datachannels.set(a.channel.label, new datachannel_1.DataChannel(a.channel, (data) => { | ||
this.hid.handleIncomingData(data); | ||
} | ||
})); | ||
if (a.channel.label == "hid") { | ||
this.hid = new hid_1.HID(this.video.current, (data) => { | ||
})); | ||
this.hid = new hid_1.HID(this.video.current, (data) => __awaiter(this, void 0, void 0, function* () { | ||
(0, log_1.Log)(log_1.LogLevel.Debug, data); | ||
@@ -81,4 +79,8 @@ let channel = this.datachannels.get("hid"); | ||
channel.sendMessage(data); | ||
}, this.ResetVideo.bind(this)); | ||
}), this.ResetVideo.bind(this)); | ||
} | ||
else { | ||
this.datachannels.set(a.channel.label, new datachannel_1.DataChannel(a.channel, (data) => { | ||
})); | ||
} | ||
} | ||
@@ -85,0 +87,0 @@ handleIncomingPacket(pkt) { |
@@ -33,3 +33,3 @@ declare class TouchData implements Touch { | ||
private ResetVideo; | ||
constructor(videoElement: HTMLVideoElement, Sendfunc: ((data: string) => (void)), ResetVideo: (() => (void))); | ||
constructor(videoElement: HTMLVideoElement, Sendfunc: ((data: string) => Promise<void>), ResetVideo: (() => (void))); | ||
private isFullscreen; | ||
@@ -36,0 +36,0 @@ lockPointer(): void; |
@@ -155,6 +155,8 @@ "use strict"; | ||
case 'grum': | ||
navigator.getGamepads().forEach((gamepad, gamepad_id) => { | ||
if (gamepad == null) | ||
return; | ||
}); | ||
// window.navigator.vibrate() | ||
// TODO native rumble | ||
// navigator.getGamepads().forEach((gamepad: Gamepad,gamepad_id: number) =>{ | ||
// if (gamepad == null) | ||
// return; | ||
// }) | ||
break; | ||
@@ -161,0 +163,0 @@ default: |
{ | ||
"name": "webrtc-streaming-core", | ||
"version": "1.1.10", | ||
"version": "1.1.11", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/app.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
139887
2175