I have a AVMutableComposition that I've associated with an AVPlayer. It seems if I add tracks to this composition the AVPlayer doesn't play the added tracks unless I set the composition on the player again. Right now I'm doing this by just replacing the current item with the same composition that is already set. After that it picks up the new tracks.
I haven't been able to figure out if this is the correct way of doing it, it somehow seems a bit strange having to do it like that.
Any ideas?
Thanks
Basically although it's mutable composition, apple recommend to create an immutable composition and create AVPlayerItem for playback purposes. It's a bit annoying but you can go around it. When you want to refresh the video just sample the time, create another AVPlayerItem and load it to the right time.
Here's snippet from apple's AVMutableComposition documentation
Further information: Full Document