playVideo

open override fun playVideo(playerView: PlayerView, video: Video, retentionData: Map<Int, Int>, playerSettings: PlayerSettings, licenseBaseApi: String = net.bunny.api.BuildConfig.BASE_API, token: String? = null, expires: Long? = null)(source)

Starts playback of video inside playerView. Used internally by the net.bunny.bunnystreamplayer.ui.BunnyStreamPlayer view, which fetches the video and its playerSettings first; prefer that view's playVideo(videoId) unless you are building a fully custom player.

licenseBaseApi is the Stream API host the Widevine license URL is built from when PlayerSettings.drmEnabled is set. The view passes its instance's host here, so a player pointed at another deployment licenses against that one; the default is Bunny's production host, which matches what 3.x hard-coded.

token and expires are the URL-authentication pair; they also ride on the Widevine license URL sent to cast receivers, which fetch the license themselves without the Referer header the local player relies on.