Skip to content

Commit

Permalink
Fix the catalog extension. (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
kixelated authored Jul 29, 2024
1 parent f1ed65f commit 36604f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions lib/contribute/broadcast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
1 change: 0 additions & 1 deletion lib/contribute/track.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 36604f8

Please sign in to comment.