Skip to content

Commit

Permalink
Fixed "onstreamended" issue in the Scalable-Broadcast demo. #88
Browse files Browse the repository at this point in the history
  • Loading branch information
muaz-khan committed Feb 5, 2016
1 parent d79b5ff commit a546bdb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion demos/Scalable-Broadcast.html
Expand Up @@ -196,6 +196,8 @@ <h1><a href="https://github.com/muaz-khan/WebRTC-Scalable-Broadcast">WebRTC Scal
videoPreview.src = URL.createObjectURL(event.stream);
videoPreview.play();

videoPreview.userid = event.userid;

if(event.type === 'local') {
videoPreview.muted = true;
}
Expand Down Expand Up @@ -248,7 +250,11 @@ <h1><a href="https://github.com/muaz-khan/WebRTC-Scalable-Broadcast">WebRTC Scal
});
};

connection.onstreamended = /*videoPreview.onended = */function(event) {
connection.onstreamended = function() {};

connection.onleave = function(event) {
if(event.userid !== videoPreview.userid) return;

connection.isUpperNodeLeft = true;

if(allRecordedBlobs.length) {
Expand Down

0 comments on commit a546bdb

Please sign in to comment.