Fix an issue that video is not seekable
When updating the ReadyState, HTMLMediaElement will immediately check the duration. If at that time has_valid_metadata_ is false, we will return NaN. So the has_valid_metadata_ has to be set before ReadyState is updated. BUG=414499 Review URL: https://codereview.chromium.org/572803002 Cr-Commit-Position: refs/heads/master@{#294979}
Showing
Please register or sign in to comment