类 MediaInformationSession
- java.lang.Object
-
- com.ts.lib.ffmpegkit.AbstractSession
-
- com.ts.lib.ffmpegkit.MediaInformationSession
-
- 所有已实现的接口:
Session
public class MediaInformationSession extends AbstractSession implements Session
A custom FFprobe session, which produces a
MediaInformationobject using the FFprobe output.
-
-
字段概要
-
从类继承的字段 com.ts.lib.ffmpegkit.AbstractSession
DEFAULT_TIMEOUT_FOR_ASYNCHRONOUS_MESSAGES_IN_TRANSMIT
-
-
构造器概要
构造器 构造器 说明 MediaInformationSession(String[] arguments)Creates a new media information session.MediaInformationSession(String[] arguments, MediaInformationSessionCompleteCallback completeCallback)Creates a new media information session.MediaInformationSession(String[] arguments, MediaInformationSessionCompleteCallback completeCallback, LogCallback logCallback)Creates a new media information session.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 MediaInformationSessionCompleteCallbackgetCompleteCallback()Returns the session specific complete callback.MediaInformationgetMediaInformation()Returns the media information extracted in this session.booleanisFFmpeg()Returns whether it is anFFmpegsession or not.booleanisFFprobe()Returns whether it is anFFprobesession or not.booleanisMediaInformation()Returns whether it is aMediaInformationsession or not.voidsetMediaInformation(MediaInformation mediaInformation)Sets the media information extracted in this session.StringtoString()-
从类继承的方法 com.ts.lib.ffmpegkit.AbstractSession
addLog, cancel, getAllLogs, getAllLogs, getAllLogsAsString, getAllLogsAsString, getArguments, getCommand, getCreateTime, getDuration, getEndTime, getFailStackTrace, getFuture, getLogCallback, getLogRedirectionStrategy, getLogs, getLogsAsString, getOutput, getReturnCode, getSessionId, getStartTime, getState, thereAreAsynchronousMessagesInTransmit
-
从接口继承的方法 com.ts.lib.ffmpegkit.Session
addLog, cancel, getAllLogs, getAllLogs, getAllLogsAsString, getAllLogsAsString, getArguments, getCommand, getCreateTime, getDuration, getEndTime, getFailStackTrace, getFuture, getLogCallback, getLogRedirectionStrategy, getLogs, getLogsAsString, getOutput, getReturnCode, getSessionId, getStartTime, getState, thereAreAsynchronousMessagesInTransmit
-
-
-
-
构造器详细资料
-
MediaInformationSession
public MediaInformationSession(String[] arguments)
Creates a new media information session.- 参数:
arguments- command arguments
-
MediaInformationSession
public MediaInformationSession(String[] arguments, MediaInformationSessionCompleteCallback completeCallback)
Creates a new media information session.- 参数:
arguments- command argumentscompleteCallback- session specific complete callback
-
MediaInformationSession
public MediaInformationSession(String[] arguments, MediaInformationSessionCompleteCallback completeCallback, LogCallback logCallback)
Creates a new media information session.- 参数:
arguments- command argumentscompleteCallback- session specific complete callbacklogCallback- session specific log callback
-
-
方法详细资料
-
getMediaInformation
public MediaInformation getMediaInformation()
Returns the media information extracted in this session.- 返回:
- media information extracted or null if the command failed or the output can not be parsed
-
setMediaInformation
public void setMediaInformation(MediaInformation mediaInformation)
Sets the media information extracted in this session.- 参数:
mediaInformation- media information extracted
-
getCompleteCallback
public MediaInformationSessionCompleteCallback getCompleteCallback()
Returns the session specific complete callback.- 返回:
- session specific complete callback
-
isFFmpeg
public boolean isFFmpeg()
从接口复制的说明:SessionReturns whether it is anFFmpegsession or not.
-
isFFprobe
public boolean isFFprobe()
从接口复制的说明:SessionReturns whether it is anFFprobesession or not.
-
isMediaInformation
public boolean isMediaInformation()
从接口复制的说明:SessionReturns whether it is aMediaInformationsession or not.- 指定者:
isMediaInformation在接口中Session- 返回:
- true if it is a
MediaInformationsession, false otherwise
-
-