org.kurento.client.MediaObject Maven / Gradle / Ivy
Show all versions of kurento-client Show documentation
/**
* This file is generated with Kurento-maven-plugin.
* Please don't edit.
*/
package org.kurento.client;
/**
*
* Base interface used to manage capabilities common to all Kurento elements.
* Properties
*
* -
* id: unique identifier assigned to this
MediaObject
at
* instantiation time. {@link module:core.MediaPipeline MediaPipeline} IDs are generated with a GUID
* followed by suffix _kurento.MediaPipeline
.
* {@link module:core/abstracts.MediaElement MediaElement} IDs are also a GUID with suffix
* _kurento.{ElementType}
and prefixed by parent's ID.
*
*
* - MediaPipeline ID example
* -
*
* 907cac3a-809a-4bbe-a93e-ae7e944c5cae_kurento.MediaPipeline
*
*
* - MediaElement ID example
* -
*
* 907cac3a-809a-4bbe-a93e-ae7e944c5cae_kurento.MediaPipeline/403da25a-805b-4cf1-8c55-f190588e6c9b_kurento.WebRtcEndpoint
*
*
*
*
*
* -
* name: free text intended to provide a friendly name for this
*
MediaObject
. Its default value is the same as the ID.
*
* -
* tags: key-value pairs intended for applications to associate metadata
* to this
MediaObject
instance.
*
*
*
* Events
*
* -
* ErrorEvent: reports asynchronous error events. It is recommended to
* always subscribe a listener to this event, as regular error from the
* pipeline will be notified through it, instead of through an exception when
* invoking a method.
*
*
*
*
**/
@org.kurento.client.internal.RemoteClass
public interface MediaObject extends KurentoObject {
/**
*
* Get {@link module:core.MediaPipeline MediaPipeline} to which this MediaObject
belongs. It returns itself when invoked for a pipeline object.
*
**/
org.kurento.client.MediaPipeline getMediaPipeline();
/**
*
* Get {@link module:core.MediaPipeline MediaPipeline} to which this MediaObject
belongs. It returns itself when invoked for a pipeline object.
*
**/
void getMediaPipeline(Continuation cont);
/**
*
* Get {@link module:core.MediaPipeline MediaPipeline} to which this MediaObject
belongs. It returns itself when invoked for a pipeline object.
*
**/
TFuture getMediaPipeline(Transaction tx);
/**
*
* Get Parent of this MediaObject
.
*
* The parent of a {@link module:core/abstracts.Hub Hub} or a {@link module:core/abstracts.MediaElement MediaElement} is its
* {@link module:core.MediaPipeline MediaPipeline}. A {@link module:core.MediaPipeline MediaPipeline} has no parent, so this
* property will be null.
*
*
*
**/
org.kurento.client.MediaObject getParent();
/**
*
* Get Parent of this MediaObject
.
*
* The parent of a {@link module:core/abstracts.Hub Hub} or a {@link module:core/abstracts.MediaElement MediaElement} is its
* {@link module:core.MediaPipeline MediaPipeline}. A {@link module:core.MediaPipeline MediaPipeline} has no parent, so this
* property will be null.
*
*
*
**/
void getParent(Continuation cont);
/**
*
* Get Parent of this MediaObject
.
*
* The parent of a {@link module:core/abstracts.Hub Hub} or a {@link module:core/abstracts.MediaElement MediaElement} is its
* {@link module:core.MediaPipeline MediaPipeline}. A {@link module:core.MediaPipeline MediaPipeline} has no parent, so this
* property will be null.
*
*
*
**/
TFuture getParent(Transaction tx);
/**
*
* Get Unique identifier of this MediaObject
.
*
* It's a synthetic identifier composed by a GUID and
* MediaObject
type. The ID is prefixed with the parent ID when the
* object has parent: ID_parent/ID_media-object.
*
*
*
**/
String getId();
/**
*
* Get Unique identifier of this MediaObject
.
*
* It's a synthetic identifier composed by a GUID and
* MediaObject
type. The ID is prefixed with the parent ID when the
* object has parent: ID_parent/ID_media-object.
*
*
*
**/
void getId(Continuation cont);
/**
*
* Get Unique identifier of this MediaObject
.
*
* It's a synthetic identifier composed by a GUID and
* MediaObject
type. The ID is prefixed with the parent ID when the
* object has parent: ID_parent/ID_media-object.
*
*
*
**/
TFuture getId(Transaction tx);
/**
*
* Get Children of this MediaObject
.
* @deprecated Use children instead.
*
*
**/
java.util.List getChilds();
/**
*
* Get Children of this MediaObject
.
* @deprecated Use children instead.
*
*
**/
void getChilds(Continuation> cont);
/**
*
* Get Children of this MediaObject
.
* @deprecated Use children instead.
*
*
**/
TFuture> getChilds(Transaction tx);
/**
*
* Get Children of this MediaObject
.
*
**/
java.util.List getChildren();
/**
*
* Get Children of this MediaObject
.
*
**/
void getChildren(Continuation> cont);
/**
*
* Get Children of this MediaObject
.
*
**/
TFuture> getChildren(Transaction tx);
/**
*
* Get This MediaObject
's name.
*
* This is just sugar to simplify developers' life debugging, it is not used
* internally for indexing nor identifying the objects. By default, it's the
* object's ID.
*
*
*
**/
String getName();
/**
*
* Get This MediaObject
's name.
*
* This is just sugar to simplify developers' life debugging, it is not used
* internally for indexing nor identifying the objects. By default, it's the
* object's ID.
*
*
*
**/
void getName(Continuation cont);
/**
*
* Get This MediaObject
's name.
*
* This is just sugar to simplify developers' life debugging, it is not used
* internally for indexing nor identifying the objects. By default, it's the
* object's ID.
*
*
*
**/
TFuture getName(Transaction tx);
/**
*
* Set This MediaObject
's name.
*
* This is just sugar to simplify developers' life debugging, it is not used
* internally for indexing nor identifying the objects. By default, it's the
* object's ID.
*
*
*
**/
void setName(@org.kurento.client.internal.server.Param("name") String name);
/**
*
* Set This MediaObject
's name.
*
* This is just sugar to simplify developers' life debugging, it is not used
* internally for indexing nor identifying the objects. By default, it's the
* object's ID.
*
*
*
**/
void setName(@org.kurento.client.internal.server.Param("name") String name, Continuation cont);
/**
*
* Set This MediaObject
's name.
*
* This is just sugar to simplify developers' life debugging, it is not used
* internally for indexing nor identifying the objects. By default, it's the
* object's ID.
*
*
*
**/
void setName(@org.kurento.client.internal.server.Param("name") String name, Transaction tx);
/**
*
* Get Flag activating or deactivating sending the element's tags in fired events.
*
**/
boolean getSendTagsInEvents();
/**
*
* Get Flag activating or deactivating sending the element's tags in fired events.
*
**/
void getSendTagsInEvents(Continuation cont);
/**
*
* Get Flag activating or deactivating sending the element's tags in fired events.
*
**/
TFuture getSendTagsInEvents(Transaction tx);
/**
*
* Set Flag activating or deactivating sending the element's tags in fired events.
*
**/
void setSendTagsInEvents(@org.kurento.client.internal.server.Param("sendTagsInEvents") boolean sendTagsInEvents);
/**
*
* Set Flag activating or deactivating sending the element's tags in fired events.
*
**/
void setSendTagsInEvents(@org.kurento.client.internal.server.Param("sendTagsInEvents") boolean sendTagsInEvents, Continuation cont);
/**
*
* Set Flag activating or deactivating sending the element's tags in fired events.
*
**/
void setSendTagsInEvents(@org.kurento.client.internal.server.Param("sendTagsInEvents") boolean sendTagsInEvents, Transaction tx);
/**
*
* Get MediaObject
creation time in seconds since Epoch.
*
**/
int getCreationTime();
/**
*
* Get MediaObject
creation time in seconds since Epoch.
*
**/
void getCreationTime(Continuation cont);
/**
*
* Get MediaObject
creation time in seconds since Epoch.
*
**/
TFuture getCreationTime(Transaction tx);
/**
*
* Adds a new tag to this MediaObject
.
* If the tag is already present, it changes the value.
*
*
* @param key
* Tag name.
* @param value
* Value associated to this tag.
*
**/
void addTag(@org.kurento.client.internal.server.Param("key") String key, @org.kurento.client.internal.server.Param("value") String value);
/**
*
* Asynchronous version of addTag:
* {@link Continuation#onSuccess} is called when the action is
* done. If an error occurs, {@link Continuation#onError} is called.
* @see MediaObject#addTag
*
* @param key
* Tag name.
* @param value
* Value associated to this tag.
*
**/
void addTag(@org.kurento.client.internal.server.Param("key") String key, @org.kurento.client.internal.server.Param("value") String value, Continuation cont);
/**
*
* Adds a new tag to this MediaObject
.
* If the tag is already present, it changes the value.
*
*
* @param key
* Tag name.
* @param value
* Value associated to this tag.
*
**/
void addTag(Transaction tx, @org.kurento.client.internal.server.Param("key") String key, @org.kurento.client.internal.server.Param("value") String value);
/**
*
* Removes an existing tag.
* Exists silently with no error if tag is not defined.
*
*
* @param key
* Tag name to be removed
*
**/
void removeTag(@org.kurento.client.internal.server.Param("key") String key);
/**
*
* Asynchronous version of removeTag:
* {@link Continuation#onSuccess} is called when the action is
* done. If an error occurs, {@link Continuation#onError} is called.
* @see MediaObject#removeTag
*
* @param key
* Tag name to be removed
*
**/
void removeTag(@org.kurento.client.internal.server.Param("key") String key, Continuation cont);
/**
*
* Removes an existing tag.
* Exists silently with no error if tag is not defined.
*
*
* @param key
* Tag name to be removed
*
**/
void removeTag(Transaction tx, @org.kurento.client.internal.server.Param("key") String key);
/**
*
* Returns the value of given tag, or MEDIA_OBJECT_TAG_KEY_NOT_FOUND if tag is not defined.
*
* @param key
* Tag key.
* @return The value associated to the given key. *
**/
String getTag(@org.kurento.client.internal.server.Param("key") String key);
/**
*
* Asynchronous version of getTag:
* {@link Continuation#onSuccess} is called when the action is
* done. If an error occurs, {@link Continuation#onError} is called.
* @see MediaObject#getTag
*
* @param key
* Tag key.
*
**/
void getTag(@org.kurento.client.internal.server.Param("key") String key, Continuation cont);
/**
*
* Returns the value of given tag, or MEDIA_OBJECT_TAG_KEY_NOT_FOUND if tag is not defined.
*
* @param key
* Tag key.
* @return The value associated to the given key. *
**/
TFuture getTag(Transaction tx, @org.kurento.client.internal.server.Param("key") String key);
/**
*
* Returns all tags attached to this MediaObject
.
* @return An array containing all key-value pairs associated with this MediaObject
. *
**/
java.util.List getTags();
/**
*
* Asynchronous version of getTags:
* {@link Continuation#onSuccess} is called when the action is
* done. If an error occurs, {@link Continuation#onError} is called.
* @see MediaObject#getTags
*
**/
void getTags(Continuation> cont);
/**
*
* Returns all tags attached to this MediaObject
.
* @return An array containing all key-value pairs associated with this MediaObject
. *
**/
TFuture> getTags(Transaction tx);
/**
* Add a {@link EventListener} for event {@link ErrorEvent}. Synchronous call.
*
* @param listener Listener to be called on ErrorEvent
* @return ListenerSubscription for the given Listener
*
**/
@org.kurento.client.internal.server.EventSubscription(ErrorEvent.class)
ListenerSubscription addErrorListener(EventListener listener);
/**
* Add a {@link EventListener} for event {@link ErrorEvent}. Asynchronous call.
* Calls Continuation<ListenerSubscription> when it has been added.
*
* @param listener Listener to be called on ErrorEvent
* @param cont Continuation to be called when the listener is registered
*
**/
@org.kurento.client.internal.server.EventSubscription(ErrorEvent.class)
void addErrorListener(EventListener listener, Continuation cont);
/**
* Remove a {@link ListenerSubscription} for event {@link ErrorEvent}. Synchronous call.
*
* @param listenerSubscription Listener subscription to be removed
*
**/
@org.kurento.client.internal.server.EventSubscription(ErrorEvent.class)
void removeErrorListener(ListenerSubscription listenerSubscription);
/**
* Remove a {@link ListenerSubscription} for event {@link ErrorEvent}. Asynchronous call.
* Calls Continuation<Void> when it has been removed.
*
* @param listenerSubscription Listener subscription to be removed
* @param cont Continuation to be called when the listener is removed
*
**/
@org.kurento.client.internal.server.EventSubscription(ErrorEvent.class)
void removeErrorListener(ListenerSubscription listenerSubscription, Continuation cont);
}