Click here to Skip to main content
15,886,693 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
and i need the after uploding the videos i need to play all the types of videos like mp3,mp4,hd videos etc.....
Posted
Comments
Anisuzzaman Sumon 2-Dec-15 22:56pm    
what hve you tried till now.Please show some code.
Member 11956239 3-Dec-15 1:06am    
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Videos.aspx.cs" Inherits="Videos" %>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:FileUpload ID="FileUpload1" runat="server" />
<asp:Button ID="btnUpload" runat="server" Text="Upload" OnClick="btnUpload_Click" />


<asp:DataList ID="DataList1" runat="server" AutoGenerateColumns="false" CellSpacing="5" RepeatColumns="2" Visible="true">
<itemtemplate>


<video width="320" height="240" controls="controls">

</video>
<%# Eval("Name") %>




</div>
</form>
</body>
</html>
Member 11956239 3-Dec-15 1:14am    
<video width="320" height="240" controls="controls">

</video>

i have uploaded my videos into the database
i retrieve the data into the front end but
but my videos are not playing
how can i play by using above <Video> tag
plz
#anisuzzama

1 solution

HTML
<script type="text/javascript" src="jwplayer.js"></script>
<div id="thePlayer"></div>
<script type="text/javascript">
    jwplayer("thePlayer").setup({
        flashplayer: "player.swf",
        file: "file.mp4",
        height: "270",
        width: "380"
    });
</script>
 
Share this answer
 
Comments
Member 11956239 16-Dec-15 5:55am    
TQ gokulaprasad
Gokulprasad05 16-Dec-15 22:47pm    
It's My Pleasure

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900