ASP.NET - play video files through media player

Asked By kiran Kumar
04-Feb-12 12:45 AM
hi,

  in my asp.net website Default2.aspx page,  i need to place fileupload control for uploading video files of size below 20MB of any type. and i need to store them in my sqlserver database.  

  And in Default3.aspx page i have to show one media player and i need to select video files that were saved in my database.
  I need to select those video files and have to play one by one in the video player.  

  How to do this?? give me the full code for getting this.
  dipa ahuja replied to kiran Kumar
04-Feb-12 03:39 AM
You can download Video control for asp.net from :
<http://videoshow.codeplex.com/>
 
 <ASPNetVideo:WindowsMedia ID="WindowsMedia1" runat="server"
    VideoURL="~/DSCN3995.AVI">
  </ASPNetVideo:WindowsMedia>
   
Or you can simply make a flash file using any of flash software and just embed it this way
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9.0.0.0"
id="3"
width="600"
height="350">
<param name="movie" value="4.avi">
<param name="bgcolor" value="#FFFFFF">
<embed name="FSB" src="4.swf" width="400" height="320" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"/>
</object>
 
 
  kiran Kumar replied to dipa ahuja
04-Feb-12 07:18 AM
dipa,

  i didn't get you.   can u please explain me in clear.   


  
<ASPNetVideo:WindowsMedia ID="WindowsMedia1" runat="server" ---
  VideoURL="~/DSCN3995.AVI"> |--> why is this?
  </ASPNetVideo:WindowsMedia> ---
   
Or you can simply make a flash file using any of flash software and just embed it this way
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9.0.0.0"
id="3"
width="600"
height="350">
<param name="movie" value="4.avi">
<param name="bgcolor" value="#FFFFFF">
<embed name="FSB" src="4.swf" width="400" height="320" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"/>
</object> u worte <object.....................</Object> --> where to write this?? how can i test the above code? please explain me in clear yar
  dipa ahuja replied to kiran Kumar
04-Feb-12 07:21 AM
There are two ways to run videos
1. you can get the video controls

http://videoshow.codeplex.com/ 

In video control you have to pass the video file name as VideoUrl Property

2. you can use the object tag, to display video thats it

and in object tag you have to write 

<param name="movie" value="4.avi">




Create New Account
help
Net hi friends Any one send frequently asked Important questions in C# .Net, ADO .Net, Asp .Net and Sql Server. . . . . . . . tx in Advance. . . . . . Hi, Find this. . (B)What is an IL? (B A) What is scavenging? (B) What are different types of caching using cache object of ASP.NET? (B) How can you cache different version of same page using ASP.NET cache object? (A) How will implement Page Fragment Caching? (B) Can you compare ASP.NET sessions with classic ASP? (B) Which are the various modes of storing ASP.NET session
net ADO is designed primarily for connected access ADO.net the disconnected access to the database is used In ADO you communicate with the database by making calls to an OLE DB provider. In ADO.NET you communicate with the database through a data adapter (an OleDbDataAdapter, SqlDataAdapter, OdbcDataAdapter, or OracleDataAdapter object), which makes calls to or the APIs provided by the underlying data source. In ADO you cant update the database from the recordset. ADO.NET the data adapter allows you to control how the changes to the dataset are transmitted to the database. On order to get assembly info which namespace we should import? System.Reflection Namespace How tab”) This will fill the dataset with the records starting at 5 to 15 .NET Database interview questions How do you call and execute a Stored Procedure in.NET? Give an in Sql server as var_name int How do you separate business logic while creating an ASP.NET application? There are two level of asp.net debugging 1. Page level debugging For this
Migration from ASP to ASP.net How to convert ASP site to ASP.NET site using C# http: / / www.asp.net / downloads / archived-v11 / migration-assistants / asp-to-aspnet hi, ASP.NET framework is very much different from unstrucured ASP and there is no correct way to
authentication modes and its implementation in projects hi, i am doing a project in asp.net. . i want to use a authentication mode in this project.it is a educational based do some authentication in this project. How To: Use Forms Authentication with SQL Server in ASP.NET 2.0 patterns & practices Developer Center J.D. Meier, Alex Mackman, Blaine Wastell, Prashant Bansode, Andy Wigley, Kishore Gopalan Microsoft Corporation August 2005 Applies To • ASP.NET version 2.0 • SQL Server 2000 Summary This How To shows you how you can membership Login control, configure your Web application to use forms authentication, create the user store database, grant database access to your Web application account, configure ASP.NET membership settings, and set password complexity
session is user based mean u can differentiate login user in different way • Process independent. ASP.NET session state is able to run in a separate process from the ASP.NET host process. If session state is in a separate process, the ASP.NET process can come and go while the session state process remains available. Of course, you ASP, too. • Support for server farm configurations. By moving to an out-of-process model, ASP.NET also solves the server farm problem. The new out-of-process model allows all servers