Typos, iOS player and reset password

This commit is contained in:
Adolfo Reyna
2023-02-06 14:43:05 -05:00
parent 6b8f9a56c5
commit f52b77f250
5 changed files with 66 additions and 25 deletions

View File

@@ -24,11 +24,12 @@ const VideoPlayer = ({ videosFiles, postId, profileId, poster, videoUrl, videoSt
setChosenVideo(chosenVideo);
}, [videoUrl, postId]);
const onLoad = ()=>{
const onLoad = async ()=>{
if(!viewer.data[postId]) return 0;
console.log(postId + " loaded")
video.current.setPositionAsync(viewer.data[postId].time*1000);
video.current.presentFullscreenPlayer();
await video.current.setPositionAsync(viewer.data[postId].time*1000);
//video.current.isPlaying = true;
//video.current.presentFullscreenPlayer();
};
//console.log("status", status)
@@ -56,7 +57,7 @@ const VideoPlayer = ({ videosFiles, postId, profileId, poster, videoUrl, videoSt
source={{
uri: chosenVideo.length ? chosenVideo[chosenVideo.length-1].link : '',
}}
useNativeControls={false}
useNativeControls={true}
shouldPlay={true}
resizeMode="contain"
onPlaybackStatusUpdate={status => setStatus(() => status)}