-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
calling player.exitFullscreen produces an error and is not caught by promise.catch #7298
Comments
gkatsev
added a commit
to gkatsev/video.js
that referenced
this issue
Jul 1, 2021
In addition to mapping the promise to the executor's resolve, and reject methods, we should also catch the error in the promise chain that's created inside of exitFullscreenHelper_. Fixes videojs#7298.
gkatsev
added a commit
to gkatsev/video.js
that referenced
this issue
Jul 1, 2021
In addition to mapping the promise to the executor's resolve, and reject methods, we should also catch the error in the promise chain that's created inside exitFullscreenHelper_. Fixes videojs#7298.
edirub
pushed a commit
to edirub/video.js
that referenced
this issue
Jun 8, 2023
videojs#7299) Mapping the promise returned from the helpers to the executor's resolve, and reject methods. We also need to catch the error in the promise chain that's created inside exitFullscreenHelper_. Fixes videojs#7298.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Getting
Uncaught (in promise) TypeError: Not in fullscreen mode
whenplayer.exitFullscreen()
is called.exitFullscreen
returns a promise, but attaching.catch()
to it still keeps the error uncaught.Ideally, with
player.exitFullscreen().catch((err)=>(console.log(err)))
, we should be able to catch this error.The text was updated successfully, but these errors were encountered: