Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(FEC-7089): handle bitrate change in android browser #110

Merged
merged 4 commits into from
Sep 17, 2017
Merged

Conversation

yairans
Copy link
Contributor

@yairans yairans commented Sep 13, 2017

Description of the Changes

On bitrate change for progressive download In Android browser (AKA native/stock browser) we have to seek to the current position only after some playback

CheckLists

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • test are passing in local environment
  • Travis tests are passing (or test results are not worse than on master branch :))
  • Docs have been updated

@yairans yairans changed the title fix(fec-7089): handle bitrate change in android browser fix(FEC-7089): handle bitrate change in android browser Sep 13, 2017
this._onTrackChanged(videoTrack);
});
this._videoElement.currentTime = currentTime;
if (Env.browser.name === 'Android Browser') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yairans can we make it use the actual data fro video and not browser sniffing based?
Is it possible to check after LOADED_DATA if video.duration exist and only if not then register DURATION_CHANGE and call play?
Also, if I recall this is a known bug that on Android stock browser the loadeddata event is fired before even the loadedmetadata is fired, can we move this implemntation to use loadedmetadata instead? if so then we need to test it again on all environments/platforms.

@yairans yairans merged commit 5e5a648 into master Sep 17, 2017
@yairans yairans deleted the FEC-7089 branch September 17, 2017 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants