Closed garric closed 1 year ago
Does it allow you to resume the video playing afterwards or will it not play at all?
not play at all
OK. Our iOS dev is on leave at the moment, but he'll look at this as when he gets back. Thanks for reporting it.
same issue. and I found that in MediaPlayer_AppFocus.cs the first line code:
may be define incorrect, hope it helpful.
This issue has been fixed, playback will resume after an interruption such as receiving a call.
Version 2.6.1 has been released. Please let us know if the issue has not been fixed for you.
Where can I get this version 2.6.1? The version we bought is Version 1.10.2。Is version 1.10.2 is compatible with 2.6.1?
Hi @garric,
There are a few different editions of version 2 that you can purchase, more information here: https://www.renderheads.com/content/docs/AVProVideo/articles/download.html#editions
If you already own version 1, if you use the same Unity account then you will be able to go through a discounted upgrade route; https://www.renderheads.com/content/docs/AVProVideo/articles/download.html#upgrade-pricing
AVPro Video 2.x has many API changes, so upgrading a project from AVPro Video 1.x is not recommended or should be done carefully at least. There are also feature differences between version 1.x and 2.x which are summarised in the table on the What's New page. If you do plan to upgrade your existing project then do follow the migration guide.
Hi @Chris-RH , The Version 2.6.1 with bug fixed have trial vesion? If it's avaiable, I can first use the trial version and test the bug. And then to evaluate it's worth to upgrade version :)
The trial version of 2.6.1 is available here:
https://github.com/RenderHeads/UnityPlugin-AVProVideo/releases/tag/2.6.1
On Sat, 3 Sept 2022 at 15:21, garric @.***> wrote:
The Version 2.6.1 with bug fixed have trial vesion? If it's avaiable, I can first use the trial version and test the bug. And then to evaluate it's worth to upgrade version :)
— Reply to this email directly, view it on GitHub https://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/1261#issuecomment-1236129407, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYRROUNEJKOSUZHBUWT4N2LV4NNF7ANCNFSM56ZV3SLQ . You are receiving this because you commented.Message ID: @.***>
@Chris-RH hi,I have integrated 2.6.1 trival version, and tested the issue is fixed now. I have another 2 questions:
OnApplicationFocus and OnApplicationPause in Player_AppFocus.cs doesn't be called on iPhone, due to the marco:
Is this on purpose? This brings another bug on iPhone, the MediaPlayer will not paused when I open the control center。Is there any risk if I remove the UNITY_IOS macro from the #if defines.
What's the difference between trial version and official version, especially on C# files?
Hey @garric
Hi, @MorrisRH My test context: Unity Engine Source code with very little modification based on Unity 2019.4.22f1 iPhone 13, iOS 15.2.1
Hi, @MorrisRH I have just tested on Unity 2019.4.22f1, which downloaded from https://unity3d.com/get-unity/download/archive, the bug(The MediaPlayer is not paused when I open the control center) is indeed existed. The tested case(https://drive.google.com/file/d/1WgJhKjZ-0wXY79u7iMK6wDmCc6bIfGT3/view?usp=sharing) is just an empty project with the 2.6.1 trival package, and a Unity default SampleScene containing DisplayuGUI component with default MediaPlayer setting. (The Demo-MediaPlayer scene is Ok) The tested devices: iPhone 13, iOS 15.2.1 iPhone 11, iOS 14.6
By the way, MediaPlayer(The Demo-MediaPlayer) does not resume and play at the same moment as when it's paused(like opening control center). Is this correct? e.g. MediaPlayer is paused at 5th seconds of vedio, after a while, the MediaPlayer is resumed and played directly from the 10th seconds, not just at 5th seconds.
Hmmm... I see what you mean, yeah that's not correct. I'll investigate.
Reproduced and will be fixed in the next release
Ok :)
Hi, @MorrisRH Please let me know if the bug has been fixed. And I will test this new version and decide to buy v2 if it's ok.
@garric this was fixed in the last release
Hi @Chris-RH I've tried 2.6.4 package with empty project, and it seems like ok now.
for Android, If we just play video from local path, can I ignore the following change from 2.6.4?
That is an Android only code path. You should be able to safely ignore those changes if you are not targeting Android. Not bringing that change over is unlikely to negatively affect your project. That said, why not bring 2.6.4 over in it's entirety?
I stripped some c# and shader files, and modified some c# logic to satisfy our online project's special needs when I integrated 2.6.1 last week. So I planned to integrate 2.6.4 with minimal change based on 2.6.1, but it seemed not ok yesterday.
Anyway, I will try to integrate 2.6.4 entirely today, and see what it will happen.
Hi, @MorrisRH I have entrily integrate 2.6.4 to my project and it's ok now for the bug metioned above.
But I find that: when earphone connects to iPhone, the video continue to play, but when earphone disconnects to iPhone, the vedio pause。 Is this behaviour in your exception? Or is there any event in Avpro, which I can listen to? That means, when I am notified that the iPhone is disconnected to eraphone, I can choose to play video by script again。
This is the standard (and expected) behaviour on Apple platforms.
We do provide an option to override this though, enable Resume Playback After Audio Session Route Change
in the iOS section of the platform specific options for the media player, details of which can be found here.
This is the standard (and expected) behaviour on Apple platforms. We do provide an option to override this though, enable
Resume Playback After Audio Session Route Change
in the iOS section of the platform specific options for the media player, details of which can be found here.
Thanks. I'll try it
This is the standard (and expected) behaviour on Apple platforms. We do provide an option to override this though, enable
Resume Playback After Audio Session Route Change
in the iOS section of the platform specific options for the media player, details of which can be found here.
Hi @MorrisRH
I have done a test in an empty project with 2.64 and toggle on the opiton Resume playback after audio route change.
But it doesn't work. i mean, when headphone disconnects to iPhone, the vedio still pause.
Hi, @MorrisRH The bug mentioned above (Resume playback after audio route change doesn't work) will be fixed?
Hey @garric, I can't reproduce the issue. It's working fine for me here, playback resumes after disconnecting headphones (wired and Bluetooth). I just tested using our MediaPlayerDemo scene.
Hi, @MorrisRH Ok, I'll try MediaPlayerDemo scene.
Describe the issue Vedio played by MediaPlayer(AvProVideo) is paused after an incoming iPhone call。After I swipe or refuse the incoming call, the MediaPlayer is still paused(It's expected to be resumed/play)
Your Setup (please complete the following information):
To Reproduce 1.Play a video by MediaPlayer
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