Skip to content

Commit e17a635

Browse files
committed
fix: ts type error
1 parent 102d4a3 commit e17a635

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/av-recorder/src/av-recorder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ function startRecord(
279279
};
280280

281281
ctrl.start();
282-
const stopReadStream = autoReadStream(opts.streams.video, {
282+
const stopReadStream = autoReadStream(opts.streams.video!, {
283283
onChunk: async (chunk: VideoFrame) => {
284284
if (stoped) {
285285
chunk.close();
@@ -298,7 +298,7 @@ function startRecord(
298298
}
299299

300300
if (hasAudioTrack) {
301-
stopEncodeAudio = autoReadStream(opts.streams.audio, {
301+
stopEncodeAudio = autoReadStream(opts.streams.audio!, {
302302
onChunk: async (ad: AudioData) => {
303303
if (stoped) {
304304
ad.close();

0 commit comments

Comments
 (0)