Skip to content

Commit dec28a9

Browse files
committed
2 parents 7f09463 + 2b0a5f3 commit dec28a9

File tree

2 files changed

+35
-51
lines changed

2 files changed

+35
-51
lines changed

example/lib/generated_plugin_registrant.dart

Lines changed: 0 additions & 16 deletions
This file was deleted.

example/lib/src/callscreen.dart

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ class _MyCallScreenWidget extends State<CallScreenWidget>
164164
if (_localRenderer != null) {
165165
_localRenderer.srcObject = stream;
166166
}
167+
event.stream?.getAudioTracks()?.first?.enableSpeakerphone(false);
167168
_localStream = stream;
168169
}
169170
if (event.originator == 'remote') {
@@ -485,41 +486,40 @@ class _MyCallScreenWidget extends State<CallScreenWidget>
485486
}
486487

487488
stackWidgets.addAll([
488-
Positioned(
489-
top: voiceonly ? 48 : 6,
490-
left: 0,
491-
right: 0,
492-
child: Center(
493-
child: Column(
494-
crossAxisAlignment: CrossAxisAlignment.center,
495-
mainAxisAlignment: MainAxisAlignment.center,
496-
children: <Widget>[
497-
Center(
498-
child: Padding(
499-
padding: const EdgeInsets.all(6),
500-
child: Text(
501-
(voiceonly ? 'VOICE CALL' : 'VIDEO CALL') +
502-
(_hold
503-
? ' PAUSED BY ${this._holdOriginator.toUpperCase()}'
504-
: ''),
505-
style: TextStyle(fontSize: 24, color: Colors.black54),
506-
))),
507-
Center(
508-
child: Padding(
509-
padding: const EdgeInsets.all(6),
510-
child: Text(
511-
'$remote_identity',
512-
style: TextStyle(fontSize: 18, color: Colors.black54),
513-
))),
514-
Center(
515-
child: Padding(
516-
padding: const EdgeInsets.all(6),
517-
child: Text(_timeLabel,
518-
style:
519-
TextStyle(fontSize: 14, color: Colors.black54))))
520-
],
521-
)),
522-
),
489+
Positioned(
490+
top: voiceonly ? 48 : 6,
491+
left: 0,
492+
right: 0,
493+
child: Center(
494+
child: Column(
495+
crossAxisAlignment: CrossAxisAlignment.center,
496+
mainAxisAlignment: MainAxisAlignment.center,
497+
children: <Widget>[
498+
Center(
499+
child: Padding(
500+
padding: const EdgeInsets.all(6),
501+
child: Text(
502+
(voiceonly ? 'VOICE CALL' : 'VIDEO CALL') +
503+
(_hold
504+
? ' PAUSED BY ${this._holdOriginator.toUpperCase()}'
505+
: ''),
506+
style: TextStyle(fontSize: 24, color: Colors.black54),
507+
))),
508+
Center(
509+
child: Padding(
510+
padding: const EdgeInsets.all(6),
511+
child: Text(
512+
'$remote_identity',
513+
style: TextStyle(fontSize: 18, color: Colors.black54),
514+
))),
515+
Center(
516+
child: Padding(
517+
padding: const EdgeInsets.all(6),
518+
child: Text(_timeLabel,
519+
style: TextStyle(fontSize: 14, color: Colors.black54))))
520+
],
521+
)),
522+
),
523523
]);
524524

525525
return Stack(

0 commit comments

Comments
 (0)