New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

expo-reanimated-av-player-extend

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-reanimated-av-player-extend

▶️ A high-performance, interactive and customizable video player control, built upon Reanimated v2 & GestureHandler v2.

  • 0.3.1-beta
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-77.78%
Maintainers
1
Weekly downloads
 
Created
Source
`JSThread` to `JSThread`, `UIThread` to `UIThread`.

React Native Reanimated Expo Player. Support Android,iOS and Web.

100% written in Typescript video player component, interaction is like Youtube player.

Player basic usage
▶️ Custom usage for example
basic usageCustom usage
▶️ Watch example video

Installation

First you have to follow installation instructions of:

yarn add expo-reanimated-av-player

Example usage

import VideoPlayer from 'expo-reanimated-av-player';
import { useSharedValue } from 'react-native-reanimated';
export const Example = () => {
  const videoHeight = useSharedValue(0);
  const isFullScreen = useSharedValue(false);

  return (
    <VideoPlayer
      source={videoInfo.source}
      headerBarTitle={`fullscreen title`}
      onToggleAutoPlay={(state: boolean) => {
        console.log(`onToggleAutoPlay state: ${state}`);
      }}
      videoDefaultHeight={VIDEO_DEFAULT_HEIGHT}
      videoHeight={videoHeight}
      resizeMode="cover"
      isFullScreen={isFullScreen}
      onTapBack={() => {
        console.log('onTapBack');
      }}
      onTapMore={() => {
        console.log('onTapMore');
      }}
    />
  );
};

Features

  • 100% written in TypeScript.
  • 100% built upon react-native-reanimated and react-native-gusture-handler.
  • Support gestures switch full screen.
  • Support double tap seek to back or ahead.
  • ...

Configuration

The <VideoPlayer/> component has the following configuration properties:

NameTypeDescriptionRequiredDefault Value
themeobjectThe slider theme color { // Color to fill the progress in the seekbar minimumTrackTintColor: string, // Color to fill the background in the seekbar maximumTrackTintColor: string, // Color to fill the cache in the seekbar cacheTrackTintColor: string, // Color to fill the bubble backgroundColor disableMinTrackTintColor: string, // Disabled color to fill the progress in the seekbar bubbleBackgroundColor: string }
showOnStartbooleancontrol view init showfalse
onEnterFullscreenfunctionon enter fullscreen callbackundefined
onExitFullscreenfunctionon exit fullscreen callbackundefined
controlTimeoutnubmerHow long to hide the control view after showing2000
videoDefaultHeightnumbervideo default heightscreenWidth * (9 / 16)
headerBarTitlestringheader bar title on fullscreen modeundefined
onTapBackfunctiontap header bar Icon-'Back' callbackundefined
navigationanynavigationundefined
autoPlaybooleanauto playfalse
onToggleAutoPlayfunctionon toggle auto playundefined
onTapMorefunctiontap headerbar Icon-'More' callbackundefined
doubleTapIntervalnumberdouble tap intervalundefined
pausedbooleanvideo pausedundefined
onPausedChangebooleanon change video pausedundefined
onTapPausefunctionon tap video pausedundefined
sliderPropsobjectreact-native-awesome-slider propsundefined
videoHeightAnimated.SharedValuevideo height width * (9 / 16);
customAnimationStyleAnimated Viewstylevideo heightwidth * (9 / 16);
onCustomPanGesturePanGesturecustom pan gesturewidth * (9 / 16);
isFullScreenAnimated ShareValuefullScreen statusundefined
disableControlbooleancontrol view statusundefined
renderBackIconJSXcustom back iconundefined
renderFullScreenBackIconJSXcustom full's fullscreen iconundefined
renderMoreJSXcustom more iconundefined
renderFullScreenJSXcustom fullscreen iconundefined

Keywords

FAQs

Package last updated on 26 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc