Skip to content

Commit

Permalink
chore: add creator with WebAV
Browse files Browse the repository at this point in the history
  • Loading branch information
hughfenghen committed Jun 6, 2024
1 parent 7fc5e07 commit 9ea33fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/av-cliper/src/mp4-utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ function encodeVideoTrack(
height: opts.height,
brands: ['isom', 'iso2', 'avc1', 'mp42', 'mp41'],
avcDecoderConfigRecord: null as ArrayBuffer | undefined | null,
name: 'Track created with WebAV',
};

let trackId = -1;
Expand Down Expand Up @@ -174,6 +175,7 @@ function encodeAudioTrack(
channel_count: audioOpts.channelCount,
hdlr: 'soun',
type: audioOpts.codec === 'aac' ? 'mp4a' : 'Opus',
name: 'Track created with WebAV',
};

let trackId = -1;
Expand Down

0 comments on commit 9ea33fd

Please sign in to comment.