How to config my server to providing the video file play with MPMoviePlayerViewController?

后端 未结 2 1946
说谎
说谎 2021-01-13 02:06

I want to using MPMoviePlayerViewController to play the video file on my server. But It not works.

My iOS code are as bellow:

NSURL *mediaURL = [[NSU         


        
2条回答
  •  既然无缘
    2021-01-13 02:19

    You are pointing your MPMoviePlayerController at 127.0.0.1, which is the current device's IP. So your iOS app is looking for a web server hosting that file on your iPhone. Your code looks fine otherwise, you've just got to host the .mov somewhere valid.

提交回复
热议问题