Dynamically set source for embed tag

41 views
Skip to first unread message

Rahul

unread,
Feb 10, 2014, 1:17:41 AM2/10/14
to zk-ui...@googlegroups.com
I was able to embed a media player plugin in zul page and play a video(which comes from an ip camera) by specifying the src,now I was trying do give the source file dynamically but I was not able to get it work.can anyone help me with this.

videoPage.zul goes like this

<zscript>
String filePath = (String) Executions.getCurrent().getSession()
.getAttribute("urlReturned");
</zscript>
<p:window xmlns="http://www.w3.org/1999/xhtml">
<OBJECT ID="MediaPlayer" WIDTH="192" HEIGHT="190"
CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..."
TYPE="application/x-oleobject">
<param name="FileName" value='${filePath}' />
<PARAM name="autostart" VALUE="false" />
<EMBED TYPE="application/x-mplayer2"
SRC=""
NAME="MediaPlayer" WIDTH="300" HEIGHT="300" ShowControls="0"
ShowStatusBar="0" ShowDisplay="0" autostart="1">
</EMBED>
</OBJECT>
</p:window>
</p:zk>


i would like the path(in my case from a url from an ip camera) at runtime based camera selected by user and display it in the same page.
Thanks in advance.

Reply all
Reply to author
Forward
0 new messages