문제

In one of my projects the server need a cookie(which I got from login request) to stream the video, but I did not find any way to associate a header to request in MPMoviePlayer/MPMoviePlayerController, does anyone know what should I do?

Thanks!

도움이 되었습니까?

해결책

By registering a custom NSURLProtocol handler class, you can programmatically handle the requests made by the player.

For more reading, see this post about NSURLProtocol, this article, or the Apple HLS doc's.

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