Skip to content

A simple demo of using JWPlayer with React Native (iOS only)

Notifications You must be signed in to change notification settings

code0100fun/JWPlayerDemo

Repository files navigation

JWPlayer React Native Demo

Running

$ cd ios/
$ pod install
$ open JWPlayerDemo.xcworkspace/

Set License key

Put your license key in the Info.plist at JWPlayerKey.

Run with XCode or run:

$ react-native run-ios

Configure Player

<JWPlayer
  style={styles.player}
  autostart={true}
  file={'https://content.jwplatform.com/manifests/vM7nH0Kl.m3u8'}
  onBeforePlay={this._onBeforePlay.bind(this)}
  onPlay={this._onPlay.bind(this)}
  onPlayerError={this._onPlayerError.bind(this)}
  onBuffer={this._onBuffer.bind(this)}
  onTime={this._onTime.bind(this)}
/>

About

A simple demo of using JWPlayer with React Native (iOS only)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published