public class MediaInformationSession extends AbstractSession 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, 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,
MediaInformationSessionCompleteCallback completeCallback)
Creates a new media information session.
|
MediaInformationSession(java.lang.String[] arguments,
MediaInformationSessionCompleteCallback completeCallback,
LogCallback logCallback)
Creates a new media information session.
|
| Modifier and Type | Method and Description |
|---|---|
MediaInformationSessionCompleteCallback |
getCompleteCallback()
Returns the session specific complete callback.
|
MediaInformation |
getMediaInformation()
Returns the media information extracted in this session.
|
boolean |
isFFmpeg()
Returns whether it is an
FFmpeg session or not. |
boolean |
isFFprobe()
Returns whether it is an
FFprobe session or not. |
boolean |
isMediaInformation()
Returns whether it is a
MediaInformation session or not. |
void |
setMediaInformation(MediaInformation mediaInformation)
Sets the media information extracted in this session.
|
java.lang.String |
toString() |
addLog, cancel, getAllLogs, getAllLogs, getAllLogsAsString, getAllLogsAsString, getArguments, getCommand, getCreateTime, getDuration, getEndTime, getFailStackTrace, getFuture, getLogCallback, getLogRedirectionStrategy, getLogs, getLogsAsString, getOutput, getReturnCode, getSessionId, getStartTime, getState, thereAreAsynchronousMessagesInTransmit, waitForAsynchronousMessagesInTransmitclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddLog, cancel, getAllLogs, getAllLogs, getAllLogsAsString, getAllLogsAsString, getArguments, getCommand, getCreateTime, getDuration, getEndTime, getFailStackTrace, getFuture, getLogCallback, getLogRedirectionStrategy, getLogs, getLogsAsString, getOutput, getReturnCode, getSessionId, getStartTime, getState, thereAreAsynchronousMessagesInTransmitpublic MediaInformationSession(java.lang.String[] arguments)
arguments - command argumentspublic MediaInformationSession(java.lang.String[] arguments,
MediaInformationSessionCompleteCallback completeCallback)
arguments - command argumentscompleteCallback - session specific complete callbackpublic MediaInformationSession(java.lang.String[] arguments,
MediaInformationSessionCompleteCallback completeCallback,
LogCallback logCallback)
arguments - command argumentscompleteCallback - session specific complete callbacklogCallback - session specific log callbackpublic MediaInformation getMediaInformation()
public void setMediaInformation(MediaInformation mediaInformation)
mediaInformation - media information extractedpublic MediaInformationSessionCompleteCallback getCompleteCallback()
public boolean isFFmpeg()
SessionFFmpeg session or not.public boolean isFFprobe()
SessionFFprobe session or not.public boolean isMediaInformation()
SessionMediaInformation session or not.isMediaInformation in interface SessionMediaInformation session, false otherwisepublic java.lang.String toString()
toString in class java.lang.Object