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

update the use of streamProcessorDict in AbrController #1961

Conversation

nicosang
Copy link
Contributor

Hi,

this PR has to use, actually, streamProcessorDict attribute. Each time a streamProcessor is created,it is stored in streamProcessorDict array. So, the consequence is that the functions of AbrController just need type as parameter, not the streamProcessor reference.

Nicolas

@nicosang nicosang force-pushed the manage_StreamProcessorDict_AbrController branch from 0d6b0b5 to 7f3f8b8 Compare May 29, 2017 09:23
@nicosang nicosang force-pushed the manage_StreamProcessorDict_AbrController branch from 7f3f8b8 to f082fc2 Compare June 6, 2017 11:51
@nicosang nicosang force-pushed the manage_StreamProcessorDict_AbrController branch from 2c75cd6 to 7b76764 Compare June 6, 2017 14:13
Copy link
Contributor

@robertbryer robertbryer left a comment

Choose a reason for hiding this comment

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

It's a good refactor but looks like some things changed in the development branch in the meantime?

const streamId = streamInfo ? streamInfo.id : null;
const oldQuality = getQualityFor(type);
const rulesContext = RulesContext(context).create({
streamProcessor: streamProcessorDict[type],
Copy link
Contributor

Choose a reason for hiding this comment

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

Lack of abrController in the rulesContext causes errors in ThroughputRule.js

if (getAutoSwitchBitrateFor(type)) {
const topQualityIdx = getTopQualityIndexFor(type, streamId);
const switchRequest = abrRulesCollection.getMaxQuality(rulesContext);
let newQuality = switchRequest.value;
Copy link
Contributor

Choose a reason for hiding this comment

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

Current development version should be switchRequest.quality

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed, it 's the result of a very bad rebase....sorry!
Thanks a lot @robertbryer !

@LloydW93 LloydW93 merged commit 4861b7e into Dash-Industry-Forum:development Jun 8, 2017
@bbert bbert deleted the manage_StreamProcessorDict_AbrController branch September 19, 2018 09:50
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.

None yet

3 participants