OOCastReceiverResponseManager.h
1 //
2 // OOCastReceiverResponseManager.h
3 // OoyalaCastSDK
4 //
5 // Created on 9/25/18.
6 // Copyright © 2018 Brightcove, Inc. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import <AVFoundation/AVFoundation.h>
11 
15 typedef NS_ENUM(NSInteger, OOCastReceiverEvent) {
16  Downloading,
17  PlayheadTimeChanged,
18  PlaybackReady,
19  Buffering,
20  Playing,
21  StreamPlaying,
22  Paused,
23  ContentTreeFetched,
24  ClosedCaptionsInfoAvailable,
25  Seeked,
26  Played,
27  Unknown
28 };
29 
30 @interface OOCastReceiverResponseManager : NSObject
31 
32 - (instancetype)init __attribute__((unavailable("init not available")));
33 
34 + (OOCastReceiverEvent)eventTypeFromString:(NSString *)stringType;
35 
36 + (BOOL)playheadTimeChangedInJSON:(NSDictionary *)json;
37 + (float)playheadDurationFromJSON:(NSDictionary *)json;
38 + (float)durationFromJSON:(NSDictionary *)json;
39 + (CMTimeRange)seekableTimeRangeFromJSON:(NSDictionary *)json;
40 
41 + (NSString *)embedCodeFromContentTree:(NSDictionary *)json;
42 + (float)contentTreeDurationFromJSON:(NSDictionary *)json;
43 
44 + (NSString *)closedCaptionsLanguageFromJSON:(NSDictionary *)json;
45 
46 + (NSString *)errorFromJSON:(NSDictionary *)json;
47 + (NSString *)playerStateFromJSON:(NSDictionary *)json;
48 + (NSString *)eventFromJSON:(NSDictionary *)json;
49 
50 @end
Definition: OOCastReceiverResponseManager.h:30
(unavailable("init not available" __attribute__()