React-native SDK
Latest version: 1.7.1
This SDK enables you to securely stream and download DRM-protected videos through your react-native app.
Currently, this sdk supports only the android platform. iOS is not supported.
#
Getting startedSee the installation instructions in the official github repo.
#
Integrating video playback#
Launch video in a fullscreen playerimport { startVideoScreen } from 'vdocipher-rn-bridge';
startVideoScreen({embedInfo: {otp: 'some-otp', playbackInfo: 'some-playbackInfo'}});
#
Embed video in your react native layoutimport { VdoPlayerView } from 'vdocipher-rn-bridge';
const embedInfo = {otp: 'some-otp', playbackInfo: 'some-playbackInfo'};
// in JSX
<VdoPlayerView style={{height: 200, width: '100%'}} embedInfo={embedInfo}/>