Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

162
Visualizações
Play video if condition met after pause angular

I'm trying to create a multicam video streaming, it looks like this

enter image description here

there is a custom control below, i wanted to replace default video control since i didn't get what i wanted. I've succesfully managing time and seeking function on my custom progress bar, but due to videos are unsynchronize after user try to do the seeking, so i pause all of the video first, then changing every currentTime of the video like this.

  updateTime(e) {
    this.plyr.toArray().forEach((plyr) => plyr.player.pause());
    let userTimeSeek = (e.target.value * 100) / 186;
    if (userTimeSeek > this.buffered) {
      console.log("Click twice");
    }
    this.plyr.toArray().forEach((plyr) => {
      plyr.player.currentTime = parseFloat(e.target.value);
      this.time = e.target.value;
      this.remaining = this.parse(
        plyr.player.duration - plyr.player.currentTime
      );
    });
    if (
      this.plyr.toArray()[0].player.currentTime ===
        this.plyr.toArray()[2].player.currentTime &&
      this.plyr.toArray()[1].player.currentTime ===
        this.plyr.toArray()[2].player.currentTime
    ) {
      //PLAY
    }
  }

//PLAY I wanted to call play function here, if i add play function it gives me error enter image description here

what does that mean?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda