Typos, iOS player and reset password
This commit is contained in:
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user