Downloading and playing video with out asking where to download

  • Thread starter Thread starter serkan ulucan
  • Start date Start date
S

serkan ulucan

Hi,
I want to add a video link on web form. Up on clicking this link what I want
is that first downloading video automatically without asking where to
download, then play the downloaded video. I dont want any user interaction
except clicking the link. Also I dont want http steaming.
Only download and play...

thanks
 
serkan ulucan a écrit :
Hi,
I want to add a video link on web form. Up on clicking this link what I want
is that first downloading video automatically without asking where to
download, then play the downloaded video. I dont want any user interaction
except clicking the link. Also I dont want http steaming.
Only download and play...

thanks

Upload it on the temporary internet files...

string path = Environment.GetEnvironmentVariable("TEMP") + "\\" +
File.Filename;
 
Can you give mor detail

Smirnoff said:
serkan ulucan a écrit :

Upload it on the temporary internet files...

string path = Environment.GetEnvironmentVariable("TEMP") + "\\" +
File.Filename;
 
serkan ulucan a formulé ce lundi :
Can you give mor detail

path = the Directory where u can upload yhe file on the user computer

u can know this variable
Environment.GetEnvironmentVariable("TEMP")
do= start=>run=>cmd (win2k or xp) or (dosprmpt on 98se)
and hit "SET"
you will see somethign like that, that's the variable on the OS
..
..
..
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\FSimon\LOCALS~1\Temp
TMP=C:\DOCUME~1\FSimon\LOCALS~1\Temp
..
..
..
So Environment.GetEnvironmentVariable("TEMP") =>
TEMP=C:\DOCUME~1\FSimon\LOCALS~1\Temp
add the "\\" + File.Filename and the path where u can upload is

path => C:\DOCUME~1\FSimon\LOCALS~1\Temp\myfile.tmp for exemple.

Is it ok?
 
Back
Top