| FFmpegKit iOS / macOS / tvOS API 4.5

MediaInformationSession.m
Go to the documentation of this file.
1/*
2 * Copyright (c) 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 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 License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General License
17 * along with FFmpegKit. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#import "ExecuteCallback.h"
21#import "LogCallback.h"
22#import "MediaInformation.h"
23#import "MediaInformationSession.h"
24
25@implementation MediaInformationSession {
26 MediaInformation* _mediaInformation;
27}
28
29+ (void)initialize {
30 // EMPTY INITIALIZE
31}
32
33- (instancetype)init:(NSArray*)arguments {
34
35 self = [super init:arguments withExecuteCallback:nil withLogCallback:nil withLogRedirectionStrategy:LogRedirectionStrategyNeverPrintLogs];
36
37 return self;
38}
39
40- (instancetype)init:(NSArray*)arguments withExecuteCallback:(ExecuteCallback)executeCallback {
41
42 self = [super init:arguments withExecuteCallback:executeCallback withLogCallback:nil withLogRedirectionStrategy:LogRedirectionStrategyNeverPrintLogs];
43
44 return self;
45}
46
47- (instancetype)init:(NSArray*)arguments withExecuteCallback:(ExecuteCallback)executeCallback withLogCallback:(LogCallback)logCallback {
48
49 self = [super init:arguments withExecuteCallback:executeCallback withLogCallback:logCallback withLogRedirectionStrategy:LogRedirectionStrategyNeverPrintLogs];
50
51 return self;
52}
53
54- (MediaInformation*)getMediaInformation {
55 return _mediaInformation;
56}
57
58- (void)setMediaInformation:(MediaInformation*)mediaInformation {
59 _mediaInformation = mediaInformation;
60}
61
62@end
63
ExecuteCallback.h
ExecuteCallback
void(^ ExecuteCallback)(id< Session > session)
Definition: ExecuteCallback.h:46
LogCallback.h
LogCallback
void(^ LogCallback)(Log *log)
Definition: LogCallback.h:31
MediaInformation.h
MediaInformationSession.h
MediaInformation
Definition: MediaInformation.h:40
MediaInformationSession
Definition: MediaInformationSession.h:32