Firefox addon:Open in VLC media player?

Open In VLC web extension.

I am getting it mean drop the install.sh in .config then run it.

Am I right?

Why don’t you install from https://addons.mozilla.org with “Add to Firefox”?

1 Like

Why not this:

Open in VLC™ – Get this Extension for 🦊 Firefox (en-US)

or this?

Open in VLC media player – Get this Extension for 🦊 Firefox (en-US)

This here, the second one, IS the extension you where asking about.

I searched for:

“firefox extension open in media player”

I downloaded the addon, hmmm. I am not understanding something. When I right click & choose open in VLC, I get.

<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Integration :: Open in VLC</title>
<link rel="stylesheet" type="text/css" href="index.css">
</head>
<body>
  <h1>Native Integration</h1>
  <p>For the extension to work (connect to a native application), there is one extra step. Please download, unzip and install this open-source NodeJS native client.</p>
  <ul id="steps">
    <li>Select the runtime <select id="runtime">
      <option value="com.add0n.node">NodeJS (com.add0n.node)</option>
      <option value="org.webextension.bun">BunJS (org.webextension.bun)</option>
    </select></li>
    <li class="step1">Click <a href="#" data-cmd="download">here</a> to download the package for you OS or click <a href="https://github.com/andy-portmen/native-client/releases" target="_blank">native-client/releases</a> or <a href="https://github.com/andy-portmen/native-client-bunjs/releases" target="_blank">native-client-bunjs/releases</a> to browse all available download options.</li>
    <li>Extract the downloaded package in a local directory</li>
    <li class="linux">Now open a terminal in this directory (the directory that contains install.sh and uninstall.sh) and run <code>./install.sh</code></li>
    <li class="windows">Now double-click the <code>install.bat</code> file</li>
  </ul>
  <div class="flex">
    <input type="button" data-cmd="check" value="Check Connection">
  </div>

  <h1>Notes</h1>
  <div style="padding-bottom: 10px; margin-bottom: 30px;">
    <ul>
      <li>The installer script copies a few files to two different locations for your browser to be able to detect this native client. If you already have NodeJS in your system, the installed version of NodeJS will be used. So please make sure you have an up-to-date version of NodeJS installed. If you don't have this application, the portable version will be used. Read more <a target="_blank" href="https://github.com/andy-portmen/native-client">here</a>.</li>
      <li>To completely remove this native client, run <code class="linux">./uninstall.sh</code><code class="windows">uninstall.bat</code>.</li>
      <li>To make sure the native client is accessible, click on the "<a href="#" data-cmd="check">Check Connection</a>" button. <span id="alternative">If you still get this page even when the "Check Button" reports successful connection, it means the application cannot be accessed (path is not correct in the <a href="#" data-cmd="options">options page</a>)</span>. If the path to the executable is correct and the native client is connected, you can debug the connection by enabling console logs in <a target="_blank" href="https://www.chromium.org/for-testers/enable-logging">Chrome, Edge and Opera</a> or <a target="_blank" href="https://developer.mozilla.org/docs/Tools/Browser_Console">Firefox</a>.</li>
      <li>NodeJS (com.add0n.node) is based on <a href="https://nodejs.org/" target="_blank">NodeJS</a>. This package contains the NodeJS binary and automatically uses it if NodeJS is absent from the user's system. Meanwhile, BunJS (org.webextension.bun) is built upon <a href="https://bun.sh/" target="_blank">BunJS</a> but lacks the BunJS executable. Therefore, ensure BunJS is installed on your system to use this runtime. NodeJS runtime is compatible with Windows, Linux, and macOS, while BunJS runtime currently is only compatible with Linux and macOS.</li>
      <li>If you are installing an unpacked extension, add <code id="guid">-</code> to the list of supported extensions before installing the native client.</li>
    </ul>
  </div>

  <h1>Installation Guide</h1>
  <div class="guide">
    <ul>
      <li>Windows: <a href="https://www.youtube.com/watch?v=yZAoy8SOd7o" target="_blank">YouTube</a></li>
      <li>Mac &amp; Linux: <a href="https://www.youtube.com/watch?v=2asPoW2gJ-c" target="_blank">YouTube</a></li>
    </ul>
  </div>
  <h1>Command-line Help</h1>
  <div class="guide">
    <ul>
      <li>Instead of calling VLC player directly, you can call a batch/bash script and configure VLC player. See the official documentation on command-line options <a href="https://wiki.videolan.org/VLC_command-line_help/" target=_blank>here</a>.</li>
    </ul>
  </div>
  <notification-view id="toast"></notification-view>

  <script src="components/notification-view/notification-view.js"></script>
  <script src="index.js"></script>
