Skip to content

Commit 883cb66

Browse files
committed
Fix a typo and update plugin version to 0.1.6.
1 parent e76b369 commit 883cb66

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/src/call_sample/data_channel_sample.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class _DataChannelSampleState extends State<DataChannelSample> {
5454
});
5555
};
5656

57-
_signaling.onDtaChannel = (channel){
57+
_signaling.onDataChannel = (channel){
5858
_dataChannel = channel;
5959
};
6060

lib/src/call_sample/signaling.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Signaling {
4242
StreamStateCallback onRemoveRemoteStream;
4343
OtherEventCallback onPeersUpdate;
4444
DataChannelMessageCallback onDataChannelMessage;
45-
DataChannelCallback onDtaChannel;
45+
DataChannelCallback onDataChannel;
4646

4747
Map<String, dynamic> _iceServers = {
4848
'iceServers': [
@@ -388,7 +388,7 @@ class Signaling {
388388
};
389389
_dataChannels[id] = channel;
390390

391-
if (this.onDtaChannel != null) this.onDtaChannel(channel);
391+
if (this.onDataChannel != null) this.onDataChannel(channel);
392392
}
393393

394394
_createDataChannel(id, RTCPeerConnection pc, {label: 'fileTransfer'}) async {

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ dependencies:
1919
# The following adds the Cupertino Icons font to your application.
2020
# Use with the CupertinoIcons class for iOS style icons.
2121
cupertino_icons: ^0.1.2
22-
flutter_webrtc: 0.1.5
22+
flutter_webrtc: 0.1.6
2323
shared_preferences:
2424

2525
dev_dependencies:

0 commit comments

Comments
 (0)