Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught (in promise) TypeError: Failed to execute 'exitFullscreen' on 'Document': Document not active #431

Open
txwizard opened this issue Dec 30, 2020 · 0 comments

Comments

@txwizard
Copy link

When I activate the Full Screen button in the player, full screen mode is engaged as expected. However, when I quit full screen mode by tapping the ESCape key and a JS console windows is open, I see the following report, after which full screen mode disengages as expected.

jquery.jplayer.min.js:2 Uncaught (in promise) TypeError: Failed to execute 'exitFullscreen' on 'Document': Document not active
    at Object.exitFullscreen (jquery.jplayer.min.js:2)
    at a.jPlayer._exitFullscreen (jquery.jplayer.min.js:3)
    at a.jPlayer._setOption (jquery.jplayer.min.js:3)
    at a.jPlayer._fullscreenchange (jquery.jplayer.min.js:3)
    at HTMLDocument.c.api.fullscreenEnabled.c.event.fullscreenchange.internal.fullscreenchangeHandler.internal.fullscreenchangeHandler (jquery.jplayer.min.js:3)
exitFullscreen @ jquery.jplayer.min.js:2
_exitFullscreen @ jquery.jplayer.min.js:3
_setOption @ jquery.jplayer.min.js:3
_fullscreenchange @ jquery.jplayer.min.js:3
c.api.fullscreenEnabled.c.event.fullscreenchange.internal.fullscreenchangeHandler.internal.fullscreenchangeHandler @ jquery.jplayer.min.js:3

Since the application behaves as expected, the exception is not troublesome. Nevertheless, it is odd.

My environment is as follows.

1, Web Browser: Microsoft Edge Chromium Version 87.0.664.66 (Official build) (64-bit)
2. Operating System: Microsoft Windows Professional [Version 10.0.19042.685]
3. JPlayer version 2.9.2, executing from https://cdnjs.cloudflare.com/ajax/libs/jplayer/2.9.2/jplayer/jquery.jplayer.min.js
4. JQuery version 3.5.1, executing from https://code.jquery.com/jquery-3.5.1.min.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant