Skip to content

A repo that contains a simple and basic video player with custom video controls created using react native expo

Notifications You must be signed in to change notification settings

emmanuel-2u/custom-video-controls

Repository files navigation

Simple basic video player with custom controls built using Expo

I created this basic video player based on curiosity on how video custom controls works in react native. The expo video library has controls (useNativeControls) but you might want to customize it. So this is basically a practice project and also playing around how to implement custom video controls in the social media app me and my people are building.

Credits

Here are some articles that helped me:

How to run

Here are some screenshots of the app:

First Image Second Image Third Image
First view Second view Third view

To run it locally, clone the repo and run npm install. Then run npm start

Problems observed

  • If the video selected to play is vertical video, the video might cover the screen vertically and the bottom controls might not show
  • The animation for reducing volume is a bit laggy as the gesture handler runs on the js thread
  • Works well with only mp4 videos
  • Selecting videos with large file size takes a while to load
  • Video duration might be incorrect
  • During playback or while pausing and playing video, the volume indicator is being reset

About

A repo that contains a simple and basic video player with custom video controls created using react native expo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published