0

Is it possible to play video in ZKoss ? Thank you

asked 2010-06-11 02:53:44 +0800

vinhvo gravatar image vinhvo
369 3

Is it possible to play video in ZKoss ? Thank you. Or we have to embed new components ?

delete flag offensive retag edit

8 Replies

Sort by ยป oldest newest

answered 2010-06-11 03:39:54 +0800

SimonPai gravatar image SimonPai
1696 1

Hi vinhvo,

Currently the best practice is to use the Flash component, and embed your own flash video player.

Regrads,
Simon

link publish delete flag offensive edit

answered 2010-06-11 05:06:32 +0800

vinhvo gravatar image vinhvo
369 3

Currently , as I tested the ZK flash can not play .flv. So, may be the best option is to go with some embedded solution . Do you know any good one to play video over the web ?

link publish delete flag offensive edit

answered 2010-06-11 08:14:53 +0800

vinhvo gravatar image vinhvo
369 3

http://flv-player.net/
This is good IMO.

link publish delete flag offensive edit

answered 2010-06-11 13:28:55 +0800

versionfourx gravatar image versionfourx
99 2

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>

link publish delete flag offensive edit

answered 2010-06-23 10:10:38 +0800

twiegand gravatar image twiegand
1807 3

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>


What I normally do is put the above zul code into a file called videos.zul and substitute the flash component with this:
<flash src="${arg.name}" width="320" height="240" />

Then I call it from Java as needed and pass it the filename URL as follows:
		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();
		}

Hope that helps,

Todd

link publish delete flag offensive edit

answered 2010-06-23 13:31:56 +0800

vinhvo gravatar image vinhvo
369 3

Thank twiegand , <flash src="...URL.../FLVPlayer.swf?video=...URL.../video.flv"
width="320" height="240" /> is really something new :). Before i put them to <html>....</html> tag. Yours is better.

link publish delete flag offensive edit

answered 2012-10-19 09:32:13 +0800

chennadi gravatar image chennadi
3

updated 2012-10-19 09:33:15 +0800

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

link publish delete flag offensive edit

answered 2012-11-06 13:37:16 +0800

carpolva gravatar image carpolva
155 4

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.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-06-11 02:53:44 +0800

Seen: 1,602 times

Last updated: Nov 06 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More