Previewable Video Player State
data class PreviewableVideoPlayerState(val hasMedia: Boolean = true, val isPlaying: Boolean = true, val isLoading: Boolean = false, var volume: Float = 1.0f, var sliderPos: Float = 500.0f, var userDragging: Boolean = false, var loop: Boolean = true, var playbackSpeed: Float = 1.0f, val leftLevel: Float = 1.0f, val rightLevel: Float = 1.0f, val positionText: String = "00:05", val durationText: String = "00:10", val currentTime: Double = 5000.0, var isFullscreen: Boolean = false, val aspectRatio: Float = 1.7f, val error: VideoPlayerError? = null, val metadata: VideoMetadata = VideoMetadata(), var subtitlesEnabled: Boolean = false, var currentSubtitleTrack: SubtitleTrack? = null, val availableSubtitleTracks: MutableList<SubtitleTrack> = emptyList<SubtitleTrack>().toMutableList(), var subtitleTextStyle: TextStyle = TextStyle.Default, var subtitleBackgroundColor: Color = Color.Transparent) : VideoPlayerState
Helper to mock the VideoPlayerState.
Constructors
Link copied to clipboard
constructor(hasMedia: Boolean = true, isPlaying: Boolean = true, isLoading: Boolean = false, volume: Float = 1.0f, sliderPos: Float = 500.0f, userDragging: Boolean = false, loop: Boolean = true, playbackSpeed: Float = 1.0f, leftLevel: Float = 1.0f, rightLevel: Float = 1.0f, positionText: String = "00:05", durationText: String = "00:10", currentTime: Double = 5000.0, isFullscreen: Boolean = false, aspectRatio: Float = 1.7f, error: VideoPlayerError? = null, metadata: VideoMetadata = VideoMetadata(), subtitlesEnabled: Boolean = false, currentSubtitleTrack: SubtitleTrack? = null, availableSubtitleTracks: MutableList<SubtitleTrack> = emptyList<SubtitleTrack>().toMutableList(), subtitleTextStyle: TextStyle = TextStyle.Default, subtitleBackgroundColor: Color = Color.Transparent)
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the total duration of the video as a formatted string.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the current playback position as a formatted string.
Link copied to clipboard
Provides the audio level for the right channel as a percentage.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Denotes whether the user is manually adjusting the playback position.