The EnxStream is a derived Class from EnxRtc. It handles all Media Stream related functions to initiate, configure and to transport streams to the Media Servers. It is also used for receiving stream end-points to be played.
References: Attributes – Methods – Observers
Stream Meta Data Properties
id
– Unique Stream IDlocal
– Boolean. True for Local Stream; False for Remote Streamroom
– JSON Object. Room Into to which the Stream is associatedshowing
– Boolean. Whether the stream is being playedaudio
– Boolean. True if the stream has Audio Trackvideo
– Boolean. True if the stream has Video Trackscreen
– Boolean. True if the stream has Screen SharevideoSize
– Size of Video Frame, defined as [minWidth, minHeight, maxWidth, maxHeight]videoFrameRate
– Frame Rate of Video Stream, defined as [min, max]desktopStreamId
– Chrome Media Source ID to be used for Screen ShareextensionId
– Extension ID to be used for Screen ShareaudioMuted
– Boolean. True if Audio is mutedvideoMuted
– Boolean. True if Video is mutedattributes
– videoFrameRate
Methods
Given below a categorized listing of methods:
Stream Basics
initStream()
– To initialize a Stream
Stream Conrols
muteSelfAudio()
– To mute/unmute audio of own published streammuteSelfVideo()
– To mute/unmute video of own published streamswitchCamera()
– To switch from rear to front Camera and vice-versa to change Stream Source
Moderator Controls
hardMuteAudio()
– To hard mute a parrticipant’s audiohardMuteVideo()
– To hard mute a parrticipant’s videohardUnmuteAudio()
– To lift restriction of audio hard-mute state of participanthardUnmuteVideo()
– To lift restriction of video hard-mute state of participant
Callbacks
Given below is a list of Callbacks categorized by their functions.
Streaming
remoteStreamAudioMute
– Everyone is notified when when user’s audio is mutedremoteStreamAudioUnMute
– Everyone is notified when when user’s audio is unmutedremoteStreamVideoMute
– Everyone is notified when when user’s video is mutedremoteStreamVideoUnMute
– Everyone is notified when when user’s video is unmutedaudioEvent
– When any action is performed on Audio track of a StreamvideoEvent
– When any action is performed on Video track of a Stream
Hard Mute Audio
hardMutedAudio
– Moderator is acknowledged when User’s audio stream is hard-mutedhardUnmutedAudio
– Moderator is acknowledged when User’s audio stream is hard-unmutedreceivedHardMutedAudio
– Participant is notified that Moderator has hard-muted his audio streamreceivedHardUnmutedAudio
– Participant is notified that Moderator has hard-unmuted his audio stream
Hard Mute Video
hardVideoMute
– Moderator is acknowledged when User’s video stream is hard-mutedhardVideoUnmute
– Moderator is acknowledged when User’s video stream is hard-unmutedreceivedhardMuteVideo
– Participant is notified that Moderator has hard-muted his video streamreceivedhardUnmuteVideo
– Participant is notified that Moderator has hard-unmuted his video stream
Explore React Native SDK