Class ElementConnectedEvent

  • All Implemented Interfaces:
    Event

    public class ElementConnectedEvent
    extends MediaEvent
    Indicates that an element has been connected to another
    • Constructor Detail

      • ElementConnectedEvent

        public ElementConnectedEvent​(MediaObject source,
                                     String timestampMillis,
                                     List<Tag> tags,
                                     String type,
                                     MediaElement sink,
                                     MediaType mediaType,
                                     String sourceMediaDescription,
                                     String sinkMediaDescription)
        Indicates that an element has been connected to another
        Parameters:
        source - Object that raised the event
        timestampMillis - The timestamp associated with this event: Milliseconds elapsed since the UNIX Epoch (Jan 1, 1970, UTC).
        tags -
        type - Type of event that was raised
        sink - sink element in new connection
        mediaType - Media type of the connection
        sourceMediaDescription - Description of the source media
        sinkMediaDescription - Description of the sink media
    • Method Detail

      • getSink

        public MediaElement getSink()
        Getter for the sink property
        Returns:
        sink element in new connection *
      • setSink

        public void setSink​(MediaElement sink)
        Setter for the sink property
        Parameters:
        sink - sink element in new connection
      • getMediaType

        public MediaType getMediaType()
        Getter for the mediaType property
        Returns:
        Media type of the connection *
      • setMediaType

        public void setMediaType​(MediaType mediaType)
        Setter for the mediaType property
        Parameters:
        mediaType - Media type of the connection
      • getSourceMediaDescription

        public String getSourceMediaDescription()
        Getter for the sourceMediaDescription property
        Returns:
        Description of the source media *
      • setSourceMediaDescription

        public void setSourceMediaDescription​(String sourceMediaDescription)
        Setter for the sourceMediaDescription property
        Parameters:
        sourceMediaDescription - Description of the source media
      • getSinkMediaDescription

        public String getSinkMediaDescription()
        Getter for the sinkMediaDescription property
        Returns:
        Description of the sink media *
      • setSinkMediaDescription

        public void setSinkMediaDescription​(String sinkMediaDescription)
        Setter for the sinkMediaDescription property
        Parameters:
        sinkMediaDescription - Description of the sink media