Fix type
This commit is contained in:
parent
537341da3a
commit
736aa95133
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ declare global {
|
|||
}
|
||||
|
||||
export const useMediaStreamTrackCount = (
|
||||
stream: MediaStream
|
||||
stream: MediaStream | null
|
||||
): [number, number] => {
|
||||
const latestAudioTrackCount = stream ? stream.getAudioTracks().length : 0;
|
||||
const latestVideoTrackCount = stream ? stream.getVideoTracks().length : 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue