UNC File won't play in embedded control

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
SteveRicketts
Blank Cone
Blank Cone
Posts: 53
Joined: 29 May 2008 00:10

UNC File won't play in embedded control

Postby SteveRicketts » 12 Dec 2010 23:26

I have VLC embedded in a web page and when I give it a UNC file name, it won't play. I've tried \\server\d\myfile.wmv and file://\\server\d\myfile.wmv, neither work. These play from the VLC GUI but not when it's embedded... how can I make this work? I've tried this in 1.0.5 and 1.1.5.

Ilasir
Cone that earned his stripes
Cone that earned his stripes
Posts: 139
Joined: 14 Apr 2010 18:57

Re: UNC File won't play in embedded control

Postby Ilasir » 20 Dec 2010 02:27

Where is the html page?

SteveRicketts
Blank Cone
Blank Cone
Posts: 53
Joined: 29 May 2008 00:10

Re: UNC File won't play in embedded control

Postby SteveRicketts » 10 Jan 2011 20:47

Well, the actual page is not accessible from the internet. It's an Windows web server, IIS 7, on my internal server. Here is the web page code if that helps.

<object id="VLC" classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"
pluginspage="http://www.videolan.org"
version="VideoLAN.VLCPlugin.2"
width="320px" height="240px" events="True">
<param name="src" value="\\Server2008\d\OnDemand/CADE 101_188_3.wmv"/>
<param name="ShowDisplay" value="True" />
<param name="AutoLoop" value="no"/>
<param name="AutoPlay" value="true"/>
<embed type="application/x-vlc-plugin"
autoplay="yes" loop="false"
id="VLC"
pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2"
width="320" height="240"
target="\\Server2008\d\OnDemand/CADE 101_188_3.wmv"
>
</embed>
</object>

jack.ting
Blank Cone
Blank Cone
Posts: 35
Joined: 19 Jan 2011 04:04

Re: UNC File won't play in embedded control

Postby jack.ting » 10 Feb 2011 10:33

If you are accessing by windows share, you better make a driver map, then use something like "f:\folder\folder\filename.ext".
or
something like "file:///f:/folder/folder/filename.ext" (sure, 3 "/" after "file:" )
or
try something like "file:///server/sharefolder/subfolder/filename.ext" (this one i'm not sure)

Make sure there no unicode character in the path string, otherwise you've encode it by encodeURI().


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 14 guests