Giter Site home page Giter Site logo

belaviyo / send-to-vlc Goto Github PK

View Code? Open in Web Editor NEW
129.0 129.0 38.0 638 KB

A Webextension to send streamble media sources to VLC (VideoLAN) media player

Home Page: http://add0n.com/send-to-vlc.html

License: Mozilla Public License 2.0

JavaScript 78.79% HTML 21.21%
chrome-extension firefox-addon native-client opera-extension

send-to-vlc's People

Contributors

belaviyo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

send-to-vlc's Issues

Send to MPV player: "The external media player is not found. Please make sure the path in the options page is correct."

Good day.

I downloaded the linux.zip to my Downloads directory, unzipped and executed the install.sh script as instructed. I restarted Firefox and now, when I right-click on the video and click on the MPV link, I get the following: "The external media player is not found. Please make sure the path in the options page is correct."

What is this path and the options page the app is looking for?

Regards,
Bjoern

[Feature request] Shortcut

I don't know what shortcut to bind it with but it would be nice to stop having to click on th addon icon everytime you want to play a video.

[Feature Request] Exclude pages

Some pages need to be excluded. Because some pages may contain too many videos (.ts streams) and cannot be played. This is a performance issue for browsers.

Handling messages from other extensions

Can you add support for listening for messages from other extensions? I created addon that added "Send to ..." as button to links on page for convenience. Only problem is that your extension doesn't handle messages from other extensions.

I temporarily added onMessageExternal listener to your extension and it works as expected

chrome.runtime.onMessageExternal.addListener((request, sender) => {
  if (request.method === 'send-to-vlc') {
    sendToVLC(request.urls);
  }
})

This would be very helpful, as I wouldn't need to copy-paste your extension into mine and modify native-client manifest.

send-to-mpv (ubuntu14.05 + firefox 62) on youtube > fails to recognize file format

Hello ,

i have installed your firefox add-on + linux script on my computer running kubuntu 14.05.x

when i check the conneciton it would say something like "native player detected"

but afterwards, if i would like to play a video through the add-on, there would always be an error, saying that mpv does not recognized the file format m3u8 or similar.

It would detect several links as shown in the number in the icon of the add-on, but i would just like it to play one video after all.

please see attached picture

bildschirmfoto1

thank you very much

option to not make m3u8

With m3u8 I have not found a way for MPV to handle tiles of the videos I am playing, until the m3u8 file is played. So my whole playlist ends up with m3u8 files instead of nice youtube titles.

mpv handles passing multiple files/links like so

mpv "link1" "link2"

and so does VLC

Would be nice to have the option not to use playlist files.

MPV - some youtube videos will not work for seemingly no reason.

I'm trying to use Send to MPV player with Firefox which seems to work most of the time but for some reason it isn't 100% working. For example I just tried to watch this video and it will not load: https://www.youtube.com/watch?v=rFRW2FOrpuk

That is only one example but I have had it happen before several times. I'm not sure how to troubleshoot it because it seems no different than any other video.

I have tried playing it manually by passing the URL to MPV myself and it will work, but not from within the browser.

MPV opens and closes suddently

I cant see the error. It was working and stopped after a restart.
Now when I click on "Send to MPV" the MPV window open and closes in ~1 second.

Error

After I uninstalled 'Send to MPV player' I have problems with YouTube.
Most of the time when I open a video it gives me the error:
'An error occurred. Please try again later. (Playback ID...'

[Feature Request] Stop MPV Closing When Browser Is Closed

Not sure if this is possible or not, but it would be neat to have the option for MPV to stay open when the browser is closed.

For example, I like to load up playlists into MPV with hours worth of videos and it would be nice if I didn't need the browser running the entire time.

Thanks again for quickly responding to and fixing my previous issue, by the way! 👍

[Running Firefox Quantum, for reference]

Native client requirement

This extension seems to require a 60 MB "native client", which I assume is just for receiving a POST and launching a program. Can that not be rewritten in five lines of Go? I'm willing to issue a PR if so.

