0.2.2 • Published 8 months ago

@sametkeskin/react-native-video-player v0.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

React Native Video Player

npm version npm downloads

A customizable video player component for React Native with gesture controls, fullscreen support, and a modern UI.

Features

  • 🎮 Gesture controls for seeking and volume
  • 🖥️ Fullscreen support
  • ⏯️ Play/Pause controls
  • 🎚️ Progress bar with seeking
  • 🔊 Volume control
  • 🎨 Customizable UI
  • ⚡ Built with React Native Reanimated for smooth animations

https://github.com/user-attachments/assets/e5ce8cad-b08e-428d-a314-155a3189a2bc

Installation

npm install @sametkeskin/react-native-video-player

# Install peer dependencies
npm install react-native-video react-native-gesture-handler react-native-reanimated

Usage

import VideoPlayer from 'react-native-video-player';

const App = () => {
  return (
    <VideoPlayer
      source={videoSource} // https://docs.thewidlarzgroup.com/react-native-video/component/props#source
      style={styles.player}
      title={title}
      initialSubtitleLanguage="en"
      initialQualityHeight={1080}
      initialAudioLanguage="en"
      onBack={() => {
        router.back();
      }}
    />
  );
};

Props

PropTypeDefaultDescription
sourceObjectrequiredVideo source object containing URL and other metadata
styleViewStyle{}Container style for the video player
titlestring-Title of the video to display in the player
initialSubtitleLanguagestring'en'Initial subtitle language code (e.g., 'en', 'es')
initialQualityHeightnumber1080Initial video quality height in pixels
initialAudioLanguagestring'en'Initial audio language code (e.g., 'en', 'es')
onBackFunction-Callback function when back button is pressed

Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Author

Samet Keskin

0.2.2

8 months ago

0.2.1

8 months ago

0.2.0

8 months ago

0.1.3

8 months ago

0.1.2

9 months ago