-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
How to show video player just like facebook (with play/pause, duration, bar with touchable skipping video) #353
Comments
see example |
The example doesn't seem to have seeking controls. It just allows play/pause, rate, shows duration and stuff like that. Is there a way to seek in the video? |
@pedramsaleh I am using this: https://github.com/cornedor/react-native-video-player and able to get like this https://raw.githubusercontent.com/cornedor/react-native-video-player/master/demo.gif as they are showing. Seeking is not happening and sometimes seeker bar is also not showing correct. The main problem I am not getting the thumbnail and play button position as it was before playing when video ends. onEnd callback function is also not working. I have posted it also TheWidlarzGroup/react-native-video-player#4 |
@prashen Are you using the seek() method to implement seeking? It looks like you're just using it to go back to the beginning at the end of the video. |
I am using:
I am using their example folder and run it. If i need to use seek method then how can you tell me?
|
I haven't had a chance to implement it myself yet, but it seems fairly straightforward. According to the readme, use it like this:
and it will go to the number of seconds the parameter indicates. So |
Hey @prashen, I'm not sure about those libraries, but to get |
@SHRoberts91 Yes inside this plugin If anyone help it will be great :). Here is the exact issue: I am posting these issues inside |
This is what I did to get seeking working. The progress indicator/seek control is below. You can get the style info from the component's example code.
When pressing, it does the following. The code assumes a full screen player.
And you need to add a ref on the video player component
|
@pedramsaleh any idea if seeking will work on remote video url? |
Not sure. I've only used this for playing local content so I didn't look into how it works for streaming. |
@pedramsaleh i confirm the seek works also in stream. :) awesome thanks for your code... anyway, do you have any idea to hide that progress bar when video is playing,, and make it only visible when screen is touch? |
@sabaparsa Nice plugin, but I think it does not support more than rn 0.45 |
@prashen man did you find a way to create progress bar? I'm living the same issue. I need progress bar. I tried react-native-video-controls. But it's progress bar is not stable on devices. |
@AliZeynalov did you find any solution.. facing the issue with progress bar.. |
It's working and I can play and pause video. But how to showing progress bar. Showing duration and a play/pause button and user can tap on specific progress bar area. Just like facebook video player shows.
I am using windows os and making app for android.
And please tell me, Is it possible in react native to show a video just like facebook did?
giving example of react native app
https://play.google.com/store/apps/details?id=com.discovery.DiscoveryVR&hl=en
Just like discoveryVr app using it's video player. Can we show video play/pause button and use progress bar with drag feature with you plugin.
The text was updated successfully, but these errors were encountered: