BunnyMediaItemConverter

Converts Media3 MediaItems to the Cast MediaInfo shape the Bunny receiver expects. media3's DefaultMediaItemConverter serializes a Media3-specific JSON payload the Bunny receiver ignores; this converter instead emits the documented Bunny sender contract:

  • the signed HLS URL as contentId/contentUrl,

  • video title + poster as standard MediaMetadata (shown on the TV),

  • sideloaded VTT caption tracks (same VTTs the local player uses),

  • customData carrying Widevine DRM config + embed theming (castCustomData, refreshed by the player on every playVideo).

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Set by the player when a video loads; sent with every LoadRequest.

Link copied to clipboard

Whether the current playback is a live stream — the receiver needs STREAM_TYPE_LIVE to show live UI instead of a broken VOD seek bar. Set by the player alongside the CMCD stream type.

Functions

Link copied to clipboard
open override fun toMediaItem(mediaQueueItem: MediaQueueItem): MediaItem
Link copied to clipboard
open override fun toMediaQueueItem(mediaItem: MediaItem): MediaQueueItem