Class DataChannelOpenedEvent

  • All Implemented Interfaces:
    Event

    public class DataChannelOpenedEvent
    extends MediaEvent
    Event fired when a new data channel is created.
    • Constructor Detail

      • DataChannelOpenedEvent

        public DataChannelOpenedEvent​(MediaObject source,
                                      String timestampMillis,
                                      List<Tag> tags,
                                      String type,
                                      int channelId)
        Event fired when a new data channel is created.
        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
        channelId - The channel identifier
    • Method Detail

      • getChannelId

        public int getChannelId()
        Getter for the channelId property
        Returns:
        The channel identifier *
      • setChannelId

        public void setChannelId​(int channelId)
        Setter for the channelId property
        Parameters:
        channelId - The channel identifier