Processing...
Description & Source Code

The Video component plays video files in the browser. Use video.play(), video.pause(), and video.stop() to control playback from the server side.

video.zul
<zk>
	<vlayout>
		<video id="video" src="/widgets/multimedia/video/media/KKDOCdemo1v3.mp4"
		       poster="${execution.encodeURL('/widgets/multimedia/video/media/demo1cover.png')}"
		       controls="true" width="480px"/>
		<hlayout>
			<button label="Play" onClick="video.play()"/>
			<button label="Pause" onClick="video.pause()"/>
			<button label="Stop" onClick="video.stop()"/>
		</hlayout>
	</vlayout>
</zk>