OOPlayerInfo.h
1 //
2 // OOPlayerInfo.h
3 // OoyalaSDK
4 //
5 // Copyright (c) 2015 Brightcove, Inc. All rights reserved.
6 //
7 
8 #import <Foundation/Foundation.h>
9 
15 @protocol OOPlayerInfo <NSObject>
16 
17 /*
18  A string representing the playback device.
19  ALWAYS SET THIS TO @"iphone-html5" until we release sas.ooyala.com
20  */
21 @property (nonatomic, readonly) NSString *device;
22 
23 /*
24  An NSArray of NSStrings describing supported content types for playback
25  HDS = @"hds"
26  RTMP = @"RTMP"
27  HLSs = @"m3u8"
28  MP4s = @"mp4"
29  AKAMAI HD = @"akamai_hd"
30  MS Smooth = @"smooth"
31 
32  return nil to not include this parameter
33  */
34 @property (nonatomic, readonly) NSArray *supportedFormats;
35 
36 /*
37  Supported h264 profiles
38  @"baseline"
39  @"main"
40  @"high"
41 
42  return nil to not support this parameter
43  */
44 @property (nonatomic, readonly) NSArray *supportedProfiles;
45 
46 // the max supported video width
47 // set to -1 to ignore
48 @property (nonatomic, readonly) int maxWidth;
49 
50 // the max supported video height
51 // set to -1 to ignore
52 @property (nonatomic, readonly) int maxHeight;
53 
54 // the max supported video bitrate
55 // set to -1 to ignore
56 @property (nonatomic, readonly) int maxBitrate;
57 
58 // the user Agent of this particular player
59 @property (nonatomic, readonly) NSString *userAgent;
60 
61 /*
62  Additional params send to the SAS request.
63  The dictionary should contain [NSString:NSString] key-value pairs.
64  The dictionary key will be the query param name and the value will be the value of that query param.
65  */
66 @property (nonatomic, readonly) NSDictionary *additionalParams;
67 
71 @property (nonatomic, readonly) BOOL isAudioOnly;
72 
73 @end