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
Possible to set user agent? Raspberry pi support #12
Comments
You can, but just curious why would you need to? |
You can set the user agent by adding this lines in mainwindow.cpp
|
i think it should work if you simply run: user agent for chromeos (you know that you will need the widevine libs from the chrome recovery image to get it work on arm platforms?) |
@owenthewizard I am glad it worked, just curious is there a specific reason you need to set the user agent. If it is really needed I can add a way to change it. |
@owenthewizard Ok did not know that.. I might be able to add something that checks if you are running raspberry pi and and set it to chromeos.. what do you think? would that make it easier? |
@gort818 That would be nice, I was going to do that in my fork but you could probably do it better as I don't have experience with Qt. |
Ok I will leave this open.. I might have it done today |
@owenthewizard ok I just updated it can you give it a go and see if it works? |
@gort818 What version of chromium-widevine should I extract widevine from (if it matters)? Alternatively, where can I find a download of 61.0.3163.140? Debian and Arch don't seem to have it anymore. |
What distro are you on? Here is it on arch https://archive.archlinux.org/packages/c/chromium/chromium-61.0.3163.100-1-x86_64.pkg.tar.xz but it is for x86 |
Download for arm? No way afaik. A while ago i commented this https://archlinuxarm.org/forum/viewtopic.php?f=47&t=11600#p56272 But generally you have to extract this two files out of the chros-recovery into this directory:
|
Extracting the widevine libraries from @kusti8's package was a success! Tested on Arch Linux ARM, Netflix works as expected, however the resolution and framerate are nothing to write home about. I suspect this is because ffmpeg on Arch Linux ARM was not compiled with the the MMAL-accelerated h264 codecs. I will recompile ffmpeg and report back. |
O nice! at least we got it going! Did my fix for the Useragent work as intended? |
@gort818 Indeed! I saw the user agent change and 1080p unlocker on stdout. |
Recompiling ffmpeg didn't make much of a difference that I could tell, maybe the Arch Linux ARM Qt5-webengine package doesn't use system-ffmpeg? Although I think it would as it does in upstream Arch. |
I wish I had an extra raspberry pi but there are all busy as headless servers. I wonder if streaming at 1080p it bogging down the cpu.. check your cpu temps when streaming it might be throttling. |
@owenthewizard what model pi do you have? |
You're sure that qt5-webengine uses hardware acceleleration (egl)? Had problems to get this work on my odroids but i know that compatiblity is better with raspi. Does it play youtube in hd & fullscreen flawless? |
@owenthewizard
don't forget: |
@gort818 I have a Raspberry Pi 3 Model B. Basically I just cloned and built qtwebflix, then extracted the widevine libraries from @kusti8's chromium build. @omni6 I don't think it's using hardware acceleration because Netflix was much smoother on my Raspbian card, not to mention being in 1080p. I can use the PKGBUILD you provided but I don't see how it is any different than what I did manually. Netflix worked without registering the plugins, do they need to be registered if they're in I'm planning on doing some more testing this weekend. @gort818 is it possible that hardware acceleration is disabled in qtwebflix? I don't know about the internals of qtwebengine but chromium disables hardware acceleration by default on Linux iirc and needs |
no it is fine if you can do it manually, but if qtwebflix ofiicially support rpi there should be IMO a simple solution to get widevine work.
and --use-gl=egl ? |
@owenthewizard this is with --ignore-gpu-blacklist --enable-gpu-rasterization Can you give that a try and let me know. Also try
To check the settings add this in the providers file for easy access.
|
Wow I'm an idiot... Netflix runs perfectly smooth with Anyway, attached are screenshots of chrome://gpu with @omni6 The PKGBUILD works as expected, but I think you can drop binutils from the Apologies for the 720p screenshots, I'll be able to test on a 1080p screen tomorrow (at the earliest). Edit: I think it is safe to say that the Raspberry Pi is now a supported platform. |
@owenthewizard awesome glad it is working! |
Basically it is already a dependency for qtwebflix. This pkgbuild provides=('qt5-webengine-widevine') what is a dependency for qtwebflix. x86_64 users have to take widevine from aur, arm users can use the pkgbuild. build requires
@owenthewizard raspi 3 is aarch64, right? Tested on my 64-bit odroid and this doesn't work but on your raspi everything was fine... i ask because then i should add aarch64 as architecture... |
@omni6 Raspberry Pi 3 technically supports aarch64 but upstream only provides support for aarch32. I used a Raspberry Pi 2 Arch Linux ARM tarball to install (armv7). I am planning on testing aarch64 soon (tm), as according to the Gentoo Wiki video hardware acceleration works under aarch64. |
@owenthewizard
|
Is it possible to set the user agent? For example to be able to use this to watch Netflix on the Raspberry Pi.
The text was updated successfully, but these errors were encountered: