Video in a form using javascript in bizagi

Asked By 40 points N/A Posted on -
qa-featured

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

SHARE
Answered By 0 points N/A #198615

Video in a form using javascript in bizagi

qa-featured

Hi Dana,

  1. To include video in flv form to Bizagi, you need a FLV player. It can be embedded using JW Player Site.
  2. The player needs .js and .swf files
  3. In your computer, create a folder, named jwplayer, in the Bizagi project. For example, C:BizagiXpressProjectsVIDEO_NAMEWebApplicationjsjwplayer
  4. The .js and .swf files must be pasted to that location. For example, C:BizagiXpressProjectsVIDEO_NAMEWebApplicationjsjwplayermyvideo.js and C:BizagiXpressProjectsVIDEO_NAMEWebApplicationjsjwplayervideo.swf
  5. Create a folder named myvideo in a web application path. For example; C:BizagiXpressProjectsVIDEO_NAMEWebApplicationmyvideo
  6. The flv files should be located in myvideo folder
  7. 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>");

Related Questions