UNPKG

@nativeframe/react-native-native-frame

Version:
17 lines (16 loc) 472 B
"use strict"; import { VideoClient } from '@video/video-client-core'; export class NativeFrame { async initVideoClient(userID, token) { const videoClientOptions = { backendEndpoints: ['https://platform.nativeframe.com'], token: token, userId: userID }; return new VideoClient(videoClientOptions); } static stream(userID, token) { new NativeFrame().initVideoClient(userID, token); } } //# sourceMappingURL=NativeNativeFrame.js.map