FFmpegKit iOS / macOS / tvOS API 5.1
|
#import <AbstractSession.h>
Instance Methods | |
(instancetype) | - init:withLogCallback:withLogRedirectionStrategy: |
(void) | - waitForAsynchronousMessagesInTransmit: |
(LogCallback) | - getLogCallback [implementation] |
(long) | - getSessionId [implementation] |
(NSDate *) | - getCreateTime [implementation] |
(NSDate *) | - getStartTime [implementation] |
(NSDate *) | - getEndTime [implementation] |
(long) | - getDuration [implementation] |
(NSArray *) | - getArguments [implementation] |
(NSString *) | - getCommand [implementation] |
(NSArray *) | - getAllLogsWithTimeout: [implementation] |
(NSArray *) | - getAllLogs [implementation] |
(NSArray *) | - getLogs [implementation] |
(NSString *) | - getAllLogsAsStringWithTimeout: [implementation] |
(NSString *) | - getAllLogsAsString [implementation] |
(NSString *) | - getLogsAsString [implementation] |
(NSString *) | - getOutput [implementation] |
(SessionState) | - getState [implementation] |
(ReturnCode *) | - getReturnCode [implementation] |
(NSString *) | - getFailStackTrace [implementation] |
(LogRedirectionStrategy) | - getLogRedirectionStrategy [implementation] |
(BOOL) | - thereAreAsynchronousMessagesInTransmit [implementation] |
(void) | - addLog: [implementation] |
(void) | - startRunning [implementation] |
(void) | - complete: [implementation] |
(void) | - fail: [implementation] |
(BOOL) | - isFFmpeg [implementation] |
(BOOL) | - isFFprobe [implementation] |
(BOOL) | - isMediaInformation [implementation] |
(void) | - cancel [implementation] |
(LogCallback) | - getLogCallback |
(long) | - getSessionId |
(NSDate *) | - getCreateTime |
(NSDate *) | - getStartTime |
(NSDate *) | - getEndTime |
(long) | - getDuration |
(NSArray *) | - getArguments |
(NSString *) | - getCommand |
(NSArray *) | - getAllLogsWithTimeout: |
(NSArray *) | - getAllLogs |
(NSArray *) | - getLogs |
(NSString *) | - getAllLogsAsStringWithTimeout: |
(NSString *) | - getAllLogsAsString |
(NSString *) | - getLogsAsString |
(NSString *) | - getOutput |
(SessionState) | - getState |
(ReturnCode *) | - getReturnCode |
(NSString *) | - getFailStackTrace |
(LogRedirectionStrategy) | - getLogRedirectionStrategy |
(BOOL) | - thereAreAsynchronousMessagesInTransmit |
(void) | - addLog: |
(void) | - startRunning |
(void) | - complete: |
(void) | - fail: |
(BOOL) | - isFFmpeg |
(BOOL) | - isFFprobe |
(BOOL) | - isMediaInformation |
(void) | - cancel |
Class Methods | |
(void) | + initialize [implementation] |
Abstract session implementation which includes common features shared by FFmpeg
, FFprobe
and MediaInformation
sessions.
Definition at line 35 of file AbstractSession.h.
|
implementation |
Adds a new log entry for this session.
It is invoked internally by FFmpegKit
library methods. Must not be used by user applications.
log | log entry |
Reimplemented from <Session>.
Definition at line 45 of file AbstractSession.m.
|
implementation |
Cancels running the session.
Reimplemented from <Session>.
Definition at line 45 of file AbstractSession.m.
|
implementation |
Completes running the session with the provided return code.
returnCode | return code of the execution |
Reimplemented from <Session>.
Definition at line 45 of file AbstractSession.m.
|
implementation |
Ends running the session with a failure.
exception | execution received |
Reimplemented from <Session>.
Definition at line 45 of file AbstractSession.m.
|
implementation |
Returns all log entries generated for this session. If there are asynchronous messages that are not delivered yet, this method waits for them.
Reimplemented from <Session>.
Definition at line 45 of file AbstractSession.m.
|
implementation |
Returns all log entries generated for this session as a concatenated string. If there are asynchronous messages that are not delivered yet, this method waits for them.
Reimplemented from <Session>.
Definition at line 45 of file AbstractSession.m.
|
implementation |
Returns all log entries generated for this session as a concatenated string. If there are asynchronous messages that are not delivered yet, this method waits for them until the given timeout.
waitTimeout | wait timeout for asynchronous messages in milliseconds |
Reimplemented from <Session>.
Definition at line 45 of file AbstractSession.m.
|
implementation |
Returns all log entries generated for this session. If there are asynchronous messages that are not delivered yet, this method waits for them until the given timeout.
waitTimeout | wait timeout for asynchronous messages in milliseconds |
Reimplemented from <Session>.
Definition at line 45 of file AbstractSession.m.
|
implementation |
Returns command arguments as an array.
Reimplemented from <Session>.
Definition at line 45 of file AbstractSession.m.
|
implementation |
Returns command arguments as a concatenated string.
Reimplemented from <Session>.
Definition at line 45 of file AbstractSession.m.
|
implementation |
Returns session create time.
Reimplemented from <Session>.
Definition at line 45 of file AbstractSession.m.
|
implementation |
Returns the time taken to execute this session.
Reimplemented from <Session>.
Definition at line 45 of file AbstractSession.m.
|
implementation |
Returns session end time.
Reimplemented from <Session>.
Definition at line 45 of file AbstractSession.m.
|
implementation |
Returns the stack trace of the exception received while executing this session.
The stack trace is only set for sessions that end with SessionStateFailed state. For sessions that has SessionStateCompleted state this method returns nil.
Reimplemented from <Session>.
Definition at line 45 of file AbstractSession.m.
|
implementation |
Returns the session specific log callback.
Reimplemented from <Session>.
Definition at line 45 of file AbstractSession.m.
|
implementation |
Returns session specific log redirection strategy.
Reimplemented from <Session>.
Definition at line 45 of file AbstractSession.m.
|
implementation |
Returns all log entries delivered for this session. Note that if there are asynchronous messages that are not delivered yet, this method will not wait for them and will return immediately.
Reimplemented from <Session>.
Definition at line 45 of file AbstractSession.m.
|
implementation |
Returns all log entries delivered for this session as a concatenated string. Note that if there are asynchronous messages that are not delivered yet, this method will not wait for them and will return immediately.
Reimplemented from <Session>.
Definition at line 45 of file AbstractSession.m.
|
implementation |
Returns the log output generated while running the session.
Reimplemented from <Session>.
Definition at line 45 of file AbstractSession.m.
|
implementation |
Returns the return code for this session. Note that return code is only set for sessions that end with SessionStateCompleted state. If a session is not started, still running or failed then this method returns nil.
Reimplemented from <Session>.
Definition at line 45 of file AbstractSession.m.
|
implementation |
Returns the session identifier.
Reimplemented from <Session>.
Definition at line 45 of file AbstractSession.m.
|
implementation |
Returns session start time.
Reimplemented from <Session>.
Definition at line 45 of file AbstractSession.m.
|
implementation |
Returns the state of the session.
Reimplemented from <Session>.
Definition at line 45 of file AbstractSession.m.
- (instancetype) init: | (NSArray*) | arguments | |
withLogCallback: | (LogCallback) | logCallback | |
withLogRedirectionStrategy: | (LogRedirectionStrategy) | logRedirectionStrategy | |
Creates a new abstract session.
arguments | command arguments |
logCallback | session specific log callback |
logRedirectionStrategy | session specific log redirection strategy |
Definition at line 45 of file AbstractSession.m.
|
implementation |
Reimplemented in FFmpegSession, FFprobeSession, and MediaInformationSession.
Definition at line 45 of file AbstractSession.m.
|
implementation |
Returns whether it is an FFmpeg
session or not.
FFmpeg
session, false otherwise Reimplemented from <Session>.
Reimplemented in FFmpegSession, FFprobeSession, and MediaInformationSession.
Definition at line 45 of file AbstractSession.m.
|
implementation |
Returns whether it is an FFprobe
session or not.
FFprobe
session, false otherwise Reimplemented from <Session>.
Reimplemented in FFmpegSession, FFprobeSession, and MediaInformationSession.
Definition at line 45 of file AbstractSession.m.
|
implementation |
Returns whether it is a MediaInformation
session or not.
MediaInformation
session, false otherwise Reimplemented from <Session>.
Reimplemented in FFmpegSession, FFprobeSession, and MediaInformationSession.
Definition at line 45 of file AbstractSession.m.
|
implementation |
Starts running the session.
Reimplemented from <Session>.
Definition at line 45 of file AbstractSession.m.
|
implementation |
Returns whether there are still asynchronous messages being transmitted for this session or not.
Reimplemented from <Session>.
Definition at line 45 of file AbstractSession.m.
- (void) waitForAsynchronousMessagesInTransmit: | (int) | timeout |
Waits for all asynchronous messages to be transmitted until the given timeout.
timeout | wait timeout in milliseconds |
Definition at line 45 of file AbstractSession.m.