Tracks the mute/unmute state of local audio, video, and output,
as well as the local camera stream for rendering.
React Native adaptation: This type extends the web LocalMediaState with a
localStream field. In React Native, the local camera stream is delivered as
a MediaStream (from react-native-webrtc) and must be rendered using
RTCView. The isScreenSharing field is always false because screen
sharing is not supported in the React Native client.
Always false in React Native. Screen sharing is only available on web.
isVideoMuted
isVideoMuted:boolean
Whether the local camera is muted/off
localStream
localStream:MediaStream|null
Local camera MediaStream for rendering via RTCView.
Remarks
This field is specific to @hiyve/rn-core and does not exist in the web
@hiyve/coreLocalMediaState. The stream is provided when the local
camera is activated and should be rendered using RTCView from
react-native-webrtc. It is null before the camera starts or after
the user leaves the room.
Local media state for the current user's devices.
Remarks
Tracks the mute/unmute state of local audio, video, and output, as well as the local camera stream for rendering.
React Native adaptation: This type extends the web
LocalMediaStatewith alocalStreamfield. In React Native, the local camera stream is delivered as aMediaStream(fromreact-native-webrtc) and must be rendered usingRTCView. TheisScreenSharingfield is alwaysfalsebecause screen sharing is not supported in the React Native client.Example
Media controls with local video preview:
See
Participant for remote participant media streams