Commit 355a9a7f authored by Kuo Jen Wei's avatar Kuo Jen Wei Committed by Commit Bot

[CCA] Use mode switching icon during video fps switching.

Bug: 1024402
Test: Verify switching icon is changed during fps switching.
Change-Id: I53e04841094b5439634a3b3c497bbcb4209cbde7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1915648
Auto-Submit: Kuo Jen Wei <inker@chromium.org>
Reviewed-by: default avatarShik Chen <shik@chromium.org>
Commit-Queue: Kuo Jen Wei <inker@chromium.org>
Cr-Commit-Position: refs/heads/master@{#715215}
parent d5b6ea2e
...@@ -233,7 +233,9 @@ cca.device.VideoConstraintsPreferrer = ...@@ -233,7 +233,9 @@ cca.device.VideoConstraintsPreferrer =
this.setPreferredConstFps_( this.setPreferredConstFps_(
/** @type {string} */ (this.deviceId_), this.resolution_, /** @type {string} */ (this.deviceId_), this.resolution_,
this.toggleFps_.checked ? 60 : 30); this.toggleFps_.checked ? 60 : 30);
this.doReconfigureStream_(); cca.state.set('mode-switching', true);
this.doReconfigureStream_().finally(
() => cca.state.set('mode-switching', false));
}); });
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment