Initialization
For Initialization a SDK Token is required.
info
Reach out to Hippo Video support to get the SDK Token for your account
- NPM
- CDN
import { initialize } from "@hippovideo/video-sdk";
import "@hippovideo/video-sdk/app/hv_recorder.css"; // Importing the styling required
let initializeOptions = {
token: <RECORDER_TOKEN>,
};
const onVideoSdkInitialize = (success, error) => {
/*
* error will be undefined in case of successfull initialization
* success will be undefined in case there is any error
* */
};
initialize(initializeOptions, onVideoSdkInitialize);
if (window.HVRecorder) {
let initializeOptions = {
token: <RECORDER_TOKEN>,
};
const onVideoSdkInitialize = (success, error) => {
/*
* error will be undefined in case of successfull initialization
* success will be undefined in case there is any error
* */
};
HVRecorder.initialize(initializeOptions, onVideoSdkInitialize);
}
- Refer to
initialize
API for more details.