richtr / NoSleep.js

Prevent display sleep and enable wake lock in any Android or iOS web browser.
MIT License
2.23k stars 380 forks source link

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

Open khaledtitu opened 1 year ago

khaledtitu commented 1 year ago

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 )

jamieconnor-KOJO commented 1 year ago

@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.

MasterInQuestion commented 1 year ago

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