8000 Fix sending binary data over DataChannel in web implementation. (#634) · tx-tomcat/flutter-webrtc@e5b8006 · GitHub
[go: up one dir, main page]

Skip to content

Commit e5b8006

Browse files
authored
Fix sending binary data over DataChannel in web implementation. (flutter-webrtc#634)
1 parent b81b19e commit e5b8006

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/src/web/rtc_data_channel_impl.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ class RTCDataChannelWeb extends RTCDataChannel {
5858
if (!message.isBinary) {
5959
_jsDc.send(message.text);
6060
} else {
61-
// This may just work
62-
_jsDc.sendByteBuffer(message.binary.buffer);
63-
// If not, convert to ArrayBuffer/Blob
61+
_jsDc.sendTypedData(message.binary);
6462
}
6563
return Future.value();
6664
}

0 commit comments

Comments
 (0)
0