Asked By
Dana Robins
40 points
N/A
Posted on - 07/30/2013
Hello Friends,
I need know about how to include a video (in flv format) in a form using javascript in bizagi,
Please do the needful for explaining the way to implement this requirement in Bizagi,
If JavaScript coding can  be provided that will be very helpful.
Thanks in Advance,
Dana Robin
Video in a form using javascript in bizagi
Hi Dana,
-
To include video in flv form to Bizagi, you need a FLV player. It can be embedded using JW Player Site.
-
The player needs .js and .swf files
-
In your computer, create a folder, named jwplayer, in the Bizagi project. For example, C:BizagiXpressProjectsVIDEO_NAMEWebApplicationjsjwplayer
-
The .js and .swf files must be pasted to that location. For example, C:BizagiXpressProjectsVIDEO_NAMEWebApplicationjsjwplayermyvideo.js and C:BizagiXpressProjectsVIDEO_NAMEWebApplicationjsjwplayervideo.swf
-
Create a folder named myvideo in a web application path. For example;Â C:BizagiXpressProjectsVIDEO_NAMEWebApplicationmyvideo
-
The flv files should be located in myvideo folder
-
Follow this code in Bizagi studio;
FieldResponse.AppendHTML("<div id='container'>Loading the player ...</div>");
FieldResponse.AppendHTML("<script type='text/javascript' src='../../js/jwplayer/myvideo.js'></script>");
FieldResponse.AppendHTML("<script type='text/javascript'>");
FieldResponse.AppendHTML("jwplayer('container').setup({");
FieldResponse.AppendHTML("flashplayer: '../../js/jwplayer/video.swf',");
FieldResponse.AppendHTML("file: '../../myvideo/" + FieldResponse.Encode(FieldInfo.Value) + "',");
FieldResponse.AppendHTML("height: 360,");
FieldResponse.AppendHTML("width: 640");
FieldResponse.AppendHTML("});");
FieldResponse.AppendHTML("</script>");