I'm currently trying to play the video at a URL that has a custom schema defined in a custom subclass of NSURLProtocol. Initially, I used MPMoviePlayerController in an attempt to accomplish this, but after running into problems and checking, I found that MPMoviePlayerController did not handle NSURLProtocol subclasses as expected.
How to play movie with url using custom NSURLProtocol?
As a result, I decided to look at the structure of AVFoundation, however, it seems that this also does not work. I just wanted to know if this is possible, or am I trying to get through walls?
Using AVFoundation, the approach I'm using is shown below. It is probably worth mentioning that this works when using the standard URL for videos posted on the Internet, but does not work with custom NSURLProtocol.
Is there anything else that would have to be done to play from a specific subclass of NSURLProtocol?
ios avfoundation mpmovieplayercontroller avplayer nsurlprotocol
Taz
source share