-
Notifications
You must be signed in to change notification settings - Fork 192
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
Using seek bar or slider for seeking #217
Comments
This is a component i created for the controls on VLCPlayer.js (Tested on Android only) Supported Actions: [SeekBar, Loading, Error, Timer, Play/Pause, Skip 10Sec+/-, Select Audio Track, Select Subtitle Track, FullScreen, Orientation, AutoHide Controls, Show Controls on Tap]
|
Using the above component under a ScrollView like this
PS: Sorry i don't know about the standards we should share the code on git. Just wrote this yesterday, thought should share it with community. Suggestions are welcome. |
Thanks its working but generate this error. Cannot read property 'lockToPortrait' of null. |
Means Orientation is null. Please verify you are importing 'react-native-orientation-locker' |
It is not working in expo use npx expo install expo-screen-orientation this expo library or i am run my project in development build its work in my expo project. |
Hi, issue is with AndroidManifest.xml file. need to add Also add Like |
The seek function is not working for me, sometimes onProgress handler returns the same current time even if video is playing |
Same issue i am facing. I tried every possible ways but didn't get solution. |
hello ! i fixed this damn seeking problem for me by doing this: 1/ don t use "seek" props in VLCPlayer use "position" (wrong doc ?), position take a range not milliseconds as seek and just pass your slider position value exemple :
2/ edit ReactVlcPlayerViewManager.java and change setPosition function to this:
when i was seeking it was always returning to 0, added this check to avoid it and seek fixed ! Thanks |
Nice catch, would you mind creating a PR? |
Hello I'll do bro, do i also add something for the doc not talking about position ? And normal to have seekTo commented in viewmanager also ? Doesn't build if we uncomment ... (Can fix) Thanks |
Yes, you can update the README section for that prop and feel free to take a look at that other issue as well |
Is seek bar is available into the VLC player or do I have to add the it manually
A code sample or some tutorial reference will be appreciated
The text was updated successfully, but these errors were encountered: