A OOContentItem which contains other items, representing a single channel as defined in Backlot. More...

#import "OOChannel.h"

+ Inheritance diagram for OOChannel:

Instance Methods

(instancetype) - initWithDictionary:embedCode:api:
 
(instancetype) - initWithDictionary:embedCode:parent:api:
 
(OOReturnState) - updateWithDictionary:
 
(OOVideo *) - firstVideo
 Get the first OOVideo for this OOChannel. More...
 
(OOVideo *) - lastVideo
 Get the last OOVideo for this OOChannel. More...
 
(OOVideo *) - nextVideo:
 
(OOVideo *) - previousVideo:
 
(OOVideo *) - videoFromEmbedCode:withCurrentItem:
 
(BOOL) - hasMoreChildren
 Find out it this OOChannel has more children. More...
 
(BOOL) - fetchMoreChildren:
 Fetch the additional children if they exist. More...
 
(void) - fetchAndAuthorizeMoreChildren:
 
(NSUInteger) - childrenCount
 The number of videos this OOChannel has. More...
 
(Float64) - duration
 The total duration (not including Ads) of this OOChannel. More...
 
- Instance Methods inherited from OOContentItem
(instancetype) - initWithEmbedCode:title:description:
 Initialize a OOContentItem. More...
 
(NSString *) - getPromoImageURLForWidth:height:
 Get the promo image URL for this content item that will be at least the specified dimensions. More...
 
(NSArray *) - embedCodesToAuthorize
 
- Instance Methods inherited from <OOPaginatedParentItem>
(NSString *) - embedCode
 The OOPaginatedParentItem's Embed Code. More...
 
(NSString *) - nextChildren
 

Protected Attributes

OOOrderedDictionaryvideos
 The OOChannel's videos (keyed by embed code) More...
 
OOChannelSetparent
 This OOChannel's parent OOChannelSet if it exists. More...
 
- Protected Attributes inherited from OOContentItem
NSString * embedCode
 The OOContentItem's Embed Code. More...
 
NSString * externalId
 The OOContentItem's External ID if it exists. More...
 
NSString * title
 The OOContentItem's Title. More...
 
NSString * itemDescription
 The OOContentItem's Description. More...
 
NSString * promoImageURL
 The OOContentItem's Promo Image URL. More...
 
NSString * hostedAtURL
 The OOContentItem's Hosted At URL. More...
 
OOPlayerAPIClient * api
 
BOOL authorized
 Whether or not this OOContentItem is authorized. More...
 
BOOL haEnabled
 
OOAuthCode authCode
 The response code from the authorize call. More...
 
SsaiMetadata * ssaiMetadata
 
NSString * contentType
 

Properties

NSString * nextChildren
 
- Properties inherited from OOContentItem
NSDictionary * metadata
 
NSDictionary * moduleData
 
BOOL heartbeatRequired
 
OOFCCTVRatingtvRating
 
NSString * assetPcode
 The OOContentItem's Promo Image URL. More...
 
NSDictionary * movieAttributes
 
BOOL needsMidStreamCheck
 
int midStreamCheckInterval
 
NSMutableArray * externalAds
 

Additional Inherited Members

- Class Methods inherited from OOContentItem
(OOContentItem *) + contentItemFromDictionary:embedCode:api:
 
(OOContentItem *) + contentItemFromDictionary:embedCodes:api:
 

Detailed Description

A OOContentItem which contains other items, representing a single channel as defined in Backlot.

OOChannel.

OOChannel.h in OoyalaSDK

Method Documentation

- (NSUInteger) childrenCount

The number of videos this OOChannel has.

Same as [videos count].

Returns
an NSUInteger with the number of videos

Reimplemented from <OOPaginatedParentItem>.

- (Float64) duration

The total duration (not including Ads) of this OOChannel.

Returns
an Float64 with the total duration in seconds

Reimplemented from OOContentItem.

Reimplemented in OODynamicChannel.

- (void) fetchAndAuthorizeMoreChildren: (OOFetchMoreChildrenCallback)  callback
- (BOOL) fetchMoreChildren: (OOFetchMoreChildrenCallback)  callback

Fetch the additional children if they exist.

This will happen in the background and callback will be called when the fetch is complete.

Parameters
[in]callbackthe callback to execute when the children are fetched
Returns
YES if more children exist, NO if they don't or they are already in the process of being fetched

Reimplemented from <OOPaginatedParentItem>.

- (OOVideo *) firstVideo

Get the first OOVideo for this OOChannel.

Returns
the first OOVideo this OOChannel represents

Reimplemented from OOContentItem.

- (BOOL) hasMoreChildren

Find out it this OOChannel has more children.

Returns
YES if it does, NO if it doesn't

Reimplemented from <OOPaginatedParentItem>.

- (instancetype) initWithDictionary: (NSDictionary *)  data
embedCode: (NSString *)  theEmbedCode
api: (OOPlayerAPIClient *)  theAPI 

Reimplemented from OOContentItem.

- (instancetype) initWithDictionary: (NSDictionary *)  data
embedCode: (NSString *)  theEmbedCode
parent: (OOChannelSet *)  theParent
api: (OOPlayerAPIClient *)  theAPI 
- (OOVideo *) lastVideo

Get the last OOVideo for this OOChannel.

Returns
the last OOVideo this OOChannel represents
- (OOVideo *) nextVideo: (OOVideo *)  currentItem
- (OOVideo *) previousVideo: (OOVideo *)  currentItem
- (OOReturnState) updateWithDictionary: (NSDictionary *)  data

Reimplemented from OOContentItem.

Reimplemented in OODynamicChannel.

- (OOVideo *) videoFromEmbedCode: (NSString *)  embedCode
withCurrentItem: (OOVideo *)  currentItem 

Reimplemented from OOContentItem.

Member Data Documentation

- (OOChannelSet *) parent
readnonatomicstrongprotected

This OOChannel's parent OOChannelSet if it exists.

- (OOOrderedDictionary *) videos
readnonatomicstrongprotected

The OOChannel's videos (keyed by embed code)

Property Documentation

- (NSString*) nextChildren
readnonatomicstrong

The documentation for this class was generated from the following file: