Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

events problem #19

Open
SamimSdz opened this issue Jan 30, 2020 · 1 comment
Open

events problem #19

SamimSdz opened this issue Jan 30, 2020 · 1 comment

Comments

@SamimSdz
Copy link

Hi, I'm using this library on react native with typescript template for playing stream videos. Everything actually work well except any events ! Check below code :

import VlcPlayer from "react-native-vlc-player";

<VlcPlayer
  style={{ height, width }}
  paused={false}
  autoplay={true}
  onVLCProgress={event => console.log("onVLCProgress --->", event)}
  onVLCEnded={event => console.log("onVLCEnded --->", event)}
  onVLCStopped={event => console.log("onVLCStopped --->", event)}
  onVLCPlaying={event => console.log("onVLCPlaying --->", event)}
  onVLCBuffering={event => console.log("onVLCBuffering --->", event)}
  onVLCPaused={event => console.log("onVLCPaused --->", event)}
  source={{
    uri: videoUri,
    autoplay: true,
    // initOptions: ["--codec=avcodec"],
  }}
/>

None of onVLCPaused, onVLCProgress, onVLCEnded and etc. doesn't fire any events in any situations ! can anyone helps me ?

@sayem314
Copy link

Take a look at https://github.com/lunarr-app/vlc-player

@lunarr/vlc-player supports iOS as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants