Skip to content

Commit 26574cf

Browse files
committed
Export PeerConnection for call.
1 parent c3efc0a commit 26574cf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/src/sip_ua_helper.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,9 @@ class Call {
388388
Call(this._id, this._session, this.state);
389389
final String _id;
390390
final RTCSession _session;
391+
391392
String get id => _id;
393+
RTCPeerConnection get peerConnection => _session.connection;
392394
CallStateEnum state;
393395

394396
void answer(Map<String, Object> options, {MediaStream mediaStream = null}) {
@@ -435,6 +437,11 @@ class Call {
435437
_session.unmute(audio, video);
436438
}
437439

440+
void renegotiate(Map<String, dynamic> options) {
441+
assert(_session != null, 'ERROR(umute): rtc session is invalid!');
442+
_session.renegotiate(options);
443+
}
444+
438445
void sendDTMF(String tones, [Map<String, dynamic> options]) {
439446
assert(_session != null, 'ERROR(sendDTMF): rtc session is invalid!');
440447
_session.sendDTMF(tones, options);

0 commit comments

Comments
 (0)