NoSleep.js icon indicating copy to clipboard operation
NoSleep.js copied to clipboard

screen goes off and a black video plays continuously when someone share and open the link from the skype

Open khaledtitu opened this issue 3 years ago • 2 comments

  • Device Name: iPhone 12 pro max
  • Device Version:15.6.1
  • Browser Name: Skype default browser
  • Browser Version: don't know
  • NoSleep.js Version:12.0

Actual Behavior

The bug appears when someone opens the link from skype. When I open the demo link (https://richtr.github.io/NoSleep.js/example/) from skype. example: someone shares this demo link on skype and if you open it and clicks on "Wake Lock is disabled" button Screen goes off and a Black video plays

How Do We Reproduce?

-> Share The (https://richtr.github.io/NoSleep.js/example/) link to any other skype user -> Click it and then click the button "Wake Lock is disabled" -> Then you will find the bug (Screen goes off and a Black video plays continuously )

khaledtitu avatar Oct 07 '22 08:10 khaledtitu

@khaledtitu I was finding that for in app browsing on iOS that the browser that was being used was Mozilla, which didn't support 'playsinline' or 'webkit-playsinline' for that matter. My workaround was to check if the browser is recognisable, i.e. Chrome, Firefox, Safari, Opera or Edge, and only play the video if it was.

jamieconnor-KOJO avatar Oct 18 '22 05:10 jamieconnor-KOJO

    Consider this a browser bug.     And the screen is not off: it's playing the video in full-screen (immersive mode).

MasterInQuestion avatar Apr 16 '23 17:04 MasterInQuestion