A component that displays video stream.
Namespace: MindFusion.Drawing
Assembly: Video.js
SyntaxJavaScript
Copy Code
|
|---|
// class |
RemarksThe 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.
ExampleThe 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( |
Inheritance HierarchyMindFusion.Drawing.ComponentBase
MindFusion.Drawing.Video
See Also