alantoa / react-native-reanimated-player

▶️ An excellent video player controller that offers animation, performance, interactivity, and customization.
MIT License
267 stars 18 forks source link

not working on android #5

Closed Nadimkhan120 closed 2 years ago

Nadimkhan120 commented 2 years ago

hi, player controls are not working on android.

import React from "react"; import Navigators from "./src/navigators"; import Store from "./src/Store"; import { Provider } from "react-redux"; import { initialWindowMetrics, SafeAreaProvider, } from "react-native-safe-area-context"; import VideoPlayer from "react-native-reanimated-player"; import { useSharedValue } from "react-native-reanimated";

export default () => { const videoHeight = useSharedValue(300); const isFullScreen = useSharedValue(false);

return (

{ // Alert.alert('onTapBack'); }} onTapMore={() => { // Alert.alert('onTapMore'); }} onPausedChange={(state) => { //Alert.alert(`onPausedChange: ${state}`); //setPaused(state); }} videoHeight={videoHeight} //paused={paused} isFullScreen={isFullScreen} disableControl={false} />

); };

at start controls shows but after playing video, they disapears

alantoa commented 2 years ago

@Nadimkhan120 Hi, I just tested on android, It's no problem. What's your react-native-reanimated & react-native-gesture-handler versions?

Nadimkhan120 commented 2 years ago

react-native-reanimated is 2.3.1 and react-native-gesture-handler is 2.3.0

alantoa commented 2 years ago

It's ok, could you show the video or gif? Let's me see the problem

ashish-garg-25 commented 2 years ago

Hi, I am facing same issue please take a look https://github.com/alantoa/react-native-reanimated-player/issues/9

Arise-cn commented 1 year ago

same questiopn