This repository has been archived by the owner on Dec 13, 2023. It is now read-only.
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.
Closed
Description
opened on Jun 11, 2018
When the tracks are not supported in the stream the onUpdateMetadata callback exits even before it notifies about change of other metadata like title, subtitle, logo, mediaType...
video.media.ts
protected onUpdateMetadata(event): void {
if (!this.mediaElement) {
Log.warn("MediaElement is null, ignore event (" + event.type + ")");
return;
}
if (!this.metadata) {
Log.warn("Metadata is null !!! ( implementation error )");
return;
}
if (
!(
this.mediaElement.audioTracks &&
this.mediaElement.videoTracks &&
this.mediaElement.textTracks
)
) {
Log.warn("Tracks not implemented !!! ( implementation error )");
return;
}
let signature: string = JSON.stringify(this.metadata);
this.updateTracks();
if (JSON.stringify(this.metadata) !== signature) {
this.mediaChannel.onUpdateMetadata(this.getMedatadata());
}
}
The other metadata never gets to the app...
Thank you,
Tomas
Metadata
Assignees
Labels
No labels
Activity