8000 Rename the prefix of method/event channel id. · selinplus/flutter-webrtc@5c4a237 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5c4a237

Browse files
committed
Rename the prefix of method/event channel id.
1 parent d25ce9a commit 5c4a237

11 files changed

+13
-13
lines changed

android/src/main/java/com/cloudwebrtc/webrtc/DataChannelObserver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class DataChannelObserver implements DataChannel.Observer, EventChannel.StreamHa
2323
this.eventChannel =
2424
new EventChannel(
2525
plugin.registrar().messenger(),
26-
"cloudwebrtc.com/WebRTC/dataChannelEvent" + String.valueOf(id));
26+
"FlutterWebRTC/dataChannelEvent" + String.valueOf(id));
2727
eventChannel.setStreamHandler(this);
2828
}
2929

android/src/main/java/com/cloudwebrtc/webrtc/FlutterWebRTCPlugin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public Context getContext() {
7979
* Plugin registration.
8080
*/
8181
public static void registerWith(Registrar registrar) {
82-
final MethodChannel channel = new MethodChannel(registrar.messenger(), "cloudwebrtc.com/WebRTC.Method");
82+
final MethodChannel channel = new MethodChannel(registrar.messenger(), "FlutterWebRTC.Method");
8383
channel.setMethodCallHandler(new FlutterWebRTCPlugin(registrar, channel));
8484
}
8585

@@ -243,7 +243,7 @@ public void onMethodCall(MethodCall call, Result result) {
243243
EventChannel eventChannel =
244244
new EventChannel(
245245
registrar.messenger(),
246-
"cloudwebrtc.com/WebRTC/Texture" + entry.id());
246+
"FlutterWebRTC/Texture" + entry.id());
247247

248248
eventChannel.setStreamHandler(render);
249249
render.setEventChannel(eventChannel);

android/src/main/java/com/cloudwebrtc/webrtc/PeerConnectionObserver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class PeerConnectionObserver implements PeerConnection.Observer, EventChannel.St
5252
this.eventChannel =
5353
new EventChannel(
5454
plugin.registrar().messenger(),
55-
"cloudwebrtc.com/WebRTC/peerConnectoinEvent" + id);
55+
"FlutterWebRTC/peerConnectoinEvent" + id);
5656
eventChannel.setStreamHandler(this);
5757
this.eventSink = null;
5858
}

ios/Classes/FlutterRTCDataChannel.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ -(void)createDataChannel:(nonnull NSString *)peerConnectionId
7777
dataChannel.delegate = self;
7878

7979
FlutterEventChannel *eventChannel = [FlutterEventChannel
80-
eventChannelWithName:[NSString stringWithFormat:@"cloudwebrtc.com/WebRTC/dataChannelEvent%d", dataChannel.channelId]
80+
eventChannelWithName:[NSString stringWithFormat:@"FlutterWebRTC/dataChannelEvent%d", dataChannel.channelId]
8181
binaryMessenger:messenger];
8282

8383
dataChannel.eventChannel = eventChannel;

ios/Classes/FlutterRTCPeerConnection.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ - (void)peerConnection:(RTCPeerConnection*)peerConnection didOpenDataChannel:(RT
483483
peerConnection.dataChannels[dataChannelId] = dataChannel;
484484

485485
FlutterEventChannel *eventChannel = [FlutterEventChannel
486-
eventChannelWithName:[NSString stringWithFormat:@"cloudwebrtc.com/WebRTC/dataChannelEvent%d", dataChannel.channelId]
486+
eventChannelWithName:[NSString stringWithFormat:@"FlutterWebRTC/dataChannelEvent%d", dataChannel.channelId]
487487
binaryMessenger:self.messenger];
488488

489489
dataChannel.eventChannel = eventChannel;

ios/Classes/FlutterRTCVideoRenderer.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ - (instancetype)initWithTextureRegistry:(id<FlutterTextureRegistry>)registry
3838
_textureId = [registry registerTexture:self];
3939
/*Create Event Channel.*/
4040
_eventChannel = [FlutterEventChannel
41-
eventChannelWithName:[NSString stringWithFormat:@"cloudwebrtc.com/WebRTC/Texture%lld", _textureId]
41+
eventChannelWithName:[NSString stringWithFormat:@"FlutterWebRTC/Texture%lld", _textureId]
4242
binaryMessenger:messenger];
4343
[_eventChannel setStreamHandler:self];
4444
}

ios/Classes/FlutterWebRTCPlugin.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ @implementation FlutterWebRTCPlugin {
2121
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
2222

2323
FlutterMethodChannel* channel = [FlutterMethodChannel
24-
methodChannelWithName:@"cloudwebrtc.com/WebRTC.Method"
24+
methodChannelWithName:@"FlutterWebRTC.Method"
2525
binaryMessenger:[registrar messenger]];
2626
UIViewController *viewController = (UIViewController *)registrar.messenger;
2727
FlutterWebRTCPlugin* instance = [[FlutterWebRTCPlugin alloc] initWithChannel:channel
@@ -84,7 +84,7 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult) result
8484

8585
/*Create Event Channel.*/
8686
peerConnection.eventChannel = [FlutterEventChannel
87-
eventChannelWithName:[NSString stringWithFormat:@"cloudwebrtc.com/WebRTC/peerConnectoinEvent%@", peerConnectionId]
87+
eventChannelWithName:[NSString stringWithFormat:@"FlutterWebRTC/peerConnectoinEvent%@", peerConnectionId]
8888
binaryMessenger:_messenger];
8989
[peerConnection.eventChannel setStreamHandler:peerConnection];
9090

lib/rtc_data_channel.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class RTCDataChannel {
180180

181181
EventChannel _eventChannelFor(int dataChannelId) {
182182
return new EventChannel(
183-
'cloudwebrtc.com/WebRTC/dataChannelEvent$dataChannelId');
183+
'FlutterWebRTC/dataChannelEvent$dataChannelId');
184184
}
185185

186186
void errorListener(Object obj) {

lib/rtc_peerconnection.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class RTCPeerConnection {
196196

197197
EventChannel _eventChannelFor(String peerConnectionId) {
198198
return new EventChannel(
199-
'cloudwebrtc.com/WebRTC/peerConnectoinEvent$peerConnectionId');
199+
'FlutterWebRTC/peerConnectoinEvent$peerConnectionId');
200200
}
201201

202202
Map<String, dynamic> get getConfiguration => _configuration;

lib/rtc_video_view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class RTCVideoRenderer {
8282
}
8383

8484
EventChannel _eventChannelFor(int textureId) {
85-
return new EventChannel('cloudwebrtc.com/WebRTC/Texture$textureId');
85+
return new EventChannel('FlutterWebRTC/Texture$textureId');
8686
}
8787

8888
void eventListener(dynamic event) {

0 commit comments

Comments
 (0)
0