public class MediaInformationParser
extends java.lang.Object
MediaInformation
.Constructor and Description |
---|
MediaInformationParser() |
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)
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