Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
A builder for TrackChangeEvent
Summary
Public constructors |
Creates a new Builder.
|
Public constructors
Builder
Builder(type: Int)
Creates a new Builder.
Public methods
build
fun build(): TrackChangeEvent
Builds the instance. This builder should not be touched after calling this!
setAudioSampleRate
fun setAudioSampleRate(value: Int): TrackChangeEvent.Builder
Sets sample rate.
Parameters |
value |
Int: the sample rate. -1 indicates the value is unknown. Value is between -1 and Integer.MAX_VALUE inclusive |
setBitrate
fun setBitrate(value: Int): TrackChangeEvent.Builder
Sets bitrate in bits per second.
Parameters |
value |
Int: the bitrate in bits per second. -1 indicates the value is unknown. Value is between -1 and Integer.MAX_VALUE inclusive |
setChannelCount
fun setChannelCount(value: Int): TrackChangeEvent.Builder
Sets channel count.
Parameters |
value |
Int: the channel count. -1 indicates the value is unknown. Value is between -1 and Integer.MAX_VALUE inclusive |
setHeight
fun setHeight(value: Int): TrackChangeEvent.Builder
Sets video height.
Parameters |
value |
Int: the video height. -1 indicates the value is unknown. Value is between -1 and Integer.MAX_VALUE inclusive |
setLanguageRegion
fun setLanguageRegion(value: String): TrackChangeEvent.Builder
Sets language region code.
Parameters |
value |
String: an IETF BCP 47 optional language region subtag based on a two-letter country code. This value cannot be null . |
setMetricsBundle
fun setMetricsBundle(metricsBundle: Bundle): TrackChangeEvent.Builder
Sets metrics-related information that is not supported by dedicated methods.
It is intended to be used for backwards compatibility by the metrics infrastructure.
Parameters |
metricsBundle |
Bundle: This value cannot be null . |
setSampleMimeType
fun setSampleMimeType(value: String): TrackChangeEvent.Builder
Sets the MIME type of the video/audio/text samples.
Parameters |
value |
String: This value cannot be null . |
setTimeSinceCreatedMillis
fun setTimeSinceCreatedMillis(value: Long): TrackChangeEvent.Builder
Sets timestamp since the creation in milliseconds.
Parameters |
value |
Long: the timestamp since the creation in milliseconds. -1 indicates the value is unknown. Value is -1 or greater |
setVideoFrameRate
fun setVideoFrameRate(value: Float): TrackChangeEvent.Builder
Sets video frame rate.
Parameters |
value |
Float: the video frame rate. -1 indicates the value is unknown. Value is between -1 and Float.MAX_VALUE inclusive |
setWidth
fun setWidth(value: Int): TrackChangeEvent.Builder
Sets video width.
Parameters |
value |
Int: the video width. -1 indicates the value is unknown. Value is between -1 and Integer.MAX_VALUE inclusive |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-04 UTC.