formating captions

Hi everyone,

My sponsor asked for us to add Spanish closed captions to a video. Easy. However, I have a couple problems related to formatting.

  1. The closed caption options that display in the video player are "none" and "English." I changed the course language to Spanish but that didn't help. Is there a way to have the options to list Spanish?
  2. Can I change the background color of the caption bar? The sponsor wants it solid black.

If any of this can be done, please let me know. I'm using Lectora 17.

Thanks!

Discussion (5)

There seem to be quite a few posts lately around the media players! I've been working through configuring the default skin for audio and made some discoveries that can help with option #2.

I've attached my most recent work which has several customizations using CSS to alter various pieces of the audio skin. If you look at the HTML extension, I've labeled all the sections and what they do to the audio player - You're looking for the captions-text, which overrides the setting in the trivantis-player.css using the background value.

I'm not sure how you might be able to add the Spanish CC or how to add the option to the selector (none/English) even after poking around in the player CSS and HTML except for the div class for the selector and radio button for English.

undefined

Addendum: I just realized that I uploaded a version prior to saving and re-zipping where the captions background is NOT changed. The section marked as "Changes color for text background" has the * on the wrong side of the / in the note. Sorry about that!

Erica - I did some more digging and found some configuration options for MediaElement, which is very similar to the default player in Lectora and has some information on multiple caption options:

MediaElement Installation and Configuration

Also, there's a Mozilla developer site that has some information that may spark some option:

MDN Site

Thank you for the reply. We pulled out the code for the background and it works great! Now just to figure out the Spanish issue....

Hi Erica - I know it's been awhile since this post, but I dig something else up while working on my own player specific to adding multiple languages for captions:

https://github.com/mediaelement/mediaelement/blob/master/docs/usage.md#captions

Discussions have been disabled for this post