PlayerDeck Options

PlayerDeckOption configures behavior specific to FwPlayerDeckView. These options control the fullscreen icon, share button, and subtitle appearance in the inline PlayerDeck feed.

Overview

PlayerDeckOption provides configuration for:

  • Fullscreen icon visibility

  • Share button visibility

  • Subtitle display, text color, and background color

Creating PlayerDeckOption

Using Builder

val playerDeckOption = PlayerDeckOption.Builder()
    .showFullScreenIcon(true)
    .showShareButton(true)
    .showSubtitle(true)
    .build()
val viewOptions = viewOptions {
    playerDeckOptions {
        showFullScreenIcon(true)
        showShareButton(true)
        showSubtitle(true)
    }
}

Properties

showFullScreenIcon

Type: Boolean Default: true

Show or hide the fullscreen expansion icon on each deck item.

When enabled, a fullscreen icon appears on each video card, allowing users to tap it to open the fullscreen player directly.

showShareButton

Type: Boolean Default: true

Show or hide the share button on each deck item.

When enabled, a share button appears on the video card, allowing users to share the video.

showSubtitle

Type: Boolean Default: true

Show or hide subtitles on the inline PlayerDeck player.

When enabled, subtitles are displayed over the video during inline playback (if the video has subtitle data available).

subtitleBackgroundColor

Type: Int (ARGB color) Default: 0x66121212 (semi-transparent dark)

Background color of the subtitle overlay.

subtitleTextColor

Type: Int (ARGB color) Default: 0xFFFFFFFF (white)

Text color of the subtitles.

Default Values

Property
Default Value

showFullScreenIcon

true

showShareButton

true

showSubtitle

true

subtitleBackgroundColor

0x66121212

subtitleTextColor

0xFFFFFFFF

Complete Examples

Standard PlayerDeck Configuration

PlayerDeck with Subtitles

Important Notes

  • showFullScreenIcon and showShareButton only affect the inline deck item UI, not the fullscreen player

  • Subtitle options (showSubtitle, subtitleTextColor, subtitleBackgroundColor) control inline playback subtitles; fullscreen subtitle settings are configured via PlayerOption

  • PlayerDeck options only apply to FwPlayerDeckView, not other widgets

See Also

Last updated

Was this helpful?