Skip to content

Commit fc434a3

Browse files
zi6xuancloudwebrtc趙金元
authored
Increase connection status access (#242)
* hangup add the options hangup function increase self-determination option number of participants, expedient unity communication time notification * fix: Fix breaking changes. * Add extended header support Add extended header support, in order to carry custom information when calling * Update sip_ua_helper.dart * Write log to local file * Update logger.dart * Optimized code * Merge latest code * Increase connection status access Increase connection status access * flutter format. Co-authored-by: cloudwebrtc <duanweiwei1982@gmail.com> Co-authored-by: 趙金元 <choukg.zw@gmail.com>
1 parent fc19b73 commit fc434a3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/src/sip_ua_helper.dart

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@ class SIPUAHelper extends EventManager {
4646
return false;
4747
}
4848

49+
bool get connecting {
50+
if (_ua != null && _ua!.transport != null) {
51+
return _ua!.transport!.isConnecting();
52+
}
53+
return false;
54+
}
55+
4956
RegistrationState get registerState => _registerState;
5057

5158
void stop() async {
@@ -311,7 +318,7 @@ class SIPUAHelper extends EventManager {
311318
'rtcAnswerConstraints': <String, dynamic>{
312319
'mandatory': <String, dynamic>{
313320
'OfferToReceiveAudio': true,
314-
'OfferToReceiveVideo': true,
321+
'OfferToReceiveVideo': !voiceonly,
315322
},
316323
'optional': <dynamic>[],
317324
},

0 commit comments

Comments
 (0)