Skip to content

Commit

Permalink
[example] Fix set recording device button text not correct
Browse files Browse the repository at this point in the history
  • Loading branch information
littleGnAl committed Jun 26, 2023
1 parent 6f79203 commit bcc5561
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions example/lib/examples/advanced/precall_test/precall_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class _State extends State<PreCallTest> {
);
}

Future<void> _setVideoDevice(String deviceId) async {
Future<void> _setRecordingDevice(String deviceId) async {
await _audioDeviceManager.setRecordingDevice(deviceId);

setState(() {
Expand Down Expand Up @@ -249,8 +249,7 @@ class _State extends State<PreCallTest> {
_isStartEchoTest = !_isStartEchoTest;

if (_isStartEchoTest) {
await _engine.startEchoTest(
const EchoTestConfiguration(
await _engine.startEchoTest(const EchoTestConfiguration(
intervalInSeconds: 10, channelId: 'test'));
} else {
await _engine.stopEchoTest();
Expand All @@ -276,10 +275,10 @@ class _State extends State<PreCallTest> {
ElevatedButton(
onPressed: _isSetRecordingDeviceEnabled
? () {
_setVideoDevice(_selectedRecordingDeviceId);
_setRecordingDevice(_selectedRecordingDeviceId);
}
: null,
child: const Text('Set video device'),
child: const Text('Set recording device'),
),
const SizedBox(
height: 20,
Expand Down

0 comments on commit bcc5561

Please sign in to comment.