PlayerIconSet

data class PlayerIconSet(@DrawableRes val playIcon: Int = R.drawable.ic_play_48dp, @DrawableRes val pauseIcon: Int = R.drawable.ic_pause_48dp, @DrawableRes val rewindIcon: Int = R.drawable.ic_replay_10s_48dp, @DrawableRes val forwardIcon: Int = R.drawable.ic_forward_10s_48dp, @DrawableRes val settingsIcon: Int = R.drawable.ic_settings_24dp, @DrawableRes val volumeOnIcon: Int = R.drawable.ic_volume_on_24dp, @DrawableRes val volumeOffIcon: Int = R.drawable.ic_volume_off_24dp, @DrawableRes val fullscreenOnIcon: Int = R.drawable.ic_fullscreen_24dp, @DrawableRes val fullscreenOffIcon: Int = R.drawable.ic_fullscreen_exit_24dp) : Parcelable(source)

Drawable overrides for the player controls. Assign an instance to net.bunny.bunnystreamplayer.ui.BunnyStreamPlayer.iconSet to replace any of the default icons with your own drawables. Every field defaults to the SDK icon, so override only what you need:

player.iconSet = PlayerIconSet(
playIcon = R.drawable.my_play,
pauseIcon = R.drawable.my_pause,
)

The set carries over to the fullscreen player automatically.

Constructors

Link copied to clipboard
constructor(@DrawableRes playIcon: Int = R.drawable.ic_play_48dp, @DrawableRes pauseIcon: Int = R.drawable.ic_pause_48dp, @DrawableRes rewindIcon: Int = R.drawable.ic_replay_10s_48dp, @DrawableRes forwardIcon: Int = R.drawable.ic_forward_10s_48dp, @DrawableRes settingsIcon: Int = R.drawable.ic_settings_24dp, @DrawableRes volumeOnIcon: Int = R.drawable.ic_volume_on_24dp, @DrawableRes volumeOffIcon: Int = R.drawable.ic_volume_off_24dp, @DrawableRes fullscreenOnIcon: Int = R.drawable.ic_fullscreen_24dp, @DrawableRes fullscreenOffIcon: Int = R.drawable.ic_fullscreen_exit_24dp)

Properties

Link copied to clipboard

skip-forward button (10 seconds).

Link copied to clipboard

exit-fullscreen button.

Link copied to clipboard

enter-fullscreen button.

Link copied to clipboard

center pause button.

Link copied to clipboard

center play button.

Link copied to clipboard

skip-back button (10 seconds).

Link copied to clipboard

settings (quality/speed/captions) menu button.

Link copied to clipboard

mute toggle in the muted state.

Link copied to clipboard

mute toggle in the unmuted state.

Functions

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