Skip to content

Commit

Permalink
chore(werb): remove prop from useUserMedia as it is created and manag…
Browse files Browse the repository at this point in the history
…ed inside of hook itself
  • Loading branch information
brunocroh committed May 18, 2024
1 parent 73d9b49 commit 212c58f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/hooks/useUserMedia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type MediaConstraints = {
video: string;
};

export const useUserMedia = (video: HTMLVideoElement) => {
export const useUserMedia = () => {
const [stream, setStream] = useState<MediaStream | null>(null);
const [devices, setDevices] = useState<MediaDeviceInfo[]>([]);
const [selectedAudioDevice, setSelectedAudioDevice] = useState("");
Expand Down

0 comments on commit 212c58f

Please sign in to comment.