How do you play a movie given a NSFileWrapper?
I expected to find a initWithData: constructor in MPMoviePlayerController (as in AVAudioPlayer), but only initWithContentURL: is provided.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can get the filename for an
NSFileWrappernode by sending it the- filenamemesssage. From there, you can turn that into anNSURLusing– initFileURLWithPath:, which should do the trick because you can then callinitWithContentURL:.