/JWPlayerDemo

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

Primary LanguageObjective-C

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)}
/>