Skip to content

Commit

Permalink
Pass data properly to paella
Browse files Browse the repository at this point in the history
  • Loading branch information
justusdieckmann committed Aug 21, 2024
1 parent 09a88a1 commit cd6b59e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/player.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -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\": \"...\"}"
}
}}

Expand All @@ -51,7 +51,7 @@ function init_{{playerid}}() {
iframeWindow.MoodlePaellaPlayer.initPaella(
'{{{configurl}}}',
'{{{themeurl}}}',
JSON.parse('{{{data}}}')
{{{data}}}
);
}
}
Expand Down

0 comments on commit cd6b59e

Please sign in to comment.