setParam

JavaScript API reference for Video Viewer.

setParam( *name, value*)

name

{string} name of parameter.

value

{string} value of parameter. The value cannot be percent-encoded.

Sets the viewer parameter to a specified value. The parameter is either a viewer-specific configuration option or a software development kit modifier. This parameter is called before init().

This method is optional if the viewer configuration information was passed with config JSON object to constructor.

See also init.

Returns

None.

Example

<instance>.setParam("style", "customStyle.css")

On this page