Video-viewer widget

The video-viewer widget enables users to view a video.

Properties

Property

Description

Data type

autoplay

Indicates whether the video starts playing automatically.

Boolean

id

Unique identifier of this widget.

string

posterImageUrl

Poster image URL.

string (URL)

sourceContentType

Video source content type.

string (JSON )

sourceUrl

Video source URL.

string (URL)

type Rich-media type, which is always VideoViewer. string

width

Width of video viewer, as a percentage of available width.

Default is 100 (percent).

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"
}