簡體   English   中英

當我在 flutter 中使用 agora_uikit package 時,顯示完全黑屏

[英]When I am using agora_uikit package in flutter. it's show me complete black screen

agora_uikit

當我打開聊天屏幕時,在控制台中顯示此錯誤

W/libc    (26879): Access denied finding property "net.dns1"
W/libc    (26879): Access denied finding property "net.dns2"
W/libc    (26879): Access denied finding property "net.dns3"
W/libc    (26879): Access denied finding property "net.dns4"

當我將一個視頻聊天轉移到另一個聊天時,我必須收到另一條錯誤消息

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException(17, request to join channel is rejected, null, null)
E/flutter (28102): #0      StandardMethodCodec.decodeEnvelope
package:flutter/…/services/message_codecs.dart:607
E/flutter (28102): #1      MethodChannel._invokeMethod
package:flutter/…/services/platform_channel.dart:177
E/flutter (28102): <asynchronous suspension>
E/flutter (28102): #2      SessionController.joinVideoChannel
package:agora_uikit/controllers/session_controller.dart:404
E/flutter (28102): <asynchronous suspension>
E/flutter (28102): #3      AgoraClient.initialize
package:agora_uikit/src/agora_client.dart:69
E/flutter (28102): <asynchronous suspension>
E/flutter (28102): #4      _LiveMatchScreenState.initAgora
package:timemarks/…/live_screens/live_match.dart:49
E/flutter (28102): <asynchronous suspension>

當我退出視頻通話時顯示此錯誤

════════ Exception caught by widgets library ═══════════════════════════════════
The following assertion was thrown while finalizing the widget tree:
A SessionController was used after being disposed.

Once you have called dispose() on a SessionController, it can no longer be used.
When the exception was thrown, this was the stack
#0      ChangeNotifier._debugAssertNotDisposed.<anonymous closure>
package:flutter/…/foundation/change_notifier.dart:114
#1      ChangeNotifier._debugAssertNotDisposed
package:flutter/…/foundation/change_notifier.dart:120
#2      ChangeNotifier.removeListener
package:flutter/…/foundation/change_notifier.dart:233
#3      _ValueListenableBuilderState.dispose
package:flutter/…/widgets/value_listenable_builder.dart:177
#4      StatefulElement.unmount
package:flutter/…/widgets/framework.dart:4983
#5      _InactiveElements._unmount
package:flutter/…/widgets/framework.dart:1926

當您輸入錯誤的 APP ID 和令牌組合時會出現此錯誤。 如果您使用的項目具有安全模式,請確保為您嘗試加入的頻道輸入 APP ID 和tempToken 如果您沒有在測試模式下使用項目,那么只添加 APP ID 應該能夠解決這個問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM