fix: rely on browser or tech to handle autoplay (#4582)

When setting the source, we were calling `play` if `autoplay` was set. We shouldn't do that and instead we should rely on the browser or tech (like Flash) to handle it properly.
Esse commit está contido em:
Gary Katsevman
2017-08-30 14:29:08 -04:00
commit de GitHub
commit 95c4ae0404
-5
Ver Arquivo
@@ -1076,7 +1076,6 @@ class Player extends Component {
} catch (e) {
log('deleting tag.poster throws in some browsers', e);
}
this.play();
}
}
@@ -2363,10 +2362,6 @@ class Player extends Component {
this.load();
}
if (this.options_.autoplay) {
this.play();
}
// Set the source synchronously if possible (#2326)
}, true);