public interface PlayerEndpoint extends UriEndpoint
Retrieves content from seekable or non-seekable sources, and injects them into KMS, so they can be delivered to any Filter or Endpoint in the same MediaPipeline. Following URI schemas are supported:
For the player to stream the contents of the file, the server must have access to the resource. In case of local files, the user running the process must have read permissions over the file. For network resources, the path to the resource must be accessible: IP and port access not blocked, correct credentials, etc.The resource location can’t be changed after the player is created, and a new player should be created for streaming a different resource.
The list of valid operations is
Modifier and Type | Interface and Description |
---|---|
static class |
PlayerEndpoint.Builder |
Modifier and Type | Method and Description |
---|---|
ListenerSubscription |
addEndOfStreamListener(EventListener<EndOfStreamEvent> listener)
Add a
EventListener for event EndOfStreamEvent . |
void |
addEndOfStreamListener(EventListener<EndOfStreamEvent> listener,
Continuation<ListenerSubscription> cont)
Add a
EventListener for event EndOfStreamEvent . |
String |
getElementGstreamerDot()
Get Returns the Gstreamer DOT string for this element's private pipeline
|
void |
getElementGstreamerDot(Continuation<String> cont)
Get Returns the Gstreamer DOT string for this element's private pipeline
|
TFuture<String> |
getElementGstreamerDot(Transaction tx)
Get Returns the Gstreamer DOT string for this element's private pipeline
|
long |
getPosition()
Get Get or set the actual position of the video in ms.
|
void |
getPosition(Continuation<Long> cont)
Get Get or set the actual position of the video in ms.
|
TFuture<Long> |
getPosition(Transaction tx)
Get Get or set the actual position of the video in ms.
|
VideoInfo |
getVideoInfo()
Get Returns info about the source being played
|
void |
getVideoInfo(Continuation<VideoInfo> cont)
Get Returns info about the source being played
|
TFuture<VideoInfo> |
getVideoInfo(Transaction tx)
Get Returns info about the source being played
|
void |
play()
Starts reproducing the media, sending it to the :rom:cls:`MediaSource`.
|
void |
play(Continuation<Void> cont)
Asynchronous version of play:
Continuation.onSuccess(F) is called when the action is
done. |
void |
play(Transaction tx)
Starts reproducing the media, sending it to the :rom:cls:`MediaSource`.
|
void |
removeEndOfStreamListener(ListenerSubscription listenerSubscription)
Remove a
ListenerSubscription for event EndOfStreamEvent . |
void |
removeEndOfStreamListener(ListenerSubscription listenerSubscription,
Continuation<Void> cont)
Remove a
ListenerSubscription for event EndOfStreamEvent . |
void |
setPosition(long position)
Set Get or set the actual position of the video in ms.
|
void |
setPosition(long position,
Continuation<Void> cont)
Set Get or set the actual position of the video in ms.
|
void |
setPosition(long position,
Transaction tx)
Set Get or set the actual position of the video in ms.
|
addUriEndpointStateChangedListener, addUriEndpointStateChangedListener, getState, getState, getState, getUri, getUri, getUri, pause, pause, pause, removeUriEndpointStateChangedListener, removeUriEndpointStateChangedListener, stop, stop, stop
addElementConnectedListener, addElementConnectedListener, addElementDisconnectedListener, addElementDisconnectedListener, addMediaFlowInStateChangeListener, addMediaFlowInStateChangeListener, addMediaFlowOutStateChangeListener, addMediaFlowOutStateChangeListener, addMediaTranscodingStateChangeListener, addMediaTranscodingStateChangeListener, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, getGstreamerDot, getGstreamerDot, getGstreamerDot, getGstreamerDot, getGstreamerDot, getGstreamerDot, getMaxOuputBitrate, getMaxOuputBitrate, getMaxOuputBitrate, getMaxOutputBitrate, getMaxOutputBitrate, getMaxOutputBitrate, getMinOuputBitrate, getMinOuputBitrate, getMinOuputBitrate, getMinOutputBitrate, getMinOutputBitrate, getMinOutputBitrate, getSinkConnections, getSinkConnections, getSinkConnections, getSinkConnections, getSinkConnections, getSinkConnections, getSinkConnections, getSinkConnections, getSinkConnections, getSourceConnections, getSourceConnections, getSourceConnections, getSourceConnections, getSourceConnections, getSourceConnections, getSourceConnections, getSourceConnections, getSourceConnections, getStats, getStats, getStats, getStats, getStats, getStats, isMediaFlowingIn, isMediaFlowingIn, isMediaFlowingIn, isMediaFlowingIn, isMediaFlowingIn, isMediaFlowingIn, isMediaFlowingOut, isMediaFlowingOut, isMediaFlowingOut, isMediaFlowingOut, isMediaFlowingOut, isMediaFlowingOut, isMediaTranscoding, isMediaTranscoding, isMediaTranscoding, isMediaTranscoding, isMediaTranscoding, isMediaTranscoding, removeElementConnectedListener, removeElementConnectedListener, removeElementDisconnectedListener, removeElementDisconnectedListener, removeMediaFlowInStateChangeListener, removeMediaFlowInStateChangeListener, removeMediaFlowOutStateChangeListener, removeMediaFlowOutStateChangeListener, removeMediaTranscodingStateChangeListener, removeMediaTranscodingStateChangeListener, setAudioFormat, setAudioFormat, setAudioFormat, setMaxOuputBitrate, setMaxOuputBitrate, setMaxOuputBitrate, setMaxOutputBitrate, setMaxOutputBitrate, setMaxOutputBitrate, setMinOuputBitrate, setMinOuputBitrate, setMinOuputBitrate, setMinOutputBitrate, setMinOutputBitrate, setMinOutputBitrate, setOutputBitrate, setOutputBitrate, setOutputBitrate, setVideoFormat, setVideoFormat, setVideoFormat
addErrorListener, addErrorListener, addTag, addTag, addTag, getChildren, getChildren, getChildren, getChilds, getChilds, getChilds, getCreationTime, getCreationTime, getCreationTime, getId, getId, getId, getMediaPipeline, getMediaPipeline, getMediaPipeline, getName, getName, getName, getParent, getParent, getParent, getSendTagsInEvents, getSendTagsInEvents, getSendTagsInEvents, getTag, getTag, getTag, getTags, getTags, getTags, removeErrorListener, removeErrorListener, removeTag, removeTag, removeTag, setName, setName, setName, setSendTagsInEvents, setSendTagsInEvents, setSendTagsInEvents
isCommited, release, release, release, waitCommited, whenCommited, whenCommited
VideoInfo getVideoInfo()
void getVideoInfo(Continuation<VideoInfo> cont)
TFuture<VideoInfo> getVideoInfo(Transaction tx)
String getElementGstreamerDot()
void getElementGstreamerDot(Continuation<String> cont)
TFuture<String> getElementGstreamerDot(Transaction tx)
long getPosition()
void getPosition(Continuation<Long> cont)
TFuture<Long> getPosition(Transaction tx)
void setPosition(long position)
void setPosition(long position, Continuation<Void> cont)
void setPosition(long position, Transaction tx)
void play()
void play(Continuation<Void> cont)
Continuation.onSuccess(F)
is called when the action is
done. If an error occurs, Continuation.onError(java.lang.Throwable)
is called.play()
void play(Transaction tx)
ListenerSubscription addEndOfStreamListener(EventListener<EndOfStreamEvent> listener)
EventListener
for event EndOfStreamEvent
. Synchronous call.listener
- Listener to be called on EndOfStreamEventvoid addEndOfStreamListener(EventListener<EndOfStreamEvent> listener, Continuation<ListenerSubscription> cont)
EventListener
for event EndOfStreamEvent
. Asynchronous call.
Calls Continuation<ListenerSubscription> when it has been added.listener
- Listener to be called on EndOfStreamEventcont
- Continuation to be called when the listener is registeredvoid removeEndOfStreamListener(ListenerSubscription listenerSubscription)
ListenerSubscription
for event EndOfStreamEvent
. Synchronous call.listenerSubscription
- Listener subscription to be removedvoid removeEndOfStreamListener(ListenerSubscription listenerSubscription, Continuation<Void> cont)
ListenerSubscription
for event EndOfStreamEvent
. Asynchronous call.
Calls Continuation<Void> when it has been removed.listenerSubscription
- Listener subscription to be removedcont
- Continuation to be called when the listener is removedCopyright © 2018 Kurento. All rights reserved.