类 MediaInformationJsonParser


  • public class MediaInformationJsonParser
    extends Object
    A parser that constructs MediaInformation from FFprobe's json output.
    • 构造器详细资料

      • MediaInformationJsonParser

        public MediaInformationJsonParser()
    • 方法详细资料

      • from

        public static MediaInformation from​(String ffprobeJsonOutput)
        Extracts 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 output
        返回:
        created MediaInformation instance 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 MediaInformation instance
        抛出:
        org.json.JSONException - if a parsing error occurs