public class MediaInformationJsonParser
extends java.lang.Object
MediaInformation
from FFprobe's json output.Constructor and Description |
---|
MediaInformationJsonParser() |
Modifier and Type | Method and Description |
---|---|
static MediaInformation |
from(java.lang.String ffprobeJsonOutput)
Extracts
MediaInformation from the given FFprobe json output. |
static MediaInformation |
fromWithError(java.lang.String ffprobeJsonOutput)
Extracts MediaInformation from the given FFprobe json output.
|
public static MediaInformation from(java.lang.String ffprobeJsonOutput)
MediaInformation
from the given FFprobe json output. Note that this
method does not throw JSONException
as fromWithError(String)
does and
handles errors internally.ffprobeJsonOutput
- FFprobe json outputMediaInformation
instance of null if a parsing error occurspublic static MediaInformation fromWithError(java.lang.String ffprobeJsonOutput) throws org.json.JSONException
ffprobeJsonOutput
- ffprobe json outputMediaInformation
instanceorg.json.JSONException
- if a parsing error occurs