Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

88
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!