UNPKG

@100mslive/react-native-room-kit

Version:

100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.

13 lines 678 B
import * as React from 'react'; import { useSelector } from 'react-redux'; import { HMSVideoView } from './HMSVideoView'; export const HMSLocalVideoView = () => { const localVideoTrackId = useSelector(state => { var _state$hmsStates$loca; return (_state$hmsStates$loca = state.hmsStates.localPeer) === null || _state$hmsStates$loca === void 0 || (_state$hmsStates$loca = _state$hmsStates$loca.videoTrack) === null || _state$hmsStates$loca === void 0 ? void 0 : _state$hmsStates$loca.trackId; }); return localVideoTrackId ? /*#__PURE__*/React.createElement(HMSVideoView, { trackId: localVideoTrackId }) : null; }; //# sourceMappingURL=HMSLocalVideoView.js.map