MentraOS / examples /bluetooth /react-native /modules /mentra-video-stream-receiver /src /MentraVideoStreamReceiverModule.web.ts
Download examples/bluetooth/react-native/modules/mentra-video-stream-receiver/src/MentraVideoStreamReceiverModule.web.ts from Anirudh1950/MentraOS: direct link, hf CLI and curl.
- Browser
- Download file 673 Bytes
-
https://huggingface.co/Anirudh1950/MentraOS/resolve/main/examples/bluetooth/react-native/modules/mentra-video-stream-receiver/src/MentraVideoStreamReceiverModule.web.ts
- Command line
-
hf download hf://Anirudh1950/MentraOS/examples/bluetooth/react-native/modules/mentra-video-stream-receiver/src/MentraVideoStreamReceiverModule.web.ts
-
curl -L -o MentraVideoStreamReceiverModule.web.ts https://huggingface.co/Anirudh1950/MentraOS/resolve/main/examples/bluetooth/react-native/modules/mentra-video-stream-receiver/src/MentraVideoStreamReceiverModule.web.ts
673 Bytes
| import {NativeModule, registerWebModule} from 'expo'; | |
| import type { | |
| MentraVideoStreamReceiverModuleEvents, | |
| WebRtcReceiverResult, | |
| } from './MentraVideoStreamReceiver.types'; | |
| class MentraVideoStreamReceiverModule extends NativeModule<MentraVideoStreamReceiverModuleEvents> { | |
| async isSupported(): Promise<boolean> { | |
| return false; | |
| } | |
| async startWebRtcReceiver(): Promise<WebRtcReceiverResult> { | |
| throw new Error('The video stream receiver is only available in the native example app.'); | |
| } | |
| async stopWebRtcReceiver(): Promise<void> {} | |
| } | |
| export default registerWebModule(MentraVideoStreamReceiverModule, 'MentraVideoStreamReceiver'); | |