Welcome to WebmasterWorld Guest from 54.221.87.97

Forum Moderators: open

Message Too Old, No Replies

Connect a video in a web server

play video hosted in a web server

     

ruby5

4:04 pm on Aug 10, 2009 (gmt 0)

5+ Year Member



Hi there,

I have a flv file hosted in my web server and I want to connect it to my timeline.

When I test the video localy it's working, but when I upload html, swf and flv file to the server it's not working.

I also changed the source of the video in the Component Inspector.

Please, can anyone help me to resolve this problem?

Thanks for your help

rocknbil

8:22 pm on Aug 10, 2009 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Is the .flv domain the same as the .swf domain? If it's not, somewhere - I believe it's in publish settings - there is a checkbox to only allow files from same domain (paraphrased, may be incorrect wording.) Make sure that's not selected and re-upload the .swf.

ruby5

8:45 am on Aug 13, 2009 (gmt 0)

5+ Year Member



Hi rocknbil,

Thanks for your replay rocknbil. I resolved the problem otherwise by loading the movie using a little piece of code (ActionScript 3.0). Here is the code, in case someone need it:
------------------------------------------------------------
var videoConnection:NetConnection = new NetConnection();
videoConnection.connect(null);

var videoStream:NetStream = new NetStream(videoConnection);
videoStream.play("surfing.flv");

var video:Video = new Video();
video.attachNetStream(videoStream);

addChild(video);
------------------------------------------------------------
Thanks for your help!

rocknbil

4:31 pm on Aug 13, 2009 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Try the full URL

videoStream.play("http://www.example.com/surfing.flv");

And check for that same domain setting.

ruby5

10:59 am on Aug 18, 2009 (gmt 0)

5+ Year Member



Thanks for your help!