• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 189
  • Last Modified:

FlashCom - streaming on demand

I'm trying to build a stream application with the flash communication server. I create the directory test in the application path and put the stream.flv file inside it. I used the code bellow:

#include "NetDebug.as"
con = new NetConnection(); // create connection object
con.connect("rtmp:/test"); // connect to server

stream = new NetStream(con);
Published_video.attachVideo(stream);
stream.play("video.flv");

But it doesn't work. The video doesn't display and there is no error message. Some body knows what it could be?

0
rafaelri
Asked:
rafaelri
1 Solution
 
negatyveCommented:
With your code, your folder structur should be:

[applications]/test/_definst_/streams/video.flv

If you want to define an instance name for your application instance (ie):

con.connect("rtmp:/test/myinstance");

your folder structur should be:

[applications]/test/myinstance/streams/video.flv
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now