@@ -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