Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Fix fast quality change for alternate audio #1046

Merged
merged 2 commits into from
Mar 31, 2017

Conversation

gesinger
Copy link
Contributor

@gesinger gesinger commented Mar 8, 2017

No description provided.

@@ -698,7 +698,7 @@ export class MasterPlaylistController extends videojs.EventTarget {
this.masterPlaylistLoader_.media(media);

this.mainSegmentLoader_.resetLoader();
if (this.audiosegmentloader_) {
Copy link
Contributor

@mjneil mjneil Mar 16, 2017

Choose a reason for hiding this comment

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

surprised this went unnoticed for so long being cased incorrectly 😄

@@ -698,7 +698,7 @@ export class MasterPlaylistController extends videojs.EventTarget {
this.masterPlaylistLoader_.media(media);

this.mainSegmentLoader_.resetLoader();
if (this.audiosegmentloader_) {
if (this.audioPlaylistLoader_) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why should this be audioPlaylistLoader_ vs audioSegmentLoader_?

Copy link
Contributor Author

@gesinger gesinger Mar 17, 2017

Choose a reason for hiding this comment

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

audioSegmentLoader_ always exists, even if not being used. audioPlaylistLoader_ only exists if we are using alt audio

@mjneil
Copy link
Contributor

mjneil commented Mar 17, 2017

Is it even necessary to reset the audio loader on fast quality change? If fastQualityChange_ causes a rendition switch, the mediachange event listener will call setUpAudio if the active audio group has changed. setUpAudio will tear down the playlist loader and reset the segment loader

@mjneil mjneil self-assigned this Mar 30, 2017
@imbcmdth
Copy link
Member

We decided to remove the code if it is redundant and to add a test to prove that it was not necessary.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants