TeamNewPipe / NewPipe

A libre lightweight streaming front-end for Android.
https://newpipe.net
GNU General Public License v3.0
31.39k stars 3.06k forks source link

[Feature request] Make newpipe be recognized by the system as a music player #880

Closed Kurolox closed 5 years ago

Kurolox commented 6 years ago

I've seen that stuff like gadgetbridge doesn't recognize newpipe as a music player. I don't have any knowledge about android development, but I feel like if newpipe was somehow flagged as a music player system-wide, wearables could get metadata from the videos playing, among other stuff.

theScrabi commented 6 years ago

Yes that should actually be done.

ghost commented 6 years ago

This is a really small great improvement you could make. I'd love to be able to control NewPipe with my smartwatch! Thanks team!

theScrabi commented 6 years ago

Yep also I don't think its to hard to do.

ghost commented 6 years ago

when do they work on this? would be good to pause or play automatically from the button of my bluetooth headphones the music of youtube/soundcloud :stuck_out_tongue_closed_eyes:

ghost commented 6 years ago

also, if this is implemented after the playlists. make the option of when you press play on your headphones when there are no videos loaded they automatically load a playlist that you have made on the background player. it's just an idea

radiocane commented 6 years ago

This looks related https://stackoverflow.com/questions/15527614/send-track-informations-via-a2dp-avrcp

theScrabi commented 6 years ago

@radiocane thx :D

Our latest version has a working media session. With this you can control NewPipe from external devices like a headset or an external player (so far I only tried it with headset). Could you guys please test if this working media session may also have fixed these issues here.

radiocane commented 6 years ago

@theScrabi I opened a new issue #1507

theScrabi commented 6 years ago

@radiocane but you where able to control NewPipe from your car?

miztermiyagi commented 6 years ago

I love newpipe, it would be incredible to be able to skip/pause/play songs from my WearOS watch. (Ticwatch E)

theScrabi commented 6 years ago

I love newpipe, it would be incredible to be able to skip/pause/play songs from my WearOS watch. (Ticwatch E)

Isn't this possible since we implemented media session? @miztermiyagi have you tried it with the lastest versoion of NewPipe?

miztermiyagi commented 6 years ago

@theScarab I tried a Bluetooth remote app, but all it did was let me open new pope, there the skip and play functions did it work. Can you suggest which app on my watch I should use to test it?

theScrabi commented 6 years ago

I don't know I never used WearOS, but if it does not work with the system included player it does not work correctly.

ildar commented 6 years ago

it does not (correctly) on my KK. Will test more later

Kurolox commented 6 years ago

I've been testing with my Gear S3 Frontier, and it seems like it mostly works for me. I can pause, go to the previous and next song, and even select any video in a playlist. The only thing that doesn't seem to work properly is that it doesn't fetch the metadata from the song currently playing (song name, artist, cover image...)

Besides that, it seems to offer better integration on the S3 than the official youtube app. It shows the metadata properly, but unlike newpipe it doesn't let you select any song from a playlist. Will attach screenshots to show the difference.

Edit: Here are the pictures showcasing the actual state on my Gear S3. This is the actual youtube app. Notice the background image and the metadata of the song at the bottom. image

Now here's the exact same playlist playing the exact same video on NewPipe. The controls work properly, but there's no metadata about the song on the watch. image

However, notice the small arrow at the bottom. When you slide up, it will show the metadata of all songs in the playlist, and it will allow you to pick any song on the playlist. image

When I made this enhancement request about half a year ago, I was actually using a Pebble Time, so if I get some time later I'll set it up again and check the compatibility on it too.

Also, I should add, I've tried the controls both with newpipe playing in the front, and playing in background mode.

theScrabi commented 6 years ago

Hm :) that sounds good :) Hopefully this is not an exception. Android segmentation you know :/

Well next thing to fix the meta info :)

ildar commented 6 years ago

This functionality misbehaves in windowed mode. If I lock the screen it goes on playing but the media buttons spawn a non-working audio-only player.

Should I open a separate issue on this?

theScrabi commented 6 years ago

Yes

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Stypox commented 5 years ago

This was added in #2080