Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Plugin to open videos in VLC? (Read 2266 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Plugin to open videos in VLC?

Would it be so hard to make a plugin that just opens videos in vlc etc ?

Plugin to open videos in VLC?

Reply #1
You might try [a href='index.php?showtopic=52068']this[/a] if it works.
Full-quoting makes you scroll past the same junk over and over.

Plugin to open videos in VLC?

Reply #2
Here is a little foo_wsh_panel_mod script.

Code: [Select]
function on_playback_new_track(metadb) {
   var file = fb.TitleFormat("%path%").EvalWithMetadb(metadb);
   var ext = file.split("/").pop().split(".").pop();
   if(ext == "mp4") {
      fb.stop();
      var WshShell = new ActiveXObject("WScript.Shell");
      WshShell.Run( "rundll32.exe url.dll,FileProtocolHandler " + file );
   }
}

It starts the programm who is registerd to mp4.

Plugin to open videos in VLC?

Reply #3
To throw yet another suggestion in, you could try Run Services (foo_run).

Plugin to open videos in VLC?

Reply #4
Here is a little foo_wsh_panel_mod script.

Code: [Select]
function on_playback_new_track(metadb) {
   var file = fb.TitleFormat("%path%").EvalWithMetadb(metadb);
   var ext = file.split("/").pop().split(".").pop();
   if(ext == "mp4") {
      fb.stop();
      var WshShell = new ActiveXObject("WScript.Shell");
      WshShell.Run( "rundll32.exe url.dll,FileProtocolHandler " + file );
   }
}

It starts the programm who is registerd to mp4.

Thanks! It works as expected, stopping the song and openning the videofile in the external player, but foobar2000 sort of hangs, or responds to input (mouse click or keyboard scrolling) slowly. What might that be?

Plugin to open videos in VLC?

Reply #5
Thanks! It works as expected, stopping the song and openning the videofile in the external player, but foobar2000 sort of hangs, or responds to input (mouse click or keyboard scrolling) slowly. What might that be?

Sorry i don't know. Runs fine here.
Try to use a strictly path to vlc or any player you prefered.
i.e.
Code: [Select]
WshShell.Run( '"C:\\Program Files (x86)\\VideoLAN\\VLC\\vlc.exe" -f ' + '"' + file + '"' );

-f gives FullScreen