Skip to main content
Known Participant
December 3, 2006
Question

help, don't let me jump off the balcony

  • December 3, 2006
  • 3 replies
  • 457 views
would any of the experts be able to tell me in the code below why i am able to make a connection to my application (verified in the FMS admin console) but not play the sample file - AVSEQ14.flv (which is located in ...applications\video\streams\_definst_


here is the actionscript so far inside of my .fla file:

//no flv extention needed
var thefile = "AVSEQ14"; //name of flv to stream
//put the flv in the _definst_ folder though.
nc = new NetConnection();
nc.connect("rtmp://66.235.194.204/video/streams/"); //fms server address

ns = new NetStream(my_nc);
ns.setBufferTime(2);
my_video.attachVideo(ns); // my_video is a video object on stage
ns.play(thefile);



thanks for any suggestions
    This topic has been closed for replies.

    3 replies

    barfineAuthor
    Known Participant
    December 3, 2006
    JayCharles, you are right on about the path. for some reason it took loading flash 8 on to the webserver itself and then creating a brand new .fla then publishing the swf and html files (and i didn't use any actionscript code from above).

    crazy !! as the settings were exactly the same as on my local machine .fla files when trying different combinations of paths.

    it took the actual path of rtmp://66.235.194.204/video/bkkmotorshow2006.flv
    in the contentPath to pull this off and now it plays and streams in the html file

    my only problem is i don't need the html file, just the swf to go into an invision forum post, which i am successful in doing so and streaming. however the skin is stripped away leaving no controls.

    i have the skin .swf in the webserver directory and it shows up fine within a browser when typing in the html or swf files.

    it would seem the bkkmotorshow2006.swf has that reference to the SteelExternalAll.swf as it shows up skinned in the browser.

    so that is where i stand, stuck with my custom bbcode as follows:

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="500" height="400">
    <param name="quality" value="high">
    <embed type='application/x-shockwave-flash.swf' src='{content}' width='500' height='400'></embed></object>

    note: the {content} = the full path to bkkmotorshow2006.swf or can be any .swf file to start things off.

    so i'm stuck without a skin, unless there is a way to add something to the bb code, have tried a few combinations similar to what is found on this page (without any luck showing a skin):

    http://www.adobe.com/devnet/flash/articles/flv_tutorial_03.html

    <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=SteelExternalAll

    so i'm considering a 3rd party player.swf unless someone knows what can be added or changed to make this happen (actionscript being missing an issue?).

    problem with 3rd party players i've found is that they don't agree with the rtmp:// when it comes to stashing the .flv in an applications folder.

    thank you for any suggestions, this forum has helped quite bit keeping me going....
    barfineAuthor
    Known Participant
    December 3, 2006
    hmmm, just tried these connection strings

    rtmp://66.235.194.204/video
    rtmp://66.235.194.204/video/

    after 7 days and nights of Valium and beer i think i better hire someone before things get more ugly.

    what am i doing wrong ???
    December 3, 2006
    Well, the code you have there is valid, but since you don't have an onStatus handler for your netconnection we don't know if the connection to FMS is successful before we try to play the stream. If the connection isn't being made, then we won't see any video.

    When you monitor your app through the admin console, do you see the client connection? If so, take a look at the streams panel and see if there is a recorded stream playing.
    December 3, 2006
    quote:

    Originally posted by: barfine


    //no flv extention needed
    var thefile = "AVSEQ14"; //name of flv to stream
    //put the flv in the _definst_ folder though.
    nc = new NetConnection();
    nc.connect("rtmp://66.235.194.204/video/streams/"); //fms server address

    ns = new NetStream(my_nc);
    ns.setBufferTime(2);
    my_video.attachVideo(ns); // my_video is a video object on stage
    ns.play(thefile);



    If your stream is here:

    applications/video/streams/_definst_/AVSEQ14.flv

    your connection string should look like this:

    rtmp://66.235.194.204/video

    You connect to the application, not the streams dir.