setVideo

Last update: 2021-10-08
  • Created for:
  • Developer
    User

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

videoUrl

{ String} an absolute URL to the new video.

Returns

None.

Example

<instance>.setVideo("https://s7d9.scene7.com/is/content/Viewers/space_station_360")

On this page