Describe the bug
With firefox, the Javascript bit that is writing to the clipboard is blocked with this error:
document.execCommand(‘cut’/‘copy’) was denied because it was not called from inside a short running user-generated event handler.
To Reproduce
Expected behavior
URL should be written to the clipboard
System (please complete the following information):
This is probably because the click event is not set on the "copy" button, firefox blocks the copy action if that is the case. This mdn link explains it
Same on Chrome on Android.
Real pity since it's the only way to get media to play on an external player on Android.
I've looked into it and there may be four different solutions:
I'm pretty new to contributing to a big project and I'd like your advice on it.
Moreover, the current implementation uses a try / catch to check if the copy succeeded, but the command returns true or false whether it worked. A fix for this has been pushed and merged.
A workaround has been pushed to master to allow manually copying the URL #754, maybe we should close this issue?
What version of jellyfin will have this fixed?
10.5.0
Most helpful comment
10.5.0