Skip to main content

React-native SDK

Latest version: 1.7.1

Documentation and example app

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 started#

See the installation instructions in the official github repo.

Integrating video playback#

Launch video in a fullscreen player#

import { startVideoScreen } from 'vdocipher-rn-bridge';
startVideoScreen({embedInfo: {otp: 'some-otp', playbackInfo: 'some-playbackInfo'}});

Embed video in your react native layout#

import { VdoPlayerView } from 'vdocipher-rn-bridge';
const embedInfo = {otp: 'some-otp', playbackInfo: 'some-playbackInfo'};
// in JSX
<VdoPlayerView  style={{height: 200, width: '100%'}}  embedInfo={embedInfo}/>