RenderHeads / UnityPlugin-AVProVideo

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

IOS platform video stuck #447

Closed mengflyQ closed 3 years ago

mengflyQ 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 and the call is closed or the Bluetooth headset is connected, 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; after checking the code, we found that in MediaPlayer.cs In the OnApplicationPause function, m_Control.Pause() will only be called under non-Iphone platforms; after the restrictions on this platform are removed, the above problems will not occur in the ios package that is printed. I would like to ask: Why is it restricted to call this function under the IOS platform? Will there be other problems if I remove this restriction? Or is there any other way to solve the problems encountered above

Your Setup (please complete the following information):

To Reproduce

  1. The video can continue to play

Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE

Instead email the link to us 2569386351@qq.com

MorrisRH commented 3 years ago

Hello! There is an option under the platform specific settings for iOS: "Resume playback on audio session route change". You need to enable this in order for the video to automatically resume playing when headphones are connected or disconnected.

mengflyQ commented 3 years ago

Thank you! I also encountered another problem: MediaPlayer is embedded in a scene, but suddenly when returning from another scene, the video cannot be played, and the black screen is displayed. This problem does not work on Android, but only encountered on ios.

------------------ 原始邮件 ------------------ 发件人: "RenderHeads/UnityPlugin-AVProVideo" <notifications@github.com>; 发送时间: 2020年8月20日(星期四) 晚上7:39 收件人: "RenderHeads/UnityPlugin-AVProVideo"<UnityPlugin-AVProVideo@noreply.github.com>; 抄送: "2569386351"<2569386351@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [RenderHeads/UnityPlugin-AVProVideo] IOS platform video stuck (#447)

Hello! There is an option under the platform specific settings for iOS: "Resume playback on audio session route change". You need to enable this in order for the video to automatically resume playing when headphones are connected or disconnected.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

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.

stale[bot] commented 3 years ago

This issue has been automatically closed because it has not had recent activity. If you wish to continue this issue, then please create a new issue as we do not monitor closed issues.