FlashCom - streaming on demand

Posted on 2005-04-22
Last Modified: 2010-04-03
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 ""
con = new NetConnection(); // create connection object
con.connect("rtmp:/test"); // connect to server

stream = new NetStream(con);

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

Question by:rafaelri
    1 Comment
    LVL 27

    Accepted Solution

    With your code, your folder structur should be:


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


    your folder structur should be:


    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
    Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
    The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
    The goal of the tutorial is to teach the user how to how to record live broadcast.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now