From 5da35b82a29604778d410bf569c55304a1a64a24 Mon Sep 17 00:00:00 2001
From: Anton Schubert
Date: Fri, 5 Jun 2020 20:41:25 +0200
Subject: 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
---
 template/assemblies/player/dash.phtml | 1 +
 1 file changed, 1 insertion(+)

(limited to 'template')

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
-- 
cgit v1.2.3