enable captions

This commit is contained in:
Jesús 2019-04-09 22:33:12 -05:00
parent 1311ebdcbc
commit 7495f70d25
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
document.addEventListener('DOMContentLoaded', () => {
const player = new Plyr(document.getElementById('player-ply'), {
captions: { active: true, language: 'es' },
controls: [
'play-large',
'play',

View File

@ -190,6 +190,6 @@
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/modules/plyr/plyr.min.js"
integrity="sha512-5LTPChkWfom9XmQ+T2/MfSTBirVqZf7g/7OM80kuLVcSg2aSzjVuivWhTWQaVA9B/V+fCtnLQuPoeXu3WoG4vA=="></script>
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/play.js"
integrity="sha512-zI4q0i/VNK0C938doBn4Ptv7usRvFRpcodm8THoLOQm/2uUOH/HpeARUe9rINnm7nweYmfK4hcmnlPNUp2hxZw=="></script>
integrity="sha512-Oal0YiubwWSz3WyFyh2z2RuW1A/fLv+PNAf2YRk7C50IAIxXbTmIFrVDRk6ZOgLW7wJUFJBj65ZILb3L4uShGg=="></script>
<!-- /Plyr -->
{% endblock %}