473,395 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Downloading and playing video with out asking where to download

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
Nov 18 '05 #1
4 1468
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;

--
Smirnoff Ice

Nov 18 '05 #2
Can you give mor detail

"Smirnoff" <fs****@activeup.com> wrote in message
news:me*******************************@activeup.co m...
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;

--
Smirnoff Ice

Nov 18 '05 #3
serkan ulucan a formulé ce lundi :
Can you give mor detail

string path = Environment.GetEnvironmentVariable("TEMP") + "\\" +
File.Filename;


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?

--
Smirnoff Ice

Nov 18 '05 #4
serkan ulucan a formulé ce lundi :
Can you give mor detail

string path = Environment.GetEnvironmentVariable("TEMP") + "\\" +
File.Filename;


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?

--
Smirnoff Ice

Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Steve | last post by:
hello all im looking to make a download script as i cannot use the .htaccess to control directory access to files as im using a php login system using mysql and sessions. i have been playing...
3
by: serkan ulucan | last post by:
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...
3
by: ACaunter | last post by:
Hi all, I was wondering if there was a way a client's machine could play audio or view a word document which is stored on the server, without having them download it first. This will be done over...
14
by: askMe | last post by:
I developed a web page that plays an mpg using the simple embed tag. When the page loads, the video starts, but then stops after a few seconds. I use the embed tag because I want the user's...
3
by: shil | last post by:
Users can view mpeg movies from my website. When users who don't have DSL, it takes longer time to launch windows media player and play the movie. There is no indication to the users that file...
1
by: majestik | last post by:
Question, can I see an event in Javascript that tells me a video starts playing using the <embed src="file.wmv>. I stream the video, but there is a wait time and wanted to pop up a message telling...
1
by: Uday | last post by:
Hi Everybody, I am building a website in Asp.Net 1.1. I need to play a video file in the site. How to do this. Please help me out. Thanks in Advance Uday Mandava
7
Nert
by: Nert | last post by:
hi, I have made a simple website that allows users to upload videos. The videos are automatically converted into flv using the ffmpeg. I'm executing the ffmpeg using the PHP function exec(). My...
0
by: jannyguy | last post by:
Hi, I have a web application running on an apache server. It has a download link for downloading a file. My requirement is to download this file without asking the user where to download....
1
by: shahidrasul | last post by:
i want to download a file which user select from gridview, downloading is completing without problem but after download i want to refresh my page because i do some changes in db . but when...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.