mark selected videos as visited

wouldn't it be right if choosing „Send to MPlayer media player” (from context menu) writes selected link as visited in browsers history? that would help a lot when browsing and choosing between thousands of similar looking links.

Repository hasn't been updated in almost a year

There have been multiple updates to this add-on and the MPV variant in 2018 but they haven't been pushed to the repo. I know you can probably extract the files from the .xpi and manually compare but that's just a bit too convoluted way of seeing what changed from version to version.

I was curious what really changed between the MPV edition 0.1.2 and 0.1.3 to justify the new permission to access browser history. This is what lead me to discover that the repo is out of date.

I also noticed that while the addons.mozilla.org page states the add-on is released under the MPL 2.0 the repo doesn't actually mention the license at all, which could discourage forking.

wrong native extension?

While the info pages redirects to the download to com.add0n.stylus, this addon seems to require the host extension com.add0n.native_client - thus it's not working.

Feature request: domain whitelist

I only used this extension on a select few sites. Sometimes though I hit the button and eventually get an error popup. An option to have an domain whitelist would be neat to avoid this.

Choose wich resolution / quality to send to the player

I have a slow internett connection at home and it would be great if I could somehow define what quality I want to watch the movie in. This could be set in the extension preferences or maybe it could be an option to add it to the context menu, like "Open in MPV (480)" and "Open in MPV (720p)" etc.

EDIT: Currently it seems like MPV opens the 1080p stream, and VLC 720p. Not sure why.

shebang for FreeBSD: bash is at /usr/local/bin/ not at /bin/

I fixed the shebang for the installer and for the uninstaller then realised, the installed run.sh also requires correction:

$ date ; uname
Sat 23 Sep 2017 08:18:10 BST
FreeBSD 12.0-CURRENT #0 r320869: Mon Jul 10 13:57:55 UTC 2017 [email protected]:/usr/obj/usr/src/sys/GENERIC 
$ pwd
/home/grahamperrin/Documents/com/github/belaviyo/send-to-vlc
$ which bash
/usr/local/bin/bash
$ ./uninstall.sh 
Native Client id is "com.add0n.native_client"

 .. Removing manifest file for Google Chrome
rm: /home/grahamperrin/.config/google-chrome/NativeMessagingHosts/com.add0n.native_client.json: No such file or directory
 .. Removing manifest file for Chromium
rm: /home/grahamperrin/.config/chromium/NativeMessagingHosts/com.add0n.native_client.json: No such file or directory
 .. Removing manifest file for Mozilla Firefox
rm: /home/grahamperrin/.mozilla/native-messaging-hosts/com.add0n.native_client.json: No such file or directory
 .. Removing executable
rm: /home/grahamperrin/com.add0n.native_client: No such file or directory

>>> Native Client is removed <<<.
$ ./install.sh
/usr/local/bin/node
NodeJS status = 0
Installer is using your system NodeJS.
 -> Root directory is /home/grahamperrin
 -> Creating a directory at /home/grahamperrin/.config/google-chrome/NativeMessagingHosts
 -> Chrome Browser is supported
 -> Creating a directory at /home/grahamperrin/.config/chromium/NativeMessagingHosts
 -> Chromium Browser is supported
 -> Creating a directory at /home/grahamperrin/.config/vivaldi/NativeMessagingHosts
 -> Vivaldi Browser is supported
 -> Creating a directory at /home/grahamperrin/.mozilla/native-messaging-hosts
 -> Firefox Browser is supported
 -> Creating a directory at /home/grahamperrin/com.add0n.native_client                                                                                                    
 => Native Host is installed in /home/grahamperrin/com.add0n.native_client                                                                                                
                                                                                                                                                                          
                                                                                                                                                                          
>>> Application is ready to use <<<                                                                                                                                       


