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

453
Views
Can I set Bitmovin video to go fullscreen on device orientation change?

I am having a Bitmovin player instance and I am trying to force fullscreen when device orientation changes to landscape. Code goes like this:

const portrait = window.matchMedia("(orientation: portrait)");

portrait.addEventListener("change", function (e) {
    window.dispatchEvent(new Event('resize'));

    if (!e.matches && player.isPlaying() && (player.getViewMode() == 'inline')) {
        player.setViewMode('fullscreen');
    }

    if (e.matches && player.isPlaying() && (player.getViewMode() == 'fullscreen')) {
        player.setViewMode('inline');
    }
})

Event listener works correctly, but on Chrome in Android phones I get a TypeError: fullscreen error

If I force fullscreen via console in dev tools and restore to inline view, behaviour changes and video goes fullscreen on orientation change.

Researching I found that Chrome requires either user gestures for fullscreen events, or call them through an event (as is the case here) so I cannot figure out what is wrong.

Behaviour is the same using the native fullscreen api instead of bitmovin's setViewMode() functions

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