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
Articles
- Articles(C#.NET) (3)
- ASP.NET (6)
- Asp.Net(Email) (1)
- Asp.net(Image) (2)
- Asp.Net(Web.Config) (2)
- C#.NET (5)
- C#.NET Threading (3)
- C#.NET(ASP.NET) (4)
- Comments in PHP (1)
- Encryption In PHP (1)
- iPhone (Articles) (1)
- JavaScript (1)
- Json with PHP (1)
- LINQ (1)
- PHP (2)
- PHP Constant (1)
- PHP Operators (1)
- PHP Print Command (1)
- PHP Tutorial (2)
- Strings In PHP (1)
- Variable Declaration In PHP (1)
- WPF (1)
- XAML (2)
About Me
Help Link
Followers
Posted by
Sreejith A.K
Monday, February 15, 2010
Labels:
C#.NET(ASP.NET)
Subscribe to:
Post Comments (Atom)