10000 RTCRtpReceiver.parameters call crashes on Web · Issue #1863 · flutter-webrtc/flutter-webrtc · GitHub
[go: up one dir, main page]

Skip to content
RTCRtpReceiver.parameters call crashes on Web #1863
Open
@Bylynka

Description

@Bylynka

RTCRtpReceiver.parameters call crashes on Web

Uncaught (in promise) DartError: TypeError: null: type 'Null' is not a subtype of type 'bool'
    at Object.throw_ [as throw] (errors.dart:266:3)
    at dart_rti.Rti.new._asBool (profile.dart:117:39)
    at Object.getProperty (operations.dart:316:9)
    at RTCRtpEncodingWeb.fromJsObject (rtc_rtp_parameters_impl.dart:74:24)
    at rtc_rtp_parameters_impl.dart:38:34
    at [dartx.forEach] (js_array.dart:219:7)
    at RTCRtpParametersWeb.encodingsFromJsObject (rtc_rtp_parameters_impl.dart:37:14)
    at RTCRtpParametersWeb.fromJsObject (rtc_rtp_parameters_impl.dart:17:20)
    at get parameters (rtc_rtp_receiver_impl.dart:44:32)
    at session_manager.dart:391:34
    at async_patch.dart:622:19
    at async_patch.dart:647:23
    at async_patch.dart:593:31
    at _RootZone.runUnary (zone.dart:1849:54)
    at async._FutureListener.thenAwait.handleValue (future_impl.dart:224:18)
    at handleValueCallback (future_impl.dart:951:44)
    at _Future._propagateToListeners (future_impl.dart:980:13)
    at [_completeWithValue] (future_impl.dart:723:5)
    at async._AsyncCallbackEntry.new.callback (future_impl.dart:807:7)
    at Object._microtaskLoop (schedule_microtask.dart:40:11)
    at Object._startMicrotaskLoop (schedule_microtask.dart:49:5)
    at tear (operations.dart:117:77)
    at async_patch.dart:186:7

To reproduce it, call the parameters property for the receiver

final receivers = await peerConnection.getReceivers();
   for (var receiver in receivers) {
     final track = receiver.track;
     if (track == null) continue;
     final parameters = receiver.parameters; <--- crash

Platform information

  • Flutter version: 3.32.0
  • Plugin version: 0.14.1
  • OS: MacOS web

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

      0