| 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
26 extern NSString* const MediaKeyMediaProperties;
27 extern NSString* const MediaKeyFilename;
28 extern NSString* const MediaKeyFormat;
29 extern NSString* const MediaKeyFormatLong;
30 extern NSString* const MediaKeyStartTime;
31 extern NSString* const MediaKeyDuration;
32 extern NSString* const MediaKeySize;
33 extern NSString* const MediaKeyBitRate;
34 extern 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
MediaKeyBitRate
NSString *const MediaKeyBitRate
Definition: MediaInformation.m:29
MediaKeyDuration
NSString *const MediaKeyDuration
Definition: MediaInformation.m:27
MediaKeyTags
NSString *const MediaKeyTags
Definition: MediaInformation.m:30
MediaKeyFormat
NSString *const MediaKeyFormat
Definition: MediaInformation.m:24
MediaKeyFormatLong
NSString *const MediaKeyFormatLong
Definition: MediaInformation.m:25
MediaKeyStartTime
NSString *const MediaKeyStartTime
Definition: MediaInformation.m:26
MediaKeySize
NSString *const MediaKeySize
Definition: MediaInformation.m:28
MediaKeyFilename
NSString *const MediaKeyFilename
Definition: MediaInformation.m:23
MediaKeyMediaProperties
NSString *const MediaKeyMediaProperties
Definition: MediaInformation.m:22
StreamInformation.h
MediaInformation
Definition: MediaInformation.h:40
-[MediaInformation getTags]
NSDictionary * getTags()
Definition: MediaInformation.m:84
-[MediaInformation getSize]
NSString * getSize()
Definition: MediaInformation.m:76
-[MediaInformation getFilename]
NSString * getFilename()
Definition: MediaInformation.m:56
-[MediaInformation getMediaProperties]
NSDictionary * getMediaProperties()
Definition: MediaInformation.m:119
-[MediaInformation getStreams]
NSArray * getStreams()
Definition: MediaInformation.m:88
-[MediaInformation getFormat]
NSString * getFormat()
Definition: MediaInformation.m:60
-[MediaInformation getLongFormat]
NSString * getLongFormat()
Definition: MediaInformation.m:64
-[MediaInformation getBitrate]
NSString * getBitrate()
Definition: MediaInformation.m:80
-[MediaInformation getDuration]
NSString * getDuration()
Definition: MediaInformation.m:72
-[MediaInformation getAllProperties]
NSDictionary * getAllProperties()
Definition: MediaInformation.m:123
-[MediaInformation getStartTime]
NSString * getStartTime()
Definition: MediaInformation.m:68