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

120
Visualizações
Is there any support in video.js to set callbacks to have video players in remote browsers mimic an user action?

I am using video.js video player.

I am having an application that is loaded in multiple browsers. The application has a video.js video player loaded in it. One of the app serves as the master or the controller app. The others are controlled apps.

Using websockets I want to send control messages from the master player to the controlled players.

I want the following actions mimicked in the controlled player from the master player:

  1. Volume control.
  2. Play button
  3. Pause button
  4. Skip to any point in the video

Are there callbacks provided when a user initiates these controls in the player? If so, is there sufficient data passed to the callback so that this data can, in turn, through websockets, be passed to a remote player to perform the same action?

Any pointers will be helpful.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Yes, you can try listening to these events from videojs player: volumechange, play, pause, seeked,

Your code will look like something like this:

this.player.on("volumechange", (e) => forwardEventToWebSocket(e));

Documentation of all events is available here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video#events

about 4 years ago · Juan Pablo Isaza Relatório
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