diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-05-25 20:48:27 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-05-25 20:48:27 +0200 |
commit | c598230f1096cc6ae5acb348b5c83011e2a86bbd (patch) | |
tree | 587eb3e358a280c46314563c5e17f7e36f9c0aac /js | |
parent | 26a7fdf324f093f9eca0f06ebd7daee280739248 (diff) |
Update janus (reverting Firefox-breaking ontrack/onaddstream change).
Diffstat (limited to 'js')
-rw-r--r-- | js/lib/janus.js | 4 | ||||
-rw-r--r-- | js/lib/janus.nojquery.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/js/lib/janus.js b/js/lib/janus.js index b8bc4f3..c9e1118 100644 --- a/js/lib/janus.js +++ b/js/lib/janus.js @@ -1294,11 +1294,11 @@ function Janus(gatewayCallbacks) { config.pc.addStream(stream); pluginHandle.onlocalstream(stream); } - config.pc.ontrack = function(remoteStream) { + config.pc.onaddstream = function(remoteStream) { Janus.log("Handling Remote Stream"); Janus.debug(remoteStream); config.remoteStream = remoteStream; - pluginHandle.onremotestream(remoteStream.streams[0]); + pluginHandle.onremotestream(remoteStream.stream); }; // Any data channel to create? if(isDataEnabled(media)) { diff --git a/js/lib/janus.nojquery.js b/js/lib/janus.nojquery.js index 2343ac6..235ff55 100644 --- a/js/lib/janus.nojquery.js +++ b/js/lib/janus.nojquery.js @@ -1346,11 +1346,11 @@ function Janus(gatewayCallbacks) { config.pc.addStream(stream); pluginHandle.onlocalstream(stream); } - config.pc.ontrack = function(remoteStream) { + config.pc.onaddstream = function(remoteStream) { Janus.log("Handling Remote Stream"); Janus.debug(remoteStream); config.remoteStream = remoteStream; - pluginHandle.onremotestream(remoteStream.streams[0]); + pluginHandle.onremotestream(remoteStream.stream); }; // Any data channel to create? if(isDataEnabled(media)) { |