UnityPlugin-AVProVideo
UnityPlugin-AVProVideo copied to clipboard
HLS+AES-128 plays audio only with iOS 16
Describe the issue
Blank screen when streaming multi-chunk videos on iOS 16 beta.
Your Setup (please complete the following information):
- Unity version: 2020.3.36f1
- AVPro Video version:
- 2.5.7 trial
- Operating system version: iOS 16.0
- Device model: iPhone 13 Pro Max (but it happens on any device)
- Video specs (resolution, frame-rate, codec, file size):
- frame-rate: 60
- codec H264 - MPEG-4
Logs look normal but _state.status.HasUpdatedTexture()
at AppleMediaPlayer.cs:312
returns always false
.
Hi @dwenegar,
Could you try opening a new project with our Demo_MediaPlayer scene with the video samples we have included? Are there any other file types that are not playing? Do you have a device with an earlier version of iOS to test the files on?
Hi @Chris-RH
Could you try opening a new project with our Demo_MediaPlayer scene with the video samples we have included?
All the video samples play correctly.
Are there any other file types that are not playing?
So far only one specific HLS stream. Additionally, the very same stream not playing correctly with AVPro, plays correctly in Safari and VLC.
Do you have a device with an earlier version of iOS to test the files on?
Yes: non-beta versions of iOS do not manifest the described problem.
OK, thank you very much for the information.
Unfortunately we cannot support for beta releases of OSs, as there are likely to be quite a few changes before the final version is released.
We will be supporting iOS 16 when it comes out officially, so we will look out for this if the problem is still occurring.
Hello @Chris-RH, I think that this issue could be reopened. After the update to iOS 16, that was released on September 12th, all the HLS stream videos are not working. All the logs looks normal, just like @dwenegar mentioned.
Thanks. It would be great if you could provide a bit more information Unity version: AVPro Version: Device What files you are having problems with (resolution, type etc ) A full log would be really helpful if you can provide one, please
Sure @Chris-RH
Unity Version: 2021.3.5f1 Device: iPhone 13 Pro (iOS 16) HLS encrypted videos are not being rendered, but I can hear them. All other type of videos (non HLS encrypted are working fine). All of our videos are 1080p.
I'm sending two log files. The full one has all the logs from the device. The other one, just the logs from our application. avpro-ios16.log avpro-ios16-full.log
Brilliant, thank you so much @mateus-capelesso. Our iOS dev is away until Tuesday (Its a Bank holiday here in the UK), so he'll look at it then.
Hey @mateus-capelesso, could you tell me more about how the HLS streams are being encrypted? Are you able to share one of these streams so that we can test it here? Thanks!
Hey @MorrisRH, we are using AES-128 + CloudFront signed cookies.
I've reproduced the issue here and unfortunately it does seem to be something in the internals of AVFoundation. In essence the low-level player instance does not produce frames when playing an AES-128 encrypted HLS video when running iOS 16.
I've opened an issue with Apple so hopefully they will get back to me with something.
For now I'm afraid that we cannot support HLS+AES-128 on devices running iOS 16.
Hello,
Is there any update on this?
I'm having the same problem here and my app has a lot of these ):
Thanks!
We're still waiting to hear back from Apple. We'll keep this thread updated when we know anything more :)
We are facing the same issue here. When we try to play the live stream in a native iOS app we don't have the issue though.
Hey @guerwan, how are you playing the stream in your native app? The issue is with AVPlayerItemVideoOutput under the hood so you won't see it if you're just using AVPlayerViewController or AVPlayerLayer for the video output.
@MorrisRH you're right we are using AVPlayerViewController.
@MorrisRH Apparently the issue has been fixed now in iOS 16.1 beta 4.
That sounds promising. Hopefully it won't be too long until 16.1 is released into the wild and we shall see :)
already fixed?
A quick test using the latest AVPro Video (version 2.6.6) and iOS 16.1 shows that this is now fixed.