Click here to Skip to main content
15,887,267 members
Home / Discussions / C#
   

C#

 
GeneralRe: New line with streamwriter Pin
Pierre besquent17-Mar-11 6:00
Pierre besquent17-Mar-11 6:00 
GeneralRe: New line with streamwriter Pin
Luc Pattyn17-Mar-11 6:29
sitebuilderLuc Pattyn17-Mar-11 6:29 
AnswerRe: New line with streamwriter Pin
jschell16-Mar-11 8:27
jschell16-Mar-11 8:27 
GeneralRe: New line with streamwriter Pin
Pierre besquent17-Mar-11 0:15
Pierre besquent17-Mar-11 0:15 
GeneralRe: New line with streamwriter Pin
jschell17-Mar-11 10:03
jschell17-Mar-11 10:03 
GeneralRe: New line with streamwriter Pin
Pierre besquent17-Mar-11 23:11
Pierre besquent17-Mar-11 23:11 
AnswerRe: New line with streamwriter Pin
Pete O'Hanlon16-Mar-11 8:47
mvePete O'Hanlon16-Mar-11 8:47 
QuestionC# webpage playing a video from server hard drive Pin
twinscythe1233216-Mar-11 2:47
twinscythe1233216-Mar-11 2:47 
Hi Everyone,

I have created a placeholder that holds a windows media player object. ds is a DataSet that holds the video's location on the hard drive. here's the code:
PlaceHolder2.Controls.Add(new LiteralControl(
                    //adjust height here
                    " <OBJECT id=\"VIDEO\" width=\"640\" height=\"480\" " +
                    "CLASSID=\"CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6\" 	type=\"application/x-oleobject\">	" +
                    //put url here
                    "<PARAM NAME=\"URL\" VALUE=\"" + ds.Tables[0].Rows[0][0].ToString() + "\"> " +
                    "<PARAM NAME=\"SendPlayStateChangeEvents\" VALUE=\"True\"> <PARAM NAME=\"AutoStart\" VALUE=\"True\"> " +
                    " </OBJECT> "
             ));


Normally this would work fine, except I am trying to access a file that is outside the IIS and on a seperate hard drive, so currently an example of the "url" would be "D:\videos\camping.wmv"
The client won't be able to take this because it'll try to locate the file on the client's machine.
What I'd like to know is if it is possible to reference a video file outside of the website folder, and how to do that.

Regards,

Brad
AnswerRe: C# webpage playing a video from server hard drive Pin
twinscythe1233216-Mar-11 3:15
twinscythe1233216-Mar-11 3:15 
GeneralRe: C# webpage playing a video from server hard drive Pin
Dan Mos16-Mar-11 5:47
Dan Mos16-Mar-11 5:47 
GeneralRe: C# webpage playing a video from server hard drive Pin
twinscythe1233217-Mar-11 0:59
twinscythe1233217-Mar-11 0:59 
QuestionStreamwriter output Pin
Pierre besquent15-Mar-11 21:53
Pierre besquent15-Mar-11 21:53 
AnswerRe: Streamwriter output Pin
Mycroft Holmes15-Mar-11 22:18
professionalMycroft Holmes15-Mar-11 22:18 
GeneralRe: Streamwriter output Pin
Pierre besquent15-Mar-11 22:51
Pierre besquent15-Mar-11 22:51 
GeneralRe: Streamwriter output Pin
Pete O'Hanlon15-Mar-11 23:05
mvePete O'Hanlon15-Mar-11 23:05 
GeneralRe: Streamwriter output Pin
Pierre besquent15-Mar-11 23:10
Pierre besquent15-Mar-11 23:10 
GeneralRe: Streamwriter output Pin
Pete O'Hanlon15-Mar-11 23:31
mvePete O'Hanlon15-Mar-11 23:31 
GeneralRe: Streamwriter output Pin
Pierre besquent16-Mar-11 0:52
Pierre besquent16-Mar-11 0:52 
AnswerRe: Streamwriter output Pin
Richard MacCutchan15-Mar-11 23:12
mveRichard MacCutchan15-Mar-11 23:12 
GeneralRe: Streamwriter output Pin
Pierre besquent15-Mar-11 23:23
Pierre besquent15-Mar-11 23:23 
GeneralRe: Streamwriter output Pin
Richard MacCutchan15-Mar-11 23:42
mveRichard MacCutchan15-Mar-11 23:42 
GeneralRe: Streamwriter output Pin
Pete O'Hanlon15-Mar-11 23:48
mvePete O'Hanlon15-Mar-11 23:48 
GeneralRe: Streamwriter output Pin
Pierre besquent16-Mar-11 0:09
Pierre besquent16-Mar-11 0:09 
AnswerRe: Streamwriter output Pin
Luc Pattyn16-Mar-11 0:06
sitebuilderLuc Pattyn16-Mar-11 0:06 
GeneralRe: Streamwriter output Pin
Pierre besquent16-Mar-11 0:11
Pierre besquent16-Mar-11 0:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.