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