OOPlayer.h
1 
9 #import <Foundation/Foundation.h>
10 #import <UIKit/UIKit.h>
11 
12 #import "OOOoyalaError.h"
13 #import "OOPlayerProtocol.h"
14 #import "OOLifeCycle.h"
15 #import "OOAudioTrackSelectionProtocol.h"
16 #import "OOPlaybackSpeedSelectionProtocol.h"
17 
18 #ifndef OOPlayer_h
19 #define OOPlayer_h
20 
21 @interface OOPlayer : NSObject<OOPlayerProtocol, OOLifeCycle, OOAudioTrackSelectionProtocol, OOPlaybackSpeedSelectionProtocol> { // really, an Abstract class.
22 @protected
24  UIView *view;
25  BOOL completed;
27 }
28 
29 extern NSString *const PlayerErrorNotification;
30 
31 @property (nonatomic) Float64 playheadTime;
32 @property (nonatomic, readonly) OOOoyalaError *playerError;
33 @property (nonatomic, readonly) UIView *view;
34 @property (nonatomic) BOOL completed;
35 
36 - (BOOL)isPlaying;
37 
39 
40 - (CMTimeRange)seekableTimeRange;
41 
42 - (CGRect)videoRect;
43 
44 - (void)setState:(OOOoyalaPlayerState)state;
45 
46 @end
47 
48 #endif /* OOPlayer_h */
CMTimeRange seekableTimeRange()
BOOL completed
Definition: OOPlayer.h:25
BOOL supportsVideoGravityButton
Definition: OOPlayer.h:26
BOOL isPlaying()
NSString *const PlayerErrorNotification
Definition: OOPlayer.h:29
CGRect videoRect()
BOOL isAudioOnlyStreamPlaying()
Float64 playheadTime()
Get the current playhead time.
Handle events around the lifecycle of the OOOoyalaPlayer.
Definition: OOLifeCycle.h:10
OOOoyalaError * playerError
KVO compatible playhead time.
Definition: OOPlayer.h:23
Represents an error in the Ooyala SDK.
Definition: OOOoyalaError.h:56
UIView * view
Definition: OOPlayer.h:24
OOPlayer.
Definition: OOPlayer.h:21
Definition: OOPlayerProtocol.h:17