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

85
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
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