BoxCast loves to see custom experiences to delight your viewers! Often, that can be accomplished without the need for a set of BoxCast API credentials (the credentials are reserved for broadcast-scoped interactions, e.g. a custom private dashboard).
As an example, see this example video portal site for your BoxCast account written in vue.js. It uses this BoxCast JavaScript SDK under the hood to power the video player, but hits the BoxCast API public endpoints for content discovery on its own.
The basic steps for building your own custom viewer portal include:
l=20
to set a page size, p=1
to paginate, and s=-starts_at
to sort newest-to-oldestq=timeframe:relevant
to filter to only relevant broadcasts (excludes those far in the future)<div id="boxcast-widget-broadcast"></div>
<script src="https://js.boxcast.com/v3.min.js"></script>
<script>
// TODO: wire onclick handler and pass proper channel_id and broadcast_id
var context = boxcast('#boxcast-widget-broadcast');
function loadBroadcast(channel_id, broadcast_id) {
var options = {
showTitle:false,
showDescription:false,
showHighlights:false,
showRelated:false,
showCountdown:true,
selectedBroadcastId: broadcast_id
};
context.unload();
context.loadChannel(channel_id, options);
}
</script>