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