add test event handlers

This commit is contained in:
Roy Olav Purser 2021-05-25 08:23:25 +02:00
parent 99810e174a
commit 82f8e6ea40
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -59,6 +59,14 @@
player.addChild(bigCastButton); player.addChild(bigCastButton);
}); });
player.on("loadedmetadata", () => {
console.log("loadedmetadata");
});
player.on("posterchange", () => {
console.log("posterchange");
});
const smallCastButton = new Button(player, cbutton); const smallCastButton = new Button(player, cbutton);
smallCastButton.addClass("fab"); smallCastButton.addClass("fab");
smallCastButton.addClass("fa-chromecast"); smallCastButton.addClass("fa-chromecast");