Last post Jun 29, 2020 02:45 AM by yij sun
Member
309 Points
715 Posts
Jun 28, 2020 02:23 PM|Gopi.MCA|LINK
Hello
This is my code of gridview to play mp4 files bit it in flash
<asp:GridView ID="GV3" Width="350px" HeaderStyle-HorizontalAlign="Center" runat="server" ForeColor="Black" AutoGenerateColumns="false" DataSourceID="SqlDataSource1" AllowPaging="True" PageSize="1" Font-Size = "12pt"> <Columns> <asp:TemplateField HeaderText="File Name"> <ItemTemplate> <b style="font-size:small"> Title:- <%# Eval("Name") %> </b> <a class="player" style="height: 140px; width: 280px; display: block" href='<%# Eval("Id", "FileCS.ashx?Id={0}") %>'> </a> </ItemTemplate> <ItemStyle ForeColor="Black" Font-Size="Larger" HorizontalAlign="Left" /> </asp:TemplateField > <asp:HyperLinkField DataNavigateUrlFields="Id" Text = "Download File" ItemStyle-ForeColor="Red" ItemStyle-Font-Size="Large" HeaderStyle-ForeColor="Black" DataNavigateUrlFormatString = "~/FileCS.ashx?Id={0}" HeaderText="Download" /> </Columns> <HeaderStyle Font-Bold="True" BackColor="Teal" ForeColor="White" /> <PagerStyle CssClass="PageIndex" BackColor="Teal" ForeColor="White" HorizontalAlign="Center" /> </asp:GridView> <script src="FlowPlayer/flowplayer-3.2.12.min.js" type="text/javascript"></script> <script type="text/javascript"> flowplayer("a.player", "FlowPlayer/flowplayer-3.2.16.swf", { plugins: { pseudo: { url: "FlowPlayer/flowplayer.pseudostreaming-3.2.12.swf" } }, clip: { provider: 'pseudo', autoPlay: false}, }); </script>
But we dont want flash player to play our MP4 files, so is any other player we can set in old asp.net 2.0 C#
Need other player that run file directly without using flash player?
Thanking You
All-Star
52813 Points
15768 Posts
Jun 28, 2020 03:02 PM|oned_gk|LINK
AFAIK players are related to html and user pc/browser instead of asp.net app.
https://www.bestjquery.com/demo/html5-video-player/
Contributor
4040 Points
1568 Posts
Jun 29, 2020 02:45 AM|yij sun|LINK
Hi Gopi.MCA,
Accroding to your description, as far as I think,you could use Media Player or HTML code to play the video file.
More details,you could refer to below article:
https://www.codeproject.com/Questions/619087/Playing-Video-on-ASP-Net-Csharp-Web-Page
Best regards,
Yijing Sun
Member
309 Points
715 Posts
Play Video File Without Flash Player
Jun 28, 2020 02:23 PM|Gopi.MCA|LINK
Hello
This is my code of gridview to play mp4 files bit it in flash
But we dont want flash player to play our MP4 files, so is any other player we can set in old asp.net 2.0 C#
Need other player that run file directly without using flash player?
Thanking You
All-Star
52813 Points
15768 Posts
Re: Play Video File Without Flash Player
Jun 28, 2020 03:02 PM|oned_gk|LINK
AFAIK players are related to html and user pc/browser instead of asp.net app.
https://www.bestjquery.com/demo/html5-video-player/
Suwandi - Non Graduate Programmer
Contributor
4040 Points
1568 Posts
Re: Play Video File Without Flash Player
Jun 29, 2020 02:45 AM|yij sun|LINK
Hi Gopi.MCA,
Accroding to your description, as far as I think,you could use Media Player or HTML code to play the video file.
More details,you could refer to below article:
https://www.codeproject.com/Questions/619087/Playing-Video-on-ASP-Net-Csharp-Web-Page
Best regards,
Yijing Sun