Improve WMPI's Cast play/pause responsiveness
Currently, tapping on the cast notifications' play/pause button in short succession only results in WMPI's play/pause state being updated half the time. The problem comes from the fact that there is no way to tell if WMPI's play/pause state toggled due to a user gesture, or due to the FlingingRenderer asking it to toggle to match the cast device's state. In both cases, we expect the remote device to transition, and we ignore transitory play state updates. This CL fixes the issue by saving the last state the remote device has sent, and comparing it against WMPI's play/pause commands. Change-Id: Ifa1cbe64fcfedb9e43d8550ad010ba07e68b4219 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1804223Reviewed-by:Dale Curtis <dalecurtis@chromium.org> Commit-Queue: Thomas Guilbert <tguilbert@chromium.org> Cr-Commit-Position: refs/heads/master@{#696603}
Showing
Please register or sign in to comment