473,396 Members | 1,765 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,396 software developers and data experts.

Streaming movie files from ASP.NET

Hi,

I have a directory of movie files that I want users to be able to view and
play in an Embedded media player. However I only want them to be able to
access the movies from my asp.net page.

How can I stop access to the files direct. I was thinking of the following
possible solutions but each has their drawbacks.

Write back to the response stream with the content type of movie and stream
back the movie that way and let the browser decided which player to invoke,
this way only the ASPNET account can be given access to movies on and NTFS
level and that stops people downloaded direct, I can handle which movies
they get on the page. Problem is with this, it wont appear in their
embedded browser.

The other way is the dynamically write out html that will embed the media
player with the file to play. But then the media player will not be
connecting under the ASPNET account and the movies wont be able to be got
at. Also the user can just view source and then they can see where the
movie is and download direct.

Does anyone have a slicker idea. Can Windows Media Services be used to any
effect here, kinda stuck as I dont know what to look up and read.

TIA

MattC
Nov 19 '05 #1
1 1287
You media files should be located in a private directory.
You could create a web page that acts as the gateway to these files. Before
it uses Response.WriteFile it authenticates the user to ensure they should
have access.

Here's more info:
http://SteveOrr.net/articles/StreamingMedia.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"MattC" <m@m.com> wrote in message
news:OA**************@TK2MSFTNGP09.phx.gbl...
Hi,

I have a directory of movie files that I want users to be able to view and
play in an Embedded media player. However I only want them to be able to
access the movies from my asp.net page.

How can I stop access to the files direct. I was thinking of the
following
possible solutions but each has their drawbacks.

Write back to the response stream with the content type of movie and
stream
back the movie that way and let the browser decided which player to
invoke,
this way only the ASPNET account can be given access to movies on and NTFS
level and that stops people downloaded direct, I can handle which movies
they get on the page. Problem is with this, it wont appear in their
embedded browser.

The other way is the dynamically write out html that will embed the media
player with the file to play. But then the media player will not be
connecting under the ASPNET account and the movies wont be able to be got
at. Also the user can just view source and then they can see where the
movie is and download direct.

Does anyone have a slicker idea. Can Windows Media Services be used to
any
effect here, kinda stuck as I dont know what to look up and read.

TIA

MattC

Nov 19 '05 #2

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

Similar topics

0
by: alan b | last post by:
I know I am still having code problems. =========================================== I tried to create a txt file below :movie.txt <ASX VERSION="3.0"> <ENTRY> <REF HREF="practicea9r9.wmv"/>...
6
by: jonathanztaub | last post by:
I have a DVD CD. * Is it possible to embed it within an html page? * Does the user has to have windows media player or any other program associated with it? * How exactly do I use the <embed>...
7
by: Kilian A. Foth | last post by:
I just found this amazing video puzzle game written with the pygame library, which promises to be infinite fun - but I can't get it to decode any video file I own, except the game's own example...
3
by: A.M-SG | last post by:
Hi, I have a ASP.NET aspx file that needs to pass large images from a network storage to client browser. The requirement is that users cannot have access to the network share. The aspx file...
2
by: Cerebral Believer | last post by:
Hi All, I plan to use streaming audio on my site. I had uploaded some .mp3's as part of a trial, and these streamed very badly so I tried .ram (RealAudio) files instead. The RealAudio files...
8
by: poorna | last post by:
hi all i want to upload the video files to the server.. then i encode all the video files into flv files ... and then i am go to streaming ... in the mean while i create the thumbnail image...
8
by: xhunter | last post by:
Hi, I am trying to add support for ranges to my download scripts, so users downloading from my site with eg download managers they have the option for multiple connections/resume. I have gone...
3
by: Brad | last post by:
I have an aspx page that is sending pdf files to client browsers: it uses a filestream to read the pdf file and response.binarywrite to send content to the browser. This has worked great for years...
0
by: =?Utf-8?B?TWF0dA==?= | last post by:
Hi, I need to build a Media Player using Silverlight/ASP.NET to stream data from a audio/video file on the server. Details: 1. Audio and Video files are separate. 2. Audio is WAV or VOX...
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: 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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.