类 MediaInformationJsonParser
- java.lang.Object
-
- com.ts.lib.ffmpegkit.MediaInformationJsonParser
-
public class MediaInformationJsonParser extends Object
A parser that constructsMediaInformationfrom FFprobe's json output.
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringKEY_CHAPTERSstatic StringKEY_STREAMS
-
构造器概要
构造器 构造器 说明 MediaInformationJsonParser()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static MediaInformationfrom(String ffprobeJsonOutput)ExtractsMediaInformationfrom the given FFprobe json output.static MediaInformationfromWithError(String ffprobeJsonOutput)Extracts MediaInformation from the given FFprobe json output.
-
-
-
方法详细资料
-
from
public static MediaInformation from(String ffprobeJsonOutput)
ExtractsMediaInformationfrom the given FFprobe json output. Note that this method does not throwJSONExceptionasfromWithError(String)does and handles errors internally.- 参数:
ffprobeJsonOutput- FFprobe json output- 返回:
- created
MediaInformationinstance of null if a parsing error occurs
-
fromWithError
public static MediaInformation fromWithError(String ffprobeJsonOutput) throws org.json.JSONException
Extracts MediaInformation from the given FFprobe json output.- 参数:
ffprobeJsonOutput- ffprobe json output- 返回:
- created
MediaInformationinstance - 抛出:
org.json.JSONException- if a parsing error occurs
-
-