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

chore: consistent source selection on demo start #1185

Merged
merged 1 commit into from
Aug 17, 2021
Merged

Conversation

brandonocasey
Copy link
Contributor

Description

Prevents the issue where one of the data manifests is loaded as the first source instead of bipbop.

@codecov
Copy link

codecov bot commented Aug 17, 2021

Codecov Report

Merging #1185 (bf7bb50) into main (55f0bde) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1185   +/-   ##
=======================================
  Coverage   86.51%   86.51%           
=======================================
  Files          39       39           
  Lines        9602     9602           
  Branches     2219     2219           
=======================================
  Hits         8307     8307           
  Misses       1295     1295           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 55f0bde...bf7bb50. Read the comment docs.

Copy link
Member

@gkatsev gkatsev left a comment

Choose a reason for hiding this comment

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

LGTM

xhr.addEventListener('load', function() {
var sources = JSON.parse(xhr.responseText);
var addSourcesToDom = function() {
if (!sourceList || !hlsDataManifest || !dashDataManifest) {
Copy link
Member

Choose a reason for hiding this comment

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

I see, this is the key to making it work. Wait till all 3 items have loaded before we process this.

@gkatsev gkatsev merged commit ff34277 into main Aug 17, 2021
@gkatsev gkatsev deleted the chore/demo-race branch August 17, 2021 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants