문제

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.

도움이 되었습니까?

해결책

You can get the filename for an NSFileWrapper node by sending it the - filename messsage. From there, you can turn that into an NSURL using – initFileURLWithPath:, which should do the trick because you can then call initWithContentURL:.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top