1

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!

hzxu
  • 5,753
  • 11
  • 60
  • 95

1 Answers1

0

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.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Berik
  • 7,816
  • 2
  • 32
  • 40