Video-viewer widget
The video-viewer widget enables users to view a video.
Properties
Property |
Description |
Data type |
---|---|---|
|
Indicates whether the video starts playing automatically. |
Boolean |
|
Unique identifier of this widget. |
string |
|
Poster image URL. |
string (URL) |
|
Video source content type. |
string (JSON ) |
|
Video source URL. |
string (URL) |
type
|
Rich-media type, which is always VideoViewer . |
string |
|
Width of video viewer, as a percentage of available width. Default is |
integer |
Code sample
var obj = {
"widgetType": "form",
"widgetView": "inline",
"nodes":
[{
"id": "view1",
"controls": {
"0": {
"type": "VideoViewer",
"id": "vp1",
"posterImageUrl": "https://contoso.com/demo/preview.jpg",
"sourceUrl": "https://contoso.com/demo/preview.mp4"
}
}
}
],
"transitions": [
],
"initialView": "view1"
}