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