walkasjesus / walkasjesus_framework

This is the Jesus Commandments Application which is build in a Python Framework
GNU General Public License v3.0
1 stars 0 forks source link

Automatically add correct language subtitles to youtube video's #93

Open walkasjesus opened 4 years ago

walkasjesus commented 4 years ago

https://developers.google.com/youtube/player_parameters

Make captions automatically appear for an embedded video by adding "&cc_load_policy=1" to the video's embed code. You can also choose a caption language for the embedded video. To specify the caption language for the video that you'd like to embed, just add "&cc_lang_pref=fr&cc_load_policy=1" to the video's embed code.

"cc_lang_pref" sets the language for the captions shown in the video. "cc_load_policy=1" turns captions on by default. "fr" represents the language code for French. You can look up 2-letter language codes in the ISO 639-1 standard. (https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)