-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Video: Cannot close player in Firefox when plugin is installed #1439
Comments
Just tested it here (Linuxmint, Firefox 90.0) and it works fine. Is anyone else observing this error? |
No problem here either. Running PhotoPrism |
I've noticed a similar error in Firefox last year, triggered by mouse over playback on live photos. We fixed it, but maybe there's still an edge case left? |
@itsthejoker I'm not sure how to trigger this error. Works for me on our demo using the latest Firefox on macOS and Linux. If you can reproduce it, can you please describe what exactly you're doing, or share a screen recording? |
I did some more troubleshooting. I apologize, I've found the issue -- it's with an extension that I have installed: https://github.com/codebicycle/videospeed Disabling that extension fixes the issue for me and I can close the video as expected. With the extension enabled, I receive the error above. I don't know if that's an edge case that you want to focus on or not, but thanks for your help and apologies. I'll go ahead and close this now. |
My family use this extension on all our machines (Vivaldi and Firefox), so we're unable to close videos. The browser console when you click outside the video to close it, logs error Looking a bit closer at the source code of PhotoPrism, seems that the video element returned from A slight modification to the javascript should make the PhotoPrism video player more robust and not break from small markup changes. |
Feel free to suggest tested code changes via pull request. We are currently too busy to do this and perform all the testing necessary. |
@lastzero Found the offending line in the Vue source and created a pull request. 👍 Only changed the line so it specifically grabs the video element instead of the first child: |
I've started a development preview build for testing! It should be ready within an hour. You can then also use our demo to test it. |
Tested in both Chrome and Firefox, fix work as expected in the live demo. 👍🎉 Thank you for merging and deploying so quickly, awesome! Guess it will be included in the next official release? |
Not 100% sure... We need to complete some backend tasks first so that users can upgrade directly in the app. Probably in the next week or two. You can temporarily use the |
System info:
When launching a video on the demo site (https://demo.photoprism.org/browse?view=mosaic&order=newest&public=true&quality=3) I cannot exit the video player on Firefox. Clicking around the video generates an error in the console but does nothing visually. I can close the video as expected when using Chromium.
Error:
The text was updated successfully, but these errors were encountered: