Skip to content

Commit

Permalink
Fix slideshow mode in basic example. (#959)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcague committed Jul 12, 2017
1 parent 77ae7e8 commit 92a18e0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions extras/basic_example/public/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,12 @@ function toggleSlideShowMode() { // jshint ignore:line
console.log('SlideShowMode changed', evt);
};
slideShowMode = !slideShowMode;
for (var index in streams) {
var stream = streams[index];
streams.forEach(function (stream) {
if (localStream.getID() !== stream.getID()) {
console.log('Updating config');
stream.updateConfiguration({slideShowMode: slideShowMode}, cb);
}
}
});
}

window.onload = function () {
Expand Down Expand Up @@ -149,7 +148,7 @@ window.onload = function () {
div.setAttribute('style', 'width: 320px; height: 240px; float:left');
div.setAttribute('id', 'myVideo');
document.getElementById('videoContainer').appendChild(div);

localStream.addEventListener('access-accepted', function () {
room.connect();
localStream.show('myVideo');
Expand Down

0 comments on commit 92a18e0

Please sign in to comment.