probeVideo method

  1. @override
Future<VideoInfo> probeVideo(
  1. String srcPath
)
override

Reads duration, coded size, rotation, HDR and audio presence from srcPath without decoding it.

Not implemented in 0.1.0 — throws UnimplementedError.

Implementation

@override
Future<VideoInfo> probeVideo(String srcPath) async {
  probedPaths.add(srcPath);
  await _settle();
  final VideoInfo? exported = exportedVideoInfo;
  if (exported != null && _produced.contains(srcPath)) {
    return exported;
  }
  return videoInfo;
}