OOPlayerState.h
1 //
2 // OOPlayerState.h
3 // OoyalaSDK
4 //
5 // Copyright © 2018 Brightcove, Inc. All rights reserved.
6 //
7 
8 #import <Foundation/Foundation.h>
9 
10 #ifndef OOPlayerState_h
11 #define OOPlayerState_h
12 
16 typedef NS_ENUM(NSInteger, OOOoyalaPlayerVideoGravity) {
18  OOOoyalaPlayerVideoGravityResize,
20  OOOoyalaPlayerVideoGravityResizeAspect,
22  OOOoyalaPlayerVideoGravityResizeAspectFill
23 };
24 
28 typedef NS_ENUM(NSUInteger, OOOoyalaPlayerState) {
30  OOOoyalaPlayerStateInit,
32  OOOoyalaPlayerStateLoading,
34  OOOoyalaPlayerStateReady,
36  OOOoyalaPlayerStatePlaying,
38  OOOoyalaPlayerStatePaused,
40  OOOoyalaPlayerStateCompleted,
42  OOOoyalaPlayerStateError
43 };
44 
45 typedef NS_ENUM(NSInteger, OOOoyalaPlayerDesiredState) {
47  OOOoyalaPlayerDesiredStatePlaying,
49  OOOoyalaPlayerDesiredStatePaused,
50 };
51 
52 @interface OOOoyalaPlayerStateConverter : NSObject
58 + (NSString *)playerStateToString:(OOOoyalaPlayerState)state;
59 
65 + (NSString *)playerDesiredStateToString:(OOOoyalaPlayerDesiredState)desiredState;
66 @end
67 
68 
69 #endif /* OOPlayerState_h */
Definition: OOPlayerState.h:52