MPMoviePlayer load and play movie saved in app documents

前端 未结 4 1031
一向
一向 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:35

    The Core Data template converts a file path to a URL like this:

    NSURL *storeUrl = [NSURL fileURLWithPath:whatever];
    

    That seems to do all of the correct space escaping and stuff because I'm using this to load a file with a space in the path.

提交回复
热议问题