Skip to content

Commit 48433ab

Browse files
authored
fix: Fix exception in StreamingEngine for EMSG with HLS (shaka-project#3887)
Add null check for emsgSchemeIdUris when EMSG boxes are parsed, as this value is null for HLS streams Fixes shaka-project#3886
1 parent 1becadf commit 48433ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/media/streaming_engine.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1672,7 +1672,7 @@ shaka.media.StreamingEngine = class {
16721672
// See DASH sec. 5.10.3.3.1
16731673
// If a DASH client detects an event message box with a scheme that is not
16741674
// defined in MPD, the client is expected to ignore it.
1675-
if (emsgSchemeIdUris.includes(schemeId) ||
1675+
if ((emsgSchemeIdUris && emsgSchemeIdUris.includes(schemeId)) ||
16761676
this.config_.dispatchAllEmsgBoxes) {
16771677
// See DASH sec. 5.10.4.1
16781678
// A special scheme in DASH used to signal manifest updates.

0 commit comments

Comments
 (0)