Fix set language subtitles
This commit is contained in:
parent
ec031a9b01
commit
61b4518335
@ -1,23 +0,0 @@
|
|||||||
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
|
|
||||||
const player = new Plyr(document.getElementById('js-video-player'), {
|
|
||||||
disableContextMenu: false,
|
|
||||||
captions: {
|
|
||||||
active: true,
|
|
||||||
language: 'en'
|
|
||||||
},
|
|
||||||
controls: [
|
|
||||||
'play-large',
|
|
||||||
'play',
|
|
||||||
'progress',
|
|
||||||
'current-time',
|
|
||||||
'mute',
|
|
||||||
'volume',
|
|
||||||
'captions',
|
|
||||||
'settings',
|
|
||||||
'fullscreen'
|
|
||||||
],
|
|
||||||
iconUrl: "/youtube.com/static/modules/plyr/plyr.svg",
|
|
||||||
blankVideo: "/youtube.com/static/modules/plyr/blank.webm",
|
|
||||||
debug: false
|
|
||||||
});
|
|
||||||
// @license-end
|
|
@ -385,7 +385,31 @@
|
|||||||
<script src="/youtube.com/static/modules/plyr/plyr.min.js"
|
<script src="/youtube.com/static/modules/plyr/plyr.min.js"
|
||||||
integrity="sha512-l6ZzdXpfMHRfifqaR79wbYCEWjLDMI9DnROvb+oLkKq6d7MGroGpMbI7HFpicvmAH/2aQO+vJhewq8rhysrImw=="
|
integrity="sha512-l6ZzdXpfMHRfifqaR79wbYCEWjLDMI9DnROvb+oLkKq6d7MGroGpMbI7HFpicvmAH/2aQO+vJhewq8rhysrImw=="
|
||||||
crossorigin="anonymous"></script>
|
crossorigin="anonymous"></script>
|
||||||
<script src="/youtube.com/static/js/plyr-start.js"></script>
|
<script>
|
||||||
|
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
|
||||||
|
const player = new Plyr(document.getElementById('js-video-player'), {
|
||||||
|
disableContextMenu: false,
|
||||||
|
captions: {
|
||||||
|
active: true,
|
||||||
|
language: '{{ settings.subtitles_language }}'
|
||||||
|
},
|
||||||
|
controls: [
|
||||||
|
'play-large',
|
||||||
|
'play',
|
||||||
|
'progress',
|
||||||
|
'current-time',
|
||||||
|
'mute',
|
||||||
|
'volume',
|
||||||
|
'captions',
|
||||||
|
'settings',
|
||||||
|
'fullscreen'
|
||||||
|
],
|
||||||
|
iconUrl: "/youtube.com/static/modules/plyr/plyr.svg",
|
||||||
|
blankVideo: "/youtube.com/static/modules/plyr/blank.webm",
|
||||||
|
debug: false
|
||||||
|
});
|
||||||
|
// @license-end
|
||||||
|
</script>
|
||||||
<!-- /plyr -->
|
<!-- /plyr -->
|
||||||
{% elif settings.use_video_player == 1 %}
|
{% elif settings.use_video_player == 1 %}
|
||||||
<script src="/youtube.com/static/js/hotkeys.js"></script>
|
<script src="/youtube.com/static/js/hotkeys.js"></script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user