Skip to content

Flutter Web Unexpected Null Error on RTCVideoRenderer stream. #38

@wms2537

Description

@wms2537

Your environment.

  • Version: 0.5.3
  • Browser: Chrome Version 92.0.4515.131 (Official Build) (64-bit)
  • Other Information -
"Error: Unexpected null value.
   at Object.throw_ [as throw] (http://localhost:44309/dart_sdk.js:5061:11)
   at Object.nullCheck (http://localhost:44309/dart_sdk.js:5388:30)
   at rtc_video_renderer_impl.RTCVideoRendererWeb.new.findHtmlView (http://localhost:44309/packages/flutter_webrtc/src/rtc_video_renderer.dart.lib.js:752:24)
   at rtc_video_renderer_impl.RTCVideoRendererWeb.new.set srcObject [as srcObject] (http://localhost:44309/packages/flutter_webrtc/src/rtc_video_renderer.dart.lib.js:729:19)
   at rtc_video_renderer.RTCVideoRenderer.new.set srcObject [as srcObject] (http://localhost:44309/packages/flutter_webrtc/src/rtc_video_renderer.dart.lib.js:368:40)
   at ion$.Participant._internal.setupSrcObject (http://localhost:44309/packages/flutter_ion_conference/screens/chat_screen.dart.lib.js:1121:44)
   at setupSrcObject.next (<anonymous>)
   at http://localhost:44309/dart_sdk.js:38640:33
   at _RootZone.runUnary (http://localhost:44309/dart_sdk.js:38511:59)
   at _FutureListener.thenAwait.handleValue (http://localhost:44309/dart_sdk.js:33713:29)
   at handleValueCallback (http://localhost:44309/dart_sdk.js:34265:49)
   at Function._propagateToListeners (http://localhost:44309/dart_sdk.js:34303:17)
   at _Future.new.[_completeWithValue] (http://localhost:44309/dart_sdk.js:34151:23)
   at async._AsyncCallbackEntry.new.callback (http://localhost:44309/dart_sdk.js:34172:35)
   at Object._microtaskLoop (http://localhost:44309/dart_sdk.js:38778:13)
   at _startMicrotaskLoop (http://localhost:44309/dart_sdk.js:38784:13)
   at http://localhost:44309/dart_sdk.js:34519:9"

What did you do?

Run the ion app on flutter web. The app is working when I run it on macos and mobile devices. It crashes when I use web. This problem only appears when a second device join the room, and the error only occurs in flutter web.

Probably related to flutter-webrtc/flutter-webrtc#622

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions