Fixes issue with video pre-loading.

This commit is contained in:
George Politis 2014-10-27 12:09:24 +01:00
parent fad08fdef0
commit e41c8eff14
1 changed files with 7 additions and 6 deletions

View File

@ -182,11 +182,6 @@ var VideoLayout = (function (my) {
largeVideoState.preload = null;
largeVideoState.preload_ssrc = 0;
} else {
if (largeVideoState.preload
&& largeVideoState.preload != null) {
$(largeVideoState.preload).remove();
largeVideoState.preload_ssrc = 0;
}
$('#largeVideo').attr('src', largeVideoState.newSrc);
}
@ -1467,7 +1462,6 @@ var VideoLayout = (function (my) {
}
if (session && electedStream) {
console.info('Switching simulcast substream.');
console.info([esl, primarySSRC, msid, session, electedStream]);
var msidParts = msid.split(' ');
@ -1563,6 +1557,13 @@ var VideoLayout = (function (my) {
}
else
{
if (largeVideoState.preload
&& largeVideoState.preload != null) {
$(largeVideoState.preload).remove();
}
largeVideoState.preload_ssrc = 0;
electedStreamUrl = webkitURL.createObjectURL(electedStream);
}