-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Is it possible to play video in ZKoss ? Thank you. Or we have to embed new components ?
HTML5 video is another option:
<zk> <borderlayout> <north size="50px"> <hbox> <label value="stuff..."/> </hbox> </north> <center> <vbox> <html> <attribute name="content"> <!-- html5 video tag --> <video src="movie.ogg" controls="controls"> your browser does not support the video tag </video> </attribute> </html> </vbox> </center> </borderlayout> </zk>
You might also try: www.platipus.nl/flvplayer/
Here is how I use it:
<window id="win" title="Documentation" position="center,center" border="normal" closable="true" contentStyle="overflow:auto"> <panel width="100%" border="none" > <panelchildren> <hbox pack="center" width="100%"> <div> <flash src="...URL.../FLVPlayer.swf?video=...URL.../video.flv" width="320" height="240" /> </div> </hbox> <hbox pack="center" width="100%"> <div> <button label="OK" onClick="win.detach()"/> </div> </hbox> </panelchildren> </panel> </window>
<flash src="${arg.name}" width="320" height="240" />
void showVideo() { Map params=new HashMap(); params.put("name", VidURL); // <-- VidURL could come from a database, etc. Window w=(Window)Executions.createComponents("videos.zul", null, params); w.doModal(); }
Todd
Is there anyway that we can play the videos with the help of <enbedded> and <object> tags?
I want to include these below lines int to ZK. I tried with name space setting to xhtml, but it dint work for me.
<java script for the player> and than i need to use the <object> tags to pass the video id.
<object id="test" class="testclass">
<param name="playerID" value="12334" />
<param name="playerKey" value="xyzasd" />
<param name="isVid" value="true" />
<param name="isUI" value="true" />
<param name="dynamicStreaming" value="true" />
<param name="videoID" value="demo-video" />
</object>
Thanks
Hi !
I need to develop a web application which must reproduce video files, I want to use ZK but...
... can someone tell us which video formats are actually supported in the latest ZK version? I want to reproduce at least the following video formats: AVI, MP4, ASF and FLV. Or maybe any suggestion about how to embed a video player for these formats.
Thanks in advance.
Asked: 2010-06-11 02:53:44 +0800
Seen: 1,604 times
Last updated: Nov 06 '12