Options VLCKit Ignored
Posted: 05 Oct 2014 23:33
Hi everyone,
I'm using VLCKit in my project. I want to change the subtitle appearance but add options methods are ignored.
I tried:
and then I tried to overwrite VLCLibrary default params and/or use initWithOptions: method
The freetype options are always ignored. The same result if I try add 5.1 sound:
Help please. I'm so frustrated
I'm using VLCKit in my project. I want to change the subtitle appearance but add options methods are ignored.
I tried:
Code: Select all
VLCMedia *media = ...;
[media addOptions:@{@"--freetype-rel-fontsize=12" : [NSNull null]}];
[media addOptions:@{@"--freetype-font=HelveticaNeue-Bold" : [NSNull null]}];
[media addOptions:@{@"--freetype-bold" : [NSNull null]}];
[media addOptions:@{@--freetype-background-opacity=185" : [NSNull null]}];]
...
Code: Select all
- (void) setupVLCLibraryOptions
{
NSMutableArray *defaultParams = [NSMutableArray array];
[defaultParams addObject:@"--play-and-pause"]; // We want every movie to pause instead of stopping at eof
[defaultParams addObject:@"--no-color"]; // Don't use color in output (Xcode doesn't show it)
[defaultParams addObject:@"--no-video-title-show"]; // Don't show the title on overlay when starting to play
[defaultParams addObject:@"--verbose=0"]; // Let's not wreck the logs
[defaultParams addObject:@"--no-sout-keep"];
[defaultParams addObject:@"--vout=macosx"]; // Select Mac OS X video output
[defaultParams addObject:@"--text-renderer=quartztext"]; // our CoreText-based renderer
[defaultParams addObject:@"--extraintf=macosx_dialog_provider"]; // Some extra dialog (login, progress) may come up from here
[defaultParams addObject:@"--force-dolby-surround=1"];
[defaultParams addObject:@"--spdif"];
[defaultParams addObject:@"--freetype-rel-fontsize=12"];
[defaultParams addObject:@"--freetype-font=HelveticaNeue-Bold"];
[defaultParams addObject:@"--freetype-bold"];
[defaultParams addObject:@"--freetype-background-opacity=185"];
[defaultParams addObject:@"--freetype-outline-opacity=200"];
[defaultParams addObject:@"--freetype-outline-thickness=2"];
[defaultParams addObject:@"--freetype-shadow-distance=.03"];
[[NSUserDefaults standardUserDefaults]setObject:defaultParams forKey:@"VLCParams"];
}
Code: Select all
[defaultParams addObject:@"--force-dolby-surround=1"];
[defaultParams addObject:@"--spdif"];