phaser icon indicating copy to clipboard operation
phaser copied to clipboard

Video with audio replays automatically after switching tabs.

Open marcusx2 opened this issue 2 years ago • 1 comments

http://labs.phaser.io/edit.html?src=src/game%20objects/video/play%20video.js change the code so it's just vid.play() (and commented out the setPaused line)

Then, use this video https://www.appsloveworld.com/wp-content/uploads/2018/10/Sample-Mp4-Videos.mp4.

Wait for the video to end, switch tabs and come back. The video will restart.

marcusx2 avatar Oct 14 '21 15:10 marcusx2

Can you test this please, because I'm struggling to reproduce this:

https://labs.phaser.io/view.html?src=src%5Cbugs%5C5873%20video.js&v=dev

This is using 3.60 Beta 4 and a video that lasts 10 seconds and has audio. The code has been changed as you prompted.

photonstorm avatar Dec 07 '21 18:12 photonstorm

The Video Game Object has been fully recoded in v3.60 and now works very differently from before, and this bug is no longer present.

photonstorm avatar Apr 11 '23 23:04 photonstorm