| Connect a video in a web server play video hosted in a web server |
ruby5

msg:3969241 | 4:04 pm on Aug 10, 2009 (gmt 0) | 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

msg:3969404 | 8:22 pm on Aug 10, 2009 (gmt 0) | 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

msg:3971065 | 8:45 am on Aug 13, 2009 (gmt 0) | 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

msg:3971338 | 4:31 pm on Aug 13, 2009 (gmt 0) | Try the full URL videoStream.play("http://www.example.com/surfing.flv"); And check for that same domain setting.
|
ruby5

msg:3974044 | 10:59 am on Aug 18, 2009 (gmt 0) | Thanks for your help!
|
|
|