I'm using version 5.8 Pro of JWPlayer and have captions working using an mp4 file encoded with CC text. The CC works in all browsers and on my iPad. Now I need to tweak a few things to suit my needs.
First I need to position the CC text closer to the bottom of the video frame (I have a blank area in the video file just for the CC text because I don't want the CC text on top of the video). I do understand this can't be helped in iOS, but I'd like to in normal browsers. I tried using the listener function to style the CC as outlined here: http://www.longtailvideo.com/support/forums/addons/using-plugins/4264/accessibility-plug-in-and-java..., but the Captions plugin apparently doesn't support it.
Second,I'd like to change the background color of the CC text to something besides black. The Captions plugin supports a font color change, but not the "glow" color behind it. The CC text area I have designated for CC is a light color, so I'd like dark text with either no background color or a light color.
If this is not something that's not supported by JWPlayer or Captions, how can I get this done? Can I have a custom captions plugin edited just for me (who can do this)?
FYI, here's the code I'm using:
<div id="container">Loading the player ...</div>
<script type="text/javascript">
jwplayer("container").setup({
'flashplayer': 'player.swf',
'position' : 'top',
'screencolor' : 'FFFFFF',
'file': 'CommPrepCaptioned.mp4',
'autostart': 'true',
'controlbar': 'bottom',
'image': 'CommPrepTitle.jpg',
'bufferlength': '20',
'width': '480',
'height': '534',
'plugins': {
'captions-2': {
'state':true,
'fontSize': '12',
'color': '#000000'
}
}
});
</script>Here is a sample of what I have so far.
http://www.humtech.com/4Bill/sample1/CP0101090a.htm
Both options are indeed not possible with the Captions plugin yet. Positioning the captions is hard to support (not in the DFXP spec), but the ability to change the outline/background color is something I'm looking at:
http://developer.longtailvideo.com/trac/ticket/1529
If you want to change the position and/or color right away, you can look into creating a custom version of the captions plugin. It's open source:
http://developer.longtailvideo.com/trac/browser/plugins/captions
Someone with a little ActionScript (or JavaScript) experience will be able to edit the plugin. The code is documented and should be fairly easy to read/edit.