modules/media/src/main/native/jfxmedia/platform/osx/OSXPlayerProtocol.h

Print this page
rev 7591 : RT-38074: [macosx] Separate QTKit platform code from core media code so it can be removed for MAS
Reviewed-by:


  33 #define kPlayerState_PAUSED 3
  34 #define kPlayerState_STOPPED 4
  35 #define kPlayerState_STALLED 5
  36 #define kPlayerState_FINISHED 6
  37 #define kPlayerState_HALTED 7
  38 
  39 
  40 @protocol OSXPlayerProtocol <NSObject>
  41 
  42 @required
  43 @property (nonatomic,assign) int64_t audioSyncDelay;
  44 
  45 @property (readonly) double duration;
  46 @property (nonatomic,assign) float rate;
  47 @property (nonatomic,assign) double currentTime; // set to seek
  48 
  49 @property (nonatomic,assign) BOOL mute;
  50 @property (nonatomic,assign) float volume;
  51 @property (nonatomic,assign) float balance;
  52 


  53 - (void) play;
  54 - (void) pause;
  55 - (void) stop;
  56 - (void) finish;
  57 
  58 - (void) dispose;
  59 
  60 @end


  33 #define kPlayerState_PAUSED 3
  34 #define kPlayerState_STOPPED 4
  35 #define kPlayerState_STALLED 5
  36 #define kPlayerState_FINISHED 6
  37 #define kPlayerState_HALTED 7
  38 
  39 
  40 @protocol OSXPlayerProtocol <NSObject>
  41 
  42 @required
  43 @property (nonatomic,assign) int64_t audioSyncDelay;
  44 
  45 @property (readonly) double duration;
  46 @property (nonatomic,assign) float rate;
  47 @property (nonatomic,assign) double currentTime; // set to seek
  48 
  49 @property (nonatomic,assign) BOOL mute;
  50 @property (nonatomic,assign) float volume;
  51 @property (nonatomic,assign) float balance;
  52 
  53 - (id) initWithURL:(NSURL *)source eventHandler:(CJavaPlayerEventDispatcher*)hdlr;
  54 
  55 - (void) play;
  56 - (void) pause;
  57 - (void) stop;
  58 - (void) finish;
  59 
  60 - (void) dispose;
  61 
  62 @end