native-client icon indicating copy to clipboard operation
native-client copied to clipboard

VLC Launch Arguments

Open Kamiikaze opened this issue 4 years ago • 1 comments

I'm using the chrome plugin to open web streams in vlc. But all streams are named master.m3u8 or random-numbers.mp4 So I tried inspecting the plugin and figured out how the streams get opened.

Native.prototype.exec = function (command, args, callback = function () {}) { args[1] = ' :meta-title="I bims da"'; console.log(command, args, callback); this.callback = function (res) { callback(res); }; this.channel.postMessage({ cmd: "exec", command, arguments: args, }); }; command is the path to vlc player and args is the stream url.

Via commandline it's easy to set the :meta-title="Custom Title" but when I try it in script it doesn't work. So how I can launch VLC with arguments?

Kamiikaze avatar Aug 18 '21 14:08 Kamiikaze

Instead of actual VLC, ask the extension to send the URL to a batch/shell script.

vlc --meta-title "My Title" ...

andy-portmen avatar Aug 19 '21 12:08 andy-portmen