Skip to content
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

Not working with Arch Linux without command line options #19

Closed
arcenik opened this issue Apr 20, 2018 · 12 comments
Closed

Not working with Arch Linux without command line options #19

arcenik opened this issue Apr 20, 2018 · 12 comments

Comments

@arcenik
Copy link

arcenik commented Apr 20, 2018

Hello,

I've just installed qtwebflix using AUR package but I can't play any video.

The error displayed is the follow

We cannot find all the required components to play Netflix on this device. Please visit chrome://components, locate the WidevineCdm component, and click the "Check for update" button.
Error Code: M7702-1003

And in the terminal I see

$ qtwebflix
[0420/100822.307726:WARNING:stack_trace_posix.cc(648)] Failed to open file: /home/xxx/#894872 (deleted)
  Error: No such file or directory
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.10.1 Chrome/61.0.3163.140 Safari/537.36"
false
Netflix Player detected! Injecting Netflix 1080p Unlocker...
[10495:10510:0420/100825.676467:ERROR:service_manager.cc(156)] Connection InterfaceProviderSpec prevented service: content_plugin from binding interface: memory_instrumentation::mojom::Coordinator exposed by: content_browser

The versions and context :

  • qt5-webengine 5.10.1-1
  • qt5-webengine-widevine 1:61.0.3163.100-2
  • qtwebflix-git r68.554fdfb-1
  • linux kernel : Linux version 4.16.2-2-ARCH (builduser@heftig-11142) (gcc version 7.3.1 20180406 (GCC)) crashes from time to time #1 SMP PREEMPT Tue Apr 17 19:37:34 UTC 2018
@arcenik arcenik changed the title Not working with Arch Linux Not working with Arch Linux without command line options Apr 20, 2018
@arcenik
Copy link
Author

arcenik commented Apr 20, 2018

Update,

When passing the register-pepper-plugins option it is working and displaying 1080p content.

qtwebflix --register-pepper-plugins="/usr/lib/qt/plugins/ppapi/libwidevinecdmadapter.so; application/x-ppapi-widevine-cdm"

But the magic parameter is found only in the source README.md file which is not provided in the AUR package. A man page and/or --help option would be very welcome.

Thanks.

@gort818
Copy link
Owner

gort818 commented Apr 20, 2018

Thanks for the issue, the command line option is included in the .desktop file.

Do you have chromium installed, if so there is an issue as qtwebengine looks there first for the widevine libs this is a known bug in qtwebengine.

Are you running from the command line?

Yes you are right a man page or help option would be great.

@arcenik
Copy link
Author

arcenik commented Apr 20, 2018

Hi,

I do have chromium installed:

$ pacman -Q chromium
chromium 66.0.3359.117-1

And using i3wm, I do not see any desktop icons.

Instead of the desktop file, default options should reside in a file like /etc/qtwebflix.conf

@gort818
Copy link
Owner

gort818 commented Apr 20, 2018

From qt docs:

Except for the Adobe Flash Player plugin, the plugins must be loaded manually using the Chromium command line syntax with the --register-pepper-plugins argument.

Unfortunately that is not possible, probably the easiest solution is to make an alias for qtwebflix if you are running from the command line .

@arcenik
Copy link
Author

arcenik commented Apr 21, 2018

Is it not a typical use-case for a wrapper ?

@owenthewizard
Copy link
Contributor

Worth noting I put the libraries in /usr/lib/qt/plugins/ppapi/ and didn't need to the --register-pepper-plugins stuff.

@gort818
Copy link
Owner

gort818 commented Apr 22, 2018

@owenthewizard yes that is where they should be, but unfortunately if you have chromium installed it only checks in /usr/lib/chromium so in that case you need to override it with --register-pepper-plugins. I read it might be fixed in Qt 5.11 , it should default to /usr/lib/qt/plugins/ppapi/.

@arcenik I am not sure if that would be a typical case, but I could have another program just create a process to call qtwebflix with the command line options.. or the package could just create a system wide alias.

@omni6
Copy link
Contributor

omni6 commented Apr 24, 2018

or the package could just create a system wide alias.

For which shell? zsh, fish, bash ... instead of starting qtwebflix it is possible to start a shell script with the command line option inside, overdone?

Imho, when installing the recommended arch way (git clone - makepkg) the .desktop file will be downloaded, when one inspect the package he will find the right command to start. I3, bspwm and so on users on arch (DIY) are known as advanced users, they should be capable to figure this out.

--help option sounds good

@gort818
Copy link
Owner

gort818 commented Apr 24, 2018

@omni6 I see what you are saying, I wonder how ubuntu does it, for vim it seems to set an alias for vi system wide.I could be mistaken.

A shell script would work but the only ones who would need it would be users with a tiling window manager and also have chromium installed.

Well to start I will add a help command-line option.

gort818 added a commit that referenced this issue Apr 25, 2018
Added a simple help command line option #19
@gort818
Copy link
Owner

gort818 commented Apr 25, 2018

Added a help option that show the command to load widevine libs, hopefully the issue will be fixed upstream so we don't have to worry about this.

@gort818
Copy link
Owner

gort818 commented Apr 27, 2018

Ok my fix made everything more complicated so I removed it.

Maybe a man page is the way to go or just wait until it gets fixed upstream. Or just redo the readme.

What are your thoughts @omni6 ?

@omni6
Copy link
Contributor

omni6 commented Apr 27, 2018

I think in the most cases everything works fine. Special informations should be / are available on github. For a manpage there are too less options to be worth to write it.
My 2 cents...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants