1.0.5 • Published 1 year ago

@lunarr/vlc-player v1.0.5

Weekly downloads
34
License
MIT
Repository
github
Last release
1 year ago

@lunarr/vlc-player

VLC Player for react-native based on xuyuanzhou/react-native-yz-vlcplayer, delia-m/react-native-yz-vlcplayer and react-native-vlc-media-player to be used on Lunarr.

Installation

React Native 0.60+

yarn add @lunarr/vlc-player

Additional step for iOS

Set Enable Bitcode to NO

Build Settings ---> search Bitcode

disable bitcode

Don't forget to pod update and gradlew clean

Example

import Video from "@lunarr/vlc-player";

<Video
  ref={videoRef}
  source={{ uri: url }}
  style={styles.video}
  onProgress={({ currentTime, duration }) => {
    setState({
      currentTime, // seconds
      duration // seconds
    });
  }}
  onSeek={({ currentTime, duration }) => {
    setState({
      currentTime, // seconds
      duration // seconds
    });
  }}
  onEnd={() => {
    setState({ play: false });
  }}
  onError={() => {
    setState({
      play: false,
      error: {
        error: "Oops!",
        message:
          "There was an error playing this video, please try again later."
      }
    });
  }}
  paused={!state.play}
/>
1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago