An AVPlayerItem can occupy only one position in a player's queue at a time

后端 未结 5 376
梦如初夏
梦如初夏 2020-12-11 04:59

Im getting this error when trying to play a video from my temp directory:

NSString *tmpDir = [NSTemporaryDirectory() stringByAppendingString:@\"/\"];
NSStrin         


        
5条回答
  •  隐瞒了意图╮
    2020-12-11 05:39

    I got this because i had invalid parameters for movieSourceType, i thought you were supposed to put a MPMovieMediaTypeMask in there (video/audio,etc) but instead you are supposed to put a MPMovieSourceType. Fixing that made it work for me

提交回复
热议问题