public static void AddToQueue(Context context, long[] list, long sourceId, MusicUtils.SourceTypeId sourceType) { if (!IsPlaybackConnected) { return; } try { Service.Enqueue(list, MusicService.LAST, sourceId, (int)sourceType); Toast.MakeText(context, "Added Successfully", ToastLength.Short).Show(); } catch { } }
public static void PlayNext(Context context, long[] list, long sourceId, MusicUtils.SourceTypeId sourceType) { if (Service == null) { return; } try { Service.Enqueue(list, MusicService.NEXT, sourceId, (int)sourceType); Toast.MakeText(context, "Added successfully", ToastLength.Short).Show(); } catch { } }