Newbie question about playing videos....

  • Thread starter Thread starter Kevin
  • Start date Start date
K

Kevin

When I click on a button, I want the default media program to play an
MPG file. How is this done in ASP.NET?
 
Response.Redirect("file.mpg")
They will get prompted to open/save.

Otherwise you can try to stream it.
 
On a page with 20+ video clips, having it prompt every time is out of
the question. How do I stream it?
 
a google search will render you a bunch of samples of this with code.
 
I've been searching Google for hours now. That's why I posted a
message here. I was hoping somebody's done this lots of times and can
tell me real quick how to do it the easy way.

From what I read, I don't want to "stream" the video, I just want to
open a file with the Windows default program for that type of file.
 
then just point them to the file, that's all there is to it.
Beyond that it's up to the client's settings if they want to open it or not,
you can't force it.
 
in order to stream content, you need Windows Media Services, or Real
Audio/Video Server, or something similar.
 
Redirecting the file will download the entire thing to the client machine.
If you want to retain control of your clip, both in security and copyright,
and have your server better manage its bandwidth and memory, consider
streaming it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top