Interface MediaObject

    • Method Detail

      • getMediaPipeline

        MediaPipeline getMediaPipeline()
        Get MediaPipeline to which this MediaObject belongs. It returns itself when invoked for a pipeline object.
      • getId

        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.

        Specified by:
        getId in interface KurentoObject
      • getId

        void getId​(Continuation<String> 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.

      • getId

        TFuture<String> getId​(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.

      • getChildren

        List<MediaObject> getChildren()
        Get Children of this MediaObject.
      • getName

        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.

      • getName

        void getName​(Continuation<String> 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.

      • getName

        TFuture<String> getName​(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.

      • setName

        void setName​(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.

      • setName

        void setName​(String name,
                     Continuation<Void> 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.

      • setName

        void setName​(String name,
                     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.

      • getSendTagsInEvents

        boolean getSendTagsInEvents()
        Get Flag activating or deactivating sending the element's tags in fired events.
      • getSendTagsInEvents

        void getSendTagsInEvents​(Continuation<Boolean> cont)
        Get Flag activating or deactivating sending the element's tags in fired events.
      • getSendTagsInEvents

        TFuture<Boolean> getSendTagsInEvents​(Transaction tx)
        Get Flag activating or deactivating sending the element's tags in fired events.
      • setSendTagsInEvents

        void setSendTagsInEvents​(boolean sendTagsInEvents)
        Set Flag activating or deactivating sending the element's tags in fired events.
      • setSendTagsInEvents

        void setSendTagsInEvents​(boolean sendTagsInEvents,
                                 Continuation<Void> cont)
        Set Flag activating or deactivating sending the element's tags in fired events.
      • setSendTagsInEvents

        void setSendTagsInEvents​(boolean sendTagsInEvents,
                                 Transaction tx)
        Set Flag activating or deactivating sending the element's tags in fired events.
      • getCreationTime

        int getCreationTime()
        Get MediaObject creation time in seconds since Epoch.
      • getCreationTime

        void getCreationTime​(Continuation<Integer> cont)
        Get MediaObject creation time in seconds since Epoch.
      • getCreationTime

        TFuture<Integer> getCreationTime​(Transaction tx)
        Get MediaObject creation time in seconds since Epoch.
      • addTag

        void addTag​(String key,
                    String value)
        Adds a new tag to this MediaObject. If the tag is already present, it changes the value.
        Parameters:
        key - Tag name.
        value - Value associated to this tag.
      • addTag

        void addTag​(Transaction tx,
                    String key,
                    String value)
        Adds a new tag to this MediaObject. If the tag is already present, it changes the value.
        Parameters:
        key - Tag name.
        value - Value associated to this tag.
      • removeTag

        void removeTag​(String key)
        Removes an existing tag. Exists silently with no error if tag is not defined.
        Parameters:
        key - Tag name to be removed
      • removeTag

        void removeTag​(Transaction tx,
                       String key)
        Removes an existing tag. Exists silently with no error if tag is not defined.
        Parameters:
        key - Tag name to be removed
      • getTag

        String getTag​(String key)
        Returns the value of given tag, or MEDIA_OBJECT_TAG_KEY_NOT_FOUND if tag is not defined.
        Parameters:
        key - Tag key.
        Returns:
        The value associated to the given key. *
      • getTag

        TFuture<String> getTag​(Transaction tx,
                               String key)
        Returns the value of given tag, or MEDIA_OBJECT_TAG_KEY_NOT_FOUND if tag is not defined.
        Parameters:
        key - Tag key.
        Returns:
        The value associated to the given key. *
      • getTags

        List<Tag> getTags()
        Returns all tags attached to this MediaObject.
        Returns:
        An array containing all key-value pairs associated with this MediaObject. *
      • getTags

        TFuture<List<Tag>> getTags​(Transaction tx)
        Returns all tags attached to this MediaObject.
        Returns:
        An array containing all key-value pairs associated with this MediaObject. *
      • removeErrorListener

        void removeErrorListener​(ListenerSubscription listenerSubscription,
                                 Continuation<Void> cont)
        Remove a ListenerSubscription for event ErrorEvent. Asynchronous call. Calls Continuation<Void> when it has been removed.
        Parameters:
        listenerSubscription - Listener subscription to be removed
        cont - Continuation to be called when the listener is removed