RenderHeads / UnityPlugin-AVProVideo

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

iOS bug 3.0.0 - video restarts inappropriately after app focus restored #1829

Closed daveb-tactic closed 5 days ago

daveb-tactic commented 2 months ago

Describe the issue On iOS when the app has finished playing a video, then the app loses focus and then gains focus, the video starts playing again from the start. AutoPlay is not enabled on the mediaplayer.

Also (possibly related) on Windows in the editor, we notice that the "Auto Play" check box is automatically checked if the Unity Pause button is pressed and then pressed again (unpaused). And this results in the same behavior (video starts playing again).

Your Setup (please complete the following information):

To Reproduce

  1. Modify existing demo scene "Demo_MediaPlayer" so that AutoPlay is disabled and looping playback is disabled.
  2. Buid the demo app for iPhone.
  3. Press the play button on iPhone and watch the video play to end
  4. Minimize the app, then restore
  5. Observe that the video plays without any user input
Chris-RH commented 2 months ago

Its unlikely to be anything to do with Autoplay. App resuming is quite complex. It'll be something with the app restore code applying state when it shouldn't.

DreamYao commented 1 month ago

I have the same problem

MorrisRH commented 1 week ago

A fix for this will make into the next release (version 3.0.4)

Chris-RH commented 1 week ago

AVPro Video version 3.0.4 has been released. Please let us know if it has not fixed your issue.