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:
@@ -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);
|
||||
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário