From 82f8e6ea40e64089ac029949bbca8f0c726a546b Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Tue, 25 May 2021 08:23:25 +0200 Subject: [PATCH] add test event handlers --- frontend/script.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/script.js b/frontend/script.js index faac55e..b586f3c 100644 --- a/frontend/script.js +++ b/frontend/script.js @@ -59,6 +59,14 @@ player.addChild(bigCastButton); }); + player.on("loadedmetadata", () => { + console.log("loadedmetadata"); + }); + + player.on("posterchange", () => { + console.log("posterchange"); + }); + const smallCastButton = new Button(player, cbutton); smallCastButton.addClass("fab"); smallCastButton.addClass("fa-chromecast");