Picture of Rob Mausser
_startLanguage: "none" doesnt work
by Rob Mausser - Wednesday, 24 March 2021, 7:41 PM
 

I cant get _startLanguage to work as stated in the media component readme:

_startLanguage (string):

If using closed captions, use this property to specify which language should be shown by default - or to prevent closed captions from being shown by default (so that the learner will need to switch them on). The value of this property must match one of the srclang values - or be set to "none" if you need the default to be 'closed captions off'.

This doesnt work. Setting it to none does nothing and english captions still load by default

 

Adapt 4.4.0

Media component version": "4.1.0",

 

Picture of Matt Leathes
Re: _startLanguage: "none" doesnt work
by Matt Leathes - Thursday, 25 March 2021, 12:03 PM
 

Just tried this, worked fine for me...

Picture of Rob Mausser
Re: _startLanguage: "none" doesnt work
by Rob Mausser - Friday, 26 March 2021, 6:08 PM
 

Is this the proper syntax?

 

"_playerOptions": {
"startLanguage": "none",
"hideCaptionsButtonWhenEmpty": true,
"toggleCaptionsButtonWhenOnlyOne": true
},

Picture of Rob Mausser
Re: _startLanguage: "none" doesnt work
by Rob Mausser - Friday, 26 March 2021, 6:17 PM
 

figured it out.

 

Whoever is maintaining the Media plugin needs to update the example.json.

"_startLanguage": "none", only works when in the root json of the component. This under player options

"_playerOptions": {
"startLanguage": "",
}

Doesnt work, and it misled me to not see the correct setting above.

Picture of Matt Leathes
Re: _startLanguage: "none" doesnt work
by Matt Leathes - Friday, 26 March 2021, 6:52 PM
 

fixed. sorry about that. it was such a commonly-used setting we decided it would be better for AAT users to have a proper setting for it rather than hide it away in the playerOptions - but clearly forgot to remove the original version.