Top Description Inners Fields Constructors Methods
com.sun.media.jfxmedia.track

public abstract Class Track

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.media.jfxmedia.track.VideoTrack, com.sun.media.jfxmedia.track.AudioTrack, com.sun.media.jfxmedia.track.SubtitleTrack
Imports
java.util.Locale

Abstract base class for all types of media tracks.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
Track.Encoding

Enumeration of supported encoding types.

Field Summary

Modifier and TypeField and Description
private Track.Encoding
private Locale
private String
private boolean
private long

Constructor Summary

AccessConstructor and Description
protected
Track(boolean
Whether this track is enabled by default or not (if the container supports it)
enabled
,
long
A unique identifier for this track.
trackID
,
String
The name of the track.
name
,
Locale
The language information for this track.
locale
,
Track.Encoding
The encoding of the track.
encoding
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public Track.Encoding

Returns:

The media encoding for this track.
getEncodingType
()

Gets the media encoding for this track.

public Locale
public String

Returns:

The name of this track
getName
()

Returns the name of this track

public long
public boolean

Returns:

whether the track is enabled by default
isEnabled
()

Whether this track is enabled by default in the source container.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

encodingback to summary
private Track.Encoding encoding
localeback to summary
private Locale locale
nameback to summary
private String name
trackEnabledback to summary
private boolean trackEnabled
trackIDback to summary
private long trackID

Constructor Detail

Trackback to summary
protected Track(boolean enabled, long trackID, String name, Locale locale, Track.Encoding encoding)

Constructor.

Parameters
enabled:boolean

Whether this track is enabled by default or not (if the container supports it)

trackID:long

A unique identifier for this track.

name:String

The name of the track.

locale:Locale

The language information for this track.

encoding:Track.Encoding

The encoding of the track.

Exceptions
IllegalArgumentException:
if name or encoding is null.

Method Detail

getEncodingTypeback to summary
public Track.Encoding getEncodingType()

Gets the media encoding for this track.

Returns:Track.Encoding

The media encoding for this track.

getLocaleback to summary
public Locale getLocale()
getNameback to summary
public String getName()

Returns the name of this track

Returns:String

The name of this track

getTrackIDback to summary
public long getTrackID()
isEnabledback to summary
public boolean isEnabled()

Whether this track is enabled by default in the source container. If the container type does not support disabling tracks then all tracks will implicitly be enabled.

Returns:boolean

whether the track is enabled by default

com.sun.media.jfxmedia.track back to summary

public final Enum Track.Encoding

extends Enum<Track.Encoding>
Class Inheritance

Enumeration of supported encoding types.

Field Summary

Modifier and TypeField and Description
public static final Track.Encoding
public static final Track.Encoding
public static final Track.Encoding
public static final Track.Encoding
public static final Track.Encoding
public static final Track.Encoding
public static final Track.Encoding
public static final Track.Encoding

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Track.Encoding
toEncoding(int ordinal)

public static Track.Encoding
public static Track.Encoding[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

AACback to summary
public static final Track.Encoding AAC
CUSTOMback to summary
public static final Track.Encoding CUSTOM
H264back to summary
public static final Track.Encoding H264
H265back to summary
public static final Track.Encoding H265
MPEG1AUDIOback to summary
public static final Track.Encoding MPEG1AUDIO
MPEG1LAYER3back to summary
public static final Track.Encoding MPEG1LAYER3
NONEback to summary
public static final Track.Encoding NONE
PCMback to summary
public static final Track.Encoding PCM

Constructor Detail

Encodingback to summary
private Encoding()

Method Detail

toEncodingback to summary
public static Track.Encoding toEncoding(int ordinal)
valueOfback to summary
public static Track.Encoding valueOf(String name)
valuesback to summary
public static Track.Encoding[] values()