videoplayer with local files

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

videoplayer with local files

atauri
Hello friends,
Sorry if this is a stupid question, but it is annoying me :-?
I succesfully play a video I uploaded to my server with the following
<s:VideoPlayer id="v" x="85" y="93" width="403" height="343" source="
http://150.214.114.80:5901/Damages.mp4" />

but I can't read it locally with:
<s:VideoPlayer id="v" x="85" y="93" width="403" height="343"
source="videos/Damages.mp4" />
(videos is a folder hanging from the project in the flash builder explorer)

not even with the full path:
<s:VideoPlayer id="v" x="85" y="93" width="403" height="343"
source="Users/david/....blablabla.../videos/Damages.mp4" />

what am I missing???
Thanks for your help

--
 ¿ Te gustan las *Abejas* y la *Tecnología* ? Sígueme en
Twitter<http://twitter.com/apilink><http://twitter.com/apilink>

  (\__/)
  (='.'=)   This is Bunny. Copy and paste bunny into your
  (")_(")   signature to help him gain world domination.
Reply | Threaded
Open this post in threaded view
|

AW: videoplayer with local files

Christofer Dutz
Hi,

The problem is that if you load an SWF from a webserver, then this file is executed in a so-called sandbox. You don't have full access to the machine you are working on and can only communicate with the server you loaded the SWF from. This is a security feature and (as far as I know) can't be disabled. Here's a description of the flash security stuff:
http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7e3f.html

Chris

-----Ursprüngliche Nachricht-----
Von: atauri [mailto:[hidden email]]
Gesendet: Samstag, 26. Januar 2013 09:06
An: [hidden email]
Betreff: videoplayer with local files

Hello friends,
Sorry if this is a stupid question, but it is annoying me :-?
I succesfully play a video I uploaded to my server with the following
<s:VideoPlayer id="v" x="85" y="93" width="403" height="343" source="
http://150.214.114.80:5901/Damages.mp4" />

but I can't read it locally with:
<s:VideoPlayer id="v" x="85" y="93" width="403" height="343"
source="videos/Damages.mp4" />
(videos is a folder hanging from the project in the flash builder explorer)

not even with the full path:
<s:VideoPlayer id="v" x="85" y="93" width="403" height="343"
source="Users/david/....blablabla.../videos/Damages.mp4" />

what am I missing???
Thanks for your help

--
 ¿ Te gustan las *Abejas* y la *Tecnología* ? Sígueme en
Twitter<http://twitter.com/apilink><http://twitter.com/apilink>

  (\__/)
  (='.'=)   This is Bunny. Copy and paste bunny into your
  (")_(")   signature to help him gain world domination.