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
parent 0166ba281a
commit c17db3d3af

View File

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