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

87
Visualizações
Javascript video PIP mode

I am using requestPictureInPicture to popup the html video element but the problem is size is limited to around 920 x 540 on PIP mode.

Is it possible to get larger size? OR except requestPictureInPicture is there any other library to get this feature?

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

0

I'm sure the limitation is 960*540 on screens with resolutions of 1920x1080. Smaller values may be related to the aspect ration of the video itself.

The limitation comes from the specification used for this feature and it's just a recommendation. But most browsers make use of it:

It is also RECOMMENDED that the Picture-in-Picture window has a maximum and minimum size. For example, it could be restricted to be between a quarter and a half of one dimension of the screen.

If you really need larger views than 50% of the current screen, you are able to make use of popup windows and play the video in there or use the Fullscreen API. A challenge with the popup method is that the windows won't have a always on top-flag and/or option to activate it.

Another method would be to make the video element drag- and resizable. This would be similar to many instant messenger video players.

  • How to resize the video in HTML5 dynamically?.
  • Give the video (or it's container) element a position: fixed; and add a small script for the user to move it around.
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