</body>
</html>

you go to this site:

Open in VLC media player – Get this Extension for 🦊 Firefox (en-US)

You click on “Add to Firefox”

the extension will be installed and be available then.

Whether or how it works … I don’t know.
And I’ll not try and test.

You need to download a file, put thew install.sh in .config & it will make a folder (It says). Ok what I get when I run install.sh BunJS status = 1
BunJS is not present. Install it from https://bun.sh/ then run this script one more time, I go to the site, but not sure what to do after that.

No.
Just no.

  • Click the link.

Open in VLC media player – Get this Extension for 🦊 Firefox (en-US)

  • Click on the blue button “Add to Firefox”.
  • Done.

… unless you mean something totally different - something like @Arrababiski said in his post following this one …


What is it that you want to achieve?

You have the NodeJS client needed here:

Download 1.0.0 linux.zip, extract and read the Readme file.

Think I have it, when I run the Install.sh it tell me to get the file from https://bun.sh not sure what to do from there.

BunJS is a NodeJS client, in the webpage you have the instructions to install it:

curl -fsSL https://bun.sh/install | bash

Also is the source code, in case you prefer to read it before.

… can you tell me how this is suddenly about

https://bun.sh/

?

I am clueless here.

Anyway, I don’t like to install add-ons to Firefox, but after reading your post, I installed open mpv. It’s good.
I’m happy with my own script that I assign to right-click to play YouTube videos, but this was also useful.

Thanks for the inspiration.

This extension seems to need a NodeJS client, as shown in message i3

  <h1>Native Integration</h1>
  <p>For the extension to work (connect to a native application), there is one extra step. Please download, unzip and install this open-source NodeJS native client.</p>
  <ul id="steps">
    <li>Select the runtime <select id="runtime">
      <option value="com.add0n.node">NodeJS (com.add0n.node)</option>
      <option value="org.webextension.bun">BunJS (org.webextension.bun)</option>

Bun.sh is one, the other one (com.add0n.node) is here:

(Github of Andy Portmen, creator of the extension).

Ah - now that I actually tried it, I see …

I got:

from:

moz-extension://4aa94529-7a24-4907-a175-49f7c9e8546e/data/helper/index.html?msg=DISCONNECTED

this:

Native Integration

For the extension to work (connect to a native application), there is one extra step. Please download, unzip and install this open-source NodeJS native client.

Select the runtime 

Click here to download the package for you OS or click native-client/releases or native-client-bunjs/releases to browse all available download options.
Extract the downloaded package in a local directory
Now open a terminal in this directory (the directory that contains install.sh and uninstall.sh) and run ./install.sh

That is too much for me - not further trying it.

I just watch things within the browser - or download them using clipgrab or whatever else to do it - and then watch it from the local copy with my preferred media player (which is: mpv …)

I’ll not be going to even try to explore that route here any further.
I’m out.

1 Like

I hadn’t realized… Bun it’s in AUR repository directly:

https://aur.archlinux.org/packages/bun-bin

:face_with_peeking_eye:

Just a stupid question from me…

Why bother? Why the extra bloat?

Also, Why not just drag the URL onto MPV which just works out of the box?

1 Like

Well, @Edward78 asked for this extension so that’s why we were trying to make it work. If he later prefers the other one or finds this too complex, there’s no problem.

Well this is a pain, ya I am not doing it, whoa. I just downloaded MPV.

2 Likes

Assuming that our fingers and body organs always work properly, you’ve pointed out one of the many correct ways to use them. Life is full of happiness, changes in mood, and surprises. I think it’s fine to use them in various ways. It’s nice. :melting_face:

Sorry, one more post, I put a post one another forum & here is a shot of my response. That worked when I pasted it right in konsole, so why not the script?