FreeTubeApp / FreeTube

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

[Feature Request]: Support for clips #4323

Open CalAlaera opened 11 months ago

CalAlaera commented 11 months ago

Guidelines

Problem Description

YouTube clips have a URL that looks like https://youtube.com/clip/UgkxxPM3BRphCAPLP88YoUGuj79KXPfpNNO_ and point to a short segment of a much longer video (in this case, a 13-second snippet out of a several-hours-long video).

They're a way for people to easily share moments from longer videos with their friends.

It would be great if FreeTube could support them, please.

Proposed Solution

It would be sufficient for FreeTube to discover the larger video's URL and the clip's start timestamp, and start playing the larger video at the appropriate time using existing features.

Alternatives Considered

The way YouTube handles this is to pause at the end of the clip (whether that's stored as a timestamp or as a duration, I don't know) and allow the user to click to continue playing the video from there. This could be implemented by automatically pausing the video at the end of the clip. However, this would merely be a "nice-to-have", as clips cannot be longer than I think a minute - short enough that it should be obvious from context what part of the video the sharer intended to share.

Issue Labels

new feature

Additional Information

No response

absidue commented 11 months ago

The provided link shows a page not available error page when visited in a browser. Could you please provide a working URL example?

CalAlaera commented 11 months ago

@absidue Github chopped off the trailing underscore. Try https://youtube.com/clip/UgkxxPM3BRphCAPLP88YoUGuj79KXPfpNNO_.