Skip to content

[DAI] Errors thrown by SdkImpl.prototype.onAddTrack #1184

@alexypdu

Description

@alexypdu

Description

The following error is thrown by SdkImpl.prototype.onAddTrack:

Image

SdkImpl.prototype.onAddTrack = function(event) {
const track = event.track;
if (track.kind === 'metadata') {
track.mode = 'hidden';
track.addEventListener('cuechange', (e) => {
for (const cue of track.activeCues_) {
const metadata = {};
metadata[cue.value.key] = cue.value.data;
this.streamManager.onTimedMetadata(metadata);
}
});
}
};

And the root cause is a typo on this line:

for (const cue of track.activeCues_) {

where it should be track.activeCues instead.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions