How to Embed Flash Player into Asp.net


using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class watchvideo : System.Web.UI.Page
{
string vid, vfname;
protected void Page_Load(object sender, EventArgs e)
{
vid = Request.QueryString[“vid”].ToString()+”.swf”;
string plyr = “<embed src=’Players/flvplayer.swf’autoplay=’yes’ width=’425′ height=’355′ bgcolor=’#FFFFFF’ type=’application/x-shockwave-flash’ pluginspage=’http://www.macromedia.com/go/getflashplayer&#8217; flashvars=’file=Video/SWF/” + vid + “&autostart=false&frontcolor=0xCCCCCC&backcolor=0x000000&lightcolor=0x996600&showdownload=false&showeq=false&repeat=false&volume=100&useaudio=false&usecaptions=false&usefullscreen=true&usekeys=true’></embed>”;
plh.Controls.Add(new LiteralControl(plyr));
}
}

using System;

using System.Data;

using System.Configuration;

using System.Collections;

using System.Web;

using System.Web.Security;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Web.UI.WebControls.WebParts;

using System.Web.UI.HtmlControls;

public partial class watchvideo : System.Web.UI.Page

{

string vid, vfname;

protected void Page_Load(object sender, EventArgs e)

{

vid = Request.QueryString[“vid”].ToString()+”.swf”;

string plyr = “<embed src=’Players/flvplayer.swf’autoplay=’yes’ width=’425′ height=’355′ bgcolor=’#FFFFFF’ type=’application/x-shockwave-flash’ pluginspage=’http://www.macromedia.com/go/getflashplayer&#8217; flashvars=’file=Video/SWF/” + vid + “&autostart=false&frontcolor=0xCCCCCC&backcolor=0x000000&lightcolor=0x996600&showdownload=false&showeq=false&repeat=false&volume=100&useaudio=false&usecaptions=false&usefullscreen=true&usekeys=true’></embed>”;

plh.Controls.Add(new LiteralControl(plyr));

}

}

flash video

Advertisements

Thanks a lot for visiting this site .. Please leave a Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s