Friday, September 1, 2017 [Tweets] [Favorites]

Too Many AVPlayers?

Becky Hansmeyer:

I always made sure to set the AVPlayer to nil before re-generating the preview, so I couldn’t figure out why there would be any other “actions that decode media.” A trip to Stack Overflow revealed a possible platform limitation on the number of video “render pipelines” shared between apps on the device. It turns out that setting the AVPlayer to nil does not free up a playback pipeline and that it is actually the association of a playerItem with a player that creates the pipeline in the first place. Since developers don’t seem to have any control over when these resources are released, I knew I’d have to figure out another solution.

Comments

Stay up-to-date by subscribing to the Comments RSS Feed for this post.

Leave a Comment