gst-plugins-rs/audio/spotify
Sebastian Dröge 04e101c605 Optimize various error message / debug message formatting
Directly make use of format strings instead of formatting a string
beforehand and then passing it to the macros.
2023-02-13 11:50:57 +02:00
..
src Optimize various error message / debug message formatting 2023-02-13 11:50:57 +02:00
build.rs add spotify plugin 2021-12-29 16:48:20 +01:00
Cargo.toml Update versions to 0.11.0-alpha.1 2023-02-10 00:23:56 +02:00
LICENSE-MPL-2.0 spotify: link the proper LICENSE file 2022-01-03 00:02:20 +01:00
README.md spotifyaudiosrc: implement URI handler 2022-10-18 08:31:59 +00:00

gst-plugins-spotify

This is a GStreamer plugin to read content from Spotify.

Make sure that your application follows Spotify's design guidelines to respect their legal/licensing restrictions.

Spotify Credentials

This plugin requires a Spotify Premium account configured with a device password.

You can then set the device username and password using the username and password properties.

You may also want to cache credentials and downloaded files, see the cache- properties on the element.

spotifyaudiosrc

The spotifyaudiosrc element can be used to play a song from Spotify using its Spotify URI.

gst-launch-1.0 spotifyaudiosrc username=$USERNAME password=$PASSWORD track=spotify:track:3i3P1mGpV9eRlfKccjDjwi ! oggdemux ! vorbisdec ! audioconvert ! autoaudiosink

The element also implements an URI handler which accepts credentials and cache settings as URI parameters:

gst-launch-1.0 playbin3 uri=spotify:track:3i3P1mGpV9eRlfKccjDjwi?username=$USERNAME\&password=$PASSWORD\&cache-credentials=cache\&cache-files=cache