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

107
Views
YouTube API iFrame - Keep YouTube video iFrame playing while phone locked

I would like to know if it is possible to keep a YouTube API iFramme video playing while my phone is locked. I mean, I'm using the YouTube API iFrame to embed a YouTube video on my website. But when I lock my phone, the video stops playing. However, when I lock my computer, the video continues playing. How can I "fake" a "desktop iFrame" or how can I force, in JS, the video to play?

Thanks!

EDIT: I tried something like this:

function onPlayerStateChange(event) {
    player.playVideo()
}

It works only on some phones, but not for all...

It is not a problem if I can't stop playing the video after: it's for streaming, so I just have to mute the video if I want to "stop" it.

almost 4 years ago · Santiago Trujillo
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!