Skip to main content
May 9, 2006
Answered

problem with tutorial:Creating a dynamic playlist for streaming flash video

  • May 9, 2006
  • 6 replies
  • 841 views
hi, anyone tried the tutorial: creating a dynamic playlist for streaming flash video?

i follow the instruction exactly as stated in the tutorial and test the fla file, it worked perfectly well when i open the swf using the macromedia flash 8. Everything look fine. Nothing is changed except the url is changed to "rtmp://localhost/videosource" in the xml file.

after i publish the file using the setting: access network only, i try to open the swf and html file from the folder, the thumbnail did not appear and there is no way i can click on any videos. What i see is only the list, and there is no response from the flash media server 2. All the files is in the same folder. Anyone please help with this problem???? thanks
    This topic has been closed for replies.
    Correct answer Newsgroup_User
    ....i debug the movie step by step
    and realised that the xml file is being read by the code...


    Your original problem stated it worked but not when playing outside the
    Flash authoring environment by simply loading the swf from the hard drive.

    The Flash authoring environment is a trusted environment and so you really
    need to test in the actual deployment mode which loading an swf from the
    hard drive is not a valid deployment unless an installed Flash player is
    available outside the web browser which you would have as you have the
    authoring tool and your users will not.

    Use a browser with http://yourdomain.com/yourmovie.html to do final
    debugging.

    In this regard you may need to debug the movie while running in real time
    mode in a web browser with http:// A technique to trace I suggested is to
    create a temporary TextField perhaps named out_txt and send trace message to
    it such as out_txt.text += "My Trace Expression".



    --
    Lon Hosford
    www.lonhosford.com
    May many happy bits flow your way!
    "free23" <webforumsuser@macromedia.com> wrote in message
    news:e4a37a$ak5$1@forums.macromedia.com...
    sorry but i don't understand what you mean....i debug the movie step by step
    and realised that the xml file is being read by the code...
    this is a sample of my log files:
    #Fields: date time x-pid x-status x-ctx x-comment
    2006-05-15 20:08:58 3072 (i)2651170 Unloaded application instance
    videosource/_definst_ -
    2006-05-15 20:48:19 3848 (s)2641173 FCApplication loaded successfully.
    2006-05-15 20:48:19 3848 (s)2641173 Communication Framework loaded
    successfully.
    2006-05-15 20:48:19 3848 (s)2641173 SimpleConnect loaded successfully. -
    2006-05-15 20:48:19 3848 (s)2641173 VideoConference loaded successfully. -
    2006-05-15 20:48:19 3848 (s)2641173 Video Playback loaded successfully. -
    2006-05-15 20:48:19 3848 (s)2641173 Communication Components loaded
    successfully.
    2006-05-15 20:48:19 3848 (s)2641173 Sending this message: Hello! You are
    connected as: undefined -
    2006-05-15 20:48:19 3848 (e)2641190 Error : command msg sent before client
    connection has been accepted. -
    2006-05-15 20:48:20 3848 (s)2641173 Sending this message: Hello! You are
    connected as: undefined -
    2006-05-15 20:48:20 3848 (e)2641190 Error : command msg sent before client
    connection has been accepted. -
    2006-05-15 20:48:20 3848 (s)2641173 Sending this message: Hello! You are
    connected as: undefined -
    2006-05-15 20:48:20 3848 (e)2641190 Error : command msg sent before client
    connection has been accepted. -
    2006-05-15 20:48:20 3848 (s)2641173 Sending this message: Hello! You are
    connected as: undefined -
    2006-05-15 20:48:20 3848 (e)2641190 Error : command msg sent before client
    connection has been accepted. -
    2006-05-15 20:48:20 3848 (s)2641173 Sending this message: Hello! You are
    connected as: undefined -
    2006-05-15 20:48:20 3848 (e)2641190 Error : command msg sent before client
    connection has been accepted. -
    2006-05-15 20:49:42 3848 (s)2641173 Sending this message: Hello! You are
    connected as: false -

    hope this help...


    6 replies

    January 16, 2007
    Hi Guys,

    It is the main.asc well for me anyway.

    Copy it in and importantly RESTART the server
    November 23, 2006
    <eom>
    January 16, 2007
    Hi,

    I have the same problem.

    Changed the main.asc
    Running through localhost not "Test Video" in Flash 8

    Thumbnails appear, but stream doesnt play.

    If you wait for around 5 mins then the stream plays, looks like its maybe progressive downloading.

    Pitty the author wouldnt get on and answer the question, seems everyone has the same problem.
    Participant
    November 22, 2006
    Hi,

    I've the same problem as all of you. Listbox thumbnails shows but the movie wont play. Ive tried to replace the main.asc without success.

    Since it has been a while someone posted I hope some of you have an answer to this problem.

    Best regards
    Thomas
    May 18, 2006
    Hi,

    I guess the problem could be in the main.asc file placed in the appliactions\app_name folder. Try replacing the main.asc file with the one at the following location of your Flash8 installation.

    c:\Program Files\Macromedia\Flash 8\Samples and Tutorials\Samples\Components\FLVPlayback\

    This worked out for me.

    Regards,
    Aasim
    Participant
    May 17, 2006
    I'm having the same problem. It appears that the contentPath variable isn't being passed to the FLVPlayback component when it's created. Anyone have any ideas? The code looks like this...

    listListener.change = function( evtobj ) {
    var nav = list.dataProvider[list.selectedIndex];
    var reset = true;
    for ( var i = 0; i < nav.childNodes.length; i++ ) {
    var stream = nav.childNodes ;
    if ( stream.nodeName == "stream" ) {
    attachMovie("FLVPlayback", "my_FLVPlybk", 10)
    my_FLVPlybk.skin = "SteelExternalAll.swf";
    my_FLVPlybk.clear();
    my_FLVPlybk._firstStreamShown = true;
    my_FLVPlybk.contentPath = nav.attributes.url + "/_definst_/" + stream.attributes.name+".flv";
    my_FLVPlybk.autoSize = true;
    trace(my_FLVPlybk.contentPath);
    reset = false;
    }
    }
    }
    Inspiring
    May 14, 2006
    Do you know if the XML file is actually being read? If not create a
    TextField in the movie for tracing and debug.

    --
    Lon Hosford
    www.lonhosford.com
    May many happy bits flow your way!
    "free23" <webforumsuser@macromedia.com> wrote in message
    news:e3q68h$4ca$1@forums.macromedia.com...
    hi, anyone tried the tutorial: creating a dynamic playlist for streaming
    flash
    video?

    i follow the instruction exactly as stated in the tutorial and test the fla
    file, it worked perfectly well when i open the swf using the macromedia
    flash
    8. Everything look fine. Nothing is changed except the url is changed to
    "rtmp://localhost/videosource" in the xml file.

    after i publish the file using the setting: access network only, i try to
    open
    the swf and html file from the folder, the thumbnail did not appear and
    there
    is no way i can click on any videos. What i see is only the list, and there
    is
    no response from the flash media server 2. All the files is in the same
    folder.
    Anyone please help with this problem???? thanks


    May 15, 2006
    sorry but i don't understand what you mean....i debug the movie step by step and realised that the xml file is being read by the code...
    this is a sample of my log files:
    #Fields: date time x-pid x-status x-ctx x-comment
    2006-05-15 20:08:58 3072 (i)2651170 Unloaded application instance videosource/_definst_ -
    2006-05-15 20:48:19 3848 (s)2641173 FCApplication loaded successfully.
    2006-05-15 20:48:19 3848 (s)2641173 Communication Framework loaded successfully.
    2006-05-15 20:48:19 3848 (s)2641173 SimpleConnect loaded successfully. -
    2006-05-15 20:48:19 3848 (s)2641173 VideoConference loaded successfully. -
    2006-05-15 20:48:19 3848 (s)2641173 Video Playback loaded successfully. -
    2006-05-15 20:48:19 3848 (s)2641173 Communication Components loaded successfully.
    2006-05-15 20:48:19 3848 (s)2641173 Sending this message: Hello! You are connected as: undefined -
    2006-05-15 20:48:19 3848 (e)2641190 Error : command msg sent before client connection has been accepted. -
    2006-05-15 20:48:20 3848 (s)2641173 Sending this message: Hello! You are connected as: undefined -
    2006-05-15 20:48:20 3848 (e)2641190 Error : command msg sent before client connection has been accepted. -
    2006-05-15 20:48:20 3848 (s)2641173 Sending this message: Hello! You are connected as: undefined -
    2006-05-15 20:48:20 3848 (e)2641190 Error : command msg sent before client connection has been accepted. -
    2006-05-15 20:48:20 3848 (s)2641173 Sending this message: Hello! You are connected as: undefined -
    2006-05-15 20:48:20 3848 (e)2641190 Error : command msg sent before client connection has been accepted. -
    2006-05-15 20:48:20 3848 (s)2641173 Sending this message: Hello! You are connected as: undefined -
    2006-05-15 20:48:20 3848 (e)2641190 Error : command msg sent before client connection has been accepted. -
    2006-05-15 20:49:42 3848 (s)2641173 Sending this message: Hello! You are connected as: false -

    hope this help...
    May 15, 2006
    Hi,
    I am also encountering the same problem. I can see the list box being populated with thumbnails but the Video fail to start streaming.
    "Error : command msg sent before client connection has been accepted." keeps appearing in the log.

    -Aasim