Giter Site home page Giter Site logo

browser extension about lux HOT 8 OPEN

iawia002 avatar iawia002 commented on May 12, 2024
browser extension

from lux.

Comments (8)

iawia002 avatar iawia002 commented on May 12, 2024 1

Nice! Thanks for doing this. You can give it a try, when you make some progress, please let me know

from lux.

noelyahan avatar noelyahan commented on May 12, 2024

In this case only problem I see is the opening the terminal part. Because the browser is running inside the secure sandbox it wont allow to communicate with os processes. But for Internet Explorer ActiveX object we can handle it.

What if the annie can expose a background service to make a grpc/http call from the browser extention locally to spawn annie download process.

from lux.

iawia002 avatar iawia002 commented on May 12, 2024

Thanks for pointing this out, I am not familiar with Chrome's API (or other browsers). This is just an idea at the time. I don't know how to implement it, or whether it is necessary to do it.

from lux.

noelyahan avatar noelyahan commented on May 12, 2024

Hi @iawia002 I did some further research and found out 2 ways that can communicate with native applications.

  1. NPAPI [Deprecated]
  2. Native Messaging API

The NPAPI was deprecated and, Native messaging API is working fine with current chrome browsers.
chrome-native

I would like to give try on this feature by developing the annie chrome extension.

from lux.

noelyahan avatar noelyahan commented on May 12, 2024

I implemented a chrome extension under feature-browser-ext branch :) Demo. And now I'm working on improvements (Pause, Resume, Stop, Delete, Open). I used intermediate host because currently I didn't wanted to mess up with the main.go app. Later we can avoid this intermediate host app and integrate with the main app.

  • Note: downloads will goes to default ~/Downloads folder

from lux.

iawia002 avatar iawia002 commented on May 12, 2024

The demo looks fine!

However, I am a little worried about it. To use this, I need to install the host first, which may be a bit troublesome for the user.

So I have a suggestion, for all users, we show the constructed download parameters (with cookies, one more question here, I don't know if Chrome allows reading cookies?) which can be easily copied, for the user who installed host, we will show them a download button, they can download the video directly if they want.

from lux.

noelyahan avatar noelyahan commented on May 12, 2024

I agree, It's better to provide both solutions. yes chrome extension allows to use cookies.
As an example if a user want's to download a playlist do the extension needs

  1. Provide only the clipboard command and params to run the annie manually
  2. Provide a UI to tweak some parameters such as quality, selected videos

from lux.

iawia002 avatar iawia002 commented on May 12, 2024

The first version doesn't need to be too complicated, maybe just a clipboard and a download button.

And one more thing, choose the quality may be a little tricky, you won't know what quality provided unless you run annie -i URL... command in the terminal.

from lux.

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.