addToPlaylist method
Used to add a specific song/audio to a specific Playlist
Parameters:
playlistId
is used to check if Playlist exist.audioId
is used to add specific audio to Playlist.
Platforms:
Android | IOS | Web |
---|---|---|
✔️ |
✔️ |
❌ |
See more about platforms support
Implementation
Future<bool> addToPlaylist(int playlistId, int audioId) async {
return platform.addToPlaylist(playlistId, audioId);
}