AudioServicePlugin.h 958 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #import <FlutterMacOS/FlutterMacOS.h>
  2. @interface AudioServicePlugin : NSObject<FlutterPlugin>
  3. @end
  4. enum AudioProcessingState {
  5. none,
  6. connecting,
  7. ready,
  8. buffering,
  9. fastForwarding,
  10. rewinding,
  11. skippingToPrevious,
  12. skippingToNext,
  13. skippingToQueueItem,
  14. completed,
  15. stopped,
  16. error
  17. };
  18. enum AudioInterruption {
  19. AIPause,
  20. AITemporaryPause,
  21. AITemporaryDuck,
  22. AIUnknownPause
  23. };
  24. enum MediaAction {
  25. AStop,
  26. APause,
  27. APlay,
  28. ARewind,
  29. ASkipToPrevious,
  30. ASkipToNext,
  31. AFastForward,
  32. ASetRating,
  33. ASeekTo,
  34. APlayPause,
  35. APlayFromMediaId,
  36. APlayFromSearch,
  37. ASkipToQueueItem,
  38. APlayFromUri,
  39. APrepare,
  40. APrepareFromMediaId,
  41. APrepareFromSearch,
  42. APrepareFromUri,
  43. ASetRepeatMode,
  44. AUnused_1, // deprecated (setShuffleModeEnabled)
  45. AUnused_2, // setCaptioningEnabled
  46. ASetShuffleMode,
  47. // Non-standard
  48. ASeekBackward,
  49. ASeekForward,
  50. };