A component that displays video stream.
Namespace: MindFusion.Drawing
File: Video.js
JavaScript Copy Code |
---|
// class |
The video does not play automatically. To start playing it, call the component's play method in response to user input events.
If autoProperty is enabled for a Video component in CompositeNode template, the template loader creates getter and setter wrapping the component's MediaLocation property.
The following template fragment adds a Video component to the node:
JavaScript Copy Code |
---|
{ |
It automatically adds getVideo and setVideo methods to the node class, which can be used to get or set the video stream URL:
JavaScript Copy Code |
---|
var VideoNode = CompositeNode.classFromTemplate( |
MindFusion.Drawing.ComponentBase
MindFusion.Drawing.Video