OOPlayerProtocol.h
1 //
2 // OOPlayerProtocol.h
3 // OoyalaSDK
4 //
5 // Copyright (c) 2015 Brightcove, Inc. All rights reserved.
6 //
7 
8 #import <Foundation/Foundation.h>
9 #import <CoreMedia/CMTimeRange.h>
10 #import "OOPlayerState.h"
11 
12 #ifndef OOPlayerProtocol_h
13 #define OOPlayerProtocol_h
14 
15 @class UIImage;
16 
17 @protocol OOPlayerProtocol<NSObject>
18 
23 - (BOOL)hasCustomControls;
24 
28 - (void)pause;
29 
33 - (void)play;
34 
38 - (void)stop;
39 
44 - (Float64)playheadTime;
45 
50 - (Float64)duration;
51 
56 - (Float64)buffer;
57 
62 - (void)seekToTime:(Float64)time;
63 
67 - (UIImage *)screenshot;
68 
69 - (void)setVideoGravity:(OOOoyalaPlayerVideoGravity)gravity;
70 
71 - (void)setClosedCaptionsLanguage:(NSString *)language;
72 
74 
80 @property (nonatomic, readonly) OOOoyalaPlayerState state;
81 @property (nonatomic) BOOL seekable;
82 @property (nonatomic, readonly) CMTimeRange seekableTimeRange;
83 @property (nonatomic) BOOL allowsExternalPlayback;
85 @property (nonatomic, readonly) BOOL externalPlaybackActive;
86 @property (nonatomic) float rate; // playback rate
87 @property (nonatomic, readonly) double bitrate;
88 @property (nonatomic, readonly) BOOL supportsVideoGravityButton;
89 @property (nonatomic, readonly, getter = isLiveClosedCaptionsAvailable) BOOL liveClosedCaptionsAvailable;
90 @property (nonatomic) float volume;
92 @end
93 
94 #endif // OOPlayerProtocol_h
float volume
Definition: OOPlayerProtocol.h:90
void stop()
This is called when stop is clicked.
BOOL liveClosedCaptionsAvailable
Definition: OOPlayerProtocol.h:89
BOOL externalPlaybackActive
Definition: OOPlayerProtocol.h:85
Float64 playheadTime()
Get the current playhead time.
BOOL supportsVideoGravityButton
Definition: OOPlayerProtocol.h:88
void pause()
This is called when pause is clicked.
float rate
Definition: OOPlayerProtocol.h:86
OOOoyalaPlayerState state
This returns the player state.
Definition: OOPlayerProtocol.h:80
Float64 duration()
Get the current item&#39;s duration.
UIImage * screenshot()
void play()
This is called when play is clicked.
Float64 buffer()
Get the current item&#39;s buffer.
CMTimeRange seekableTimeRange
Definition: OOPlayerProtocol.h:82
BOOL seekable
Definition: OOPlayerProtocol.h:81
BOOL allowsExternalPlayback
Definition: OOPlayerProtocol.h:83
double bitrate
Definition: OOPlayerProtocol.h:87
BOOL usesExternalPlaybackWhileExternalScreenIsActive
Definition: OOPlayerProtocol.h:84
void disablePlaylistClosedCaptions()
Definition: OOPlayerProtocol.h:17