MediaInformation.h
Go to the documentation of this file.
/*
* Copyright (c) 2018-2021 Taner Sener
*
* This file is part of FFmpegKit.
*
* FFmpegKit is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* FFmpegKit is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with FFmpegKit. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef FFMPEG_KIT_MEDIA_INFORMATION_H
#define FFMPEG_KIT_MEDIA_INFORMATION_H
#import <Foundation/Foundation.h>
#import "StreamInformation.h"
extern NSString* const MediaKeyMediaProperties;
extern NSString* const MediaKeyFilename;
extern NSString* const MediaKeyFormat;
extern NSString* const MediaKeyFormatLong;
extern NSString* const MediaKeyStartTime;
extern NSString* const MediaKeyDuration;
extern NSString* const MediaKeySize;
extern NSString* const MediaKeyBitRate;
extern NSString* const MediaKeyTags;
@interface MediaInformation : NSObject
- (instancetype)init:(NSDictionary*)mediaDictionary withStreams:(NSArray*)streams;
- (NSString*)getFilename;
- (NSString*)getFormat;
- (NSString*)getLongFormat;
- (NSString*)getDuration;
- (NSString*)getStartTime;
- (NSString*)getSize;
- (NSString*)getBitrate;
- (NSDictionary*)getTags;
- (NSArray*)getStreams;
- (NSString*)getStringProperty:(NSString*)key;
- (NSNumber*)getNumberProperty:(NSString*)key;
- (NSDictionary*)getProperties:(NSString*)key;
- (NSDictionary*)getMediaProperties;
- (NSDictionary*)getAllProperties;
@end
#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