My video save in folder and I have add player.swf in my project
I get video path from database (videoPath,VideoTitle)
This code work only Google chrome not in other browsers
please tell me way to play this in every browser.
my code for playing video is
html
<asp:DataList ID="dlvideo" runat="server" RepeatColumns="4" RepeatDirection="Horizontal">
<ItemTemplate>
<embed src="player.swf" id="videoPlayer" allowfullscreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"
flashvars="image=<%# Eval("videoImagePath") %>&file=<%# Eval("VideoPath") %>"
visible='<%# getStatus(Convert.ToString(Eval("videoImagePath"))) %>' type="application/x-shockwave-flash"
height="450px" width="560px"></embed>
<br />
<asp:Label ID="lblTitle" runat="server" Text='<%# Eval("videoTitle") %>'></asp:Label>
</ItemTemplate>
</asp:DataList>
code
private void bindVideo()
{
if (Request.QueryString["id"].ToString() != "")
{
param = new SqlParameter[1];
param[0] = new SqlParameter("@id", Request.QueryString["id"].ToString());
dt = new DataTable();
dt = objSql.ReturnDtWithProc("prSelVideoById", param);
if (dt != null)
{
//gvImage.DataSource = dt;
//gvImage.DataBind();
dlvideo.DataSource = dt;
dlvideo.DataBind();
}
}
}