Software Programs and Projects

This Software Programs and Projects include programing tips and technology using different languages like VC++,ASP,JSP C#.Net,PHP,VB.Net,JavaScript,ASP.NET .Software Programs and Projects blog mainly support to software programmers and provide help through the mail.

How can display VLC ( Video Lan ) Player in ASP.NET


<asp:GridView ID="GrdVideo" runat="server" AutoGenerateColumns="False" PageSize="1">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<object id="vlc_IE" height="240" width="320" classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921">
<embed type="application/x-vlc-plugin" version="VideoLAN.VLCPlugin.2" width="320" height="240" id="vlc" autoplay="yes" target='<%#Eval("Video")%>' ></embed>
<param name="AutoPlay" value="True" />
<param name="Src" value='<%#Eval("Video")%>' />
<param name="volume" value="50" />

</ItemTemplate>
</asp:TemplateField>
</Columns>
<PagerSettings PageButtonCount="1" />
</asp:GridView>


Code

Get values from the database (video Path) and binding into the Gridview control using DataTable .Example for creating Datatable

DataTable myDataTable = new DataTable();
DataColumn myDataColumn;
myDataColumn = new DataColumn();
myDataColumn.DataType = Type.GetType("System.String");
myDataColumn.ColumnName = "Video";
myDataTable.Columns.Add(myDataColumn);
DataRow row;
row = myDataTable.NewRow();
row["Video"] = strUrl;
myDataTable.Rows.Add(row);
GrdVideo.DataSource = myDataTable.DefaultView;
GrdVideo.DataBind();



How to display Video in Windows MediaPlayer in Asp.Net






How can display VLC ( Video Lan ) Player in ASP.NET

1 comments:

This code using for display VLC player in our form and also play the video in it

Post a Comment

Post a Comment