aboutsummaryrefslogtreecommitdiff
path: root/assets/js
diff options
context:
space:
mode:
authorAnton Schubert2020-06-05 20:41:25 +0200
committerAnton Schubert2020-06-05 20:41:32 +0200
commit5da35b82a29604778d410bf569c55304a1a64a24 (patch)
tree28c1489e844a1563f720033f989941882980cb52 /assets/js
parent1ee296bcba4f37775206208af0fa65d6886554e2 (diff)
Pass stream language as preferred language to voc-player
This allows setting a preferred language in embeds e.g. with /embed/stream/dash/translated to start off with a different audio lang than native
Diffstat (limited to 'assets/js')
-rw-r--r--assets/js/lustiges-script.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/assets/js/lustiges-script.js b/assets/js/lustiges-script.js
index e7f8a86..1952af4 100644
--- a/assets/js/lustiges-script.js
+++ b/assets/js/lustiges-script.js
@@ -41,6 +41,7 @@ $(function() {
autoPlay: true,
poster: $player.data("poster"),
audioOnly: !!$player.data("audio-only"),
+ preferredAudioLanguage: $player.data("preferred-language"),
events: {
onReady: function() {
var player = this;