public VideoMetadataUseful(ffprobe xml) { this.xml = xml; if (xml.streams != null) { videoStream = xml.streams.FirstOrDefault(x => x.codec_type == "video"); audioStream = xml.streams.FirstOrDefault(x => x.codec_type == "audio"); } format = (ffprobeFormat)xml.format; }
//private ffprobeFormat format; public VideoMetadataUseful(ffprobe xml) { this.xml = xml; if (xml.streams != null) { videoStream = xml.streams.FirstOrDefault(x => x.codec_type == "video"); audioStream = xml.streams.FirstOrDefault(x => x.codec_type == "audio"); } //format = (ffprobeFormat)xml.format; }