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

switchHistory does not have variant/bandwidth info #823

Closed
russitto opened this issue May 19, 2017 · 9 comments
Closed

switchHistory does not have variant/bandwidth info #823

russitto opened this issue May 19, 2017 · 9 comments
Labels
status: archived Archived and locked; will not be updated status: duplicate A duplicate of another issue; should be closed after linking to the original issue type: bug Something isn't working correctly
Milestone

Comments

@russitto
Copy link
Contributor

  • What version of Shaka Player are you using?
    Shaka 2.1.1

    • Can you reproduce the issue with our latest release version?
      Yes
    • Can you reproduce the issue with the latest code from master?
      Yes
  • Are you using the demo app or your own custom app?
    Both

    • If custom app, can you reproduce the issue using our demo app?
      Yes
  • What browser and OS are you using?
    Chrome on Windows

  • What did you do?
    In developers tools:
    shakaDemo.player_.getStats().switchHistory

    • What content did you load?
      Shaka Demo
      • If standard demo asset, which one?
        Angel One multicodec multilingual
  • What did you expect to happen?
    Variant info in switch history, or bandwidth info

  • What actually happened?
    I got array of object with track id, nor variant/bandwidth info
    2017-05-19-170428_310x301_scrot

@joeyparrish
Copy link
Member

@russitto, the expectation was that applications would correlate id with the id field of Track.

Would it be more helpful to include the Track object itself and deprecate id in the history?

@russitto
Copy link
Contributor Author

Hi, getTracks/getVariantTracks uses variant id. getStats() uses track id.
Track objects are not public via api.
Please show me how to get track objects or include Track object in getStats().

Thanks! :)

@joeyparrish
Copy link
Member

Ah, I see now. We put IDs from the non-public Stream object into the history, rather than Track IDs. Sorry about that.

@joeyparrish joeyparrish added type: bug Something isn't working correctly and removed needs triage labels May 24, 2017
@joeyparrish
Copy link
Member

  • Track ID for variants is taken from Variant ID
  • Track ID for text is taken from Stream ID
  • Stream and Variant IDs are auto-incremented integers, not from manifest
  • switchHistory contains Stream IDs only

The crux of the problem is that variant Tracks have the Variant ID, but the two Streams inside the Variant have their own IDs which are only seen in switchHistory and can't be correlated to anything through the public API.

@joeyparrish joeyparrish added this to the v2.2.0 milestone May 24, 2017
@joeyparrish
Copy link
Member

joeyparrish commented May 24, 2017

It looks like the ID issue was already filed here: #785 (edit: corrected issue number)

@joeyparrish
Copy link
Member

If the IDs in switchHistory matched Track IDs, would that be sufficient? Or would you still like to have bandwidth added to the history entries?

I'm starting to lean away from including the entire Track, but that is still a technically feasible option.

@russitto
Copy link
Contributor Author

It's fine with switchHistory matching Track IDs.
Thx

@joeyparrish
Copy link
Member

In that case, this is a duplicate of #785. I will close this one, and you can follow along on that one. Thanks!

@joeyparrish
Copy link
Member

Cherry-picked to v2.1.3.

@shaka-project shaka-project locked and limited conversation to collaborators Mar 22, 2018
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Apr 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated status: duplicate A duplicate of another issue; should be closed after linking to the original issue type: bug Something isn't working correctly
Projects
None yet
Development

No branches or pull requests

3 participants