Skip to content

Commit

Permalink
fix: ts type error
Browse files Browse the repository at this point in the history
  • Loading branch information
hughfenghen committed Dec 6, 2024
1 parent 102d4a3 commit e17a635
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/av-recorder/src/av-recorder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ function startRecord(
};

ctrl.start();
const stopReadStream = autoReadStream(opts.streams.video, {
const stopReadStream = autoReadStream(opts.streams.video!, {
onChunk: async (chunk: VideoFrame) => {
if (stoped) {
chunk.close();
Expand All @@ -298,7 +298,7 @@ function startRecord(
}

if (hasAudioTrack) {
stopEncodeAudio = autoReadStream(opts.streams.audio, {
stopEncodeAudio = autoReadStream(opts.streams.audio!, {
onChunk: async (ad: AudioData) => {
if (stoped) {
ad.close();
Expand Down

0 comments on commit e17a635

Please sign in to comment.