Skip to main content
Participant
May 17, 2011
Question

not loading videos from a network share (unc path) into swf on http intranet,

  • May 17, 2011
  • 1 reply
  • 1856 views

Hi everyone

This isse occurs in flash player 10.2 but not in 10.1.

Im sorry if my rusty english is making this hard to understand.
I have an issue that causes my hair to turn grey. I think it has  something to do with security sandbox when accessing file over networks share from http.

I have an swf wrapped with swfobject in html on a intranet: http://intranedomain/somefolder/video.html
That swf tries to access/stream/load a flv file on a network share unc path: \\sub.mydomain.com\data\media\mymovie.flv
I get an NetStream.Play.StreamNotFound error when i try to load that flv  file. I catn even load an image from that share. The code works fine when accessing files on the same http domain  and when locally on my hd.
I've tried both with single and double backslash i the path so that it  isnt broken.. cause I noticed that flash removes single back slashes.
It actually seem as if I cant access any file on the netwrok drive. So  therefore I cant load a policy file (crossdomain) from that network as  well.
I've added the network path to the Global Security settings panel, but that doesnt help.

Does anyone have any clues or suggested solution for me on this problem. I can provide you with more info if you want to.


/clark

This topic has been closed for replies.

1 reply

mackieboyAuthor
Participant
May 18, 2011

perhaps i can use a ‘proxy’ script that fetches the file for flash. What do you think?

May 18, 2011

Hi,

You cannot request a file from a UNC path in Flash directly. In fact, this is not possible in HTML either. This might work locally, but will not work when the SWF is published.

I recomment that you look into your server configuration. Ideally, you would have your Flash application request a file from http://www.someserver.com/myfile.flv. Then in your server configurations, you redirect this request to your network share.

A word of caution: be sure to set appropriate permissions on these folders.

This is a document that should get you started if you're using IIS:

http://technet.microsoft.com/en-us/library/dd296641%28WS.10%29.aspx

-Stephen

Flash Player team