From a2f8a86c1c755f12f1e16ad9b90f66711584252c Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Mon, 29 Jul 2024 07:01:42 -0700 Subject: [PATCH] Fix the catalog extension. --- lib/contribute/broadcast.ts | 6 ++---- lib/contribute/track.ts | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/contribute/broadcast.ts b/lib/contribute/broadcast.ts index 960db1e..2f8224f 100644 --- a/lib/contribute/broadcast.ts +++ b/lib/contribute/broadcast.ts @@ -50,9 +50,8 @@ export class Broadcast { const video: Catalog.VideoTrack = { namespace: this.namespace, - name: track.name, + name: `${track.name}.m4s`, initTrack: `${track.name}.mp4`, - initData: `${track.name}.m4s`, selectionParams: { mimeType: "video/mp4", codec: config.video.codec, @@ -71,9 +70,8 @@ export class Broadcast { const audio: Catalog.AudioTrack = { namespace: this.namespace, - name: track.name, + name: `${track.name}.m4s`, initTrack: `${track.name}.mp4`, - initData: `${track.name}.m4s`, selectionParams: { mimeType: "audio/ogg", codec: config.audio.codec, diff --git a/lib/contribute/track.ts b/lib/contribute/track.ts index 35f2901..cec70d8 100644 --- a/lib/contribute/track.ts +++ b/lib/contribute/track.ts @@ -19,7 +19,6 @@ export class Track { #notify = new Notify() constructor(media: MediaStreamTrack, config: BroadcastConfig) { - // TODO allow multiple tracks of the same kind this.name = media.kind // We need to split based on type because Typescript is hard