Commit 550bbadc by ludi

修复一个flutter音频设置的bug

parent 2561bb38
...@@ -199,13 +199,13 @@ public final class FUSFlutterBridge: NSObject { ...@@ -199,13 +199,13 @@ public final class FUSFlutterBridge: NSObject {
if type == self.currentVideoStateType { if type == self.currentVideoStateType {
return return
} }
self.currentVideoStateType = type
fus_p_setVideoState(type: type) fus_p_setVideoState(type: type)
} }
/// 直接设置 /// 直接设置
private func fus_p_setVideoState(type: Int) { private func fus_p_setVideoState(type: Int) {
let json = encodeJSONString(["type": type]) activeChannel?.invokeMethod("setVideoState", arguments: type)
activeChannel?.invokeMethod("setVideoState", arguments: json)
} }
/// 判断当前 Flutter 页面是否需要执行首次出现处理,仅同一实例首次出现时返回 `true`。 /// 判断当前 Flutter 页面是否需要执行首次出现处理,仅同一实例首次出现时返回 `true`。
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment