MPMoviePlayer load and play movie saved in app documents

前端 未结 4 942
一向
一向 2021-01-05 11:34

I am writing an application that stores the movies in the photo roll into the local documents folder for the app. I can play remote movies using the MPMoviePlayer, however t

4条回答
  •  执念已碎
    2021-01-05 11:51

    I am not sure if this will help you. In this tutorial there are some code lines which probably will bring you on the right path:

        // Unless state is unknown, start playback
    if ([mp loadState] != MPMovieLoadStateUnknown)
    ...
    

    You will find this snippet in following method:

    - (void) moviePlayerLoadStateChanged:(NSNotification*)notification 
    

    here is the link to the tutorial: Tutorial

    Hopefully this will help you...

提交回复
热议问题