3.0.9-rc.1 • Published 5 years ago

react-native-vlc2 v3.0.9-rc.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

react-native-vlc2

iOS is not supported yet

import React, { Component } from 'react';
import VLCVideo from 'react-native-vlc2';

class Player extends Component {
    play() {
        this.refs.video && this.refs.video.play();
    }

    pause() {
        this.refs.video && this.refs.video.pause();
    }

    seek(time) {
        this.refs.video && this.refs.video.seek(time);
    }

    render() {
        return (
            <VLCVideo
                ref={'video'}
                style={{ flex: 1 }}
                sourceUrl={'http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4'}
                autoplay={true}
                startTime={0}
            //   onSeekRequested={this.onSeekRequested}
            //   onBuffering={this.onBuffering}
            //   onPlaying={this.onPlaying}
            //   onPaused={this.onPaused}
            //   onEndReached={this.onEndReached}
            //   onError={this.onError}
            //   onTimeChanged={this.onTimeChanged}
            //   onSeekPerformed={this.onSeekPerformed}
            />
        );
    }
}
3.0.9-rc.1

5 years ago

3.0.8

5 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.0-rc7

6 years ago

1.0.0-rc6

7 years ago

1.0.0

7 years ago