Comments (12)
I cannot implement extensions into qtwebengine, I might be able to disable the auto preview with javascript.. but I don't really know javascript sooo I'm not sure.
from qtwebflix.
I found a hacky solution that would work well with some cool new features coming.. stay tuned
from qtwebflix.
QString code ="try { " \
"billboard = document.querySelector('.billboard-row');"\
"if (billboard) {" \
"var video = document.querySelector('video');" \
"video.muted = true;"\
"video.playbackRate = 0;"\
"video.setAttribute('preload', 0);"\
"video.setAttribute('autoplay', 'false');"\
"video.pause();"\
"}" \
"} catch (e) { } " ;
webView()->page()->runJavaScript(code);
This seems to work! it is not pretty but there will be no more autopreview crap
from qtwebflix.
Here is how it looks now just need to find a way for users to opt in.
from qtwebflix.
@ryanmusante qtwebflix has command line arguments, just haven't implemented this yet sorry :( maybe this weekend
from qtwebflix.
@ryanmusante Good news! figured it out this is how it looks when you load netflix
from qtwebflix.
@ryanmusante but bad news not quite sure how to implement it :(
document.getElementsByClassName('billboard-row')[0].setAttribute('style', 'display:none')
from qtwebflix.
Sounds good!
from qtwebflix.
It works, simply amazing! So, to opt-in, some possible suggestions:
- Selection that can be accessed from the corner or inside of windowed mode
- Selection at application launch, so that if users need to switch, it requires exiting and re-doing
- Selection available from right-clicking interface and choosing from drop down menu
from qtwebflix.
I think option 2 is the best just have a command line argument like -na for no auto play. Will work on this today, I'll let you know when it is ready.
from qtwebflix.
This makes use of command line arguments and uses qt web engine for comparison.
https://github.com/magiruuvelvet/LightweightQtDRMStreamViewer
from qtwebflix.
Status update for feature implement?
from qtwebflix.
Related Issues (20)
- Error Code: F7353-5101 HOT 2
- NETLIX no longer works in 1080p HOT 18
- unable to play videos due to ERROR: M7111-1331 HOT 3
- Using Plex as a provider HOT 1
- Error when installing on Mint HOT 12
- Provider specific options in providers.conf file
- Installing qtwebflix on raspberry p4 and manjaro HOT 1
- It don't works. HOT 7
- Chrome_IOThread segfault
- Cursor does not hide
- 1080p NEFLIX NO LONGER WORKS! HOT 1
- Error Code F7355 on Ubuntu 18.04
- Video not working anymore on netflix HOT 2
- Cloning into 'lib/qtmpris' fails during build HOT 1
- Error code F7701-1003 HOT 4
- Can't get Amazon Prime Video to work HOT 1
- Can't build on Zorin OS (Ubuntu 20.04)
- can't play the content on bstation and iqiyi
- Is this project dead? HOT 6
- Can't right-click to switch providers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qtwebflix.