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

[Android] OpenMedia(false) starts playback. #1283

Closed WASDMagician closed 1 year ago

WASDMagician commented 1 year ago

Describe the issue Calling OpenMedia on a MediaPlayer with AutoOpen and AutoStart set to false causes the media to start playing even when passing false as the autoPlay option. Happens under both the Media Player and Exo video api's. Prefer software decoder and Unity audio seem to prevent the issue but these are obviously not ideal solutions and have lead to desyncs for me in the past. Doesn't happen in editor or in a windows build.

Your Setup (please complete the following information):

To Reproduce

  1. In scene, prefab or code create a GameObject with a MediaPlayer component and assign a media reference.
  2. Set Auto Open and Auto Play to false.
  3. Reference the MediaPlayer in a script.
  4. Call [MediaPlayer].OpenMedia(false)
Ste-RH commented 1 year ago

This is a regression bug due to #1278 and will be fixed in the next version (v2.6.2). We will likely release this in the coming week.

@WASDMagician if you require a fix before this, please email over your Unity Asset Store PDF invoice and we will send over a v2.6.1f2 release for you to test/use.

Ste-RH commented 1 year ago

Fix verified.

Chris-RH commented 1 year ago

The latest version is out, please let us know if it has not fixed this issue.