#include <Session.h>
Common interface for all FFmpegKit
sessions.
Definition at line 37 of file Session.h.
◆ addLog()
virtual void ffmpegkit::Session::addLog |
( |
const std::shared_ptr< ffmpegkit::Log > |
log | ) |
|
|
pure virtual |
Adds a new log entry for this session.
It is invoked internally by FFmpegKit
library methods. Must not be used by user applications.
- Parameters
-
Implemented in ffmpegkit::AbstractSession.
◆ cancel()
virtual void ffmpegkit::Session::cancel |
( |
| ) |
|
|
pure virtual |
◆ complete()
Completes running the session with the provided return code.
- Parameters
-
returnCode | return code of the execution |
Implemented in ffmpegkit::AbstractSession.
◆ fail()
virtual void ffmpegkit::Session::fail |
( |
const char * |
error | ) |
|
|
pure virtual |
◆ getAllLogs()
virtual std::shared_ptr< std::list< std::shared_ptr< ffmpegkit::Log > > > ffmpegkit::Session::getAllLogs |
( |
| ) |
const |
|
pure virtual |
Returns all log entries generated for this session. If there are asynchronous messages that are not delivered yet, this method waits for them.
- Returns
- list of log entries generated for this session
Implemented in ffmpegkit::AbstractSession.
◆ getAllLogsAsString()
virtual std::string ffmpegkit::Session::getAllLogsAsString |
( |
| ) |
const |
|
pure virtual |
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.
- Returns
- all log entries generated for this session as a concatenated string
Implemented in ffmpegkit::AbstractSession.
◆ getAllLogsAsStringWithTimeout()
virtual std::string ffmpegkit::Session::getAllLogsAsStringWithTimeout |
( |
const int |
waitTimeout | ) |
const |
|
pure virtual |
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.
- Parameters
-
waitTimeout | wait timeout for asynchronous messages in milliseconds |
- Returns
- all log entries generated for this session as a concatenated string
Implemented in ffmpegkit::AbstractSession.
◆ getAllLogsWithTimeout()
virtual std::shared_ptr< std::list< std::shared_ptr< ffmpegkit::Log > > > ffmpegkit::Session::getAllLogsWithTimeout |
( |
const int |
waitTimeout | ) |
const |
|
pure virtual |
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.
- Parameters
-
waitTimeout | wait timeout for asynchronous messages in milliseconds |
- Returns
- list of log entries generated for this session
Implemented in ffmpegkit::AbstractSession.
◆ getArguments()
virtual std::shared_ptr< std::list< std::string > > ffmpegkit::Session::getArguments |
( |
| ) |
const |
|
pure virtual |
◆ getCommand()
virtual std::string ffmpegkit::Session::getCommand |
( |
| ) |
const |
|
pure virtual |
Returns command arguments as a concatenated string.
- Returns
- command arguments as a concatenated string
Implemented in ffmpegkit::AbstractSession.
◆ getCreateTime()
virtual std::chrono::time_point< std::chrono::system_clock > ffmpegkit::Session::getCreateTime |
( |
| ) |
const |
|
pure virtual |
◆ getDuration()
virtual long ffmpegkit::Session::getDuration |
( |
| ) |
const |
|
pure virtual |
Returns the time taken to execute this session.
- Returns
- time taken to execute this session in milliseconds or zero (0) if the session is not over yet
Implemented in ffmpegkit::AbstractSession.
◆ getEndTime()
virtual std::chrono::time_point< std::chrono::system_clock > ffmpegkit::Session::getEndTime |
( |
| ) |
const |
|
pure virtual |
◆ getFailStackTrace()
virtual std::string ffmpegkit::Session::getFailStackTrace |
( |
| ) |
const |
|
pure virtual |
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 an empty string.
- Returns
- stack trace of the exception received while executing this session, an empty string if session is not started, still running or completed
Implemented in ffmpegkit::AbstractSession.
◆ getLogCallback()
◆ getLogRedirectionStrategy()
Returns session specific log redirection strategy.
- Returns
- session specific log redirection strategy
Implemented in ffmpegkit::AbstractSession.
◆ getLogs()
virtual std::shared_ptr< std::list< std::shared_ptr< ffmpegkit::Log > > > ffmpegkit::Session::getLogs |
( |
| ) |
const |
|
pure virtual |
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.
- Returns
- list of log entries received for this session
Implemented in ffmpegkit::AbstractSession.
◆ getLogsAsString()
virtual std::string ffmpegkit::Session::getLogsAsString |
( |
| ) |
const |
|
pure virtual |
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.
- Returns
- list of log entries received for this session
Implemented in ffmpegkit::AbstractSession.
◆ getOutput()
virtual std::string ffmpegkit::Session::getOutput |
( |
| ) |
const |
|
pure virtual |
Returns the log output generated while running the session.
- Returns
- log output generated
Implemented in ffmpegkit::AbstractSession.
◆ getReturnCode()
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 nullptr.
- Returns
- the return code for this session if the session has completed, nullptr if session is not started, still running or failed
Implemented in ffmpegkit::AbstractSession.
◆ getSessionId()
virtual long ffmpegkit::Session::getSessionId |
( |
| ) |
const |
|
pure virtual |
◆ getStartTime()
virtual std::chrono::time_point< std::chrono::system_clock > ffmpegkit::Session::getStartTime |
( |
| ) |
const |
|
pure virtual |
◆ getState()
◆ isFFmpeg()
virtual bool ffmpegkit::Session::isFFmpeg |
( |
| ) |
const |
|
pure virtual |
◆ isFFprobe()
virtual bool ffmpegkit::Session::isFFprobe |
( |
| ) |
const |
|
pure virtual |
◆ isMediaInformation()
virtual bool ffmpegkit::Session::isMediaInformation |
( |
| ) |
const |
|
pure virtual |
◆ startRunning()
virtual void ffmpegkit::Session::startRunning |
( |
| ) |
|
|
pure virtual |
◆ thereAreAsynchronousMessagesInTransmit()
virtual bool ffmpegkit::Session::thereAreAsynchronousMessagesInTransmit |
( |
| ) |
const |
|
pure virtual |
Returns whether there are still asynchronous messages being transmitted for this session or not.
- Returns
- true if there are still asynchronous messages being transmitted, false otherwise
Implemented in ffmpegkit::AbstractSession.
The documentation for this class was generated from the following file: