RenderHeads / UnityPlugin-AVProVideo

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

Media plays after application focus #1955

Open NachiketJadhav opened 1 month ago

NachiketJadhav commented 1 month ago

Problem description:

When I open the iOS app after closing my alarm, all the media players start playing. (even if they are disabled). Using Mobile Core SDK version 3.0.8

Device (which devices are you having the issue with - model, OS version number):

iPhone 11 version 17.5.1

Media (tell us about your videos - number of videos, resolution, codec, frame-rate, example URLs):

15-20 videos with a 1920x1080 resolution.

System Information:

AVPro Video: v3.0.8 (plugin v3.0.8f1-trial) Target Platform: Standalone Unity: v2023.2.15f1 WindowsEditor OS: Desktop - ROG Strix G512LI_G512LI (ASUSTeK COMPUTER INC.) - Windows 11 (10.0.22621) 64bit - English CPU: Intel(R) Core(TM) i7-10870H CPU @ 2.20GHz - 16 threads - 16169KB GPU: NVIDIA GeForce GTX 1650 Ti - NVIDIA - Direct3D 11.0 [level 11.1] - 3962KB - 16384

Chris-RH commented 1 month ago
  1. Is this reproducible in a new project, running only the AVPro Video demo scenes?
  2. What iOS device/OS version are you using?
NachiketJadhav commented 1 month ago

It is currently replicable in Demo_MediaPlayer Scene. The device I am using is iPhone 11 version 17.5.1.

*Play Media On App Unpause is ticked OFF.

Steps to replicate:

  1. Create a button in the UI with the following events: Pause Media player, disable MediaPlayer GameObject, disable VideoDisplay GameObject.
  2. Let the video play for a few seconds, and then press the button.
  3. Have an alarm play over after the video is disabled.
  4. Click into the alarm and then go back in the app.

You would hear the video for a second after the app loses focus, and then when app is focused again, the video starts to play and the UI does not update.

Hope this helps