question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.load and multiple options

See original GitHub issue

Hello 😃

I’m not sure if it’s a mpv bug or a node-mpv one, but here comes my issue :

I wanted to load a file (with the load method) with multiple options. When using just one option it works perfectly (For example ['replaygain-fallback=-10']) but if I add more options to that array, mpv doesn’t load the file.

The options seem compatible as I can use them when lauching mpv from the command-line.

Options I wanted to add into the array for example :

options.push(`external-file=${defaultImageFile.replace(/\\/g,'/')}`);
options.push('force-window=yes');
options.push('image-display-duration=inf');
options.push('vid=1');

I haven’t tested with command/freeCommand as I’m not too sure of how to format the thing properly though.

Any ideas?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
AxelTerizakicommented, Oct 31, 2018

I looked at the code and saw what was wrong.

Options seem to be formatted before being sent past this commit. However, it just splits the string into multiple options via the character =. However, the string I’m sending contains several equal signs, even though it’s one, single command.

I have an idea, I’ll submit a PR shortly.

0reactions
AxelTerizakicommented, Oct 31, 2018

No problem, it was an easy fix and it was bugging me so much I had to fix it 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

jquery - Display Selected Values in Drop Down on Page Load ...
I would like the initial value(s), in this case BMW and Mercedes to be shown when the page is loaded and then be...
Read more >
Multiple Select, Mark selected items on page load
Hi I am currently integrating MDB with Grails 3 My question is how to mark all the selected items in a multiple select...
Read more >
Load Multiple Register - an overview | ScienceDirect Topics
Load -store multiple instructions can transfer multiple registers between memory and the processor in a single instruction. The transfer occurs from a base ......
Read more >
Relationship Loading Techniques
Represents loader options which modify the state of a Query in order to affect how various mapped attributes are loaded. The Load object...
Read more >
PySpark Read CSV file into DataFrame - Spark by {Examples}
PySpark CSV dataset provides multiple options to work with CSV files. Below are some of the most important options explained with examples.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found