react-native-web-video-caster
v1.0.2
Published
## Getting started
Downloads
1
Maintainers
Readme
react-native-web-video-caster
Getting started
este es un modulo sencillo para enviar un video o una url a la aplicacion web video caster, el cual proporciona integracion de chrome cast.
This is a simple module used for send urls video to Web video caster which provides chrome cast playback
Install with npm
$ npm install react-native-web-video-caster --save
Install with yarn
$ yarn add react-native-web-video-caster
Automatic installation
$ react-native link react-native-web-video-caster
Manual installation
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNWebVideoCasterPackage;
to the imports at the top of the file - Add
new RNWebVideoCasterPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-web-video-caster' project(':react-native-web-video-caster').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-web-video-caster/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-web-video-caster')
Import
import RNWebVideoCaster from 'react-native-web-video-caster';
Usage
RNWebVideoCaster.play('https://media.w3.org/2010/05/sintel/trailer.mp4');