BradmaxPlayerSdk
BPSMMedia.h
1 #ifndef BPSMMedia_h
2 #define BPSMMedia_h
3 
4 #import <Foundation/Foundation.h>
5 #import "BPSMLiveStream.h"
6 
8 @interface BPSMMedia : NSObject
9 
11 @property NSString *id;
12 
14 @property NSString *title;
15 
17 @property NSNumber *duration;
18 
20 @property NSMutableArray *source;
21 
23 @property NSMutableArray *splashImages;
24 
26 @property NSString *mediaLandingPage;
27 
31 @property NSMutableArray *subtitlesSets;
32 
35 
36 + (BPSMMedia *) newWithMediaSource: (NSString *)mediaSourceUrl;
37 + (BPSMMedia *) newWithMediaSource: (NSString *)mediaSourceUrl
38  withSplashImage:(NSString *)splashImageUrl;
39 + (BPSMMedia *) newFromNSDictionary: (NSDictionary *)dict;
40 
41 - (NSDictionary *) toNSDictionary;
42 
43 @end
44 
45 #endif /* BPSMMedia_h */
NSString * title
Media asset title.
Definition: BPSMMedia.h:14
NSMutableArray * subtitlesSets
Subtitles configuration for subtitles not embedded in video stream (loading one language from single ...
Definition: BPSMMedia.h:31
NSString * id
Media asset id.
Definition: BPSMMedia.h:11
BPSMLiveStream * liveStream
Configuration holder for live stream transmission.
Definition: BPSMMedia.h:34
Configuration holder for liveStream transmission additonal configuration.
Definition: BPSMLiveStream.m:4
NSString * mediaLandingPage
Url pointing to media landing page.
Definition: BPSMMedia.h:26
NSNumber * duration
Media duration in seconds.
Definition: BPSMMedia.h:17
NSMutableArray * splashImages
Array of BPSMSplashImage objects.
Definition: BPSMMedia.h:23
NSMutableArray * source
Array of BPSMMediaSource objects.
Definition: BPSMMedia.h:20
Represents single video content. It can be in multiple formats and qualities.
Definition: BPSMMedia.m:8