spotify_sdk
4.3.4, released 4 weeks ago by tobibusch.dev
Flutter plugin for Spotify App Remote SDK and Web Playback SDK integration.
What it does
Wraps native iOS and Android Spotify Remote SDKs and the Web Playback SDK. Allows connecting to Spotify, controlling playback, fetching user libraries, and managing authentication tokens or authorization swap flows.
AI-written summary of version 4.3.4, based on the package's README and metadata. Report an inaccuracy
Use it when
- Building a Flutter app that requires remote control of the official Spotify app on Android or iOS.
- Integrating the Spotify Web Playback SDK for browser-based playback.
Skip it when
- Playing arbitrary local or remote audio streams without using Spotify.
- Running on platforms other than Android, iOS, and Web.
Strengths
- Supports Android, iOS, and Web platforms.
- Provides strongly-typed domain exceptions extending SpotifyException.
- Handles automatic Gradle resolution of Android SDK binaries.
Weaknesses
- Requires users to have Spotify Premium for certain SDK features like the Web Playback SDK.
- Native platform setups require manual redirect URI configurations and Spotify Developer Portal app registration.
Setup
- Kind
- Plugin (native code)
- Effort
- High
- Code generation
- No
- Direct dependencies
- 4
Requires registering your app in the Spotify Developer Portal, configuring redirect URIs, and setting up the RedirectUriReceiverActivity in AndroidManifest.xml for Android and Bundle ID/Redirect URI for iOS.
import 'package:spotify_sdk/spotify_sdk.dart';
await SpotifySdk.connectToSpotifyRemote(clientId: 'YOUR_CLIENT_ID', redirectUrl: 'YOUR_REDIRECT_URL');Alternatives
Packages that do the same job and could replace spotify_sdk.
- audiofileplayer
A Flutter plugin for audio playback.
30Compare - livekit_client
Flutter Client SDK for LiveKit to build real-time video, audio, and data features.
91Compare - mpv_audio_kit
Cross-platform audio player built on libmpv and FFmpeg.
84Compare - ffmpeg_kit_flutter_new_audio
Run FFmpeg and FFprobe commands from Dart with prebuilt audio codecs for multiple platforms.
79Compare