1.0.10 • Published 4 years ago

react-native-sl-vlcplayer v1.0.10

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

react-native-vlcplayer

A <VLCPlayer> component for react-native project clone from react-native-yz-vlcplayer

Add it to your project

Run yarn add https://github.com/Nghi-NV/react-native-vlcplayer.git

android

Run react-native link react-native-vlcplayer

ios

Use framework 1. cd to ios 2. run pod init 3. add pod 'MobileVLCKit-unstable', '3.0.0a44' to pod file 3. run pod install

Enable Bitcode in root project select Build Settings ---> find Bitcode and select Enable Bitcode

Use

  (1) import { VLCPlayer, VlCPlayerView } from 'react-native-vlcplayer';

  (2) 
    <VLCPlayer
           ref={ref => (this.vlcPlayer = ref)}
           style={[styles.video]}
           videoAspectRatio="16:9"
           paused={this.state.paused}
           source={{ uri: this.props.uri}}
           onProgress={this.onProgress.bind(this)}
           onEnd={this.onEnded.bind(this)}
           onBuffering={this.onBuffering.bind(this)}
           onError={this._onError}
           onStopped={this.onStopped.bind(this)}   
           onPlaying={this.onPlaying.bind(this)}
           onPaused={this.onPaused.bind(this)}      
       />
  (3) or use
    <VlCPlayerView
           autoplay={false}
           url={this.state.url}
           Orientation={Orientation}      
           //BackHandle={BackHandle}
           ggUrl=""
           showGG={true}
           showTitle={true}
           title=""
           showBack={true}
           onLeftPress={()=>{}}
           startFullScreen={() => {      
              this.setState({
              isFull: true,
             });
           }}
           closeFullScreen={() => {
              this.setState({
              isFull: false,
             });
           }}
       />
1.0.10

4 years ago

1.0.9

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago