How do you default closed caption to "OFF"?

Added a video and added closed caption xml file... worked great!


However, the closed caption text is default to "on". How do you default it to off? Trivantis support just told me that they can't help. So, I'm seeking forum members support :) Thank you.

Discussion (18)

@ssneg 57233 wrote:

Hi Wee,

I gave it a try yesterday (good couple of hours), but I couldn't force Lectora's video player to default to OFF.


This is really strange, because JWPlayer (the actual player software that Lectora uses) defaults to OFF unless you specifically set it to on. Why it's ON by default in this case, I don't know. Maybe Lectora uses an older version of JWPlayer.


JWPlayer is a great piece of software and it allows to control almost anything with JavaScript calls. Unfortunately, due to the way Lectora embeds it, there is no straighforward way to access and configure it on the fly.


You can try using an external videoplayer that allows for more flexibility.



Thank you so much, Sergey. I really thought Trivantis just didn't want to help me when they told me it couldn't be set to OFF. And thank you for trying.


It's extremely unfortunate that there's this really nice feature by Trivantis, but why it should be on automatically is just simply bad planning/execution by Trivantis... it's sad really.

@Wee 57155 wrote:

Added a video and added closed caption xml file... worked great!


However, the closed caption text is default to "on". How do you default it to off? Trivantis support just told me that they can't help. So, I'm seeking forum members support :) Thank you.



What version of Lectora are you running?

Please don't be sorry... you're trying to help me.


No, the video has no closed caption, I added the xml closed caption myself. It works beautifully, but it's on as soon as it plays... that's all. People will be annoyed to see it on especially if they didn't turn it on, you know.

@Wee 57212 wrote:

11.3


I am not sure what you mean by the default being set to on. You have to specify an XML file for each video or audio. So by default there is no captioning so that to me means the default is off. Once you specify an XML file it stays "on" until you go back into the captioning dialog and set it to None.

@Wee 57215 wrote:

"On" means I see the closed caption when video plays. I don't want to see it (unless you turn it to on).


What I'm saying is; how do I set it to "off" from the get go?



It is off from the get go as you have to turn it on. Are you saying after you add an XML file for the captioning you want the ability to turn it off without going back to the add captioning dialog and change it there?

"On" means I see the closed caption when video plays. I don't want to see it (unless you turn it to on).


What I'm saying is; how do I set it to "off" from the get go?

@Wee 57217 wrote:

My isn't "off" from the get on, it's on. What I'm simply saying is that I want it off from the get go. The closed caption is working fine i.e. toggle on/off. I have no issue with the xml I added... it's just "on" by default and Trivantis support said they couldn't help.


I am sorry to keep asking questions but this makes no sense. So I need to ask a few more questions. Are you saying that every video file you add is getting closed captioning automatically? When you add a new video and go to the closed captioning dialog for the video is there an XML already selected?

@Wee 57219 wrote:

Please don't be sorry... you're trying to help me.


No, the video has no closed caption, I added the xml closed caption myself. It works beautifully, but it's on as soon as it plays... that's all. People will be annoyed to see it on especially if they didn't turn it on, you know.



Closed captioning is working as designed. The designer of the course needs to decide when it makes sense to have closed captioning on and when not to have it on. There is no way, that I know of, for the student who is taking the course to turn closed captioning on or off while taking the course.

My isn't "off" from the get on, it's on. What I'm simply saying is that I want it off from the get go. The closed caption is working fine i.e. toggle on/off. I have no issue with the xml I added... it's just "on" by default and Trivantis support said they couldn't help.

@Wee 57237 wrote:

BTW, Sergey. I'm not too familiar w/ JWPlayer. Where does this software live? Is it in the published Media folder? Or is it on user's computer? I noticed in my media folder the player.swf and captions.swf, are those used to play my audio mp3 files and my mp4 files? Thanks.


Yes.


JWPlayer is a library that provides a common set of commands for media playback on all platforms. If Flash is available, it'll use player.swf, captions.swf and other flash-based skins/plugins to play files. If no Flash is available, it'll play the media using native html5 capabilities. Check out http://www.jwplayer.com/


Lectora uses jw player to play files but does it in a bit obscure way, without exposing all of its functions to the users.

BTW, Sergey. I'm not too familiar w/ JWPlayer. Where does this software live? Is it in the published Media folder? Or is it on user's computer? I noticed in my media folder the player.swf and captions.swf, are those used to play my audio mp3 files and my mp4 files? Thanks.

Hi Wee,

I gave it a try yesterday (good couple of hours), but I couldn't force Lectora's video player to default to OFF.


This is really strange, because JWPlayer (the actual player software that Lectora uses) defaults to OFF unless you specifically set it to on. Why it's ON by default in this case, I don't know. Maybe Lectora uses an older version of JWPlayer.


JWPlayer is a great piece of software and it allows to control almost anything with JavaScript calls. Unfortunately, due to the way Lectora embeds it, there is no straighforward way to access and configure it on the fly.


You can try using an external videoplayer that allows for more flexibility.

missed page 2. Sorry.

@Wee 57155 wrote:

...the closed caption text is default to "on". How do you default it to off? Trivantis support just told me that they can't help. So, I'm seeking forum members support :) Thank you.


Since Lectora is still using the jwplayer5 and these options didn't make it into V12 yet, this V11 workaround is still relevant:

You'll have to post-publish edit your pages that contain videos. It's annoying, but simply to do.


1.) In your Lectora published pages, search for the two instances of: param name='FlashVars' )


2.) Add to the end of each line of options: captions.state=false&dock=false


===Key===

dock=false : puts CC button on the control bar.

captions.state=false : makes captions NOT visible by default until user clicks CC button.

Thank you so much for this Paul!


I would like to add how to publish this way and avoid the post-publishing headache. It involves editing your Lectora "Support Files". In my case the modification applies to the audio player. I believe there are similar functions for the video player as well.


Open your "C:Program Files (x86)TrivantisLectora InspireSupport Files" folder. I recommend backing up this folder before making any changes.


Open "trivantis-inline.js" with a text editor.


Search for the function "ObjInlineAddParm"


It should look something like this:


function ObjInlineAddParm( newParm ) {

this.parmArray[this.numParms++] = newParm;

}


Replace that function with the attached text. I had to put it in a txt due to formatting issues in this editor. Don't replace the file, just the function mentioned above.


I haven't needed to do this for videos, but I suspect you can do the exact same thing to the function ObjMediaAddParm which is inside trivantis-media.js


Hope this helps someone! Trivantis, please... give us more options. Like, a LOT more.


[ATTACH]670[/ATTACH]

<<< ...function ObjMediaAddParm which is inside trivantis-media.js >>>

Thanks, ybadran. Looks promising. I'll give it a test soon.


BTW: your attachment is coming up as a .php file. I'm not sure if the forum software is doing it or my browser. But I just changed the suffix to .txt and it's all there.


*** Update: ***

Success. Note: Since the FlashVars are written via the trivantis-inline.js process, one needs to do the string replacement in that file not in trivantis-media.js as we assumed.

This is an old post but in case anyone has this same issue I found a work around.

I store a variable "CC Preference"

I then have two versions of the video one as "CC" and one as "NO CC" both set to visible and no auto play.

Then on page load I run an action: If CC Preference is ON, then hide the no cc video and play the cc video. If the CC Preference is OFF, then hide the cc video and play the no cc video.

I put a link that is on every page allowing the user to "turn on" or "turn off this preference which is stored as the variable.

Discussions have been disabled for this post