-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Feat 1322 Initial Prototype Code Review #6266
Conversation
@Chocobozzz Hello. I've submitted to get some feedback on the design. Would appreciate your guidance as this is my first contribution. |
@Chocobozzz Hello. Just following up to see if there is anything more I can do on this request or if I'm headed in the right direction. Thanks. |
Hi @kntndrsn and sorry for the late review. Can we imagine using the embed player instead of using directly With this method everything is built in the client so you don't need to add another route to generate the thumbnail on server side + we don't have to maintain another video.js instantiation and just use the classic peertube embed. |
@Chocobozzz Thank you for the feedback. I can try this out to see how it goes. I did experiment with grabbing a frame from the video but didn't go that way for two reasons.
Those points aside, this approach could simplify the code significantly, so I'll set it up in a fresh branch to see how it could be. |
Hi, |
@kntndrsn Do you have any blocking points to close this PR? |
No issue at this point. I have a new branch for the alternative approach recommended. I'll submit a new PR from that location. I just didn't want to leave this one hanging. |
Description
This is a prototype of the Thumbnail/Preview selection from video frame feature documented in #1322. I need some initial feedback on the design to verify this aligns with your expectations.
I've created a new ThumbnailManagerComponent with a FrameSelectorComponent component.
The Thumbnail Manager has two features:
On the back-end, I've implemented a new controller for thumbnails. Currently I just have a PUT method that gets the image and updates. Another way we could do would be to implement a GET that could return images in a compatible format to preview for the user, then update the thumbnail when the Update button for the page is clicked.
Related issues
#1322
Has this been tested?
Screenshots