doublesymmetry / react-native-track-player

A fully fledged audio module created for music apps. Provides audio playback, external media controls, background mode and more!
https://rntp.dev/
Apache License 2.0
3.27k stars 1.01k forks source link

Playing SpotifyURI #396

Closed JakeMotta closed 5 years ago

JakeMotta commented 5 years ago

Hello All,

Does anyone know of any way to play a SpotifyURI using 'react-native-track-player'? I was able to get everything setup and working properly while using the Spotify Preview URL, but I'm not sure how to get the full track to play for an authenticated Spotify Premium user.

Side Note: I am able to play the full track using 'rn-spotify-sdk' library, but then I run into the issue of being unable to play music in the background (when app is minimized or in lock-screen).

Any advice is appreciated!

Guichaguri commented 5 years ago

Spotify doesn't allow custom players, regular URLs as input would only work for previews. You have to integrate their own Player SDK, which also requires the Spotify app installed.

We thought in the past about creating an "addon module" that added Spotify integration, we might still do it in the future, but for now that's not planned due to its limitations.

vjhameed commented 4 years ago

Would you please let us know how can we use just the notification from your player ? so that we can use spotify sdk to play tracks and notification from your player to display controls

kuabhish commented 3 years ago

Hey @JakeMotta Were you successful? If yes. Can you please tell me how?

rein96 commented 1 year ago

Hi @JakeMotta

How's the progress? I also want to play the preview_url from Spotify data

From what I see, it's not possible with this library (please CMIIW)

I also will try the react-native-spotify-remote library