1
0
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:
Carlo Capocasa 2012-01-31 08:28:34 +01:00
parent 1eda892c86
commit 62feb5ad5f

View File

@ -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);
}