AVPlayer layer not showing video content
Asked Answered
T

1

8

I am using multiple AVPlayers to display content on my screen and they are all playing video simultaneously. The issue is that sometimes the avplayer is playing but the avplayerlayer isn't showing anything- all you get is a blank screen. This happens randomly. I don't even know how to debug this.

Has anyone had these same issues with AVPLayers or AVPlayer layers? Can you reference the same alaasset from different players at the same time? I'm guessing that these

Telephonist answered 21/6, 2015 at 4:51 Comment(5)
what kind of content are you trying to play?Blowhard
Did you solve this? Sometimes it's related to the frame size of the player layer not being set.Melodist
@Blowhard It was video content.Telephonist
@Melodist I think there is a limit to how many videos you can play simultaneously. We sort of maxed out at 4. So after that iOS begins to misbehave.Telephonist
Still having this issue with only 1 AVPlayer on iPadOS 14. Sound can be heard but not image. When dismissing the app to the background and going back, image is working. How to solve it? On iOS it works fine everytime.Umbel
N
-1

I had this issue when the URL video I was trying to play did not have an extension. After I appended mp4 as path extension, the video started to play in the layer.

Ninos answered 2/12, 2019 at 14:47 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.