9 #import <Foundation/Foundation.h> 11 #import "OOReturnState.h" 20 typedef OOStream *(^OOStreamSelector)(NSArray *streams);
37 @property (readonly, nonatomic) NSString *
videoCodec;
38 @property (readonly, nonatomic) NSString *
urlFormat;
39 @property (readonly, nonatomic) NSString *
framerate;
42 @property (readonly, nonatomic) NSInteger
height;
43 @property (readonly, nonatomic) NSInteger
width;
44 @property (readonly, nonatomic) NSString *
url;
45 @property (readonly, nonatomic) NSString *
aspectRatio;
46 @property (readonly, nonatomic, assign) BOOL
isLiveStream;
47 @property (readonly, nonatomic) NSString *
profile;
49 @property (readonly, nonatomic) NSString *
drmType;
64 - (instancetype)initWithUrl:(NSURL *)theUrl deliveryType:(NSString *)theType;
71 - (instancetype)initWithDictionary:(NSDictionary *)data;
78 - (instancetype)initWithAssetDictionary:(NSDictionary *)data;
85 - (OOReturnState)updateWithDictionary:(NSDictionary *)data;
103 + (BOOL)isPlayable:(
OOStream *)stream;
109 + (BOOL)areSizeBitrateAndProfilePlayable:(
OOStream *)stream;
115 + (BOOL)isDeliveryTypePlayable:(
OOStream *)stream;
122 + (
OOStream *)streamFromDictionary:(NSDictionary *)data;
124 + (
OOStream *)streamFromUrl:(NSURL *)url withType:(NSString *)type;
131 + (
OOStream *)bestStreamFromArray:(NSArray *)streams;
133 + (BOOL)containsDeliveryType:(NSString *)type inArray:(NSArray *)streams;
135 + (
OOStream *)streamWithType:(NSString *)type fromArray:(NSArray *)streams;
141 + (void)setStreamSelector:(OOStreamSelector)selector;
NSString * profile
The OOStream's encoding profile.
Definition: OOStream.h:47
OOStream.
Definition: OOStream.h:22
NSString * videoCodec
The OOStream's video codec.
Definition: OOStream.h:24
NSString * url
The OOStream's URL in the format specified by OOStream.urlFormat.
Definition: OOStream.h:31
NSInteger combinedBitrate()
Get the combined (video+audio) bitrate of this OOStream.
NSString * deliveryType
The OOStream's delivery type.
Definition: OOStream.h:23
NSString * certificateUrl
If drm protected, The OOStream's certificate url.
Definition: OOStream.h:51
NSString * licenseUrl
If drm protected, The OOStream's license url.
Definition: OOStream.h:50
NSString * urlFormat
The OOStream's url format.
Definition: OOStream.h:25
BOOL isLiveStream
The OOStream's URL (Remote Asset only)
Definition: OOStream.h:33
NSInteger videoBitrate
The OOStream's video bitrate.
Definition: OOStream.h:27
NSString * aspectRatio
The OOStream's URL (Remote Asset only)
Definition: OOStream.h:32
NSString * framerate
The OOStream's framerate.
Definition: OOStream.h:26
NSInteger audioBitrate
The OOStream's audio bitrate.
Definition: OOStream.h:28
NSInteger width
The OOStream's width.
Definition: OOStream.h:30
void resetStreamSelector()
Reset the OOStreamSelector to the default.
NSString * drmType
If drm protected, The OOStream's drm type.
Definition: OOStream.h:49
NSInteger height
The OOStream's height.
Definition: OOStream.h:29