mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-01-23 02:34:42 +00:00
Use <video> play listener instead of canplay
This commit is contained in:
parent
8d79680b81
commit
b755bcd1bf
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ videoEl.addEventListener('loadstart', () => {
|
|||
videoEl.volume = options.volume;
|
||||
videoEl.poster = options.poster;
|
||||
}, false);
|
||||
videoEl.addEventListener('canplay', () => {
|
||||
videoEl.addEventListener('play', () => {
|
||||
videoEl.poster = '';
|
||||
useCustomScreen(options.mirrorMode === 'mirror');
|
||||
}, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue