RenderHeads / UnityPlugin-AVProVideo

AVPro Video is a multi-platform Unity plugin for advanced video playback
https://www.renderheads.com/products/avpro-video/
231 stars 28 forks source link

Using unity to export to webgl, under IOS browser, can you change the path at runtime and support automatic playback? #1264

Closed milan-hwj closed 1 year ago

milan-hwj commented 2 years ago

Describe the issue Using unity to export to webgl, under IOS browser, can you change the path at runtime and support automatic playback?

Your Setup (please complete the following information):

Modify the video path at runtime through the following code:

mediaPlayer.OpenMedia(MediaPathType.AbsolutePathOrURL, "...", true);

After calling this method, avpro will control the browser to create a video tag, and will not complete the path switching by modifying the SRC attribute of the original video tag.

In the IOS browser, the new video tag needs to be triggered by the user's click. This means that when playing multiple videos using 'openmedia', the user needs to click each time to continue playing, and the video list cannot be played automatically.

Chris-RH commented 2 years ago

Our iOS dev is on holiday at the moment and will have a look at this next week.

Chris-RH commented 2 years ago

Hi, we're fairly certain that it won't work due to the way video playback work in browser on iOS.