File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments