diff --git a/lib/src/rtc_rtp_parameters_impl.dart b/lib/src/rtc_rtp_parameters_impl.dart index 54c7881..f1a0b59 100644 --- a/lib/src/rtc_rtp_parameters_impl.dart +++ b/lib/src/rtc_rtp_parameters_impl.dart @@ -70,7 +70,7 @@ class RTCHeaderExtensionWeb { class RTCRtpEncodingWeb { static RTCRtpEncoding fromJsObject(web.RTCRtpEncodingParameters object) { return RTCRtpEncoding.fromMap({ - 'rid': object.getProperty('rid'.toJS)?.toDart, + 'rid': object.getProperty('rid'.toJS).dartify(), 'active': object.active, 'maxBitrate': object.getProperty('maxBitrate'.toJS)?.toDartInt, 'maxFramerate': @@ -81,7 +81,7 @@ class RTCRtpEncodingWeb { 'scaleResolutionDownBy': object .getProperty('scaleResolutionDownBy'.toJS) ?.toDartDouble, - 'ssrc': object.getProperty('ssrc'.toJS)?.toDart + 'ssrc': object.getProperty('ssrc'.toJS)?.toDartInt }); } }