I have written an application which does HD streaming using RTP on IPad1, but the quality of video is very bad. I have taken options from VLC player and applied the same on the media object as shown in bellow code:
Code: Select all
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
_mediaPlayer = [[VLCMediaPlayer alloc] initWithOptions:@[[NSString stringWithFormat:@"--%@=%@", kVLCSettingSubtitlesFont, [defaults objectForKey:kVLCSettingSubtitlesFont]], [NSString stringWithFormat:@"--%@=%@", kVLCSettingSubtitlesFontColor, [defaults objectForKey:kVLCSettingSubtitlesFontColor]], [NSString stringWithFormat:@"--%@=%@", kVLCSettingSubtitlesFontSize, [defaults objectForKey:kVLCSettingSubtitlesFontSize]], [NSString stringWithFormat:@"--%@=%@",kVLCSettingDeinterlace,[defaults objectForKey:kVLCSettingDeinterlace]]]];
VLCMedia *media;
NSURL *url = [NSURL URLWithString:urlString];
media = [VLCMedia mediaWithURL:url];
[media addOptions:@{kVLCSettingStretchAudio :@(NO), kVLCSettingTextEncoding : kVLCSettingTextEncodingDefaultValue, kVLCSettingSkipLoopFilter : kVLCSettingSkipLoopFilter ,kVLCSettingStretchAudio : kVLCSettingStretchAudioOffValue}];
[_mediaPlayer setDeinterlaceFilter:@"blend"];
[_mediaPlayer setMedia:media];
[_mediaPlayer play];
Regards,
Sudhish Kapoor