mirror of
https://github.com/cgzirim/seek-tune.git
synced 2025-12-17 08:54:19 +00:00
Remove recordData fallbacks
This commit is contained in:
parent
5444d33bd0
commit
c4768d3c76
1 changed files with 5 additions and 5 deletions
|
|
@ -11,8 +11,8 @@ import "react-toastify/dist/ReactToastify.css";
|
|||
import { MediaRecorder, register } from "extendable-media-recorder";
|
||||
import { connect } from "extendable-media-recorder-wav-encoder";
|
||||
|
||||
// var socket = io("http://localhost:5000");
|
||||
var socket = io("https://localport.online:4443/");
|
||||
var socket = io("http://localhost:5000");
|
||||
// var socket = io("https://localport.online:4443/");
|
||||
|
||||
function App() {
|
||||
const [stream, setStream] = useState();
|
||||
|
|
@ -178,9 +178,9 @@ function App() {
|
|||
|
||||
const recordData = {
|
||||
audio: rawAudio,
|
||||
channels: audioConfig.channelCount || 1,
|
||||
sampleRate: audioConfig.sampleRate || 44100,
|
||||
sampleSize: audioConfig.sampleSize || 16,
|
||||
channels: audioConfig.channelCount,
|
||||
sampleRate: audioConfig.sampleRate,
|
||||
sampleSize: audioConfig.sampleSize,
|
||||
};
|
||||
|
||||
if (sendRecordingRef.current) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue