summaryrefslogtreecommitdiff
path: root/js/lib/janus.js
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-05-25 20:48:27 +0200
committerJonas Smedegaard <dr@jones.dk>2017-05-25 20:48:27 +0200
commitc598230f1096cc6ae5acb348b5c83011e2a86bbd (patch)
tree587eb3e358a280c46314563c5e17f7e36f9c0aac /js/lib/janus.js
parent26a7fdf324f093f9eca0f06ebd7daee280739248 (diff)
Update janus (reverting Firefox-breaking ontrack/onaddstream change).
Diffstat (limited to 'js/lib/janus.js')
-rw-r--r--js/lib/janus.js4
1 files changed, 2 insertions, 2 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)) {