TIM-JYU / TIM

TIM (The Interactive Material) is an open-source cloud-based platform for creating interactive learning documents.
https://tim.education/view/about/en-US
MIT License
13 stars 4 forks source link

showVideo: support document language code for defaultSubtitles #3722

Closed saviit closed 1 day ago

saviit commented 2 days ago

If defaultSubtitles attribute is set on a showVideo plugin, check for the TextTracks language property first. This allows us to use the global macro %%doclang%% to automatically choose the default subtitle track according to the current document's language.