FS-9635: update deprecated stream.onended

stream.onended is being removed in Chrome 54, update to
stream.oninactive
This commit is contained in:
Chad Phillips
2016-10-11 15:37:34 -07:00
committed by Mike Jerris
parent 463ab08d5a
commit c5bd29971c
2 changed files with 2 additions and 2 deletions

View File

@@ -739,7 +739,7 @@
var remoteMediaStream = event.stream;
// onRemoteStreamEnded(MediaStream)
remoteMediaStream.onended = function() {
remoteMediaStream.oninactive = function () {
if (options.onRemoteStreamEnded) options.onRemoteStreamEnded(remoteMediaStream);
};