public interface Track extends MediaPackageElement
MediaPackageElement.Type| Modifier and Type | Field and Description |
|---|---|
static MediaPackageElement.Type |
TYPE
Media package element type.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Returns the track's description with details about framerate, codecs etc.
|
Long |
getDuration()
Returns the track duration in milliseconds or
null if the duration is not available. |
Stream[] |
getStreams()
Return the streams that make up the track.
|
boolean |
hasAudio()
Returns
true if the track features an audio stream. |
boolean |
hasVideo()
Returns
true if the track features a video stream. |
boolean |
isLive()
Returns
true if the track is a live track. |
addTag, clearReference, clearTags, clone, containsTag, containsTag, getChecksum, getElementDescription, getElementType, getFlavor, getIdentifier, getMediaPackage, getMimeType, getReference, getSize, getTags, getURI, referTo, referTo, referTo, removeTag, setChecksum, setElementDescription, setFlavor, setIdentifier, setMimeType, setReference, setSize, setURI, verifytoManifestcompareTostatic final MediaPackageElement.Type TYPE
Stream[] getStreams()
boolean hasAudio()
true if the track features an audio stream.true if the track has an audio streamboolean hasVideo()
true if the track features a video stream.true if the track has a video streamLong getDuration()
null if the duration is not available.String getDescription()
boolean isLive()
true if the track is a live track.Copyright © 2009–2021 Opencast Project. All rights reserved.