37 NSDictionary *dictionary;
51- (instancetype)init:(NSDictionary*)mediaDictionary withStreams:(NSArray*)streams withChapters:(NSArray*)chapters{
54 dictionary = mediaDictionary;
62- (NSString*)getFilename {
63 return [
self getStringFormatProperty:MediaKeyFilename];
66- (NSString*)getFormat {
67 return [
self getStringFormatProperty:MediaKeyFormat];
70- (NSString*)getLongFormat {
71 return [
self getStringFormatProperty:MediaKeyFormatLong];
74- (NSString*)getStartTime {
75 return [
self getStringFormatProperty:MediaKeyStartTime];
78- (NSString*)getDuration {
79 return [
self getStringFormatProperty:MediaKeyDuration];
83 return [
self getStringFormatProperty:MediaKeySize];
86- (NSString*)getBitrate {
87 return [
self getStringFormatProperty:MediaKeyBitRate];
90- (NSDictionary*)getTags {
91 return [
self getFormatProperty:MediaKeyTags];
94- (NSArray*)getStreams {
98- (NSArray*)getChapters {
102- (NSString*)getStringProperty:(NSString*)key {
103 NSDictionary* allProperties = [
self getAllProperties];
104 if (allProperties == nil) {
108 return allProperties[key];
111- (NSNumber*)getNumberProperty:(NSString*)key {
112 NSDictionary* allProperties = [
self getAllProperties];
113 if (allProperties == nil) {
117 return allProperties[key];
120- (id)getProperty:(NSString*)key {
121 NSDictionary* allProperties = [
self getAllProperties];
122 if (allProperties == nil) {
126 return allProperties[key];
129- (NSString*)getStringFormatProperty:(NSString*)key {
130 NSDictionary* formatProperties = [
self getFormatProperties];
131 if (formatProperties == nil) {
135 return formatProperties[key];
138- (NSNumber*)getNumberFormatProperty:(NSString*)key {
139 NSDictionary* formatProperties = [
self getFormatProperties];
140 if (formatProperties == nil) {
144 return formatProperties[key];
147- (id)getFormatProperty:(NSString*)key {
148 NSDictionary* formatProperties = [
self getFormatProperties];
149 if (formatProperties == nil) {
153 return formatProperties[key];
156- (NSDictionary*)getFormatProperties {
157 return dictionary[MediaKeyFormatProperties];
160- (NSDictionary*)getAllProperties {