PlayerWatermark

data class PlayerWatermark(val imageUrl: String, val position: PlayerWatermark.Position = Position.TOP_TRAILING, val relativeWidth: Float = DEFAULT_RELATIVE_WIDTH, val opacity: Float = DEFAULT_OPACITY, val marginDp: Float = DEFAULT_MARGIN_DP) : Parcelable(source)

A logo/watermark overlaid on top of the video while it plays.

This is a client-side overlay only. Bunny's backend does not return watermark metadata to the player; the model lets an integrator render an additional image on top of any net.bunny.bunnystreamplayer.ui.BunnyStreamPlayer or net.bunny.bunnystreamplayer.livestream.BunnyLiveStreamPlayer.

Constructors

Link copied to clipboard
constructor(imageUrl: String, position: PlayerWatermark.Position = Position.TOP_TRAILING, relativeWidth: Float = DEFAULT_RELATIVE_WIDTH, opacity: Float = DEFAULT_OPACITY, marginDp: Float = DEFAULT_MARGIN_DP)

Types

Link copied to clipboard

Where the watermark is pinned within the player bounds.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)