FFmpegKit iOS / macOS / tvOS API 5.1
MediaInformation.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018-2022 Taner Sener
3 *
4 * This file is part of FFmpegKit.
5 *
6 * FFmpegKit is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * FFmpegKit is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with FFmpegKit. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef FFMPEG_KIT_MEDIA_INFORMATION_H
21#define FFMPEG_KIT_MEDIA_INFORMATION_H
22
23#import <Foundation/Foundation.h>
24#import "Chapter.h"
25#import "StreamInformation.h"
26
27extern NSString* const MediaKeyMediaProperties;
28extern NSString* const MediaKeyFilename;
29extern NSString* const MediaKeyFormat;
30extern NSString* const MediaKeyFormatLong;
31extern NSString* const MediaKeyStartTime;
32extern NSString* const MediaKeyDuration;
33extern NSString* const MediaKeySize;
34extern NSString* const MediaKeyBitRate;
35extern NSString* const MediaKeyTags;
36
40@interface MediaInformation : NSObject
41
42- (instancetype)init:(NSDictionary*)mediaDictionary withStreams:(NSArray*)streams withChapters:(NSArray*)chapters;
43
49- (NSString*)getFilename;
50
56- (NSString*)getFormat;
57
63- (NSString*)getLongFormat;
64
70- (NSString*)getDuration;
71
77- (NSString*)getStartTime;
78
84- (NSString*)getSize;
85
91- (NSString*)getBitrate;
92
98- (NSDictionary*)getTags;
99
105- (NSArray*)getStreams;
106
112- (NSArray*)getChapters;
113
119- (NSString*)getStringProperty:(NSString*)key;
120
126- (NSNumber*)getNumberProperty:(NSString*)key;
127
133- (id)getProperty:(NSString*)key;
134
140- (NSString*)getStringFormatProperty:(NSString*)key;
141
147- (NSNumber*)getNumberFormatProperty:(NSString*)key;
148
154- (id)getFormatProperty:(NSString*)key;
155
161- (NSDictionary*)getFormatProperties;
162
168- (NSDictionary*)getAllProperties;
169
170@end
171
172#endif // FFMPEG_KIT_MEDIA_INFORMATION_H
NSString *const MediaKeyBitRate
NSString *const MediaKeyDuration
NSString *const MediaKeyTags
NSString *const MediaKeyFormat
NSString *const MediaKeyFormatLong
NSString *const MediaKeyStartTime
NSString *const MediaKeySize
NSString *const MediaKeyFilename
NSString *const MediaKeyMediaProperties
NSArray * getChapters()
NSDictionary * getTags()
NSString * getSize()
NSDictionary * getFormatProperties()
NSString * getFilename()
NSArray * getStreams()
NSString * getFormat()
NSString * getLongFormat()
NSString * getBitrate()
NSString * getDuration()
NSDictionary * getAllProperties()
NSString * getStartTime()