setVideo setvideo

JavaScript API reference for Video360 Viewer

setVideo(videoUrl)

Sets new external video. Can be called at any time, both before and after init(). If called after init(), the viewer swaps the video in run time.

See also init.

Parameters section-b6affc90b3a84584b684641c86862e01

videoUrl
{ String} an absolute URL to the new video.

Returns section-1d3cf85bc7cc4dfe9670e038d02b9101

None.

Example section-9e9332aa86b74a5fb321375c03fdc5b3

<instance>.setVideo("https://s7d9.scene7.com/is/content/Viewers/space_station_360")
recommendation-more-help
b7426f53-aad9-4c00-83fc-664f30f681e8