$ cd ~/com.add0n.native_client/
$ ls -hl
total 14
-rw-r--r--  1 grahamperrin  grahamperrin   2.0K 23 Sep 08:19 config.js
-rw-r--r--  1 grahamperrin  grahamperrin   1.7K 23 Sep 08:19 host.js
-rw-r--r--  1 grahamperrin  grahamperrin   3.4K 23 Sep 08:19 messaging.js
-rwxr-xr-x  1 grahamperrin  grahamperrin    39B 23 Sep 08:19 run.sh
$ grep bash run.sh
#!/bin/bash
$ nano run.sh
  GNU nano 2.8.7                                                                  File: run.sh                                                                            

#!/usr/local/bin/bash
/usr/local/bin/node host.js

$ 

jitsi problem

i have experienced a problem with jitsi. when mpv plugin is enabled, jitsi stops working.
when i disable the plugin, jitsi works, i testet with firefox nightly on two computers.

The external media player is not found... why?

Something does not work. Will someone tell me how to fix it?
I would like to use this program to play anime from online sites. I did everything according to the instructions ... but it still does not work.
The VLC program I have installed, "Open in Firefox" also. What could have gone wrong?

Here's a screenshot when I try to play anime with the extension:
https://imgur.com/a/ZeyZGsB

Segmented audio stream can't be loaded in VLC Player

The extension counts up from 1 to XX depending on duration of listening but can't give it to VLC Player.
http://www.ascoltareradio.com/#radio-italia - appears at all from http://www.ascoltareradio.com/
it seams that the audio stream is segmented and the Segments can't be loaded.

in VLC Player it shows the following error messages:

"
Your input can't be opened:
VLC is unable to open the MRL 'http://radioitaliasmi-lh.akamaihd.net/i/radioitaliasmi_1@329643/segment151925026_1_a-p.ts?sd=10&rebase=on'. Check the log for details.
Your input can't be opened:
VLC is unable to open the MRL 'http://radioitaliasmi-lh.akamaihd.net/i/radioitaliasmi_1@329643/segment151925027_1_a-p.ts?sd=10&rebase=on'. Check the log for details.
Your input can't be opened:
VLC is unable to open the MRL 'http://radioitaliasmi-lh.akamaihd.net/i/radioitaliasmi_1@329643/segment151925028_1_a-p.ts?sd=10&rebase=on'. Check the log for details.
Your input can't be opened:
VLC is unable to open the MRL 'http://radioitaliasmi-lh.akamaihd.net/i/radioitaliasmi_1@329643/segment151925029_1_a-p.ts?sd=10&rebase=on'. Check the log for details.
Your input can't be opened:
VLC is unable to open the MRL 'http://radioitaliasmi-lh.akamaihd.net/i/radioitaliasmi_1@329643/segment151925030_1_a-p.ts?sd=10&rebase=on'. Check the log for details.
Your input can't be opened:
"

in a different way: http://www.raiplayradio.it/ segments can't be handled.

Change MPC-HC path

Hi,
Trying to open links with MPC-HC in my computer results in an error (see attached screen cap)
This is probably because my MPC-HC is not at the expected location (it's part of the K-Lite Codec Pack, so it's installed elsewhere)
How can I change the expected path for MPC-HC ?
Actually, it would be even better if your extension was able to open a dialog to allow users to change themselves while on Firefox. I don't know if that's possible.
Thanks !

2018-06-21_161348

[Feature Request] MPC-BE support

Media Player Calssic BE can open youtube videos and playlists. When the application icon is clicked, these addresses must be sent to the MPC-BE application. I'd appreciate it if you could add this feature.

Trying to fix send to mplayer (youtube videos)

Hello,
Send to mplayer is not working with youtube videos.
I think the problem is related with parsing the youtube page to collect all the links from the youtube web page.
With youtube-dl tool, everything is working fine, for example:

> youtube-dl --list-formats https://www.youtube.com/watch?v=YE7VzlLtp-4
> youtube-dl -f 22 -g https://www.youtube.com/watch?v=YE7VzlLtp-4 > playlist.m3u
>  mplayer -playlist playlist.m3u 

I'm trying to debug the "send-to-vlc" add-on without success. @belaviyo are you available to help-me?

Native client security and speed concerns

Security

