FFmpegKit iOS / macOS / tvOS API 5.1
Session.h
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#ifndef FFMPEG_KIT_SESSION_H
21#define FFMPEG_KIT_SESSION_H
22
23#import <Foundation/Foundation.h>
24#import "Log.h"
25#import "LogCallback.h"
27#import "ReturnCode.h"
28#import "SessionState.h"
29
33@protocol Session
34
35@required
36
43
49- (long)getSessionId;
50
56- (NSDate*)getCreateTime;
57
63- (NSDate*)getStartTime;
64
70- (NSDate*)getEndTime;
71
78- (long)getDuration;
79
85- (NSArray*)getArguments;
86
92- (NSString*)getCommand;
93
101- (NSArray*)getAllLogsWithTimeout:(int)waitTimeout;
102
109- (NSArray*)getAllLogs;
110
118- (NSArray*)getLogs;
119
128- (NSString*)getAllLogsAsStringWithTimeout:(int)waitTimeout;
129
136- (NSString*)getAllLogsAsString;
137
145- (NSString*)getLogsAsString;
146
152- (NSString*)getOutput;
153
159- (SessionState)getState;
160
170
180- (NSString*)getFailStackTrace;
181
187- (LogRedirectionStrategy)getLogRedirectionStrategy;
188
197
206- (void)addLog:(Log*)log;
207
211- (void)startRunning;
212
218- (void)complete:(ReturnCode*)returnCode;
219
225- (void)fail:(NSException*)exception;
226
232- (BOOL)isFFmpeg;
233
239- (BOOL)isFFprobe;
240
246- (BOOL)isMediaInformation;
247
251- (void)cancel;
252
253@end
254
255#endif // FFMPEG_KIT_SESSION_H
void(^ LogCallback)(Log *log)
Definition: LogCallback.h:31
Definition: Log.h:29
NSDate * getEndTime()
long getSessionId()
NSString * getCommand()
SessionState getState()
NSString * getAllLogsAsString()
NSString * getFailStackTrace()
BOOL thereAreAsynchronousMessagesInTransmit()
BOOL isMediaInformation()
ReturnCode * getReturnCode()
NSArray * getLogs()
void cancel()
NSArray * getAllLogs()
LogRedirectionStrategy getLogRedirectionStrategy()
void startRunning()
long getDuration()
NSString * getOutput()
NSString * getLogsAsString()
LogCallback getLogCallback()
NSDate * getStartTime()
BOOL isFFprobe()
NSArray * getArguments()
NSDate * getCreateTime()
BOOL isFFmpeg()