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 aEventListenerfor eventUriEndpointStateChangedEvent.voidaddUriEndpointStateChangedListener(EventListener<UriEndpointStateChangedEvent> listener, Continuation<ListenerSubscription> cont) Add aEventListenerfor eventUriEndpointStateChangedEvent.getState()Get State of the endpointvoidgetState(Continuation<UriEndpointState> cont) Get State of the endpointgetState(Transaction tx) Get State of the endpointgetUri()Get The uri for this endpoint.voidgetUri(Continuation<String> cont) Get The uri for this endpoint.getUri(Transaction tx) Get The uri for this endpoint.voidpause()Pauses the feedvoidpause(Continuation<Void> cont) Asynchronous version of pause:Continuation.onSuccess(F)is called when the action is done.voidpause(Transaction tx) Pauses the feedvoidremoveUriEndpointStateChangedListener(ListenerSubscription listenerSubscription) Remove aListenerSubscriptionfor eventUriEndpointStateChangedEvent.voidremoveUriEndpointStateChangedListener(ListenerSubscription listenerSubscription, Continuation<Void> cont) Remove aListenerSubscriptionfor eventUriEndpointStateChangedEvent.voidstop()Stops the feedvoidstop(Continuation<Void> cont) Asynchronous version of stop:Continuation.onSuccess(F)is called when the action is done.voidstop(Transaction tx) Stops the feedMethods inherited from interface KurentoObject
addEventListener, invoke, isCommited, release, release, release, removeEventListener, waitCommited, whenCommited, whenCommitedMethods inherited from interface 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, dumpGstreamerDot, dumpGstreamerDot, dumpGstreamerDot, dumpGstreamerDot, dumpGstreamerDot, dumpGstreamerDot, 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, setVideoFormatMethods inherited from interface 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(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(Throwable)is called.- See Also:
-
stop
Stops the feed -
addUriEndpointStateChangedListener
ListenerSubscription addUriEndpointStateChangedListener(EventListener<UriEndpointStateChangedEvent> listener) Add aEventListenerfor 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 aEventListenerfor 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 aListenerSubscriptionfor eventUriEndpointStateChangedEvent. Synchronous call.- Parameters:
listenerSubscription- Listener subscription to be removed
-
removeUriEndpointStateChangedListener
void removeUriEndpointStateChangedListener(ListenerSubscription listenerSubscription, Continuation<Void> cont) Remove aListenerSubscriptionfor 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
-