OOChannel.h
1 
9 #import "OOContentItem.h"
10 #import "OOPaginatedParentItem.h"
11 
12 @class OOOrderedDictionary;
13 @class OOVideo;
14 @class OOChannelSet;
15 @class OOOoyalaError;
16 
21 @protected
24 }
25 
26 @property(readonly, nonatomic, strong) NSString *nextChildren;
27 @property(readonly, nonatomic, strong) OOOrderedDictionary *videos;
28 @property(readonly, nonatomic, strong) OOChannelSet *parent;
37 - (instancetype)initWithDictionary:(NSDictionary *)data
38  embedCode:(NSString *)theEmbedCode
39  api:(OOPlayerAPIClient *)theAPI;
40 
49 - (instancetype)initWithDictionary:(NSDictionary *)data
50  embedCode:(NSString *)theEmbedCode
51  parent:(OOChannelSet *)theParent
52  api:(OOPlayerAPIClient *)theAPI;
53 
59 - (OOReturnState)updateWithDictionary:(NSDictionary *)data;
60 
65 - (OOVideo *)firstVideo;
66 
71 - (OOVideo *)lastVideo;
72 
78 - (OOVideo *)nextVideo:(OOVideo *)currentItem;
79 
85 - (OOVideo *)previousVideo:(OOVideo *)currentItem;
86 
93 - (OOVideo *)videoFromEmbedCode:(NSString *)embedCode withCurrentItem:(OOVideo *)currentItem;
94 
99 - (BOOL)hasMoreChildren;
100 
106 - (BOOL)fetchMoreChildren:(OOFetchMoreChildrenCallback)callback;
107 
112 - (void)fetchAndAuthorizeMoreChildren:(OOFetchMoreChildrenCallback)callback;
113 
118 - (NSUInteger)childrenCount;
119 
124 - (Float64)duration;
125 
126 @end
OOOrderedDictionary * videos
The OOChannel's videos (keyed by embed code)
Definition: OOChannel.h:22
OOOrderedDictionary.
Definition: OOOrderedDictionary.h:15
NSUInteger childrenCount()
The number of videos this OOChannel has.
OOVideo * lastVideo()
Get the last OOVideo for this OOChannel.
BOOL hasMoreChildren()
Find out it this OOChannel has more children.
A OOContentItem which contains channels, representing a single channel set as defined in Backlot...
Definition: OOChannelSet.h:19
Represents an error in the Ooyala SDK.
Definition: OOOoyalaError.h:56
OOChannelSet * parent
This OOChannel's parent OOChannelSet if it exists.
Definition: OOChannel.h:23
A single playable content item, such as video.
Definition: OOContentItem.h:20
OOVideo * firstVideo()
Get the first OOVideo for this OOChannel.
A OOContentItem which contains other items, representing a single channel as defined in Backlot...
Definition: OOChannel.h:20
Float64 duration()
The total duration (not including Ads) of this OOChannel.
Definition: OOPaginatedParentItem.h:7
this class implements video stream object
Definition: OOVideo.h:22