Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VLC Launch Arguments #103

Open
Kamiikaze opened this issue Aug 18, 2021 · 1 comment
Open

VLC Launch Arguments #103

Kamiikaze opened this issue Aug 18, 2021 · 1 comment

Comments

@Kamiikaze
Copy link

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?

@andy-portmen
Copy link
Owner

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants