mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
Merge pull request #120 from Monadical-SAS/jose/fix-audio-quality
Fix bad audio quality
This commit is contained in:
@@ -97,7 +97,11 @@ export default function Recorder(props) {
|
|||||||
document.getElementById("play-btn").disabled = false;
|
document.getElementById("play-btn").disabled = false;
|
||||||
} else {
|
} else {
|
||||||
const stream = await navigator.mediaDevices.getUserMedia({
|
const stream = await navigator.mediaDevices.getUserMedia({
|
||||||
audio: { deviceId },
|
audio: {
|
||||||
|
deviceId,
|
||||||
|
noiseSuppression: false,
|
||||||
|
echoCancellation: false,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
await record.startRecording(stream);
|
await record.startRecording(stream);
|
||||||
props.setStream(stream);
|
props.setStream(stream);
|
||||||
|
|||||||
@@ -2,7 +2,8 @@ import { useEffect, useState } from "react";
|
|||||||
import Peer from "simple-peer";
|
import Peer from "simple-peer";
|
||||||
|
|
||||||
// allow customization of the WebRTC server URL from env
|
// allow customization of the WebRTC server URL from env
|
||||||
const WEBRTC_SERVER_URL = process.env.NEXT_PUBLIC_WEBRTC_SERVER_URL || "http://127.0.0.1:1250/offer";
|
const WEBRTC_SERVER_URL =
|
||||||
|
process.env.NEXT_PUBLIC_WEBRTC_SERVER_URL || "http://127.0.0.1:1250/offer";
|
||||||
|
|
||||||
const useWebRTC = (stream) => {
|
const useWebRTC = (stream) => {
|
||||||
const [data, setData] = useState({
|
const [data, setData] = useState({
|
||||||
|
|||||||
Reference in New Issue
Block a user