Multiple MPMoviePlayerController instances

前端 未结 3 867
说谎
说谎 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:31

    Do you require to play both the videos simultaneously?

    I guess i have two options:

    1. Add two video thumbnail image buttons on the same screen. According to selection selected video gets played and other gets stopped. So at a time in view only single video will gets played.

    2. Create one separate view controller and add your video into that. Now add that viewcontroller.view in your main view wherever you want.

    Let me know if any of these work for you.

提交回复
热议问题