зеркало из https://github.com/mozilla/popcorn-js.git
[#1205] canplay/loadstart events for YouTube
This commit is contained in:
Родитель
4ff981712b
Коммит
5f34b14df4
|
@ -235,6 +235,8 @@
|
|||
media.readyState = 4;
|
||||
|
||||
timeUpdate();
|
||||
|
||||
media.dispatchEvent( "canplay" );
|
||||
media.dispatchEvent( "canplaythrough" );
|
||||
}
|
||||
};
|
||||
|
@ -294,6 +296,9 @@
|
|||
options.youtubeObject.playVideo();
|
||||
|
||||
media.currentTime = fragmentStart;
|
||||
|
||||
media.dispatchEvent( "loadstart" );
|
||||
|
||||
// wait to dispatch ready events until we get a duration
|
||||
},
|
||||
"onStateChange": function( state ){
|
||||
|
|
Загрузка…
Ссылка в новой задаче