mirror of
https://github.com/videojs/video.js.git
synced 2025-01-02 06:32:07 +02:00
Fix: Flash always autoplays on src api call
This commit is contained in:
parent
1eda892c86
commit
62feb5ad5f
@ -463,7 +463,7 @@ _V_.flash = _V_.PlaybackTech.extend({
|
||||
|
||||
// Currently the SWF doesn't autoplay if you load a source later.
|
||||
// e.g. Load player w/ no source, wait 2s, set src.
|
||||
if (this.player.autoplay) {
|
||||
if (this.player.autoplay()) {
|
||||
var tech = this;
|
||||
setTimeout(function(){ tech.play(); }, 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user