| 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, toStringprotected 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)
Mediapublic Map<String,Double> getMarkers()
MediaMap is unmodifiable.getMarkers in class Medianull if no markers found.public double removeMarker(String markerName)
MediaremoveMarker in class MediamarkerName - Name of the markerpublic void removeAllMarkers()
MediaremoveAllMarkers in class Mediapublic abstract void dispose()
Copyright © 2025. All rights reserved.