11 unstable releases (5 breaking)

0.12.3 Mar 21, 2024
0.11.1 Oct 4, 2023
0.10.7 May 9, 2023
0.10.0 Feb 9, 2023
0.8.0 Jan 16, 2022

#436 in Audio

Download history 1/week @ 2024-02-08 41/week @ 2024-02-22 8/week @ 2024-02-29 117/week @ 2024-03-21 41/week @ 2024-03-28 22/week @ 2024-04-04

180 downloads per month

MPL-2.0 license

28KB
573 lines

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. If your account is linked with Facebook, you'll need to setup a device username and password.

Those username and password are then set 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

Dependencies

~27–43MB
~745K SLoC