public class MediaInformationSession extends FFprobeSession implements Session
A custom FFprobe session, which produces a MediaInformation
object using the
FFprobe output.
arguments, createTime, DEFAULT_TIMEOUT_FOR_ASYNCHRONOUS_MESSAGES_IN_TRANSMIT, endTime, executeCallback, failStackTrace, future, logCallback, logRedirectionStrategy, logs, logsLock, returnCode, sessionId, sessionIdGenerator, startTime, state
Constructor and Description |
---|
MediaInformationSession(java.lang.String[] arguments)
Creates a new media information session.
|
MediaInformationSession(java.lang.String[] arguments,
ExecuteCallback executeCallback)
Creates a new media information session.
|
MediaInformationSession(java.lang.String[] arguments,
ExecuteCallback executeCallback,
LogCallback logCallback)
Creates a new media information session.
|
Modifier and Type | Method and Description |
---|---|
MediaInformation |
getMediaInformation()
Returns the media information extracted in this session.
|
void |
setMediaInformation(MediaInformation mediaInformation)
Sets the media information extracted in this session.
|
java.lang.String |
toString() |
isFFmpeg, isFFprobe
addLog, cancel, getAllLogs, getAllLogs, getAllLogsAsString, getAllLogsAsString, getArguments, getCommand, getCreateTime, getDuration, getEndTime, getExecuteCallback, getFailStackTrace, getFuture, getLogCallback, getLogRedirectionStrategy, getLogs, getLogsAsString, getOutput, getReturnCode, getSessionId, getStartTime, getState, thereAreAsynchronousMessagesInTransmit, waitForAsynchronousMessagesInTransmit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addLog, cancel, getAllLogs, getAllLogs, getAllLogsAsString, getAllLogsAsString, getArguments, getCommand, getCreateTime, getDuration, getEndTime, getExecuteCallback, getFailStackTrace, getFuture, getLogCallback, getLogRedirectionStrategy, getLogs, getLogsAsString, getOutput, getReturnCode, getSessionId, getStartTime, getState, isFFmpeg, isFFprobe, thereAreAsynchronousMessagesInTransmit
public MediaInformationSession(java.lang.String[] arguments)
arguments
- command argumentspublic MediaInformationSession(java.lang.String[] arguments, ExecuteCallback executeCallback)
arguments
- command argumentsexecuteCallback
- session specific execute callback functionpublic MediaInformationSession(java.lang.String[] arguments, ExecuteCallback executeCallback, LogCallback logCallback)
arguments
- command argumentsexecuteCallback
- session specific execute callback functionlogCallback
- session specific log callback functionpublic MediaInformation getMediaInformation()
public void setMediaInformation(MediaInformation mediaInformation)
mediaInformation
- media information extractedpublic java.lang.String toString()
toString
in class FFprobeSession