aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorAnton Schubert2020-06-05 20:41:25 +0200
committerAnton Schubert2020-06-05 20:41:32 +0200
commit5da35b82a29604778d410bf569c55304a1a64a24 (patch)
tree28c1489e844a1563f720033f989941882980cb52 /template
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 'template')
-rw-r--r--template/assemblies/player/dash.phtml1
1 files changed, 1 insertions, 0 deletions
diff --git a/template/assemblies/player/dash.phtml b/template/assemblies/player/dash.phtml
index fc1a4eb..ade6ce7 100644
--- a/template/assemblies/player/dash.phtml
+++ b/template/assemblies/player/dash.phtml
@@ -2,4 +2,5 @@
data-voc-player
data-stream="<?=h($room->getStream())?>"
data-poster="<?=h($stream->getPoster())?>"
+ data-preferred-language="<?=($stream->getLanguage())?>"
></div> \ No newline at end of file