Browse Source

Wait for 10 cycles to allow video streams to appear as the no browser has the addtrack event implemented.

pull/91/head
Simon Eisenmann 11 years ago
parent
commit
fc44d3cc29
  1. 4
      static/js/services/videowaiter.js

4
static/js/services/videowaiter.js

@ -35,8 +35,8 @@ define(["underscore"], function(_) { @@ -35,8 +35,8 @@ define(["underscore"], function(_) {
return;
}
var videoTracks = stream.getVideoTracks();
//console.log("wait for video", videoTracks.length, video.currentTime, video)
if (videoTracks.length === 0) {
//console.log("wait for video", videoTracks.length, video.currentTime, video.videoHeight, video);
if (videoTracks.length === 0 && this.count >= 10) {
cb(false, video, stream);
} else if (video.currentTime > 0 && video.videoHeight > 0) {
cb(true, video, stream);

Loading…
Cancel
Save