Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

257
Views
grabar audio suelto de la grabadora multistream rtc en resetstream

hola estoy trabajando con un proyecto webrtc. estoy usando Recordrtc para grabar tanto localstream como remotestream

 recorder = RecordRTC([localstream,remotestream], { type: 'video', mimeType: 'video/webm', numberOfAudioChannels: 2, elementClass: 'multi-streams-mixer', audioBitsPerSecond: 6000, // min: 100bps max: 25000 videoBitsPerSecond: 150000, // min: -5000bps max: 130000 });

al voltear mi cámara, actualizaré la grabadora con una nueva transmisión

 recorder.getInternalRecorder().resetVideoStreams([localStream, remoteStream]);

al restablecer la nueva transmisión, pierdo el audio de la transmisión remota. alguien me puede ayudar a resolver el problema del audio

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Solucioné este problema actualizando la función resetVideoStreams en recordRTC con la última versión

reemplace resetVideoStreams en recordRTC con

 function resetVideoStreams(streams) { videos = []; streams = streams || arrayOfMediaStreams; // via: @adrian-ber streams.forEach(stream => { if (stream.getTracks().filter(function (t) { return t.kind === 'video'; }).length) { var video = getVideo(stream); video.stream = stream; videos.push(video); } if (stream.getTracks().filter(function (t) { return t.kind === 'audio'; }).length && self.audioContext) { var audioSource = self.audioContext.createMediaStreamSource(stream); audioSource.connect(self.audioDestination); self.audioSources.push(audioSource); } }); }
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!