How to play a video with MPMoviePlayerController

后端 未结 1 486
情深已故
情深已故 2020-12-12 02:47

I\'m using this code to play a video streaming from the apple site

- (IBAction)playMovie:(UIButton *)sender {
    NSLog(@\"start playing\");
    //NSURL *url         


        
相关标签:
1条回答
  • You didn't tag this as iOS, but MPMoviePlayer is iOS only. This should work just fine with a video that will play on iOS. Unfortunately the video you are trying to play is not iOS compatible. Try this URL:

    http://stream.qtv.apple.com/events/mar/123pibhargjknawdconwecown/12oihbqeorvfhbpiubqnfv3_ipad_vod_ref.mov
    
    0 讨论(0)
提交回复
热议问题