Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Remove console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-stasiak committed Apr 25, 2023
1 parent cc9d0fd commit a9a721d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
9 changes: 0 additions & 9 deletions assets/src/features/devices/LocalPeerMediaContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,9 @@ export const LocalPeerMediaProvider = ({ children }: Props) => {
isError: false,
isLoading: false,
stop: () => {
console.log("Stopping audio...");
stop("audio");
},
start: () => {
console.log("Starting audio...");
const a = loadObject<MediaDeviceInfo | null>(LOCAL_STORAGE_AUDIO_DEVICE_KEY, null);
console.log({ a });

start({ audioDeviceId: loadObject<MediaDeviceInfo | null>(LOCAL_STORAGE_AUDIO_DEVICE_KEY, null)?.deviceId });
},
disable: () => setEnable("audio", false),
Expand All @@ -160,10 +155,6 @@ export const LocalPeerMediaProvider = ({ children }: Props) => {
[screenSharingConfig, screenSharingDevice]
);

useEffect(() => {
console.log({ data });
}, [data]);

return (
<LocalPeerMediaContext.Provider
value={{
Expand Down
3 changes: 0 additions & 3 deletions assets/src/features/devices/useUserMedia.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -350,13 +350,10 @@ export const useUserMedia = ({
if (!exactConstraints.audio && !exactConstraints.video) return;

if (shouldRestartAudio) {
console.log("Stopping audio device");
state?.audioMedia?.track?.stop();
}

if (shouldRestartVideo) {
console.log("Stopping video device");
console.log({ name: "Stopping:", video: state?.videoMedia?.deviceInfo });
state?.videoMedia?.track?.stop();
}

Expand Down

0 comments on commit a9a721d

Please sign in to comment.