RenderHeads / UnityPlugin-AVProVideo

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

iOS platform video stuck when phone call or alarm clock #474

Closed LikezZ closed 3 years ago

LikezZ commented 3 years ago

Describe the bug Hello there! I found a problem when using AVProVideo: When playing a video on the iOS platform, if there is a call at this time on the new iOS14 platform or alarm clock on all iOS platform the video will be stuck and cannot be played. We tried to set the Media Player and checked Pause Media On App Pause and Play Media On App Unpause, but it still didn’t take effect; we enable the specific settings for iOS: "Resume playback on audio session route change" ,it still didn’t take effect

Your Setup (please complete the following information):

To Reproduce

Logs If applicable, add error logs to help explain your problem.

Screenshots If applicable, add screenshots to help explain your problem.

Videos If applicable, add a copy of your video or the URL

Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE

Instead email the link to us unitysupport@renderheads.com

Dejavu0709 commented 3 years ago

I met the same problem,and when I try to set the audio mode from System Direct to Unity,there is no sound at all

AndrewRH commented 3 years ago

@Dejavu0709 did you add an AudioOutput component and set it to point to the MediaPlayer?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Ste-RH commented 3 years ago

Closing due to inactivity