Open jitendrahpatwa opened 4 years ago
Any solution for this error?
I'm using android + react native video. Is that library that you are using sending the time in milliseconds?
does anyone know the solution to this?
@HassanKhan96 how are you sending the time values to this library?
If the values are not sent in millisecond, it will fail
Used this plugin for video control but the same in running in android device shows "range error: Invalid Date" on MediaControls element. Please suggest what is the issue. Here is the full code ` import { Video } from 'expo-av'; import MediaControls, { PLAYER_STATES } from 'react-native-media-controls';
export default function PlayVideoScreen({ navigation, routes, props }) { const videoPlayer = React.useRef(null); const [currentTime, setCurrentTime] = React.useState(0); const [duration, setDuration] = React.useState(0); const [isFullScreen, setIsFullScreen] = React.useState(false); const [isLoading, setIsLoading] = React.useState(true); const [paused, setPaused] = React.useState(false); const [playerState, setPlayerState] = React.useState(PLAYER_STATES.PLAYING);
const noop = () => {};
} `