-
- All Implemented Interfaces:
-
com.antonkarpenko.ffmpegkit.Session
public class MediaInformationSession extends AbstractSession implements Session
A custom FFprobe session, which produces a
MediaInformationobject using the FFprobe output.
-
-
Field Summary
Fields Modifier and Type Field Description private MediaInformationmediaInformationprivate final MediaInformationSessionCompleteCallbackcompleteCallback
-
Method Summary
Modifier and Type Method Description MediaInformationgetMediaInformation()Returns the media information extracted in this session. voidsetMediaInformation(MediaInformation mediaInformation)Sets the media information extracted in this session. MediaInformationSessionCompleteCallbackgetCompleteCallback()Returns the session specific complete callback. static MediaInformationSessioncreate(Array<String> arguments)Creates a new media information session. static MediaInformationSessioncreate(Array<String> arguments, MediaInformationSessionCompleteCallback completeCallback)Creates a new media information session. static MediaInformationSessioncreate(Array<String> arguments, MediaInformationSessionCompleteCallback completeCallback, LogCallback logCallback)Creates a new media information session. StringgetFailStackTrace()Returns the stack trace of the exception received while executing this session. booleanisFFmpeg()Returns whether it is an FFmpegsession or not.booleanisFFprobe()Returns whether it is an FFprobesession or not.booleanisMediaInformation()Returns whether it is a MediaInformationsession or not.StringtoString()-
Methods inherited from class com.antonkarpenko.ffmpegkit.AbstractSession
addLog, cancel, getAllLogs, getAllLogs, getAllLogsAsString, getAllLogsAsString, getArguments, getCommand, getCreateTime, getDuration, getEndTime, getFuture, getLogCallback, getLogRedirectionStrategy, getLogs, getLogsAsString, getOutput, getReturnCode, getSessionId, getStartTime, getState, thereAreAsynchronousMessagesInTransmit -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getMediaInformation
MediaInformation getMediaInformation()
Returns the media information extracted in this session.
-
setMediaInformation
void setMediaInformation(MediaInformation mediaInformation)
Sets the media information extracted in this session.
- Parameters:
mediaInformation- media information extracted
-
getCompleteCallback
MediaInformationSessionCompleteCallback getCompleteCallback()
Returns the session specific complete callback.
-
create
static MediaInformationSession create(Array<String> arguments)
Creates a new media information session.
- Parameters:
arguments- command arguments
-
create
static MediaInformationSession create(Array<String> arguments, MediaInformationSessionCompleteCallback completeCallback)
Creates a new media information session.
- Parameters:
arguments- command argumentscompleteCallback- session specific complete callback
-
create
static MediaInformationSession create(Array<String> arguments, MediaInformationSessionCompleteCallback completeCallback, LogCallback logCallback)
Creates a new media information session.
- Parameters:
arguments- command argumentscompleteCallback- session specific complete callbacklogCallback- session specific log callback
-
getFailStackTrace
String getFailStackTrace()
Returns the stack trace of the exception received while executing this session.
The stack trace is only set for sessions that end with FAILED state. For sessions that hasCOMPLETED state this method returns null.
-
isFFmpeg
boolean isFFmpeg()
Returns whether it is an
FFmpegsession or not.
-
isFFprobe
boolean isFFprobe()
Returns whether it is an
FFprobesession or not.
-
isMediaInformation
boolean isMediaInformation()
Returns whether it is a
MediaInformationsession or not.
-
-
-
-