Playing video or audio in ASP.NET

I have storage in SQL Server 2005 audio and video files. I want to play these files in ASP.NET without storing them in the file system.

With images stored in SQL Server 2005, I'm using a custom HTTP handler, but I don't know if I can do the same with video and audio files.

What's the best way to do this? Silverlight?

Maybe I need a physical file in order to reproduce it with silverlight.

Thanks!

0


a source to share


1 answer


For the control you are using, you will need to set the source as a page that serves content with the correct content type.

So you:



Create a view page and place a video playback object in it. Set source as new page aspx. on the new aspx page set the content type appropriate for the file to pull bytes from the database.

+1


a source







All Articles