FFmpegKit iOS / macOS / tvOS API 4.5
MediaInformation.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018-2021 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 "StreamInformation.h"
25
26extern NSString* const MediaKeyMediaProperties;
27extern NSString* const MediaKeyFilename;
28extern NSString* const MediaKeyFormat;
29extern NSString* const MediaKeyFormatLong;
30extern NSString* const MediaKeyStartTime;
31extern NSString* const MediaKeyDuration;
32extern NSString* const MediaKeySize;
33extern NSString* const MediaKeyBitRate;
34extern NSString* const MediaKeyTags;
35
39@interface MediaInformation : NSObject
40
41- (instancetype)init:(NSDictionary*)mediaDictionary withStreams:(NSArray*)streams;
42
48- (NSString*)getFilename;
49
55- (NSString*)getFormat;
56
62- (NSString*)getLongFormat;
63
69- (NSString*)getDuration;
70
76- (NSString*)getStartTime;
77
83- (NSString*)getSize;
84
90- (NSString*)getBitrate;
91
97- (NSDictionary*)getTags;
98
104- (NSArray*)getStreams;
105
111- (NSString*)getStringProperty:(NSString*)key;
112
118- (NSNumber*)getNumberProperty:(NSString*)key;
119
125- (NSDictionary*)getProperties:(NSString*)key;
126
132- (NSDictionary*)getMediaProperties;
133
139- (NSDictionary*)getAllProperties;
140
141@end
142
143#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
NSDictionary * getTags()
NSString * getSize()
NSString * getFilename()
NSDictionary * getMediaProperties()
NSArray * getStreams()
NSString * getFormat()
NSString * getLongFormat()
NSString * getBitrate()
NSString * getDuration()
NSDictionary * getAllProperties()
NSString * getStartTime()