Git Product home page Git Product logo

Comments (12)

gort818 avatar gort818 commented on August 23, 2024 1

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.

gort818 avatar gort818 commented on August 23, 2024 1

I found a hacky solution that would work well with some cool new features coming.. stay tuned

from qtwebflix.

gort818 avatar gort818 commented on August 23, 2024 1
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.

gort818 avatar gort818 commented on August 23, 2024 1

netflix

Here is how it looks now just need to find a way for users to opt in.

from qtwebflix.

gort818 avatar gort818 commented on August 23, 2024 1

@ryanmusante qtwebflix has command line arguments, just haven't implemented this yet sorry :( maybe this weekend

from qtwebflix.

gort818 avatar gort818 commented on August 23, 2024

@ryanmusante Good news! figured it out this is how it looks when you load netflix
screenshot from 2019-01-03 14-51-31

from qtwebflix.

gort818 avatar gort818 commented on August 23, 2024

@ryanmusante but bad news not quite sure how to implement it :(

document.getElementsByClassName('billboard-row')[0].setAttribute('style', 'display:none')

from qtwebflix.

ryanmusante avatar ryanmusante commented on August 23, 2024

Sounds good!

from qtwebflix.

ryanmusante avatar ryanmusante commented on August 23, 2024

It works, simply amazing! So, to opt-in, some possible suggestions:

  1. Selection that can be accessed from the corner or inside of windowed mode
  2. Selection at application launch, so that if users need to switch, it requires exiting and re-doing
  3. Selection available from right-clicking interface and choosing from drop down menu

from qtwebflix.

gort818 avatar gort818 commented on August 23, 2024

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.

ryanmusante avatar ryanmusante commented on August 23, 2024

This makes use of command line arguments and uses qt web engine for comparison.
https://github.com/magiruuvelvet/LightweightQtDRMStreamViewer

from qtwebflix.

ryanmusante avatar ryanmusante commented on August 23, 2024

Status update for feature implement?

from qtwebflix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.