Multiple MPMoviePlayerController instances

前端 未结 3 753
说谎
说谎 2021-02-02 10:27

I\'m trying to put two MPMoviePlayerController on a UIView like this

    for (int i = 0; i < 2; i++)
{
    UIView* v = [[UIView alloc] initWithFrame: CGRectMa         


        
3条回答
  •  长发绾君心
    2021-02-02 11:16

    You won't be able to do this. Internally MPMoviePlayerController seems to use the same view to trade between instances depending on whatever instance is playing. Your only option is to develop your own video player using AVFoundation in order to get multiple instances, or use HTML and UIWebViews. See: http://developer.apple.com/library/ios/#documentation/AudioVideo/Conceptual/AVFoundationPG/Articles/00_Introduction.html#//apple_ref/doc/uid/TP40010188

提交回复
热议问题