public interface MediaElement extends MediaObject
MediaElement is a module that encapsulates a specific media capability. They can be connected to create media pipelines where those capabilities are applied, in sequence, to the stream going through the pipeline.
MediaElement objects are classified by its supported media type (audio, video, etc.)| Modifier and Type | Method and Description |
|---|---|
ListenerSubscription |
addElementConnectedListener(EventListener<ElementConnectedEvent> listener)
Add a
EventListener for event ElementConnectedEvent. |
void |
addElementConnectedListener(EventListener<ElementConnectedEvent> listener,
Continuation<ListenerSubscription> cont)
Add a
EventListener for event ElementConnectedEvent. |
ListenerSubscription |
addElementDisconnectedListener(EventListener<ElementDisconnectedEvent> listener)
Add a
EventListener for event ElementDisconnectedEvent. |
void |
addElementDisconnectedListener(EventListener<ElementDisconnectedEvent> listener,
Continuation<ListenerSubscription> cont)
Add a
EventListener for event ElementDisconnectedEvent. |
void |
connect(MediaElement sink)
Connects two elements, with the given restrictions, current
MediaElement will start emmit media to sink element. |
void |
connect(MediaElement sink,
Continuation<Void> cont)
Asynchronous version of connect:
Continuation.onSuccess(F) is called when the action is
done. |
void |
connect(MediaElement sink,
MediaType mediaType)
Connects two elements, with the given restrictions, current
MediaElement will start emmit media to sink element. |
void |
connect(MediaElement sink,
MediaType mediaType,
Continuation<Void> cont)
Asynchronous version of connect:
Continuation.onSuccess(F) is called when the action is
done. |
void |
connect(MediaElement sink,
MediaType mediaType,
String sourceMediaDescription)
Connects two elements, with the given restrictions, current
MediaElement will start emmit media to sink element. |
void |
connect(MediaElement sink,
MediaType mediaType,
String sourceMediaDescription,
Continuation<Void> cont)
Asynchronous version of connect:
Continuation.onSuccess(F) is called when the action is
done. |
void |
connect(MediaElement sink,
MediaType mediaType,
String sourceMediaDescription,
String sinkMediaDescription)
Connects two elements, with the given restrictions, current
MediaElement will start emmit media to sink element. |
void |
connect(MediaElement sink,
MediaType mediaType,
String sourceMediaDescription,
String sinkMediaDescription,
Continuation<Void> cont)
Asynchronous version of connect:
Continuation.onSuccess(F) is called when the action is
done. |
void |
connect(Transaction tx,
MediaElement sink)
Connects two elements, with the given restrictions, current
MediaElement will start emmit media to sink element. |
void |
connect(Transaction tx,
MediaElement sink,
MediaType mediaType)
Connects two elements, with the given restrictions, current
MediaElement will start emmit media to sink element. |
void |
connect(Transaction tx,
MediaElement sink,
MediaType mediaType,
String sourceMediaDescription)
Connects two elements, with the given restrictions, current
MediaElement will start emmit media to sink element. |
void |
connect(Transaction tx,
MediaElement sink,
MediaType mediaType,
String sourceMediaDescription,
String sinkMediaDescription)
Connects two elements, with the given restrictions, current
MediaElement will start emmit media to sink element. |
void |
disconnect(MediaElement sink)
Disconnects two elements, with the given restrictions, current
MediaElement stops sending media to sink element. |
void |
disconnect(MediaElement sink,
Continuation<Void> cont)
Asynchronous version of disconnect:
Continuation.onSuccess(F) is called when the action is
done. |
void |
disconnect(MediaElement sink,
MediaType mediaType)
Disconnects two elements, with the given restrictions, current
MediaElement stops sending media to sink element. |
void |
disconnect(MediaElement sink,
MediaType mediaType,
Continuation<Void> cont)
Asynchronous version of disconnect:
Continuation.onSuccess(F) is called when the action is
done. |
void |
disconnect(MediaElement sink,
MediaType mediaType,
String sourceMediaDescription)
Disconnects two elements, with the given restrictions, current
MediaElement stops sending media to sink element. |
void |
disconnect(MediaElement sink,
MediaType mediaType,
String sourceMediaDescription,
Continuation<Void> cont)
Asynchronous version of disconnect:
Continuation.onSuccess(F) is called when the action is
done. |
void |
disconnect(MediaElement sink,
MediaType mediaType,
String sourceMediaDescription,
String sinkMediaDescription)
Disconnects two elements, with the given restrictions, current
MediaElement stops sending media to sink element. |
void |
disconnect(MediaElement sink,
MediaType mediaType,
String sourceMediaDescription,
String sinkMediaDescription,
Continuation<Void> cont)
Asynchronous version of disconnect:
Continuation.onSuccess(F) is called when the action is
done. |
void |
disconnect(Transaction tx,
MediaElement sink)
Disconnects two elements, with the given restrictions, current
MediaElement stops sending media to sink element. |
void |
disconnect(Transaction tx,
MediaElement sink,
MediaType mediaType)
Disconnects two elements, with the given restrictions, current
MediaElement stops sending media to sink element. |
void |
disconnect(Transaction tx,
MediaElement sink,
MediaType mediaType,
String sourceMediaDescription)
Disconnects two elements, with the given restrictions, current
MediaElement stops sending media to sink element. |
void |
disconnect(Transaction tx,
MediaElement sink,
MediaType mediaType,
String sourceMediaDescription,
String sinkMediaDescription)
Disconnects two elements, with the given restrictions, current
MediaElement stops sending media to sink element. |
String |
getGstreamerDot()
Returns a string in dot (graphviz) format that represents the gstreamer elements inside
|
void |
getGstreamerDot(Continuation<String> cont)
Asynchronous version of getGstreamerDot:
Continuation.onSuccess(F) is called when the action is
done. |
String |
getGstreamerDot(GstreamerDotDetails details)
Returns a string in dot (graphviz) format that represents the gstreamer elements inside
|
void |
getGstreamerDot(GstreamerDotDetails details,
Continuation<String> cont)
Asynchronous version of getGstreamerDot:
Continuation.onSuccess(F) is called when the action is
done. |
TFuture<String> |
getGstreamerDot(Transaction tx)
Returns a string in dot (graphviz) format that represents the gstreamer elements inside
|
TFuture<String> |
getGstreamerDot(Transaction tx,
GstreamerDotDetails details)
Returns a string in dot (graphviz) format that represents the gstreamer elements inside
|
int |
getMaxOuputBitrate() |
void |
getMaxOuputBitrate(Continuation<Integer> cont) |
TFuture<Integer> |
getMaxOuputBitrate(Transaction tx) |
int |
getMinOuputBitrate() |
void |
getMinOuputBitrate(Continuation<Integer> cont) |
TFuture<Integer> |
getMinOuputBitrate(Transaction tx) |
List<ElementConnectionData> |
getSinkConnections()
Returns a list of the connections information of the elements that ere receiving media from this element.
|
void |
getSinkConnections(Continuation<List<ElementConnectionData>> cont)
Asynchronous version of getSinkConnections:
Continuation.onSuccess(F) is called when the action is
done. |
List<ElementConnectionData> |
getSinkConnections(MediaType mediaType)
Returns a list of the connections information of the elements that ere receiving media from this element.
|
void |
getSinkConnections(MediaType mediaType,
Continuation<List<ElementConnectionData>> cont)
Asynchronous version of getSinkConnections:
Continuation.onSuccess(F) is called when the action is
done. |
List<ElementConnectionData> |
getSinkConnections(MediaType mediaType,
String description)
Returns a list of the connections information of the elements that ere receiving media from this element.
|
void |
getSinkConnections(MediaType mediaType,
String description,
Continuation<List<ElementConnectionData>> cont)
Asynchronous version of getSinkConnections:
Continuation.onSuccess(F) is called when the action is
done. |
TFuture<List<ElementConnectionData>> |
getSinkConnections(Transaction tx)
Returns a list of the connections information of the elements that ere receiving media from this element.
|
TFuture<List<ElementConnectionData>> |
getSinkConnections(Transaction tx,
MediaType mediaType)
Returns a list of the connections information of the elements that ere receiving media from this element.
|
TFuture<List<ElementConnectionData>> |
getSinkConnections(Transaction tx,
MediaType mediaType,
String description)
Returns a list of the connections information of the elements that ere receiving media from this element.
|
List<ElementConnectionData> |
getSourceConnections()
Get the connections information of the elements that are sending media to this element
MediaElement |
void |
getSourceConnections(Continuation<List<ElementConnectionData>> cont)
Asynchronous version of getSourceConnections:
Continuation.onSuccess(F) is called when the action is
done. |
List<ElementConnectionData> |
getSourceConnections(MediaType mediaType)
Get the connections information of the elements that are sending media to this element
MediaElement |
void |
getSourceConnections(MediaType mediaType,
Continuation<List<ElementConnectionData>> cont)
Asynchronous version of getSourceConnections:
Continuation.onSuccess(F) is called when the action is
done. |
List<ElementConnectionData> |
getSourceConnections(MediaType mediaType,
String description)
Get the connections information of the elements that are sending media to this element
MediaElement |
void |
getSourceConnections(MediaType mediaType,
String description,
Continuation<List<ElementConnectionData>> cont)
Asynchronous version of getSourceConnections:
Continuation.onSuccess(F) is called when the action is
done. |
TFuture<List<ElementConnectionData>> |
getSourceConnections(Transaction tx)
Get the connections information of the elements that are sending media to this element
MediaElement |
TFuture<List<ElementConnectionData>> |
getSourceConnections(Transaction tx,
MediaType mediaType)
Get the connections information of the elements that are sending media to this element
MediaElement |
TFuture<List<ElementConnectionData>> |
getSourceConnections(Transaction tx,
MediaType mediaType,
String description)
Get the connections information of the elements that are sending media to this element
MediaElement |
Map<String,Stats> |
getStats()
Provides statistics collected for this endpoint
|
void |
getStats(Continuation<Map<String,Stats>> cont)
Asynchronous version of getStats:
Continuation.onSuccess(F) is called when the action is
done. |
Map<String,Stats> |
getStats(MediaType mediaType)
Provides statistics collected for this endpoint
|
void |
getStats(MediaType mediaType,
Continuation<Map<String,Stats>> cont)
Asynchronous version of getStats:
Continuation.onSuccess(F) is called when the action is
done. |
TFuture<Map<String,Stats>> |
getStats(Transaction tx)
Provides statistics collected for this endpoint
|
TFuture<Map<String,Stats>> |
getStats(Transaction tx,
MediaType mediaType)
Provides statistics collected for this endpoint
|
void |
removeElementConnectedListener(ListenerSubscription listenerSubscription)
Remove a
ListenerSubscription for event ElementConnectedEvent. |
void |
removeElementConnectedListener(ListenerSubscription listenerSubscription,
Continuation<Void> cont)
Remove a
ListenerSubscription for event ElementConnectedEvent. |
void |
removeElementDisconnectedListener(ListenerSubscription listenerSubscription)
Remove a
ListenerSubscription for event ElementDisconnectedEvent. |
void |
removeElementDisconnectedListener(ListenerSubscription listenerSubscription,
Continuation<Void> cont)
Remove a
ListenerSubscription for event ElementDisconnectedEvent. |
void |
setAudioFormat(AudioCaps caps)
Sets the type of data for the audio stream.
|
void |
setAudioFormat(AudioCaps caps,
Continuation<Void> cont)
Asynchronous version of setAudioFormat:
Continuation.onSuccess(F) is called when the action is
done. |
void |
setAudioFormat(Transaction tx,
AudioCaps caps)
Sets the type of data for the audio stream.
|
void |
setMaxOuputBitrate(int maxOuputBitrate) |
void |
setMaxOuputBitrate(int maxOuputBitrate,
Continuation<Void> cont) |
void |
setMaxOuputBitrate(int maxOuputBitrate,
Transaction tx) |
void |
setMinOuputBitrate(int minOuputBitrate) |
void |
setMinOuputBitrate(int minOuputBitrate,
Continuation<Void> cont) |
void |
setMinOuputBitrate(int minOuputBitrate,
Transaction tx) |
void |
setOutputBitrate(int bitrate)
Deprecated.
Allows change the target bitrate for the media output, if the media is encoded using VP8 or H264. This method only works if it is called before the media starts to flow.
|
void |
setOutputBitrate(int bitrate,
Continuation<Void> cont)
Asynchronous version of setOutputBitrate:
Continuation.onSuccess(F) is called when the action is
done. |
void |
setOutputBitrate(Transaction tx,
int bitrate)
Deprecated.
Allows change the target bitrate for the media output, if the media is encoded using VP8 or H264. This method only works if it is called before the media starts to flow.
|
void |
setVideoFormat(Transaction tx,
VideoCaps caps)
Sets the type of data for the video stream.
|
void |
setVideoFormat(VideoCaps caps)
Sets the type of data for the video stream.
|
void |
setVideoFormat(VideoCaps caps,
Continuation<Void> cont)
Asynchronous version of setVideoFormat:
Continuation.onSuccess(F) is called when the action is
done. |
addErrorListener, addErrorListener, addTag, addTag, addTag, 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, setSendTagsInEventsisCommited, release, release, release, waitCommited, whenCommited, whenCommitedint getMinOuputBitrate()
void getMinOuputBitrate(Continuation<Integer> cont)
TFuture<Integer> getMinOuputBitrate(Transaction tx)
void setMinOuputBitrate(int minOuputBitrate)
void setMinOuputBitrate(int minOuputBitrate,
Continuation<Void> cont)
void setMinOuputBitrate(int minOuputBitrate,
Transaction tx)
int getMaxOuputBitrate()
void getMaxOuputBitrate(Continuation<Integer> cont)
TFuture<Integer> getMaxOuputBitrate(Transaction tx)
void setMaxOuputBitrate(int maxOuputBitrate)
void setMaxOuputBitrate(int maxOuputBitrate,
Continuation<Void> cont)
void setMaxOuputBitrate(int maxOuputBitrate,
Transaction tx)
List<ElementConnectionData> getSourceConnections(MediaType mediaType, String description)
MediaElementmediaType - One of #MediaType.AUDIO, #MediaType.VIDEO or #MediaType.DATAdescription - A textual description of the media source. Currently not used, aimed mainly for #MediaType.DATA sourcesvoid getSourceConnections(MediaType mediaType, String description, Continuation<List<ElementConnectionData>> cont)
Continuation.onSuccess(F) is called when the action is
done. If an error occurs, Continuation.onError(java.lang.Throwable) is called.mediaType - One of #MediaType.AUDIO, #MediaType.VIDEO or #MediaType.DATAdescription - A textual description of the media source. Currently not used, aimed mainly for #MediaType.DATA sourcesgetSourceConnections(org.kurento.client.MediaType, java.lang.String)TFuture<List<ElementConnectionData>> getSourceConnections(Transaction tx, MediaType mediaType, String description)
MediaElementmediaType - One of #MediaType.AUDIO, #MediaType.VIDEO or #MediaType.DATAdescription - A textual description of the media source. Currently not used, aimed mainly for #MediaType.DATA sourcesList<ElementConnectionData> getSinkConnections(MediaType mediaType, String description)
mediaType - One of #MediaType.AUDIO, #MediaType.VIDEO or #MediaType.DATAdescription - A textual description of the media source. Currently not used, aimed mainly for #MediaType.DATA sourcesvoid getSinkConnections(MediaType mediaType, String description, Continuation<List<ElementConnectionData>> cont)
Continuation.onSuccess(F) is called when the action is
done. If an error occurs, Continuation.onError(java.lang.Throwable) is called.mediaType - One of #MediaType.AUDIO, #MediaType.VIDEO or #MediaType.DATAdescription - A textual description of the media source. Currently not used, aimed mainly for #MediaType.DATA sourcesgetSinkConnections(org.kurento.client.MediaType, java.lang.String)TFuture<List<ElementConnectionData>> getSinkConnections(Transaction tx, MediaType mediaType, String description)
mediaType - One of #MediaType.AUDIO, #MediaType.VIDEO or #MediaType.DATAdescription - A textual description of the media source. Currently not used, aimed mainly for #MediaType.DATA sourcesvoid connect(MediaElement sink, MediaType mediaType, String sourceMediaDescription, String sinkMediaDescription)
MediaElement will start emmit media to sink element. Connection could take place in the future, when both media element show capabilities for connecting with the given restrictionssink - the target MediaElement that will receive mediamediaType - the MediaType of the pads that will be connectedsourceMediaDescription - A textual description of the media source. Currently not used, aimed mainly for #MediaType.DATA sourcessinkMediaDescription - A textual description of the media source. Currently not used, aimed mainly for #MediaType.DATA sourcesvoid connect(MediaElement sink, MediaType mediaType, String sourceMediaDescription, String sinkMediaDescription, Continuation<Void> cont)
Continuation.onSuccess(F) is called when the action is
done. If an error occurs, Continuation.onError(java.lang.Throwable) is called.sink - the target MediaElement that will receive mediamediaType - the MediaType of the pads that will be connectedsourceMediaDescription - A textual description of the media source. Currently not used, aimed mainly for #MediaType.DATA sourcessinkMediaDescription - A textual description of the media source. Currently not used, aimed mainly for #MediaType.DATA sourcesconnect(org.kurento.client.MediaElement, org.kurento.client.MediaType, java.lang.String, java.lang.String)void connect(Transaction tx, MediaElement sink, MediaType mediaType, String sourceMediaDescription, String sinkMediaDescription)
MediaElement will start emmit media to sink element. Connection could take place in the future, when both media element show capabilities for connecting with the given restrictionssink - the target MediaElement that will receive mediamediaType - the MediaType of the pads that will be connectedsourceMediaDescription - A textual description of the media source. Currently not used, aimed mainly for #MediaType.DATA sourcessinkMediaDescription - A textual description of the media source. Currently not used, aimed mainly for #MediaType.DATA sourcesvoid disconnect(MediaElement sink, MediaType mediaType, String sourceMediaDescription, String sinkMediaDescription)
MediaElement stops sending media to sink element. If the previously requested connection didn't took place it is also removedsink - the target MediaElement that will stop receiving mediamediaType - the MediaType of the pads that will be connectedsourceMediaDescription - A textual description of the media source. Currently not used, aimed mainly for #MediaType.DATA sourcessinkMediaDescription - A textual description of the media source. Currently not used, aimed mainly for #MediaType.DATA sourcesvoid disconnect(MediaElement sink, MediaType mediaType, String sourceMediaDescription, String sinkMediaDescription, Continuation<Void> cont)
Continuation.onSuccess(F) is called when the action is
done. If an error occurs, Continuation.onError(java.lang.Throwable) is called.sink - the target MediaElement that will stop receiving mediamediaType - the MediaType of the pads that will be connectedsourceMediaDescription - A textual description of the media source. Currently not used, aimed mainly for #MediaType.DATA sourcessinkMediaDescription - A textual description of the media source. Currently not used, aimed mainly for #MediaType.DATA sourcesdisconnect(org.kurento.client.MediaElement, org.kurento.client.MediaType, java.lang.String, java.lang.String)void disconnect(Transaction tx, MediaElement sink, MediaType mediaType, String sourceMediaDescription, String sinkMediaDescription)
MediaElement stops sending media to sink element. If the previously requested connection didn't took place it is also removedsink - the target MediaElement that will stop receiving mediamediaType - the MediaType of the pads that will be connectedsourceMediaDescription - A textual description of the media source. Currently not used, aimed mainly for #MediaType.DATA sourcessinkMediaDescription - A textual description of the media source. Currently not used, aimed mainly for #MediaType.DATA sourcesvoid setAudioFormat(AudioCaps caps)
caps - The format for the stream of audiovoid setAudioFormat(AudioCaps caps, Continuation<Void> cont)
Continuation.onSuccess(F) is called when the action is
done. If an error occurs, Continuation.onError(java.lang.Throwable) is called.caps - The format for the stream of audiosetAudioFormat(org.kurento.client.AudioCaps)void setAudioFormat(Transaction tx, AudioCaps caps)
caps - The format for the stream of audiovoid setVideoFormat(VideoCaps caps)
caps - The format for the stream of videovoid setVideoFormat(VideoCaps caps, Continuation<Void> cont)
Continuation.onSuccess(F) is called when the action is
done. If an error occurs, Continuation.onError(java.lang.Throwable) is called.caps - The format for the stream of videosetVideoFormat(org.kurento.client.VideoCaps)void setVideoFormat(Transaction tx, VideoCaps caps)
caps - The format for the stream of videoString getGstreamerDot(GstreamerDotDetails details)
details - Details of graphvoid getGstreamerDot(GstreamerDotDetails details, Continuation<String> cont)
Continuation.onSuccess(F) is called when the action is
done. If an error occurs, Continuation.onError(java.lang.Throwable) is called.details - Details of graphgetGstreamerDot(org.kurento.client.GstreamerDotDetails)TFuture<String> getGstreamerDot(Transaction tx, GstreamerDotDetails details)
details - Details of graphvoid setOutputBitrate(int bitrate)
bitrate - Configure the enconding media bitrate in bpsvoid setOutputBitrate(int bitrate,
Continuation<Void> cont)
Continuation.onSuccess(F) is called when the action is
done. If an error occurs, Continuation.onError(java.lang.Throwable) is called.bitrate - Configure the enconding media bitrate in bpssetOutputBitrate(int)void setOutputBitrate(Transaction tx, int bitrate)
bitrate - Configure the enconding media bitrate in bpsMap<String,Stats> getStats(MediaType mediaType)
mediaType - One of #MediaType.AUDIO or #MediaType.VIDEOvoid getStats(MediaType mediaType, Continuation<Map<String,Stats>> cont)
Continuation.onSuccess(F) is called when the action is
done. If an error occurs, Continuation.onError(java.lang.Throwable) is called.mediaType - One of #MediaType.AUDIO or #MediaType.VIDEOgetStats(org.kurento.client.MediaType)TFuture<Map<String,Stats>> getStats(Transaction tx, MediaType mediaType)
mediaType - One of #MediaType.AUDIO or #MediaType.VIDEOList<ElementConnectionData> getSourceConnections()
MediaElementvoid getSourceConnections(Continuation<List<ElementConnectionData>> cont)
Continuation.onSuccess(F) is called when the action is
done. If an error occurs, Continuation.onError(java.lang.Throwable) is called.TFuture<List<ElementConnectionData>> getSourceConnections(Transaction tx)
MediaElementList<ElementConnectionData> getSourceConnections(MediaType mediaType)
MediaElementmediaType - One of #MediaType.AUDIO, #MediaType.VIDEO or #MediaType.DATAvoid getSourceConnections(MediaType mediaType, Continuation<List<ElementConnectionData>> cont)
Continuation.onSuccess(F) is called when the action is
done. If an error occurs, Continuation.onError(java.lang.Throwable) is called.mediaType - One of #MediaType.AUDIO, #MediaType.VIDEO or #MediaType.DATAgetSourceConnections(org.kurento.client.MediaType, java.lang.String)TFuture<List<ElementConnectionData>> getSourceConnections(Transaction tx, MediaType mediaType)
MediaElementmediaType - One of #MediaType.AUDIO, #MediaType.VIDEO or #MediaType.DATAList<ElementConnectionData> getSinkConnections()
void getSinkConnections(Continuation<List<ElementConnectionData>> cont)
Continuation.onSuccess(F) is called when the action is
done. If an error occurs, Continuation.onError(java.lang.Throwable) is called.TFuture<List<ElementConnectionData>> getSinkConnections(Transaction tx)
List<ElementConnectionData> getSinkConnections(MediaType mediaType)
mediaType - One of #MediaType.AUDIO, #MediaType.VIDEO or #MediaType.DATAvoid getSinkConnections(MediaType mediaType, Continuation<List<ElementConnectionData>> cont)
Continuation.onSuccess(F) is called when the action is
done. If an error occurs, Continuation.onError(java.lang.Throwable) is called.mediaType - One of #MediaType.AUDIO, #MediaType.VIDEO or #MediaType.DATAgetSinkConnections(org.kurento.client.MediaType, java.lang.String)TFuture<List<ElementConnectionData>> getSinkConnections(Transaction tx, MediaType mediaType)
mediaType - One of #MediaType.AUDIO, #MediaType.VIDEO or #MediaType.DATAvoid connect(MediaElement sink)
MediaElement will start emmit media to sink element. Connection could take place in the future, when both media element show capabilities for connecting with the given restrictionssink - the target MediaElement that will receive mediavoid connect(MediaElement sink, Continuation<Void> cont)
Continuation.onSuccess(F) is called when the action is
done. If an error occurs, Continuation.onError(java.lang.Throwable) is called.sink - the target MediaElement that will receive mediaconnect(org.kurento.client.MediaElement, org.kurento.client.MediaType, java.lang.String, java.lang.String)void connect(Transaction tx, MediaElement sink)
MediaElement will start emmit media to sink element. Connection could take place in the future, when both media element show capabilities for connecting with the given restrictionssink - the target MediaElement that will receive mediavoid connect(MediaElement sink, MediaType mediaType)
MediaElement will start emmit media to sink element. Connection could take place in the future, when both media element show capabilities for connecting with the given restrictionssink - the target MediaElement that will receive mediamediaType - the MediaType of the pads that will be connectedvoid connect(MediaElement sink, MediaType mediaType, Continuation<Void> cont)
Continuation.onSuccess(F) is called when the action is
done. If an error occurs, Continuation.onError(java.lang.Throwable) is called.sink - the target MediaElement that will receive mediamediaType - the MediaType of the pads that will be connectedconnect(org.kurento.client.MediaElement, org.kurento.client.MediaType, java.lang.String, java.lang.String)void connect(Transaction tx, MediaElement sink, MediaType mediaType)
MediaElement will start emmit media to sink element. Connection could take place in the future, when both media element show capabilities for connecting with the given restrictionssink - the target MediaElement that will receive mediamediaType - the MediaType of the pads that will be connectedvoid connect(MediaElement sink, MediaType mediaType, String sourceMediaDescription)
MediaElement will start emmit media to sink element. Connection could take place in the future, when both media element show capabilities for connecting with the given restrictionssink - the target MediaElement that will receive mediamediaType - the MediaType of the pads that will be connectedsourceMediaDescription - A textual description of the media source. Currently not used, aimed mainly for #MediaType.DATA sourcesvoid connect(MediaElement sink, MediaType mediaType, String sourceMediaDescription, Continuation<Void> cont)
Continuation.onSuccess(F) is called when the action is
done. If an error occurs, Continuation.onError(java.lang.Throwable) is called.sink - the target MediaElement that will receive mediamediaType - the MediaType of the pads that will be connectedsourceMediaDescription - A textual description of the media source. Currently not used, aimed mainly for #MediaType.DATA sourcesconnect(org.kurento.client.MediaElement, org.kurento.client.MediaType, java.lang.String, java.lang.String)void connect(Transaction tx, MediaElement sink, MediaType mediaType, String sourceMediaDescription)
MediaElement will start emmit media to sink element. Connection could take place in the future, when both media element show capabilities for connecting with the given restrictionssink - the target MediaElement that will receive mediamediaType - the MediaType of the pads that will be connectedsourceMediaDescription - A textual description of the media source. Currently not used, aimed mainly for #MediaType.DATA sourcesvoid disconnect(MediaElement sink)
MediaElement stops sending media to sink element. If the previously requested connection didn't took place it is also removedsink - the target MediaElement that will stop receiving mediavoid disconnect(MediaElement sink, Continuation<Void> cont)
Continuation.onSuccess(F) is called when the action is
done. If an error occurs, Continuation.onError(java.lang.Throwable) is called.sink - the target MediaElement that will stop receiving mediadisconnect(org.kurento.client.MediaElement, org.kurento.client.MediaType, java.lang.String, java.lang.String)void disconnect(Transaction tx, MediaElement sink)
MediaElement stops sending media to sink element. If the previously requested connection didn't took place it is also removedsink - the target MediaElement that will stop receiving mediavoid disconnect(MediaElement sink, MediaType mediaType)
MediaElement stops sending media to sink element. If the previously requested connection didn't took place it is also removedsink - the target MediaElement that will stop receiving mediamediaType - the MediaType of the pads that will be connectedvoid disconnect(MediaElement sink, MediaType mediaType, Continuation<Void> cont)
Continuation.onSuccess(F) is called when the action is
done. If an error occurs, Continuation.onError(java.lang.Throwable) is called.sink - the target MediaElement that will stop receiving mediamediaType - the MediaType of the pads that will be connecteddisconnect(org.kurento.client.MediaElement, org.kurento.client.MediaType, java.lang.String, java.lang.String)void disconnect(Transaction tx, MediaElement sink, MediaType mediaType)
MediaElement stops sending media to sink element. If the previously requested connection didn't took place it is also removedsink - the target MediaElement that will stop receiving mediamediaType - the MediaType of the pads that will be connectedvoid disconnect(MediaElement sink, MediaType mediaType, String sourceMediaDescription)
MediaElement stops sending media to sink element. If the previously requested connection didn't took place it is also removedsink - the target MediaElement that will stop receiving mediamediaType - the MediaType of the pads that will be connectedsourceMediaDescription - A textual description of the media source. Currently not used, aimed mainly for #MediaType.DATA sourcesvoid disconnect(MediaElement sink, MediaType mediaType, String sourceMediaDescription, Continuation<Void> cont)
Continuation.onSuccess(F) is called when the action is
done. If an error occurs, Continuation.onError(java.lang.Throwable) is called.sink - the target MediaElement that will stop receiving mediamediaType - the MediaType of the pads that will be connectedsourceMediaDescription - A textual description of the media source. Currently not used, aimed mainly for #MediaType.DATA sourcesdisconnect(org.kurento.client.MediaElement, org.kurento.client.MediaType, java.lang.String, java.lang.String)void disconnect(Transaction tx, MediaElement sink, MediaType mediaType, String sourceMediaDescription)
MediaElement stops sending media to sink element. If the previously requested connection didn't took place it is also removedsink - the target MediaElement that will stop receiving mediamediaType - the MediaType of the pads that will be connectedsourceMediaDescription - A textual description of the media source. Currently not used, aimed mainly for #MediaType.DATA sourcesString getGstreamerDot()
void getGstreamerDot(Continuation<String> cont)
Continuation.onSuccess(F) is called when the action is
done. If an error occurs, Continuation.onError(java.lang.Throwable) is called.TFuture<String> getGstreamerDot(Transaction tx)
Map<String,Stats> getStats()
void getStats(Continuation<Map<String,Stats>> cont)
Continuation.onSuccess(F) is called when the action is
done. If an error occurs, Continuation.onError(java.lang.Throwable) is called.TFuture<Map<String,Stats>> getStats(Transaction tx)
ListenerSubscription addElementConnectedListener(EventListener<ElementConnectedEvent> listener)
EventListener for event ElementConnectedEvent. Synchronous call.listener - Listener to be called on ElementConnectedEventvoid addElementConnectedListener(EventListener<ElementConnectedEvent> listener, Continuation<ListenerSubscription> cont)
EventListener for event ElementConnectedEvent. Asynchronous call.
Calls Continuation<ListenerSubscription> when it has been added.listener - Listener to be called on ElementConnectedEventcont - Continuation to be called when the listener is registeredvoid removeElementConnectedListener(ListenerSubscription listenerSubscription)
ListenerSubscription for event ElementConnectedEvent. Synchronous call.listenerSubscription - Listener subscription to be removedvoid removeElementConnectedListener(ListenerSubscription listenerSubscription, Continuation<Void> cont)
ListenerSubscription for event ElementConnectedEvent. Asynchronous call.
Calls Continuation<Void> when it has been removed.listenerSubscription - Listener subscription to be removedcont - Continuation to be called when the listener is removedListenerSubscription addElementDisconnectedListener(EventListener<ElementDisconnectedEvent> listener)
EventListener for event ElementDisconnectedEvent. Synchronous call.listener - Listener to be called on ElementDisconnectedEventvoid addElementDisconnectedListener(EventListener<ElementDisconnectedEvent> listener, Continuation<ListenerSubscription> cont)
EventListener for event ElementDisconnectedEvent. Asynchronous call.
Calls Continuation<ListenerSubscription> when it has been added.listener - Listener to be called on ElementDisconnectedEventcont - Continuation to be called when the listener is registeredvoid removeElementDisconnectedListener(ListenerSubscription listenerSubscription)
ListenerSubscription for event ElementDisconnectedEvent. Synchronous call.listenerSubscription - Listener subscription to be removedvoid removeElementDisconnectedListener(ListenerSubscription listenerSubscription, Continuation<Void> cont)
ListenerSubscription for event ElementDisconnectedEvent. 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 © 2015 Kurento. All rights reserved.