Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Passing custom VLC arguments? #116

Closed
dhirwin opened this issue May 1, 2015 · 4 comments
Closed

Passing custom VLC arguments? #116

dhirwin opened this issue May 1, 2015 · 4 comments
Labels

Comments

@dhirwin
Copy link

dhirwin commented May 1, 2015

With the old VLC plugin we were able to pass in custom VLC arguments (network-caching=300, rtsp-tcp, ipv4-timeout=15000) to VLC (i.e. LibVLC) but I don't see any available methods in the Wiki that allows me to do this via the WebChimera plugin. The "addPlayer" function takes parameters but other than "buffering" none that appear to be what I'm looking for. Hopefully I'm just looking in the wrong spot.

@jaruba
Copy link

jaruba commented May 1, 2015

Check out .addPlaylist() and the vlcArgs parameter.

The options are passed as string in the same way you would of previously called them with .playlist.addWithOptions(mrl, options)

Example:

wjs().addPlaylist({
   url: [my-mrl],
   vlcArgs: [my-options]
});

This sets the options that are specific for each video item

Otherwise there are also more start-up parameters for the plugin, all work with .addPlayer() too, just use them as any other parameter in the function.

With the start-up parameters please remember to escape the parameters that have "-" in their name with quotes so JS won't error out. (ie: adjust-filter: should be called as "adjust-filter":)

@jaruba
Copy link

jaruba commented May 1, 2015

Also, if you don't need the User Interface that WebChimera Player provides, you can just use WebChimera Plugin directly and it's own API.

Embedding WebChimera Plugin
WebChimera Plugin JS API

But the player wraps all the plugin api functions in different functions as it requires additional actions in order to work correctly.

@RSATom RSATom added the question label May 4, 2015
@RSATom
Copy link
Owner

RSATom commented May 5, 2015

I think this question was answered pretty well...

@RSATom RSATom closed this as completed May 5, 2015
@dhirwin
Copy link
Author

dhirwin commented May 5, 2015

Yes, thank you for your response...very helpful.

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

No branches or pull requests

3 participants