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 reset functions #1897

Conversation

nicosang
Copy link
Contributor

Hi,

in some files, the reset function was calling the setup function :

  • AbrController.js
  • PlaybackController.js
  • AbandonRequestsRule.js
  • ThroughputRule.js

The main consequence was an unnecessary call to getInstance function when the user changed the video stream. So, I propose to do the reverse : setup function calls the reset. The setup function only calls the different getInstance reference. The others attributes are initialized in the reset function.

Nicolas

@nicosang nicosang force-pushed the Update_reset_functions branch 2 times, most recently from 0ab96f1 to 1a64250 Compare May 10, 2017 12:59
@nicosang nicosang force-pushed the Update_reset_functions branch from 1a64250 to 734e000 Compare May 18, 2017 13:23
@nicosang nicosang force-pushed the Update_reset_functions branch from 734e000 to 361a9de Compare May 29, 2017 13:50
@nicosang nicosang force-pushed the Update_reset_functions branch 3 times, most recently from 4772dfc to 1d2c5ca Compare June 9, 2017 09:01
nicosang added 13 commits June 12, 2017 09:48
…unction is called only once in order to get references on singleton objects. At the end of setup function, a call to reset is done to initialize attributes. When the user switchs to a new video stream, only attributes need to be reseted by a call to reset function.
…unction is called only once in order to get references on singleton objects. At the end of setup function, a call to reset is done to initialize attributes. When the user switchs to a new video stream, only attributes need to be reseted by a call to reset function.
…unction is called only once in order to get references on singleton objects. At the end of setup function, a call to reset is done to initialize attributes. When the user switchs to a new video stream, only attributes need to be reseted by a call to reset function.
…commits, this setup has to call reset function
@nicosang nicosang force-pushed the Update_reset_functions branch from 6e38ede to 09ab96b Compare June 12, 2017 07:48
@dsparacio dsparacio merged commit efd1efd into Dash-Industry-Forum:development Jun 13, 2017
@nicosang nicosang deleted the Update_reset_functions branch June 14, 2017 07:43
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