Track.Encoding| Constructor and Description |
|---|
VideoTrack(boolean enabled,
long trackID,
String name,
Locale locale,
Track.Encoding encoding,
VideoResolution frameSize,
float encodedFrameRate,
boolean hasAlphaChannel)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getEncodedFrameRate()
Retrieve the encoded video frame rate.
|
VideoResolution |
getFrameSize()
Retrieve the dimensions of the video frames in the track.
|
boolean |
hasAlphaChannel()
Retrieve whether the video frames contain an alpha channel.
|
String |
toString() |
getEncodingType, getLocale, getName, getTrackID, isEnabledpublic VideoTrack(boolean enabled,
long trackID,
String name,
Locale locale,
Track.Encoding encoding,
VideoResolution frameSize,
float encodedFrameRate,
boolean hasAlphaChannel)
enabled - Whether this track is enabled by default or not (if the container supports it)trackID - A unique identifier for this track.name - The name of the track.locale - The language information for this track, can be null.encoding - The encoding of the track.frameSize - The dimensions of the video frames in the track.encodedFrameRate - The encoded frame rate of the track.hasAlphaChannel - Whether the video frames contain an alpha channel.IllegalArgumentException - if name,
encoding, or frameSize is null.IllegalArgumentException - if encodedFrameRate
is negative.IllegalArgumentException - if either frame dimension is
non-positive.public boolean hasAlphaChannel()
public float getEncodedFrameRate()
public VideoResolution getFrameSize()
Copyright © 2025. All rights reserved.