tiliado / nuvolaplayer

Nuvola Player - Tight integration of web-based media streaming services with your desktop
https://nuvola.tiliado.eu/
BSD 2-Clause "Simplified" License
334 stars 27 forks source link

Widevine not installable #580

Closed Schmetzler closed 4 years ago

Schmetzler commented 4 years ago

Hello there, it seems like that in the newest version of Chrome libwidevinecdmadapter.so is no longer distributed (only libwidevinecdm.so). This prevents widevine from getting installed on nuvola (as the software states, that widevine is not available in the package)

Maybe widevine works without that adapter?

And it would be nice if there is a way to manually install the plugin. But I didn't find any information on where to place the file.

I will now look into the source and search for the install location, maybe I can find the appropriate location.

OS: Manjaro x64 Installed: Amazon Music Cloud Player

EDIT: Okay after inspecting the source it might not be a problem with the missing adapter file, but with the download of the deb file (it does not throw an exception, but maybe it does and I just don't see it)

Schmetzler commented 4 years ago

If I start the flatpak with root privileges I can install widevine but xdg library does not work. And after I start the flatpak again without root it cannot install the widevine plugin.

What am I doing wrong?

jiri-janousek commented 4 years ago

Hello @Schmetzler. I cannot reproduce your issue.

Could you obtain a debugging log? Then save it as a text file (*.txt) and attach it to the bug report.

Schmetzler commented 4 years ago

I found a partial solution. I found the widevine folder in home directory of root (/root/.var/.../widevine) and copied it to my home folder. It detects the widevine plugin, but now it is taking forever to start the Amazon Cloud Player. ... Maybe I need to mention that i am using KDE.

I tried to remove the widevine folder, but nuvola now detects it even if it is not in place (maybe it does not check again?)

I added the little log that was print out after trying to start it.
It is now idling for 10 minutes (And states the the player will load in a few seconds). On Thursday it started somewhen but I do not know how long it took. (Because I was some hours absent from PC)

log.txt

Here this is the log for the missing widevine installation (I deinstalled Nuvola and rm .var/app/* and reinstalled it)

log_no_widevine.txt

jiri-janousek commented 4 years ago

Log says:

Runner: [DEBUG Δ003153us Nuvola] CefWidevineDownloaderDialog.vala:46: Need to install Widevine.
Runner: [WARNING Δ29s691490us Nuvola] CefPluginDownloaderDialog.vala:152: NuvolaCefWidevineDownloader: installation cancelled.

Did you click cancel?

Schmetzler commented 4 years ago

Of course, after I clicked accept License agreement and clicked install. And clicked install again (because nothing happens) at some point I have to click cancel because nothing happens.

The problem is that it does not install and also does not give an appropriate error message in the log. (I am currently not at the machine, but as I recall. I click install -> it just says something (like try again .. or so) --> I have to accept license again --> click install --> and so on. To close the program (to get the complete log) I have to click on cancel.)

jiri-janousek commented 4 years ago

I see. I've added more logging to Nuvola 4.16.31. Could you provide me with a new log? Thanks.

Schmetzler commented 4 years ago

Whatever you did, now it works flawlessly, the plugin is installed and the web app opened. Either way I added the log.

If it somehow makes sense you can close the issue.

Thank you.

New_log.txt

(PS: Just looked through the commit, could it be that the reason was that progress_text was not implemented?)

jiri-janousek commented 4 years ago

There was no change in functionality except for the logging. Whatever the issue was, it just disappeared. I was never able to reproduce it on my system, so I assume that something changed on yours.

Anyway, the issue is gone and we have better logging in place to investigate it if it appears again :-)

P.S. progress_text is a signals. Signals are not implemented. I only replaced the default handler, which does nothing, with a handler that logs a message. This cannot fix any error, just log it.