Media Element

class pyforkurento.media_element.MediaElement(session_id, elem_id, pipeline_class)

Base class for ALL media elements i.e. Endpoints, Filters, and Hubs

_add_event_listener(event, callback)

[DO NOT OVERRIDE!!] Adds event listeners for events that all Media Elements can implement

Params:
  • event: The event to listen for. Accepted:
    • MediaFlowIn - Invoked when media is ready for recording

    • MediaFlowOut - Invoked when media is no longer ready for recording

    • EndOfStream - Invoked when the stream that the element sends out is finished.

    • ElementConnected - Indicates that an element has been connected to other.

    • ElementDisconnected - Indicates that an element has been disconnected.

    • Error: An error related to the MediaObject has occurred.

  • callback: Function to be called when event is registered