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

player.getQualityFor('video') can't return a Object #2109

Closed
Yalhu opened this issue Jul 31, 2017 · 1 comment
Closed

player.getQualityFor('video') can't return a Object #2109

Yalhu opened this issue Jul 31, 2017 · 1 comment

Comments

@Yalhu
Copy link

Yalhu commented Jul 31, 2017

player.getQualityFor('video') return a Object where i saw on the page(:http://cdn.dashjs.org/latest/jsdoc/MediaPlayerEvents.html).;

  1. Is it can return a String: 'auto'?
  2. why what i return are all Number (0/1/2/....)?
player.setAutoSwitchQuality(false);
player.setQualityFor("video",val); 
player.getQualityFor("video",val); 

what's wrong

@Yalhu Yalhu changed the title player.getQualityFor('video') can't return a Object player.getQualityFor('video') can't return a Object Jul 31, 2017
@spiterikevin
Copy link
Contributor

The documentation for getQualityFor() is inaccurate - PR #2113 fixes it. The return is a number not an Object, it is the quality index with 0 corresponding to the lowest bitrate.

@Yalhu Yalhu closed this as completed Aug 2, 2017
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

No branches or pull requests

2 participants