Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

158
Vistas
WEBRTC share and control multiple video on 1 session PeerConnection

I'm working with WebRtc on javascript. I would like to share multiple local videos from this client to another and control videos from the source(speed up, stop, move back, forward,...) without renegotiation.

The feature that I toward to that I have multiple short videos and I'm trying to stream it like one video after several times searching and testing, I cannot find any solution suitable. I had to try addTrack, add multiple MediaStream,combine many MediaStream to one? but it didn't work for me.

Does anybody have any answer or just a few keywords to solve this?

Im try to do something like this, add mutiple track and try to make it appear at client side

  // lsVideoAdded is array MediaStream
      for (const vid of lsVideoAdded) {
        for (const track of vid.getTracks()) {
          _localPeer.addTrack(track, vid);
        }
      }

 //client side
      _localPeer.ontrack = (ev) => {
        if (ev.streams && ev.streams[0]) {
          document.querySelector("#remoteVideo").srcObject = ev.streams[0];
        } else {
          let inboundStream = new MediaStream(ev.track);
          document.querySelector("#remoteVideo").srcObject = inboundStream;
        }
      };
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda