ytsejamdream
8 years agoVisitor
Setting CaptionStyle
Hi guys,
I'm new over here, I'm having problem setting captionStyle. This is my code:
The subtitle is showing but it seems that styles showing are the ones set in the system (default), not the ones that I'm setting in code.
Thanks for your help.
I'm new over here, I'm having problem setting captionStyle. This is my code:
m.video.globalCaptionMode = "On"
[size=85][font=Monaco]m.video.subtitleTrack = params.subtitlesUrl[/font][/size]
[size=85][font=Monaco]m.video.captionStyle = {[/font][/size]
[size=85][font=Monaco][color=#000000] [/color][color=#3f7777]"Background Color"[/color][color=#000000][color=#000000]: params.[/color][/color][color=#ff9e00][color=#ff9e00]backgroundColor[/color][/color][/font][/size]
[size=85][font=Monaco] [color=#3f7777]"Background Opacity"[/color]: params.backgroundOpacity[/font][/size]
[size=85][font=Monaco] [color=#3f7777]"Text style"[/color]: params.textStyle[/font][/size]
[size=85][font=Monaco] [color=#3f7777]"Text color"[/color]: params.textColor[/font][/size]
[size=85][font=Monaco] [color=#3f7777]"Text size"[/color]: params.textSize[/font][/size]
[size=85][font=Monaco] [color=#3f7777]"Text edge effect"[/color]: params.textEdgeEffect[/font][/size]
}
The subtitle is showing but it seems that styles showing are the ones set in the system (default), not the ones that I'm setting in code.
Thanks for your help.