Skip to content

Commit

Permalink
fix: dash group changes should not stop playlist loader
Browse files Browse the repository at this point in the history
  • Loading branch information
ziddey committed Mar 12, 2021
1 parent 9cfd533 commit 6967321
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/media-groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export const startLoaders = (playlistLoader, mediaType) => {
*/
export const onGroupChanged = (type, settings) => () => {
const {
sourceType,
segmentLoaders: {
[type]: segmentLoader,
main: mainSegmentLoader
Expand All @@ -81,6 +82,11 @@ export const onGroupChanged = (type, settings) => () => {
const activeGroup = mediaType.activeGroup(activeTrack);
const previousActiveLoader = mediaType.activePlaylistLoader;

if (sourceType === 'dash') {
// only one playlist loader for dash. do not stop.
return;
}

stopLoaders(segmentLoader, mediaType);

if (!activeGroup) {
Expand Down

0 comments on commit 6967321

Please sign in to comment.