While installing native client I wanted to check what my computer is going to run. At first it seemed easy task - just review three short js scripts, but it tuned out that this native client basically runs any script received from addon. Wow. So now I have to review whole extension code as well to feel safe.

Basically any eval in code is a security breach. Even if current version of addon is safe, future updates might become malicious. @belaviyo, what if someone will get access to your account and push addon update which runs malicious code? Running code from addon in vm practically defies the purpose of WebExtensions restrictions.

For now I just disabled updates of Send to VLC addon but still.

Speed

On laptop on which I use this addon, one native client run takes 1.0 s of CPU. That is 1s of delay before player starts and is twice as much of CPU time required by VLC to start. I admit this laptop is rather slow, but that's the whole point of using Send to VLC addon! Youtube in browser just hiccups and show still image in video and VLC show the same video perfectly. nodejs gives huge overhead.


As I see it the proper way to run VLC from browser should use script with lightweight interpreter. Python seems a good enough choice, it is 10-20 times faster to start then nodejs and it is already installed much more often then nodejs, at least python should be present on all mac and linux systems. And it should implement really simple protocol, which just gets list of URLs (native client itself should check, that all received strings looks like links).

I am willing to help with native client script, if you find this concerns serious.

send-to-youtubedl? send-to-mpv with more options before?

Hello,

great addon. Is it possible to bring up an directly youtube-dl addon? I think must not the problem, like the others but i search for an addon that bring up an Layer with options that has youtube-dl sniffed for himself and sniffed for mpv. I mean that i can choose some more options like quality and so on?

thx

'One more step' Page Keeps Opening at Random

[Note: I'm only using 'Send To MPV']

I have no complaints with the functionality of the add-on as it works perfectly. My issue is that every few times I use it to open a video from a webpage it will occasionally flash up the 'one more step' page that prompts me to install the client. I already installed the client ages ago, as evidenced by the fact that the videos play perfectly.

Could there be an option to please disable this 'One more step' page from showing up altogether when you're sure the extension is working fine?

Cheers!

Oh and as a side request - could we also have the option to disable the number that shows up on the icon on the toolbar? I prefer to disable number badges on my add-ons where possible for a cleaner looking toolbar, I generally don't have any use for them anyway.

Send to MPC-HC for Opera not working

Hello!
Only just found this extension after many years using MPC-HC witch is unfortunate

When I try to send over a stream it tries to play and just receive 'cannot render this file'.
I had a look if I could find any logs but I could not

I tested with my K-Lite MPC-HC and then with a fresh MPC-HC to see if a filter might have been the issue.

Please let me know if there's anything I can provide to assist if you have any time to have a look

Thank you
Hayden

Mpv player opens YouTube image instead of video

During right click a video thumbnail preview on YouTube.com the image is taken into account for playback instead of video. The solution is to right click the title of the video instead of the thumbnail but it is not very comfortable.

VLC won't play Youtube videos

At first, everything worked fine until a system update (Ubuntu 18). Now whenever I send a video link to VLC (using the add-on), it says "Codec not supported:
VLC could not decode the format "h264" (H264 - MPEG-4 AVC (part 10))". However, drag-and-drop the video link to VLC still works.Web browser: Opera. Sample video: https://www.youtube.com/watch?v=8eL-kFeJ6M8.
Edit: Tried on Firefox and it's working fine. I think the add-on isn't working well with Opera. As I remember, the system update yesterday included Opera as well.

[feature request] send-to-mpv (only) Chrome extension

Hi @belaviyo 👋 . Any chance you can make some simple extension just for the MPV player?
Nothing fancy,no extra features like search and whatnot,just to be able to send any link(not youtube's only) towards the MPV player.
And the next thing,in case you have the time and the willingness,of course. Due to Manifest 3 is on horizon and by the end of the year every extension has to be converted,mine as well just(if possible and doesn't interfere) do it so to save you the extra feature work.
I hope you can do it and trust me,you'll make a lots of MPV enthusiasts happy.
Thank you for considering 👍

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.