-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(feed): video duration calculated from Video component #1405
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for teritori-dapp ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for testitori ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this downloads all videos when navigating on the /feed/videos page
we can't load all videos to render thumbnails
<Video | ||
source={{ uri: web3ToWeb2URI(video.videoFile.url) }} | ||
onPlaybackStatusUpdate={getVideoDuration} | ||
videoStyle={{ | ||
height: 0, | ||
width: 0, | ||
}} | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We must find another solution
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The best thing would be to store the duration at the post's creation. It's another PR that we have to pause before making some refactos
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still downloads all videos
There is two approach, I have taken.
If it is downloading video in first approach, we can implement the second one. If second one is also not working then we can ask user to manually enter the video duration like you said earlier in this issue. |
In the issue I said to do 2. |
Okay, so should i remove the approach one? In the second approach i did some refactoring. I also added new package MP4Box. Is the solution okay? |
@sujal-into , We need to refato. You can consider this issue as standed by |
fix #1348