Skip to content

Commit 2f8cdc3

Browse files
authored
Merge pull request #25 from amantoux/fix_cast_error
Fix cast error in RtpSender::setStreams
2 parents 0eb920d + 3ef7d46 commit 2f8cdc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/rtc_rtp_sender_impl.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class RTCRtpSenderWeb extends RTCRtpSender {
5151
@override
5252
Future<void> setStreams(List<MediaStream> streams) async {
5353
try {
54-
final nativeStreams = streams as List<MediaStreamWeb>;
54+
final nativeStreams = streams.cast<MediaStreamWeb>();
5555
jsutil.callMethod(_jsRtpSender, 'setStreams',
5656
nativeStreams.map((e) => e.jsStream).toList());
5757
} on Exception catch (e) {

0 commit comments

Comments
 (0)