From cdbffbd435d531fffc92a97518e3b8fd183a22ac Mon Sep 17 00:00:00 2001 From: chenc Date: Fri, 8 Sep 2023 16:01:44 +0800 Subject: [PATCH] fix(doc): Get media information for a file/url example should != but there use == --- flutter/flutter/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flutter/flutter/README.md b/flutter/flutter/README.md index e6474c2..fac2c5c 100644 --- a/flutter/flutter/README.md +++ b/flutter/flutter/README.md @@ -211,7 +211,7 @@ The following table shows Android API level, iOS deployment target and macOS dep FFprobeKit.getMediaInformation('').then((session) async { final information = await session.getMediaInformation(); - if (information == null) { + if (information != null) { // CHECK THE FOLLOWING ATTRIBUTES ON ERROR final state = FFmpegKitConfig.sessionStateToString(await session.getState());