We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e1a6c49 + 05e0a42 commit 2844c44Copy full SHA for 2844c44
src/hooks/useMediaTrack.ts
@@ -1,5 +1,6 @@
1
import { DailyParticipant, DailyTrackState } from '@daily-co/daily-js';
2
3
+import { isTrackOff } from '../utils/isTrackOff';
4
import { useParticipantProperty } from './useParticipantProperty';
5
6
type MediaType = keyof DailyParticipant['tracks'];
@@ -32,6 +33,6 @@ export const useMediaTrack = (
32
33
34
return {
35
...trackState,
- isOff: trackState.state === 'blocked' || trackState.state === 'off',
36
+ isOff: isTrackOff(trackState.state),
37
};
38
0 commit comments