Captions styles menu



Caption Styles Api

It is possible to update styles via API call, using the following object format:

kWidget.addReadyCallback( function( playerId ){ var kdp = document.getElementById( playerId ); kaltura_player.sendNotification("newCaptionsStyles", { "fontFamily": "Courier New, Courier, Nimbus Mono L, Cutive Mono, monospace", "fontColor": "rgb(123, 33, 111, 0.8)", "fontSize": "3em", "backgroundColor": "rgba(1, 1, 1, 0.5)", "windowColor": "rgba(255, 255, 0, 0.8)", "charEdgeStyle": "rgb(34, 34, 34) 2px 2px 3px, rgb(34, 34, 34) 2px 2px 4px, rgb(34, 34, 34) 2px 2px 5px" } ); });

Additionally you can set up the default styles settings, using "cvaaDefault" flashvar:

'flashvars': { 'cvaa':{ 'cvaaDefault': { 'fontFamily': "Arial, Roboto, Arial Unicode Ms, Helvetica, Verdana, PT Sans Caption, sans-serif", 'fontColor': "#ffffff", 'fontOpacity': 100, 'fontSize': 12, 'backgroundColor': "#000000", 'backgroundOpacity': 75, 'windowColor': "#ffffff", 'windowOpacity': 0, 'edgeStyle': "none" } } } NOTE:The caption menu style settings are saved using cookies per page, you can disable cookies, However upon page refresh the settings will not be saved and the default will be used. To disable cookie for the plugin set the following flashvar to false: 'flashvars': { 'cvaa':{ 'useCookie': false } }