@nativeframe/react-native-native-frame
Version:
React native package for streaming
17 lines (16 loc) • 472 B
JavaScript
;
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