UnityPlugin-AVProVideo icon indicating copy to clipboard operation
UnityPlugin-AVProVideo copied to clipboard

Media plays after application focus

Open NachiketJadhav opened this issue 1 year ago • 2 comments

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

NachiketJadhav avatar Aug 01 '24 09:08 NachiketJadhav

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

Chris-RH avatar Aug 01 '24 09:08 Chris-RH

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

NachiketJadhav avatar Aug 01 '24 10:08 NachiketJadhav

Bug in the audio interruption handler causing playback to resume when it should remain paused. A fix will make it into the next release.

MorrisRH avatar Nov 19 '24 11:11 MorrisRH

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

Chris-RH avatar Nov 20 '24 17:11 Chris-RH