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

Play audio from video in background in iOS

Open hjupter opened this issue 2 years ago • 3 comments

Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE

Describe the issue We have been trying to play audio in background but nothing seems to work, we have the background modes setup and UnityAppController.mm modified

Your Setup (please complete the following information):

  • Unity version: 2021.3.12f1
  • AVPro Video version (number and edition (trial/core/ultra/enterprise)): ultra
  • Operating system version: iOS/MacOS
  • Device model: iPhone
  • Video specs (resolution, frame-rate, codec, file size): 1080p

Videos https://livepeercdn.studio/hls/85c28sa2o8wppm58/index.m3u8

Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE

Instead email the link to us [email protected]

hjupter avatar Sep 07 '23 15:09 hjupter

The default player behaviour on iOS is to suspend video playback when the app is put into the background (that's the system, not us imposing this). I am assuming that this is video playback and not just an audio file? Audio only files should respect the background modes.

Chris-RH avatar Sep 08 '23 08:09 Chris-RH

The default player behaviour on iOS is to suspend video playback when the app is put into the background (that's the system, not us imposing this). I am assuming that this is video playback and not just an audio file? Audio only files should respect the background modes.

Yes video playback, is there any workaround for this?

hjupter avatar Sep 08 '23 15:09 hjupter

We don't have a work around I'm afraid. It might be possible for us to add support for at some point. However we are a very small team and have other things that are much higher priority.

Chris-RH avatar Sep 11 '23 08:09 Chris-RH