绑定页新UI+逻辑链路的适配+设备的首页无设备页面和详情页面
This commit is contained in:
@@ -464,7 +464,10 @@ class LocalCameraCubit extends Cubit<LocalCameraState>
|
||||
Future<void> tryCmd(List<String> args) async {
|
||||
if (native is! NativePlayer) return;
|
||||
try {
|
||||
await native.command(args);
|
||||
// 动态派发:web 编译时 NativePlayer 解析为 stub.dart(无 command 方法),
|
||||
// 静态成员解析会直接编译失败;改 dynamic 把检查推迟到运行时——
|
||||
// web 端 _usesMediaKit=false 永不进本分支,原生平台仍命中真 mpv 命令。
|
||||
await (native as dynamic).command(args);
|
||||
} catch (e) {
|
||||
debugPrint('🎬 [iOS拉流] 忽略命令 $args:${e.runtimeType}');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user