/// Web-safe stubs that mirror the ffmpeg_kit_flutter_new API surface. /// These classes compile on web but always return failure / no-op. class FFmpegKit { static Future execute(String command) async { return FFmpegSession._(); } static Future executeAsync( String command, [ Function? completeCallback, Function? logCallback, Function? statisticsCallback, ]) async { final session = FFmpegSession._(); completeCallback?.call(session); return session; } static Future executeWithArguments( List arguments, [ Function? completeCallback, Function? logCallback, Function? statisticsCallback, ]) async { final session = FFmpegSession._(); completeCallback?.call(session); return session; } } class FFmpegSession { FFmpegSession._(); Future getReturnCode() async => ReturnCode._(-1); Future getOutput() async => null; Future getAllLogsAsString() async => null; } class ReturnCode { final int _value; ReturnCode._(this._value); static bool isSuccess(ReturnCode? code) => false; @override String toString() => 'ReturnCode($_value)'; }