8000 m_prefix removed from audiosender variable, · next-coder/flutter-webrtc@cdf0ea7 · GitHub
[go: up one dir, main page]

Skip to content

Commit cdf0ea7

Browse files
committed
m_prefix removed from audiosender variable,
Log string changed to sendDtmf()
1 parent 71d9589 commit cdf0ea7

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,22 +256,22 @@ public void onMethodCall(MethodCall call, @NonNull Result notSafeResult) {
256256
int gap = call.argument("gap");
257257
PeerConnection peerConnection = getPeerConnection(peerConnectionId);
258258
if (peerConnection != null) {
259-
RtpSender m_audioSender = null;
259+
RtpSender audioSender = null;
260260
for (RtpSender sender : peerConnection.getSenders()) {
261261

262262
if (sender.track().kind().equals("audio")) {
263-
m_audioSender = sender;
263+
audioSender = sender;
264264
}
265265
}
266-
if (m_audioSender != null) {
267-
DtmfSender dtmfSender = m_audioSender.dtmf();
266+
if (audioSender != null) {
267+
DtmfSender dtmfSender = audioSender.dtmf();
268268
dtmfSender.insertDtmf(tone, duration, gap);
269269
}
270270
result.success("success");
271271
} else {
272272
Log.d(TAG, "dtmf() peerConnection is null");
273273
result
274-
.error("dtmf", "getRemoteDescription() peerConnection is null",
274+
.error("dtmf", "sendDtmf() peerConnection is null",
275275
null);
276276
}
277277
break;

ios/Classes/FlutterWebRTCPlugin.m

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,17 +251,16 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult) result
251251
RTCPeerConnection *peerConnection = self.peerConnections[peerConnectionId];
252252
if(peerConnection) {
253253

254-
RTCRtpSender* m_audioSender = nil ;
254+
RTCRtpSender* audioSender = nil ;
255255
for( RTCRtpSender *rtpSender in peerConnection.senders){
256256
if([[[rtpSender track] kind] isEqualToString:@"audio"]) {
257-
258-
m_audioSender = rtpSender;
257+
audioSender = rtpSender;
259258
}
260259
}
261-
if(m_audioSender){
260+
if(audioSender){
262261
NSOperationQueue *queue = [[NSOperationQueue alloc] init];
263262
[queue addOperationWithBlock:^{
264-
[m_audioSender.dtmfSender insertDtmf :(NSString *)tone
263+
[audioSender.dtmfSender insertDtmf :(NSString *)tone
265264
duration:(NSTimeInterval) duration interToneGap:(NSTimeInterval)gap];
266265
NSLog(@"DTMF Tone played ");
267266
}];

0 commit comments

Comments
 (0)
0