Modifier and Type | Field and Description |
---|---|
protected Lock |
listenerLock |
protected WeakHashMap<MarkerStateListener,Boolean> |
markerListeners |
protected Lock |
markerLock |
protected Map<String,Double> |
markersByName |
protected NavigableMap<Double,String> |
markersByTime |
Modifier | Constructor and Description |
---|---|
protected |
NativeMedia(Locator locator)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addMarker(String markerName,
double presentationTime)
Adds a marker to the media playback.
|
void |
addTrack(Track track)
Adds a
Track . |
abstract void |
dispose() |
Map<String,Double> |
getMarkers()
Get the markers of the media.
|
abstract Platform |
getPlatform() |
void |
removeAllMarkers()
Removes all markers, added programmatically, from the media playback.
|
double |
removeMarker(String markerName)
Removes a marker by name.
|
getLocator, getTracks, toString
protected final Lock markerLock
protected final Lock listenerLock
protected NavigableMap<Double,String> markersByTime
protected WeakHashMap<MarkerStateListener,Boolean> markerListeners
protected NativeMedia(Locator locator)
locator
- The location of the media.IllegalArgumentException
- if locator
is
null
.public abstract Platform getPlatform()
public void addMarker(String markerName, double presentationTime)
Media
public Map<String,Double> getMarkers()
Media
Map
is unmodifiable.getMarkers
in class Media
null
if no markers found.public double removeMarker(String markerName)
Media
removeMarker
in class Media
markerName
- Name of the markerpublic void removeAllMarkers()
Media
removeAllMarkers
in class Media
public abstract void dispose()
Copyright © 2020. All rights reserved.