Skip to content

Commit

Permalink
Don't do content-length checking for subtitle tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbryer committed Jun 3, 2020
1 parent d889db3 commit 9376a97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/streaming/net/HTTPLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ function HTTPLoader(cfg) {
}

if (httpRequest.response.status >= 200 && httpRequest.response.status <= 299) {
if (hasContentLengthMismatch(httpRequest.response)) {
const mismatchCheckType = httpRequest.request && httpRequest.request.mediaType !== 'fragmentedText';
if (mismatchCheckType && hasContentLengthMismatch(httpRequest.response)) {
handleLoaded(false);
if (remainingAttempts > 0) {
remainingAttempts--;
Expand Down

0 comments on commit 9376a97

Please sign in to comment.