-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Add playlist panel to video player page #237
Conversation
c883897
to
4a469c6
Compare
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.
Looks good, works well, thank you!
Only a small interrogation. I'm not familiar at all with the nextTick
API, and I fail to find examples on the net on how to use this properly. Do we really need the two calls to nextTick
, once in the watch
and once in the method itself?
Maybe one question for @Popolechien: we have a setting at ZIM level regarding autoplay, which is used to decide if we want to autoplay the video every time a page is opened. By default, it is off. However, with the new UI in playlist mode we will now automatically move from one video to the next when the video is over. Do we still want to take into account the autoplay setting? I.e. if autoplay setting is false, when a video finishes, the UI moves automatically to the next video but video does not start. Or do we want to always start the next video automatically in such a situation? |
What does Youtube do? Unless we can make a compelling argument that our users are different from theirs, we should mimic YT's behaviour as much as possible (which may, at times, include things we at a personal level do not particularly enjoy). Autoplay it is, then. |
Agreed. Does it means we do not really need the "autoplay" setting at scraper level and could even imagine to get rid of it? Do you recall when / why it was introduced? I imagine it could be to save bandwidth (avoid loading the video if the user finally decides he does not want to see it) but I'm not sure it makes lot of sense in terms of usability. |
I think you wildly overestimate my technical involvement or even my ability to understand why certain technical choices are made. But thank you for that :-) I am pretty sure I don't understand the difference between autoplay and autoplay at scraper level, so I'll focus on the end result and simply ask that things, well, autoplay. |
@benoit74 Oops that's a mistake. Thanks for pointing it out. I must have duplicated it when doing some debugging and forgot to remove it. Removed it in 59b89cd. nextTick() is used to ensure that the automatic scrolling in the playlist panel happens after the DOM updates for loading the next video are completed. |
If there is anything else to fix please let me know or else I can squash and rebase. Should I remove the |
Please squash and rebase
Please update #233 by changing title and add a new comment saying that we've finally decided to |
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.
LGTM, please squash and rebase
59b89cd
to
7daef35
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #237 +/- ##
=====================================
Coverage 1.62% 1.62%
=====================================
Files 11 11
Lines 1049 1049
Branches 158 158
=====================================
Hits 17 17
Misses 1032 1032 ☔ View full report in Codecov by Sentry. |
Squash and rebase completed |
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.
Looks like rebase is not finished, your branch is still not on top of main
latest commit
7daef35
to
4af6500
Compare
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.
LGTM, thank you
This PR adds a playlist panel to the video player page.
list
query parameter in URL)Screenshot:

Closes #216