setParams setparams

JavaScript API reference for Video360 Viewer.

setParams( *params*)

Sets one or more parameters to a given value. The method argument syntax is identical to a URL query string. That is, it represents name=value pairs separated with &. As in a query string, the names and values are percent-encoded using UTF8. Before you call init(), this parameter must be called.

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

See also init.

Parameter section-add05f3d7ca0426897bd74bf7ac9b9cd

params
{string} name=value parameter pairs separated with &.

Returns section-1d3cf85bc7cc4dfe9670e038d02b9101

None.

Example section-9e9332aa86b74a5fb321375c03fdc5b3

<instance>.setParams("style=customStyle.css&VideoPlayer.playback=progressive")
recommendation-more-help
b7426f53-aad9-4c00-83fc-664f30f681e8