[tvOS ]Network Stream Authorization HTTP Header
Posted: 08 Aug 2016 11:19
Hi,
I am new to iOS/tvOS, currently, I'm working on an Apple TV app that plays video streams from cloud services like Dropbox/Amazon Drive. Network Streams that does not require Authorization headers (like dropbox) works fine, however, I am having trouble with network streams that requires HTTP headers (like Amazon Drive). I don't see any way of adding HTTP headers, as the method 'mediaWithURL' only accepts a URL. This is what I am trying
Any help would be greatly appreciated.
Thanks
I am new to iOS/tvOS, currently, I'm working on an Apple TV app that plays video streams from cloud services like Dropbox/Amazon Drive. Network Streams that does not require Authorization headers (like dropbox) works fine, however, I am having trouble with network streams that requires HTTP headers (like Amazon Drive). I don't see any way of adding HTTP headers, as the method 'mediaWithURL' only accepts a URL. This is what I am trying
Code: Select all
mPlayer = [[VLCMediaPlayer alloc] init];
mPlayer.delegate = self;
mPlayer.libraryInstance.debugLogging = YES;
mPlayer.drawable = self.view;
[mPlayer setMedia:[VLCMedia mediaWithURL:[NSURL URLWithString::@"http://someserver.com/path/Sample.mkv"]]]];
Thanks