DescriptionPrevent seeking when Android MediaPlayer reports that it's not possible.
For some content (e.g. HLS live streams), attempting to seek will get the
media player stuck in an error state. In
https://codereview.chromium.org/22605013, this was addressed by preventing
seeks if the duration of the video is negative. However, with
https://codereview.chromium.org/617743004, a -1 returned by the Android
MediaPlayer will be converted to media::kInfiniteDuration().
This CL utilizes two seek booleans derived from the Android MediaPlayer to
determine if a seek should be allowed.
BUG=510641
TEST=MediaPlayerBridgeTest.*
Committed: https://crrev.com/513ce3cd3246269db14a5dd2c328ee0b97f505aa
Cr-Commit-Position: refs/heads/master@{#339762}
Patch Set 1 #
Total comments: 6
Patch Set 2 : Addressed comments from DaleCurtis. #
Total comments: 2
Patch Set 3 : Addressed comments from qinmin. #
Messages
Total messages: 22 (8 generated)
|