Reputation: 83
I try to load a m3u file with an user agent, I use the VLCMediaPlayer initWithLibrary
but that not work
there is my code
NSString *filePath = [documentsDirectory stringByAppendingPathComponent:@"tStream.m3u"];
VLCLibrary *myLib = [VLCLibrary sharedLibrary];
[myLib setHumanReadableName:@"Idontknow" withHTTPUserAgent:@"myUserAgent"];
_mediaPlayerOne = [[VLCMediaPlayer alloc] initWithLibrary:myLib];
_mediaOne = [VLCMedia mediaWithPath:filePath];
_mediaPlayerOne.media = _mediaOne;
[_mediaPlayerOne play];
Someone knows where my problem comes from ? Thank You
Upvotes: 0
Views: 160