Closed finesseseth closed 7 months ago
Hello finesseseth, I am afraid I don't have good news for you.
This is a known issue (in a sense that at least I know about it), your research is actually quite similar to mine. Many of your points coincide with my attempts and results, some are new and thank you for them and thank you again for writing it all here. Let me answer a couple of your points:
Without this change I don't think Opera even attempts to load libwidevinecdm.so.
I can confirm this, the browser needs working proprietary codecs to use Widevine. Opera states this in their official reddit manual (:smile:).
https://discourse.flathub.org/t/flatpak-dev-question-app-cannot-load-shared-library-during-runtime/3855 but no replies
The question on Flathub Discourse is actually mine, that was when I was trying to figure it out and I hit the permission wall that I don't understand. And from the lack of answers I can only assume nobody else does either. :-/
One extra point I tried:
gdb
and/or strace
, don't remember exactly) and got a lot of extra (but useless) output and exactly the same error messages.cdm_module.cc
up to line 115, maybe add some extra tests or checks and continue from there. I don't think it is real option and thus it is the first wall in the way of having Opera flatpak DRM working.Wtih these two problems, I am inclined to use other browsers to play video instead. Opera was my backup browser and that it does not handle video playback is a price I am willing to pay.
Uff, this turned out quite longer than expected, I salute everyone who made it here and wish you a nice day! :sun_with_face:
Hi Gaeldrin, thanks for your reply.
That is very unfortunate, I'm even less familiar with Flatpak, Opera, and Widevine so I can't offer any new insights, except perhaps that Operation not permitted
in general personal experience tends to be related to permissions or filesystem (IE mount options like noexec and writing to a ro mount). I tried looking in to the mounts in the sandbox but being unfamiliar with Flatpak I was unable to discern anything.
I read through the other issue raised about the codec's and my only suggestion there would be to look at other projects that do this, I know a lot of Flatpak's pull specific Mesa versions for example. This might apply to this current issue too, as I saw Vivaldi had similar issues as Opera. Though reading through their forums about Flatpak versions of Vivaldi wasn't spirit raising as they seemed to conclude that Flatpak needs to mature it's sandbox more, citing issues with it and Chromium based browsers needing to use something called Zypak, but you may already know this.
I'm really only knee deep in to using Flatpak's so I can still use Opera via other ways without breaking my work flow or system in the process.
Thanks for putting this whole thing together. If anything changes I'll be back.
I think it's a dupe of #28
I recently decided to give Opera another go after hearing about their new release, so far pretty happy with it - but there is an issue I haven't been able to solve yet with the Flatpak version.
I've tested Opera from community Manjaro repo's, AUR and Snap (after some fiddling) and got them all working.
I don't know if this is related to sandboxing or not. I get these messages when trying to run widevine encoded content:
[651:405:0623/092718.993705:ERROR:cdm_module.cc(114)] CDM at /home/<user>/.var/app/com.opera.Opera/config/opera/WidevineCdm/4.10.2652.1/_platform_specific/linux_x64/libwidevinecdm.so could not be loaded. [651:405:0623/092718.993780:ERROR:cdm_module.cc(115)] Error: /home/<user>/.var/app/com.opera.Opera/config/opera/WidevineCdm/4.10.2652.1/_platform_specific/linux_x64/libwidevinecdm.so: cannot open shared object file: Operation not permitted
All Flatpaks are installed globally.
I've done the following:
Used https://bitmovin.com/demos/drm for testing.
So far, no luck.
Thanks for your time.