IndexedAudioSource.h 710 B

12345678910111213141516171819202122
  1. #import "AudioSource.h"
  2. #import "IndexedPlayerItem.h"
  3. #import <Flutter/Flutter.h>
  4. #import <AVFoundation/AVFoundation.h>
  5. @interface IndexedAudioSource : AudioSource
  6. @property (readonly, nonatomic) IndexedPlayerItem *playerItem;
  7. @property (readwrite, nonatomic) CMTime duration;
  8. @property (readonly, nonatomic) CMTime position;
  9. @property (readonly, nonatomic) CMTime bufferedPosition;
  10. @property (readonly, nonatomic) BOOL isAttached;
  11. - (void)attach:(AVQueuePlayer *)player;
  12. - (void)play:(AVQueuePlayer *)player;
  13. - (void)pause:(AVQueuePlayer *)player;
  14. - (void)stop:(AVQueuePlayer *)player;
  15. - (void)seek:(CMTime)position;
  16. - (void)seek:(CMTime)position completionHandler:(void (^)(BOOL))completionHandler;
  17. @end