The EnxStream is a derived Class from EnxRtc. It handles all the Media Stream-related functions to initiate, configure, and transport Streams to EnableX Media Servers. It is also used for receiving Stream endpoints to be played.

References: AttributesMethodsObservers

Properties

  • streamId – Unique Stream ID.
  • isLocal – Boolean. True for Local Stream, False for Remote Stream.
  • screen – Boolean. True if the stream carries Screen Share.
  • isSelfAudioMuted – Boolean. True if Local Stream’s Audio is muted.
  • isSelfVideoMuted – Boolean. True if Local Stream’s Video is muted.

Methods

A categorized listing of Stream Handler methods is as given below:

Stream Information

  • hasAudio() – To know if the stream has an Audio track.
  • hasVideo() – To know if the stream has a Video track.
  • hasData() – To know if the stream has Text Data.

Stream Controls

Moderator Controls

Play Stream

Delegate Methods

Given below is a category-wise listing of delegate methods based on their functions:

Streaming

  • didAudioEvents – Notification to the stream publisher when Local Stream’s Video Audio is muted/unmuted.
  • didVideoEvents – Notification to the stream publisher when Local Stream’s Video is muted/unmuted.
  • stream:didSelfMuteVideo – Notification to the stream publisher when Local Stream’s Video is muted.
  • stream:didSelfUnmuteVideo – Notification to the stream publisher when Local Stream’s Video is unmuted.
  • stream:didSelfMuteAudio – Notification to the stream publisher when Local Stream’s Audio is muted.
  • stream:didSelfUnmuteAudio – Notification to the stream publisher when Local Stream’s Audio is unmuted.

Messaging

  • didReceiveData: – When text messages are received.

Hard Mute Audio

  • didhardMuteAudio – Acknowledgment to the Moderator when the Participant’s Audio Stream is hard-muted.
  • didhardUnMuteAudio – Acknowledgment to the Moderator when the hard-mute restriction is lifted from the Participant’s Audio Stream.
  • didRecievedHardMutedAudio – Notification to the Participant when the Moderator hard-mutes their Audio Stream.
  • didRecievedHardUnmutedAudio – Notification to the Participant when the Moderator lifts the hard-mute restriction from their Audio Stream.

Hard Mute Video

  • stream:didHardVideoMute – Acknowledgment to the Moderator when the Participant’s Video Stream is hard-muted.
  • stream:didHardVideoUnMute – Acknowledgment to the Moderator when the hard-mute restriction is lifted from the Participant’s Video Stream.
  • stream:didReceivehardMuteVideo – Notification to the Participant when the Moderator hard-mutes their Video Stream.
  • stream:didReceivehardUnmuteVideo – Notification to the Participant when the Moderator lifts the hard-mute restriction from their Video Stream.