Format

data class Format(val id: String? = null, val label: String? = null, val language: String? = null, val selectionFlags: Int = 0, val roleFlags: Int = 0, val averageBitrate: Int = NO_VALUE, val peakBitrate: Int = NO_VALUE, val bitrate: Int = NO_VALUE, val codecs: String? = null, val containerMimeType: String? = null, val sampleMimeType: String? = null, val width: Int = NO_VALUE, val height: Int = NO_VALUE, val frameRate: Float = NO_VALUE.toFloat(), val rotationDegrees: Int = 0, val pixelWidthHeightRatio: Float = 1.0f, val channelCount: Int = NO_VALUE, val accessibilityChannel: Int = NO_VALUE)(source)

Constructors

Link copied to clipboard
constructor(id: String? = null, label: String? = null, language: String? = null, selectionFlags: Int = 0, roleFlags: Int = 0, averageBitrate: Int = NO_VALUE, peakBitrate: Int = NO_VALUE, bitrate: Int = NO_VALUE, codecs: String? = null, containerMimeType: String? = null, sampleMimeType: String? = null, width: Int = NO_VALUE, height: Int = NO_VALUE, frameRate: Float = NO_VALUE.toFloat(), rotationDegrees: Int = 0, pixelWidthHeightRatio: Float = 1.0f, channelCount: Int = NO_VALUE, accessibilityChannel: Int = NO_VALUE)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The Accessibility channel, or {@link #NO_VALUE} if not known or applicable.

Link copied to clipboard

The average bitrate in bits per second, or {@link #NO_VALUE} if unknown or not applicable. The way in which this field is populated depends on the type of media to which the format corresponds:

Link copied to clipboard

The bitrate in bits per second. This is the peak bitrate if known, or else the average bitrate if known, or else {@link Format#NO_VALUE}. Equivalent to: {@code peakBitrate != NO_VALUE ? peakBitrate : averageBitrate}.

Link copied to clipboard

The number of audio channels, or {@link #NO_VALUE} if unknown or not applicable.

Link copied to clipboard

Codecs of the format as described in RFC 6381, or null if unknown or not applicable.

Link copied to clipboard

The MIME type of the container, or null if unknown or not applicable.

Link copied to clipboard

The frame rate in frames per second, or {@link #NO_VALUE} if unknown or not applicable.

Link copied to clipboard
val height: Int

The height of the video in pixels, or {@link #NO_VALUE} if unknown or not applicable.

Link copied to clipboard
val id: String?

An identifier for the format, or null if unknown or not applicable.

Link copied to clipboard

The default human readable label, or null if unknown or not applicable.

Link copied to clipboard

The language as an IETF BCP 47 conformant tag, or null if unknown or not applicable. Check com.lagradost.cloudstream3.utils.SubtitleHelper.

Link copied to clipboard

The peak bitrate in bits per second, or {@link #NO_VALUE} if unknown or not applicable. The way in which this field is populated depends on the type of media to which the format corresponds:

Link copied to clipboard

The width to height ratio of pixels in the video, or 1.0 if unknown or not applicable.

Link copied to clipboard

Track role flags.

Link copied to clipboard

The clockwise rotation that should be applied to the video for it to be rendered in the correct orientation, or 0 if unknown or not applicable. Only 0, 90, 180 and 270 are supported.

Link copied to clipboard

The sample MIME type, or null if unknown or not applicable.

Link copied to clipboard

Track selection flags.

Link copied to clipboard
val width: Int

The width of the video in pixels, or {@link #NO_VALUE} if unknown or not applicable.