boxcast-playlist/index.html
2022-04-25 10:36:55 -04:00

59 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html>
<head></head>
<body>
<div style="max-width:500px; margin: 0 auto;">
<div id="boxcast-player"></div>
<div id="boxcast-playlist"></div>
</div>
<script type="module">
import 'https://js.boxcast.com/v3.min.js';
const Channel = {
Basics: "sfz7ja3rlpoous6usu8a",
Sunday: "gzahmhugrzogttfdtbjj",
Dev: "r3os2zfdnhlquhuypgtp"
};
const Player = boxcast("#boxcast-player");
Player.loadChannel(Channel.Sunday,
{
showTitle: true,
showDescription: true,
showCountdown: true,
//selectedBroadcastId: "yo8sefnnejvw3cx3vhup",
showRelated: true,
relatedBroadcastsQuery:{l: 3},
/*
relatedBroadcastsQuery:
{
s: "starts_at",
l: 100,
q: "timeframe:next starts_at:[2022-04-01T00:00:00 TO 2022-06-01T00:00:00]"
},
*/
onLoadBroadcast: console.log,
autoplay: true,
defaultVideo: "next"
});
import { h, html, render } from "https://esm.sh/htm/preact";
import App from "./app.js";
render(
h(App, {player:Player, channel:Channel.Basics, interval:50000}),
document.querySelector("#boxcast-playlist")
);
</script>
</body>
</html>