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

fix: filter out unsupported subtitles for dash #962

Merged
merged 10 commits into from
Dec 4, 2020
Prev Previous commit
Next Next commit
do not create media groups without any playlists for dash
  • Loading branch information
brandonocasey committed Dec 3, 2020
commit 9827fa604e4bbd89595078cb22f9a548d14e0572
5 changes: 5 additions & 0 deletions src/media-groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,11 @@ export const initialize = {
playlistLoader =
new PlaylistLoader(properties.resolvedUri, vhs, requestOptions);
} else if (sourceType === 'dash') {
const playlists = properties.playlists.filter((p) => p.excludeUntil !== Infinity);

if (!playlists.length) {
return;
}
playlistLoader = new DashPlaylistLoader(
properties.playlists[0],
vhs,
Expand Down