Format class

Representation of a media format.

Constructors

Format({String? id, String? label, int? selectionFlags, int? roleFlags, int? bitrate, int? averageBitrate, String? codecs, Metadata? metadata, String? containerMimeType, String? sampleMimeType, DrmInitData? drmInitData, int? subsampleOffsetUs, int? width, int? height, double? frameRate, int? channelCount, String? language, int? accessibilityChannel, bool? isDefault})
Format.createVideoContainerFormat({String? id, String? label, String? containerMimeType, String? sampleMimeType, required String? codecs, int? bitrate, int? averageBitrate, required int? width, required int? height, required double? frameRate, int selectionFlags = Util.selectionFlagDefault, int? roleFlags, bool? isDefault})
factory

Properties

accessibilityChannel int?
The Accessibility channel, or null if not known or applicable.
final
averageBitrate int?
The average bandwidth in bits per second, or null if unknown or not applicable.
final
bitrate int?
Average bandwidth
final
channelCount int?
The number of audio channels, or null if unknown or not applicable.
final
codecs String?
Codecs of the format as described in RFC 6381, or null if unknown or not applicable.
final
containerMimeType String?
The mime type of the container, or null if unknown or not applicable.
final
drmInitData DrmInitData?
DRM initialization data if the stream is protected, or null otherwise.
final
frameRate double?
The frame rate in frames per second, or null if unknown or not applicable.
final
hashCode int
The hash code for this object.
no setterinherited
height int?
The height of the video in pixels, or null if unknown or not applicable.
final
id String?
An identifier for the format, or null if unknown or not applicable.
final
isDefault bool?
If track is marked as default, or null if not known or applicable
final
label String?
The human readable label, or null if unknown or not applicable.
final
language String?
The language of the video, or null if unknown or not applicable.
final
metadata Metadata?
Metadata, or null if unknown or not applicable.
final
roleFlags int?
Track role flags. Util.roleFlagDescribesMusicAndSound or Util.roleFlagDescribesVideo or Util.roleFlagEasyToRead or Util.roleFlagTranscribesDialog
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleMimeType String?
The mime type of the elementary stream (i.e. the individual samples), or null if unknown or not applicable.
final
selectionFlags int?
Track selection flags. Util.selectionFlagDefault or Util.selectionFlagForced or Util.selectionFlagAutoSelect
final
subsampleOffsetUs int?
For samples that contain subsamples, this is an offset that should be added to subsample timestamps. A value of {@link #OFFSET_SAMPLE_RELATIVE} indicates that subsample timestamps are relative to the timestamps of their parent samples.
final
width int?
The width of the video in pixels, or null if unknown or not applicable.
final

Methods

copyWithMetadata(Metadata metadata) Format
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited