FreeTubeApp / FreeTube

An Open Source YouTube app for privacy
https://freetubeapp.io/
GNU Affero General Public License v3.0
13.57k stars 848 forks source link

Skip to next video #1220

Open efb4f5ff-1298-471a-8973-3d47447115dc opened 3 years ago

efb4f5ff-1298-471a-8973-3d47447115dc commented 3 years ago

Is your feature request related to a usage problem (not a bug)? Please describe. Youtube / Freetube often get used as a music player. If a song comes up and u already listened to or u don't like it u can just press the button and skip to the next video.

Describe the solution you'd like to see implemented Integrate this feature into the player and also into PIP. If u are watching videos in a playlist this button should skip to the next video in the list.

This icon can be used for implementing it into the player. https://fontawesome.com/icons/step-forward?style=solid

Place the icon in the exact same position as seen in the screen. Place the icon in PIP on the right of play button.

It would be nice to have some kind of preview when u hover over the button. See second screenshot.

If #397 is implemented u also need to check if the video ur trying to skip to is already been watched or not. While autoplay is enabled and the video ur skipping to is already been watched then skip the video.

Screenshots FT #397

Screenshot (201)

KSterner2 commented 12 months ago

Hello there! I've been trying to work on this feature but I have some questions. It's still a work in progress but as of right now this is what I have for the function. The toggleNextVideo() function works but I can't grab the next video within the playlist.

Screenshot 2023-11-14 at 1 17 38 PM Screenshot 2023-11-14 at 1 17 58 PM

Here's what shows in the console for issues as well.

Screenshot 2023-11-14 at 1 32 41 PM

Heres what it looks like in FT:

Screenshot 2023-11-14 at 1 48 46 PM
kommunarr commented 11 months ago

Hi @KSterner2, I think you should be able to play the next video in a playlist by invoking the this.$refs.watchVideoPlaylist.playNextVideo() function.

KSterner2 commented 11 months ago

Thanks @jasonhenriquez ! I will add this and see what happens next.

kommunarr commented 11 months ago

Hi @KSterner2, we are currently going to be suspending changes on the video player for the time being while we are working on a larger overhaul of the feature. Thank you for your help and enthusiasm, and please take a look at any other open issues that you would like to contribute to. Thank you!

kommunarr commented 4 weeks ago

Hi @KSterner2, the video player changes are now complete if you still want to work on this!