HTML browser link path to local UNC network file.

I need to play videos stored on our network Win2003 R2 server. My local Win7 machine is on the same network and I have admin access. I can play network videos from my machine that are stored anywhere on the network server but I need to play them from within a browser, an html (ColdFusion cfm) page on our server. I prefer Firefox but any would be okay.

What exact anchor link do I use in my page code?

The example network path is \\nserver\c\news\news1\videos\private\video_01.mp4.

The path is protected and not accessible from the public internet. Also, the path varies because the videos are stored on three different hard drives, d, e, f, outside the webroot so simply mapping them is inconvenient but doable.

I’ve tried various suggestions such as a prefix with file:\\\server\drive\path\filename but I can’t seem to get the correct combination.
QsorbAsked:
Who is Participating?
 
Dave BaldwinFixer of ProblemsCommented:
It shouldn't work in a FRAME either if the FRAME page is loaded by 'http' instead of 'file'.  Access to local files from an external web page was removed from browsers many years because it was used to break into people's computers.  Here is the current policies in different browsers:  http://code.google.com/p/browsersec/wiki/Part2#URL_scheme_access_rules  The original problem with javascript is discussed here and there are links to more at the bottom of the page: http://en.wikipedia.org/wiki/Same_origin_policy
0
 
Krzysztof PytkoSenior Active Directory EngineerCommented:
Just only a thought.

Have you considered to use "Streaming media" role on 2003 server for that ?
http://technet.microsoft.com/en-us/library/cc785105%28v=ws.10%29.aspx

Regards,
Krzysztof
0
 
Dave BaldwinFixer of ProblemsCommented:
There is no correct combination for Firefox or any other modern browser to connect from a page loaded by 'http://' to a file accessed by 'file://'.  It is considered a severe security risk because it could allow an attacker to access files on your computer.  You need to copy the files to the web server where they can be accessed thru normal 'http://' links.
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
subhashchyCommented:
how about installing http (Xmapp or other stuff on your share computer) and then use any html script to browse the files and play in flash player or equivalent player to play mp4 files ?
0
 
mayureshtodankarCommented:
Try using URL extractor, see if you extract the mentioned link.

http://www.focalmedia.net/urlextract.html


Note: This works on Vista and 7 also.
0
 
QsorbAuthor Commented:
iSiek: > Streaming media ..
That would be too far and too much for this task. And video files include mp4, avi, divx, mpg, wmv, etc.


DaveBaldwin: >There is no correct combination ...
Then software creators have removed this option, as it did exist years ago. Too bad because there would be absolutely no security risk on our end, another way someone else making our decisions for us. Using a browser would have been convenient tool for us to perform a task and use ColdFusion to implement changes to our database based on specific conditions.  Guess we'll be forced to use all the bandwidth through the server.

mayureshtodankar: > URL extractor ...
Don't follow this at all. The link doesn't seem to discuss anything relating to what I want.

I'll leave this here for a couple days but from what I can tell so far, DaveBaldwin indicates all modern browser manufactures decided what was best for us. Too bad I can't get a hold of MSIE v 5 or so. Maybe that would work. But then, I'd lose my CSS and some of my JavaScript functionality.

If anyone can prove DaveBaldwin wrong, let me know. Otherwise, he'll get the points.
0
 
Dave BaldwinFixer of ProblemsCommented:
Take a look at HTA's, HTML Applications.  They run as local applications using HTML code plus some VBscript.  http://en.wikipedia.org/wiki/HTML_Application  and  http://technet.microsoft.com/en-us/scriptcenter/dd742317.aspx   They will not use Firefox but the Microsoft HTML engine.
0
 
QsorbAuthor Commented:
> HTA's, HTML Applications
I'll take a look later but first wanted to toss this out:

When I paste the file path into a browser, such as:

file://///server/drive/path/

The directory on that network drive is shown, along with the files in that folder and I can then play the videos, directly via network.

If there was a way to paste that path into a new tab, or directly into the browser address, perhaps I can use this instead. I would think surely there must be a way to use this in FRAME.
0
 
QsorbAuthor Commented:
>if the FRAME page is loaded by 'http' instead of 'file'.
Then now might one load the page via FILE instead of HTTP? (I just had to ask).

It may seem redundant but I really want to be sure I'm being clear.

This is all taking place in our intranet and only I have access. I understand browser creators have changed their "security" coding to exclude this sort of feature, the one I want, the one I use to use.

Just want to be CERTAIN there's no way to force the URL, in a new window, tab, page, etc, to use that file path in the address bar,  instead of html. I mean, if I can cut and paste, is there no way to duplicate that action???

As it is now, unless one of the other suggestions prove to be useful, I'll probably just end listing the directory path on my working page, then I'll be forced to copy and past it into a new tab so I can then see and use the network files. It may be awkward but it would work. I'm just surprised and disappointed there seems to be no other suggestions that will work.
0
 
Dave BaldwinFixer of ProblemsCommented:
From a page loaded by 'http' on my own web server on this machine, I can not connect to a local 'file//:' in the same directory by clicking on it's link.  I added 'target="_blank" ' and that didn't make any difference.  I have to right click, copy, and paste into the address bar and then I can load it.  That's in both IE and Firefox.  According to the chart in that link above from Google, it should be the same in Chrome and Safari too.
0
 
QsorbAuthor Commented:
DaveBaldwin: Yes, you confirmed what I've seen.


It works for cutting and pasting into a new tab, so, in my novice mind,  I'm holding out for a couple days at least, for a possible ColdFusion solution where the file// path can somehow, be forced onto the next tab into the address bar. I  have idea how, just hoping some clever Expert will find a way.
0
 
Dave BaldwinFixer of ProblemsCommented:
Ok but you should realize that ColdFusion runs on the server and the problem is in the browser.
0
 
QsorbAuthor Commented:
Yes, got that, Dave. Just want to leave time for a possible surprise quantum leap suggestion. And if not, I'll divvy up the loot as best I can. Thanks.
0
 
QsorbAuthor Commented:
Time to close this and accept the inevitable. Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.