jellyfin_playback_platform.dart 663 B

1234567891011121314151617181920212223242526272829
  1. import '../models/jellyfin_playback.dart';
  2. /// Android playback boundary. The native implementation owns the Media3
  3. /// service; tests use a fake that records commands and returns snapshots.
  4. abstract class JellyfinPlaybackPlatform {
  5. Future<bool> setQueue(JellyfinPlaybackQueue queue);
  6. Future<bool> play();
  7. Future<bool> pause();
  8. Future<bool> next();
  9. Future<bool> previous();
  10. Future<bool> seekToIndex(int index);
  11. Future<bool> seek(Duration position);
  12. Future<bool> stop();
  13. Future<JellyfinPlaybackSnapshot> getState();
  14. Future<bool> notificationPermissionGranted();
  15. Future<bool> requestNotificationPermission();
  16. void dispose() {}
  17. }