Package org.kurento.client
Interface UriEndpoint
- All Superinterfaces:
Endpoint
,KurentoObject
,MediaElement
,MediaObject
- All Known Subinterfaces:
PlayerEndpoint
,RecorderEndpoint
Interface for endpoints the require a URI to work.
An example of this, would be a :rom:cls:`PlayerEndpoint` whose URI property could be used to locate a file to stream.
-
Method Summary
Modifier and TypeMethodDescriptionAdd aEventListener
for eventUriEndpointStateChangedEvent
.void
addUriEndpointStateChangedListener
(EventListener<UriEndpointStateChangedEvent> listener, Continuation<ListenerSubscription> cont) Add aEventListener
for eventUriEndpointStateChangedEvent
.getState()
Get State of the endpointvoid
getState
(Continuation<UriEndpointState> cont) Get State of the endpointgetState
(Transaction tx) Get State of the endpointgetUri()
Get The uri for this endpoint.void
getUri
(Continuation<String> cont) Get The uri for this endpoint.getUri
(Transaction tx) Get The uri for this endpoint.void
pause()
Pauses the feedvoid
pause
(Continuation<Void> cont) Asynchronous version of pause:Continuation.onSuccess(F)
is called when the action is done.void
pause
(Transaction tx) Pauses the feedvoid
removeUriEndpointStateChangedListener
(ListenerSubscription listenerSubscription) Remove aListenerSubscription
for eventUriEndpointStateChangedEvent
.void
removeUriEndpointStateChangedListener
(ListenerSubscription listenerSubscription, Continuation<Void> cont) Remove aListenerSubscription
for eventUriEndpointStateChangedEvent
.void
stop()
Stops the feedvoid
stop
(Continuation<Void> cont) Asynchronous version of stop:Continuation.onSuccess(F)
is called when the action is done.void
stop
(Transaction tx) Stops the feedMethods inherited from interface org.kurento.client.KurentoObject
addEventListener, invoke, isCommited, release, release, release, removeEventListener, waitCommited, whenCommited, whenCommited
Methods inherited from interface org.kurento.client.MediaElement
addElementConnectedListener, addElementConnectedListener, addElementDisconnectedListener, addElementDisconnectedListener, addMediaFlowInStateChangedListener, addMediaFlowInStateChangedListener, addMediaFlowOutStateChangedListener, addMediaFlowOutStateChangedListener, addMediaTranscodingStateChangedListener, addMediaTranscodingStateChangedListener, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, getEncoderBitrate, getEncoderBitrate, getEncoderBitrate, getGstreamerDot, getGstreamerDot, getGstreamerDot, getGstreamerDot, getGstreamerDot, getGstreamerDot, getMaxEncoderBitrate, getMaxEncoderBitrate, getMaxEncoderBitrate, getMinEncoderBitrate, getMinEncoderBitrate, getMinEncoderBitrate, 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, removeMediaFlowInStateChangedListener, removeMediaFlowInStateChangedListener, removeMediaFlowOutStateChangedListener, removeMediaFlowOutStateChangedListener, removeMediaTranscodingStateChangedListener, removeMediaTranscodingStateChangedListener, setAudioFormat, setAudioFormat, setAudioFormat, setEncoderBitrate, setEncoderBitrate, setEncoderBitrate, setMaxEncoderBitrate, setMaxEncoderBitrate, setMaxEncoderBitrate, setMinEncoderBitrate, setMinEncoderBitrate, setMinEncoderBitrate, setVideoFormat, setVideoFormat, setVideoFormat
Methods inherited from interface org.kurento.client.MediaObject
addErrorListener, addErrorListener, addTag, addTag, addTag, getChildren, getChildren, getChildren, 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
-
Method Details
-
getUri
String getUri()Get The uri for this endpoint. -
getUri
Get The uri for this endpoint. -
getUri
Get The uri for this endpoint. -
getState
UriEndpointState getState()Get State of the endpoint -
getState
Get State of the endpoint -
getState
Get State of the endpoint -
pause
void pause()Pauses the feed -
pause
Asynchronous version of pause:Continuation.onSuccess(F)
is called when the action is done. If an error occurs,Continuation.onError(java.lang.Throwable)
is called.- See Also:
-
pause
Pauses the feed -
stop
void stop()Stops the feed -
stop
Asynchronous version of stop:Continuation.onSuccess(F)
is called when the action is done. If an error occurs,Continuation.onError(java.lang.Throwable)
is called.- See Also:
-
stop
Stops the feed -
addUriEndpointStateChangedListener
ListenerSubscription addUriEndpointStateChangedListener(EventListener<UriEndpointStateChangedEvent> listener) Add aEventListener
for eventUriEndpointStateChangedEvent
. Synchronous call.- Parameters:
listener
- Listener to be called on UriEndpointStateChangedEvent- Returns:
- ListenerSubscription for the given Listener
-
addUriEndpointStateChangedListener
void addUriEndpointStateChangedListener(EventListener<UriEndpointStateChangedEvent> listener, Continuation<ListenerSubscription> cont) Add aEventListener
for eventUriEndpointStateChangedEvent
. Asynchronous call. Calls Continuation<ListenerSubscription> when it has been added.- Parameters:
listener
- Listener to be called on UriEndpointStateChangedEventcont
- Continuation to be called when the listener is registered
-
removeUriEndpointStateChangedListener
Remove aListenerSubscription
for eventUriEndpointStateChangedEvent
. Synchronous call.- Parameters:
listenerSubscription
- Listener subscription to be removed
-
removeUriEndpointStateChangedListener
void removeUriEndpointStateChangedListener(ListenerSubscription listenerSubscription, Continuation<Void> cont) Remove aListenerSubscription
for eventUriEndpointStateChangedEvent
. Asynchronous call. Calls Continuation<Void> when it has been removed.- Parameters:
listenerSubscription
- Listener subscription to be removedcont
- Continuation to be called when the listener is removed
-