Skip to content

handle peertube video url intent #4853

Open
@test2a

Description

@test2a

Checklist

Describe the feature you want

currently newpipe can play peertube urls just fine but cannot accept direct links from apps. as in, if i have to play a peertube video, i have to either search or copy url and paste in search to run.
i am proposing to add url intent just like "tubelab" a peertube android app does.
it looks for videos/watch in the url and tries to play it or throw to other apps if unable to.
look here.
https://framagit.org/tom79/fedilab-tube/-/commit/824c4e0cbbf693467d79ac4195611b10aeff10e5#e6606aeb8715512e114c47ddfcf04b979958e466_223_224

a simple regex

Pattern link = Pattern.compile("(https?://[\da-z.-]+\.[a-z.]{2,10})/videos/watch/(\w{8}-\w{4}-\w{4}-\w{4}-\w{12})$");

Is your feature request related to a problem? Please describe it

currently newpipe plays peertube videos but does not understand url intent like it does for youtube links. pressing any youtube url plays that video in newpipe or at least asks us to. not the case with peertube. they open in browser which is less than ideal.

Additional context

How will you/everyone benefit from this feature?

peertube compatibility would be better now that livestreaming is a thing on peertube.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssue is related to a feature in the apppeertubeService, https://joinpeertube.org/

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions