An AVPlayerItem cannot be associated with more than one instance of AVPlayer'

前端 未结 5 1489
广开言路
广开言路 2021-02-05 08:16
-(IBAction)play:(id)sender
{

    thumbImageView.alpha=0.0;

    NSString *stringvideo=[NSString stringWithFormat:@\"http://streaming-service\",[[NSUserDefaults standard         


        
5条回答
  •  青春惊慌失措
    2021-02-05 08:40

    Had same issue, try setting ContentURL after Setting the SourceType like below,

    moviePlayerController_ = [[MPMoviePlayerViewController alloc] init];
    moviePlayerController_.movieSourceType = MPMovieSourceTypeStreaming;
    [moviePlayerController_.moviePlayer setContentURL:url];
    

    Source: devforums.apple.com/message/467199

提交回复
热议问题