commit | 118df4e7ec6d5ce91fd45bddde32c384b6f59c6c | [log] [tgz] |
---|---|---|
author | Zhiqiang Zhang <zqzhang@google.com> | Fri Dec 07 01:09:55 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Dec 07 01:09:55 2018 |
tree | cb1b876dfc41a9015dc63275a08ace3e435e9497 | |
parent | f5dfc4fc873896dc668f7060914800c4e48a0b0f [diff] |
[Clank MR] Fix several issues in FlingingControllerAdapter RemoteMediaClient.getApproximateStreamPosition() is expensive for polling as it has an internal lock. This CL will calculate the approximate stream position in Clank, so we only read from RemoteMediaClient upon status update. A new class (StreamPositionExtrapolator) is migrated from the non-CAF code, which is used as a helper class for position calculation. Also the loaded state is cleared if the player state is idle and finished, which solves the "seek after finished" issue. Bug: 711860 Change-Id: I95b1fe67f3ae12ef7012c6ce1f5e7fe7af2d13be Reviewed-on: https://chromium-review.googlesource.com/c/1364065 Reviewed-by: Thomas Guilbert <tguilbert@chromium.org> Commit-Queue: Zhiqiang Zhang <zqzhang@chromium.org> Cr-Commit-Position: refs/heads/master@{#614527}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .