Class VideoPlayerConfig
-
- All Implemented Interfaces:
public final class VideoPlayerConfig
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classVideoPlayerConfig.Companion
-
Field Summary
Fields Modifier and Type Field Description private final StringprimaryColorprivate final StringsecondaryColorprivate final BooleanautoPlayprivate final BooleanenableControlsprivate final BooleanshowPlayPauseButtonsprivate final BooleanshowBackForwardsButtonsprivate final BooleanshowSeekBarprivate final BooleanshowTimersprivate final BooleanshowFullScreenButtonprivate final BooleanshowLiveViewersprivate final BooleanshowEventInfoButtonpublic final static VideoPlayerConfig.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description VideoPlayerConfig(String primaryColor, String secondaryColor, Boolean autoPlay, Boolean enableControls, Boolean showPlayPauseButtons, Boolean showBackForwardsButtons, Boolean showSeekBar, Boolean showTimers, Boolean showFullScreenButton, Boolean showLiveViewers, Boolean showEventInfoButton)
-
Method Summary
Modifier and Type Method Description final StringgetPrimaryColor()determines the color of various visual elements within the video player, e.g. final StringgetSecondaryColor()will be used in the future to determine the color of various visual elements, but is not used yet. final BooleangetAutoPlay()determines whether a video stream should start playing immediately after it is loaded into the VideoPlayer, or if it should wait for the user to press play. final BooleangetEnableControls()Indicates whether the set of controls buttons should be shown (true) or hidden (false). final BooleangetShowPlayPauseButtons()Indicates whether the play/pause buttons should be shown (true) or hidden (false). final BooleangetShowBackForwardsButtons()Indicates whether the 10s backwards/forwards buttons should be shown (true) or hidden (false). final BooleangetShowSeekBar()Indicates whether the seek-bar should be shown (true) or hidden (false). final BooleangetShowTimers()Indicates whether the timers (elapsed timer & total timer) should be shown (true) or hidden (false). final BooleangetShowFullScreenButton()Indicates whether the full-screen button should be shown (true) or hidden (false). final BooleangetShowLiveViewers()Indicates whether the number of concurrent viewers on a live stream should be shown (true) or hidden (false). final BooleangetShowEventInfoButton()Indicates whether the "info" button in the top-right corner of the video player should be shown (true) or hidden (false). final VideoPlayerConfigcopy(String primaryColor, String secondaryColor, Boolean autoPlay, Boolean enableControls, Boolean showPlayPauseButtons, Boolean showBackForwardsButtons, Boolean showSeekBar, Boolean showTimers, Boolean showFullScreenButton, Boolean showLiveViewers, Boolean showEventInfoButton)-
-
Constructor Detail
-
VideoPlayerConfig
VideoPlayerConfig(String primaryColor, String secondaryColor, Boolean autoPlay, Boolean enableControls, Boolean showPlayPauseButtons, Boolean showBackForwardsButtons, Boolean showSeekBar, Boolean showTimers, Boolean showFullScreenButton, Boolean showLiveViewers, Boolean showEventInfoButton)
-
-
Method Detail
-
getPrimaryColor
final String getPrimaryColor()
determines the color of various visual elements within the video player, e.g. the color of the controls. This should be a hexadecimal color code (e.g. #FFFFFF)
-
getSecondaryColor
final String getSecondaryColor()
will be used in the future to determine the color of various visual elements, but is not used yet. This should be a hexadecimal color code (e.g. #000000)
-
getAutoPlay
final Boolean getAutoPlay()
determines whether a video stream should start playing immediately after it is loaded into the VideoPlayer, or if it should wait for the user to press play.
-
getEnableControls
final Boolean getEnableControls()
Indicates whether the set of controls buttons should be shown (true) or hidden (false). This will over-ride other properties.
-
getShowPlayPauseButtons
final Boolean getShowPlayPauseButtons()
Indicates whether the play/pause buttons should be shown (true) or hidden (false).
-
getShowBackForwardsButtons
final Boolean getShowBackForwardsButtons()
Indicates whether the 10s backwards/forwards buttons should be shown (true) or hidden (false).
-
getShowSeekBar
final Boolean getShowSeekBar()
Indicates whether the seek-bar should be shown (true) or hidden (false).
-
getShowTimers
final Boolean getShowTimers()
Indicates whether the timers (elapsed timer & total timer) should be shown (true) or hidden (false).
-
getShowFullScreenButton
final Boolean getShowFullScreenButton()
Indicates whether the full-screen button should be shown (true) or hidden (false).
-
getShowLiveViewers
final Boolean getShowLiveViewers()
Indicates whether the number of concurrent viewers on a live stream should be shown (true) or hidden (false).
-
getShowEventInfoButton
final Boolean getShowEventInfoButton()
Indicates whether the "info" button in the top-right corner of the video player should be shown (true) or hidden (false).
-
copy
final VideoPlayerConfig copy(String primaryColor, String secondaryColor, Boolean autoPlay, Boolean enableControls, Boolean showPlayPauseButtons, Boolean showBackForwardsButtons, Boolean showSeekBar, Boolean showTimers, Boolean showFullScreenButton, Boolean showLiveViewers, Boolean showEventInfoButton)
-
-
-
-