From cd6b59ec8a944f88c3763301c9edfb0f9955fa4f Mon Sep 17 00:00:00 2001 From: Justus Dieckmann Date: Wed, 21 Aug 2024 18:12:39 +0200 Subject: [PATCH] Pass data properly to paella --- templates/player.mustache | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/player.mustache b/templates/player.mustache index 60b5499..5ff60be 100644 --- a/templates/player.mustache +++ b/templates/player.mustache @@ -28,7 +28,7 @@ "playerid": "ocplayer_0", "configurl": "/filter/opencast/config.json", "modplayerpath": "/mod/opencast/player.html", - "data": "{"metadata":{"title": "Test video", "etc": "..."}" + "data": "{\"metadata\":{\"title\": \"Test video\", \"etc\": \"...\"}" } }} @@ -51,7 +51,7 @@ function init_{{playerid}}() { iframeWindow.MoodlePaellaPlayer.initPaella( '{{{configurl}}}', '{{{themeurl}}}', - JSON.parse('{{{data}}}') + {{{data}}} ); } }