Video view is a component that allows to play video in the app. It inherits from view.
To init the component you need to perform a simple procedure - call initialization code.
Initialization code or an object constructor lets you create an object by using common declaration.
dhx.ui ({view:"video", ...})
In constructor you can specify the following parameters:
Please note, video view is a derived class, i.e. it inherits all the features of the base class (video view → view).
dhx.ui({ view:"window", // window where we will play a video file. Instead of window can be a layout cell or something else. body:{ view:"video", src:"movie.avi", autoplay:true, controls:false } })
To use ui functionality, touchui.css and touchui.js files must be included.