Playing mp3 over RTMP (Flash Media Server)

I've got some mp3 files that are served from a Flash Media Server.  I want to write a Flex application to play them.  Do I need to use NetConnection/NetStream or can I do it with just the Sound class?  I've got a sample app that can connect to the stream with NetConnection/NetStream but I don't know how to connect the netstream data to something that will actually play the sound.
Will I be able to read the id3 data of the files with this?

I actually got it working , let me know if that helps
Create NetStream and attach it to Video Control, then play();
@return void
  private function connectStream():void {
   // Assign a new Netstream Connection
if(_nsStream == null){
  nsStream = new NetStream(ncConnection);
  nsStream.addEventListener(NetStatusEvent.NETSTATUS, netStatusHandler);
  nsStream.addEventListener( AsyncErrorEvent.ASYNCERROR,
handleCatchAllErrors );
  nsStream.addEventListener( IOErrorEvent.IOERROR, handleCatchAllErrors );
  _nsStream.client = {onMetaData:handleMetaData, close:handleCloseStream};
  _nsStream.bufferTime = _videoData.buffer;
   // Assign a new ID3 Netstream Connection
if( id3ns == null && _videoData.mediaType=="mp3") {
  id3ns = new NetStream(_ncConnection);
  id3ns.addEventListener( AsyncErrorEvent.ASYNC_ERROR,
handleCatchAllErrors );
  id3ns.addEventListener( IOErrorEvent.IO_ERROR, handleCatchAllErrors );
  id3ns.addEventListener( NetStatusEvent.NET_STATUS, netStatusHandler );
    //HACK: we are required to pass in static duration via XML till we get
server-side actionscript working
  metadata.duration=videoData.duration;
    id3ns.play(_id3_path);
  id3ns.client = {onId3:handleOnId3};
    _id3Field = new TextField();
  _id3Field.width = _video.width;
  _id3Field.wordWrap = true;
  _id3Field.multiline = true;
  _id3Field.antiAliasType = flash.text.AntiAliasType.ADVANCED;
  //_id3Field.defaultTextFormat = _ccTextFormat;
  _id3Field.selectable = false;
  this.addChild(_id3Field);
   _video.smoothing = _playerData.smoothing;
video.attachNetStream(nsStream);
    nsStream.play(videoData.file);
  _isPlaying = true;
  createSoundObject();
   this.addEventListener(Event.ENTER_FRAME, onEnterFrame);
trace("[MEDIA FILE] "+_videoData.file);
Get MP3 data from ID3 tag
@return void
private function handleOnId3( obj:Object ):void{
if(obj["artist"] != undefined){
  _id3Field.text = "by: "obj["artist"].toString() + "\n";
if(obj["songtitle"] != undefined){
  _id3Field.text = "title: "obj["songtitle"].toString();
//if we wan to inject media with other data, add it here
for( var b:String in obj ) {
  //_id3Field.text += b + ": " + obj[ b ];
  //trace(b + ": " + obj[ b ]);

Similar Messages

  • Playing video from a flash media server

    Can anyone point me to code to play streaming video from a Flash Media Server in Flex?

    Can you tell me how are you concluding that you are skipping few seconds when you set higher bufferTime - is it on visual inspection or say based on status messages.

  • SWF to play mp3 files located on the server

    Hello,
    Does anyone know if it is possible to create an SWF file that can play mp3 files directly from the server, without the need for a streaming media server or external JS.
    And also for the application to read the current directory its located in and build a playlist based on the files inside.
    any information of examples would be greatly appreciated.
    Peter.

    As for loading and playing the files there is no issue.  Simply load them as you would load any file.  You can even use a relative path if they are in the same folder as the SWF, or a sub-folder that is in the folder with the SWF.
    As for looking at the server directory for what files are there, and using them - I know of no way to do this.  That doesn't mean it is impossible, just that I haven't come across a method in my experience.
    What I typically do is to archive the list of files in an XML file, and load the XML.  I know, that adds an extra step, and an extra file, but it is the easiest method for approximating what you want to do.
    Let me edit this response.
    You could use javascript, or a server language to grab the list of files in the directory and pass it into Flash via the ExternalInterface classes.

  • Beginners guide to integrating Flash Media Server 2?

    I'm a newbit to Flasha dn flash media server and need some
    help with integrating the two products. We've just purchased Flash
    Media Server 2 to stream user created videos to a website. Idealy
    we would like to use the FlvPlayBack component placed on the stage
    to display the FLV file from the media server, but cannont get the
    component to access the FLV file.
    Media Server Configuration:
    On the Media Server we created an application (testapp) with
    an default instance (_definst_). The directory path for the
    Appliation looks like this W:\MediaApps\testapp\streams\_definst_\
    The name of the server is MediaServer
    The application and instance are appearing in the Media
    Server Admin manager.
    I've placed an FLV file (Movie.flv) In the _devinst_
    directory.
    Flash FLA file
    Placed FLVPlayback component on the stage
    Set contentpath= rtmp:\\MediaServer\testapp\_definst_\Movie
    Set islive=true
    When I test publish the file, the video does not display?
    Does anyone have any guidance on what I need to do? There
    seems to be a lack of documentation on integrating the media
    server. I looked a sample app called "SimplePB" that works, but
    does not use the FLVPlayback component.
    Any help would be appreciated.
    Thank you,
    John Wallwork

    John,
    For an FLV to stream from FMS, it must be placed in the
    streams/_definst_ directory...
    applications/myApplication/streams/_definst_/myFlv.flv
    Then you would type in the rtmp connection information in the
    contentPath of the FLVPlayback component like this
    rtmp://myRTMPConnectionInfo/myApplication/myFlv
    without the flv extension.
    The documentation comes from the FMS components when you
    install them.
    Here it is...
    To set up your FCS for streaming FLV files:
    Create a folder in your FCS application folder, and give it a
    name such as my_application.
    Copy the main.asc file into the my_application folder.
    Create a folder named streams in the my_application folder.
    Create a folder named _definst_ inside the streams folder.
    Place your FLV files in the _definst_ folder.
    To access your FLV files on the Flash Communication Server,
    use a URL such as rtmp://my_servername/my_application/stream.flv.
    For more information on administering the Flash Communication
    Server, including how to set up a live stream, see the FCS
    documentation at
    www.macromedia.com/support/documentation/en/flashcom/. When playing
    a live stream with FCS, you need to set the FLVPlayback property
    isLive to true. For more information, see FLVPlayback.isLive.
    Regards,
    Bill

  • Audio not streaming correctly from Flash Media Server

    Our company has a Flex application (3.0.2) that is having a problem with audio dropping out in Windows 7.  The problem appears worse with a wireless connection, but it can’t be consistently reproduced there, either.  The only thing known for sure is that the problem has not been seen on any other version of Windows.
    The application thinks the audio is playing, because it is calling the appropriate event listeners triggered when the audio completes and when any audio cue points are hit.  The majority of our audio is streaming via Flash Media Server (3,0,2,201), but the problem was also seen using embedded sound effects.  In one instance, several clicks of a button triggered an error saying the sound effect could not be loaded, and then about a minute later, all the sound effects played at once and the user could then continue with the application.
    The problem has been repeated in IE 8, Firefox 3 and Chrome.

    Thanks for your details. But i need more info.
    Server:
    FMS      3.0.2 ?
    FMS installed in which platform Linux/windows? more details about it.
    Client:
    IE          7
    Flash Player version     ?
    WIndows 7
    Wireless connection - Was the client placed in poor bandwidth.
    Can you get the NetStream status info when u play the audio file.? We can check for the rebuffering happening at the client side.
    Can you run your audio file through flvCheck Tool to check if the media file is in good form. It is available at "\$Root|Flash Media Server\tools\flvcheck.exe"
    Now our intention should be to check the same media file with simpler application (since your production app is complicated) to ensure that the media streaming over 'client to server' is working fine.
    Regards,
    Janaki L

  • Flash Media Server and Pocket PC

    Hello,
    i'm develope an application of videoconference with flash
    media server 2 and desktop pc. Now i would use pocket Pc. Can i
    doing this?
    Sorry for my english!
    Demos

    Hi,
    Thanks for your interest in FMS and Strobe Media Player. SMP is a out of box sample player that can play streams from FMS and no coding is required for its basic functionality.
    It can play RTMP and HTTP dynamic Streaming / HTTP progressive as well as multicast streams.
    Download the Strobe media playback from http://www.osmf.org/strobe_mediaplayback.html , host it on a webserver and launch in a broswer.
    launch either strobemediaplayback.html or setup.html to setup your own player with different settings.
    Thank you !

  • Flash media server and strobe media player

    Hi,
    any one is done by sample program with Strobe media player and Flash media server?if yes means please send me some tutorials or sample file with steps how to do.

    Hi,
    Thanks for your interest in FMS and Strobe Media Player. SMP is a out of box sample player that can play streams from FMS and no coding is required for its basic functionality.
    It can play RTMP and HTTP dynamic Streaming / HTTP progressive as well as multicast streams.
    Download the Strobe media playback from http://www.osmf.org/strobe_mediaplayback.html , host it on a webserver and launch in a broswer.
    launch either strobemediaplayback.html or setup.html to setup your own player with different settings.
    Thank you !

  • FLEX 2.0 and Flash Media Server 2.0 Unable to stream from client to server

    Hi All,
    I have been trying to put together a quick demo to stream
    and record audio from Client to Server. I get this error when
    trying to connect to FMS.
    ArgumentError: Error #2126: NetConnection object must be
    connected.
    at flash.net::NetStream/flash.net:NetStream::construct()
    at flash.net::NetStream$iinit()
    at Audio/toggle()
    at Audio/__submit_click()
    my Program fails at this line - ns = new NetStream(nc);
    Your help is greatly appreciated. Here is the MXML file
    Audio.mxml
    This file contains a simple start and stop button start and
    stop audio processing.
    This page is served from Apache Tomcat on host : demoserver1
    and port 8080
    Flash media server is also installed on the same host
    demoserver1.
    I did not do any additional config at FMS except creating an
    application called "DemoApp". All other settings are defaults.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    applicationComplete="startup()">
    <mx:Script>
    <![CDATA[
    import flash.net.NetConnection;
    import flash.net.NetStream;
    public var started:Boolean = false;
    public var nc:NetConnection;
    public var ns:NetStream;
    public var mp:Microphone;
    public function startup():void{
    lblMessage.text="Stopped";
    public function toggle():void{
    if (started==false){
    submit.label="Stop";
    started=true;
    lblMessage.text="Started";
    nc = new NetConnection();
    nc.addEventListener(NetStatusEvent.NET_STATUS,
    netStatusHandler);
    nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
    securityErrorHandler);
    nc.objectEncoding = flash.net.ObjectEncoding.AMF0;
    nc.connect("rtmp://demoserver1/DemoApp");
    ns = new NetStream(nc);
    ns.addEventListener(NetStatusEvent.NET_STATUS,
    netStatusHandler);
    mp = Microphone.getMicrophone(0);
    ns.attachAudio(mp);
    ns.publish("sample1", "record");
    else{
    started=false;
    submit.label="Start";
    lblMessage.text="Stopped";
    ns.close();
    nc.close();
    private function netStatusHandler(event:NetStatusEvent):void
    switch (event.info.code) {
    case "NetConnection.Connect.Success":
    trace(" connection success : " );
    break;
    case "NetStream.Play.StreamNotFound":
    trace("Stream not found: " );
    break;
    private function
    securityErrorHandler(event:SecurityErrorEvent):void {
    trace("securityErrorHandler: " + event);
    ]]>
    </mx:Script>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="400"
    height="300">
    <mx:HBox left="19" right="0" height="100" top="30">
    <mx:Label text="Label" id="lblMessage" width="150"/>
    <mx:Button label="Start" click="toggle()" id="submit"/>
    </mx:HBox>
    </mx:Canvas>
    </mx:Application>

    Hi,
    Are you trying to make an air app or a web application (flash) for streaming? You may want to check out the osmf framework to help you write a player for mobile platform. Check out http://www.opensourcemediaframework.com/ for more info on how you can write streaming video players using this framework. There are some good tutorials there and also you may post on the forum to get your specific queries solved.
    Thanks,
    Abhishek

  • Live Streaming video and Flex2(3?) + Flash Media Server?

    I've seen alot of topic on how to create video sites for
    clips, etc. with Flex and Flash Media Server, but how about live
    streaming video, like a concert or a seminar. I can't find any
    information on this at all, could anyone point me in the right
    direction?

    What you need is grab video/sound form camera/mic, publish it
    on FMS and let the other clients play it. In a few steps:
    // get camera and mic
    var cam:Camera = Camera.getCamera(); // get default camera
    var mic:Microphone = Microphone.getMicrophone(); // get
    default mic
    // if you have VideoDisplay, for monitoring
    videoDisplay.attachCamera(cam);
    // create new RTMP connection to FMS/your app
    var nc:NetConnection = new NetConnection();
    // new stream should be create *after* nc has connected, not
    before
    // so this is executed after the below nc.connect() succeeds
    nc.attachEventListener(Event.CONNECT, function(){
    var ns:NetStream = new NetStream();
    ns.attachCamera(cam);
    ns.attachMicrophone(mic);
    ns.publish("streamname", "live"); // or "record" if you want
    to live+rec
    // connect to default instance of app 'appname' on your FMS
    nc.connect("rtmp://fms.ip.address/appname");
    If you're using Flex2 and FMS2 (the latest FMS is 3), you
    might need to
    cuange the connection encoding to AMF0 (which is what FMS2
    uses) in order for this to work.
    Hope this helps; I've written it from my head so it probably
    has mistakes, but it's the general workflow; the docs in the
    language reference for specific functions mentioned here will also
    help.

  • MP3 over RTMP?

    I've been using OSMF to play MP3 over HTTP, and am trying RTMP.  FMS is setup, and the following url works with the FLVPlayback component, "rtmp://myserver.com/vod/mp3:My Test Mp3" but does not work with my OSMF player.
    var player = new MediaPlayer();
    var loader = new SoundLoader();
    theURL = 'rtmp://myserver.com/vod/mp3:My Test Mp3';
    var resource = new URLResource( theURL );
    resource.mediaType = MediaType.AUDIO;
    resource.mimeType = 'audio/mpeg';
    var audio = new AudioElement( resource, loader);
    player.media = _audio;
    It returns "Error opening url rtmp://myserver.com/vod/mp3:My Test Mp3'

    I have tried to play an MP3 file from FMS using OSMFPlayer and it works just fine. I am not sure exactly where it goes wrong. But there are a few things you may want to check.
    1. The RTMP URL is indeed valid. Can you pass me the actual URL that I can test it using our internal tool. Or you can pass me the MP3 file and I can test it with my FMS environment.
    2. You don't need to create sound loader, and set mimeType yourself. You may simply do the following:
    Var mediaFactory:MediaFactory = new DefaultMediaFactory();
    Var resource = new URLResource(theURL);
    Var media:MediaElement = mediaFactory.createMediaElement(resource);
    mediaPlayer.media = media;
    -Wei Zhang
    Senior Computer Scientist
    Adobe Systems, Inc.
    [email protected]

  • Streaming from Flash Media Server into Captivate

    Hi
    We're fortunate to have a Flash Media Server (4) which we use to distribute video over our local network using Flash CS5 and have encountered no problems. However, when I try to use it for Captivate 5 files I've had no success (same with 4 incidentally). I've tried just about every string I can think of with no ext., with the ext, f4v's, flv's, /mp4:, different folders/ no folders (vod) etc etc. There must be something fundamentally wrong with what I'm doing but for the life of me I can't think what. The Media server currently delivers video over our Intranet and we also use it for Adobe Connect. Any help in this matter will be appreciated.
    My string is rtmp://breezefms2/vod/<nameofvideo> (no ext.)

    Hi Crozzer,
    We have published a blog post detailing the formats to be used for streaming video.
    I would suggest you to have a look at the blog post : http://blogs.adobe.com/captivate/2011/03/workaround-for-video-streaming-issues-in-captivat e.html and try out the streaming formats mentioned.
    Please incorporate the URI changes mentioned in the blog post and let us know if streaming video works for you.
    Thanks
    Ashwin Bharghav B
    Adobe Captivate Team

  • Record playback is very slow between Flash Media Server and Flash

    hi all
    I have done server side recording successfully with red5 flash media server and can see
    that the flv record is being created properly.
    Then if I try to playback the record like
    NetStream.play("record.flv"), I see that stream playing is very very
    slow, for both of audio and video.
    And then if I try to playback the recorded file via using the
    filesystem path of it, everthing seems fine.
    Problem occurs when I try to sucscribe and play the stream of the record.
    PS : There is no problem with playing the published stream
    (NetStream.play("streamName"))
    Does anyone have an idea about this issue?
    If you need any additional information, please let me know.
    Thanks in advance
    Regards

    In a nutshell flowplayer delivers the video through your web
    browser. It does this via http protocol (port 80) and progressive
    download on any web server
    Progressive download finds the video on the server and plays
    it back through the player as it is being downloaded. 2 important
    things to take from this are 1, the video is being downloaded to
    the clients hard drive, at the end of the playback they will have a
    copy of your video that they can do whatever they like to and
    repost it somewhere else. 2, It plays back as it downloads, meaning
    if I'm viewing a 10 minute video from your site and want to skip
    ahead to the middle or end I have to wait for the whole video to
    download before viewing those segments. Your web host by the way
    will love you for progressive download because it will appear as
    though your transfer rate has gone through the roof. Once the
    request for the video is made there is no turning back, the client
    gets the whole thing whether they watch it or not.
    Flash media server uses the rtmp protocol. This protocol is
    an open socket protocol through port 1935. This is a two way street
    essentially. When the user views a video using FMS they basically
    get only enough of the video to keep the connection open and
    satisfy the required buffer to assure clean playback. The bytes of
    info that carry the video only go to the users memory, not the hard
    drive. This allows the user to jump back and forth around in the
    movie without having to wait for the whole thing to download.
    Hope that helps.

  • Very basic question: Flash Media Server vs. embedding flash video

    I'm hoping this is a quick easy question to answer:
    What is the difference between Flash Media Server and simply
    using a freeware Flash media player (like Flowplayer
    http://flowplayer.org/) that
    uses XML playlists to embed your Flash videos on a website?
    What are the advantages to Flash Media Server and how does
    something like Flowplayer not address issues that FMS can?
    Thanks in advance!
    Erik

    In a nutshell flowplayer delivers the video through your web
    browser. It does this via http protocol (port 80) and progressive
    download on any web server
    Progressive download finds the video on the server and plays
    it back through the player as it is being downloaded. 2 important
    things to take from this are 1, the video is being downloaded to
    the clients hard drive, at the end of the playback they will have a
    copy of your video that they can do whatever they like to and
    repost it somewhere else. 2, It plays back as it downloads, meaning
    if I'm viewing a 10 minute video from your site and want to skip
    ahead to the middle or end I have to wait for the whole video to
    download before viewing those segments. Your web host by the way
    will love you for progressive download because it will appear as
    though your transfer rate has gone through the roof. Once the
    request for the video is made there is no turning back, the client
    gets the whole thing whether they watch it or not.
    Flash media server uses the rtmp protocol. This protocol is
    an open socket protocol through port 1935. This is a two way street
    essentially. When the user views a video using FMS they basically
    get only enough of the video to keep the connection open and
    satisfy the required buffer to assure clean playback. The bytes of
    info that carry the video only go to the users memory, not the hard
    drive. This allows the user to jump back and forth around in the
    movie without having to wait for the whole thing to download.
    Hope that helps.

  • Why Flash Media Server

    Hi All,
    As it stands currently, I'm developing online teaching applications that faculty can use in their classes, as well as encoding and uploading videos to our Windows Servers.  For database management, I'm coding server side scripts in PHP, and dumping everything into MySQL.  Then embedding all the content into Moodle (which is hosted by a 3rd party).
    I'm looking at a Flash Server Solution for a couple of reasons:
    1) Delivering Streaming video instead of Progressive Download
    2) Allowing instructors to encode and upload their own videos (similar to YouTube) without having to go through my office
    3) Providing extra copyright security - in order to use some copyright videos, we have to ensure that only the students who are enrolled in specific classes can access the data.  As it stands now, a smart student with the right URL can download anything we have up on our Windows servers.
    Some Questions and concerns:
    1) I don't know Cold Fusion.  Will I have to rewrite all my scripts for that?  Can Flash Media Server run PHP?
    2) This is probably a really stupid one, but... Is Flash Server it's own platform, or does it have to run on a Windows or Linux box?
    3) Does it need its own dedicated machine?  Can you run a virtual server with Flash Server?
    4) Which of the different flavors of Flash Server are best?
    5) What kind of hardware specs are we looking at?  We have 20,000 students and maybe a few thousand at any one time would have to access
    Sorry about all the dumb questions.  I'm mostly an app developer, but am in the position of having to make this decision, and then defend the decision if I decide to puruse a Flash server solution.
    Thanks for your help.

    Hi riquigley,
    Following are quick answers on a few of your questions.  Hopefully other folks will add their thoughts and also answer the questions I have skipped over.
    4) Which of the different flavors of Flash Server are best?
    -- FOR STRAIGHT VIDEO STREAMING USE Flash Media Streaming Server.  THE PRICE POINT IS LOWER THAN Flash Media Interactive Server (aka FMIS. FMIS IS ONLY NEEDED FOR INTERACTIVE APPLICATIONS, E.G. MULTIUSER, CHAT, ETC.)
    -- COMPARE EDITIONS PAGE HERE:
    http://www.adobe.com/products/flashmediaserver/compare/
    2) ... does it have to run on a Windows or Linux box?
    -- YES.  FMS IS A SERVICE THAT RUNS ON AN OS.  WINDOWS AND RED HAT LINUX ARE SUPPORT. FULL REQUIREMENTS HERE:
    http://www.adobe.com/products/flashmediastreaming/systemreqs/
    3) Does it need its own dedicated machine?  Can you run a virtual server with Flash Server?
    -- DEDICATED MACHINE *NOT* REQUIRED.
    -- HOSTED SOLUTIONS ARE AVAILABLE TOO.  HOSTED SOLUTIONS MAY OFFER: A) BETTER QUALITY; B) LOWER TOTAL COST OF OWNERSHIP; C) QUICKER START TO LAUNCH.
    -- SEE LIST OF HOSTING PARTNERS, AKA CDNs (Content Delivery Networks) HERE:
    http://www.adobe.com/products/flashmediaserver/fvss/
    1) I don't know Cold Fusion.  Will I have to rewrite all my scripts for that?  Can Flash Media Server run PHP?
    -- COLDFUSION NOT REQUIRED.  EITHER PHP OR COLDFUSION CAN BE USED TO MANAGE METADATA (INCLUDING SQL DATABASE INTERACTION).
    -- PHP AND COLDFUSION HANDLE ALL HTTP REQUESTS AND RETURN DYNAMICALLY GENERATED PAGES TO THE USERS' BROWSERS.
    -- FLASH MEDIA SERVER HANDLES ALL RTMP REQUESTS.  DYNAMICALLY GENERATED PAGES FROM PHP WILL INCLUDE THE RTMP URLs THAT THE FLASH/FLEX SWFs USE IN THE BROWSER TO REQUEST THE RTMP STREAMS FROM THE FLASH MEDIA SERVERS.
    hth,
    g

  • Trying to buffer on Flash Media Server

    Hi all, I am very embasarred about this as I should really have studied more but I am having massive difficulty in getting my videos to buffer from Flash Media Server 3.5. The videos are on the web and streaming fine so really I just need to put some actionscript in to make them work... sounds easy. Also, I come across an article by Fabio Sonatti which seems to offer the solution I need. He states the following script.
    function initConnection() {
       // Create a NetConnection
       nc = new NetConnection();
       // Define onStatus event handler
       nc.onStatus = function(info) {
       trace("Level: "+info.level+" Code: "+info.code);
       // Initialize the stream after the connection is successful
       if (info.code == "NetConnection.Connect.Success") {
          trace("--- connected to: " + this.uri);
          startStream(); //Inizialize the stream
       // try to connect, to be changed with your app path
       nc.connect("rtmp://127.0.0.1/dualBuffering/demo");
    function startStream() {
       //Define stream and buffers parameters
        stream_name="test_stream";  //your stream
        startBufferLength=2; //keep this in the range 2-4+
        expandedBufferLength=15;  //arbitrarily high
       // create a netstream
       ns = new NetStream(nc);
       // Define onStatus event handler
       ns.onStatus = function(infoObject:Object) {
          if (infoObject["code"]=="NetStream.Buffer.Full"){
          ns.setBufferTime(expandedBufferLength);
          trace("set expanded buffer");
          if (infoObject["code"]=="NetStream.Buffer.Empty"){
          ns.setBufferTime(startBufferLength);
          trace("set start buffer");
       // attach the NetStream to a video object
       // change from videoObj to your istance name if needed
       videoObj.attachVideo(ns);
       ns.setBufferTime(startBufferLength);
       ns.play(stream_name, 0);
    initConnection();
    stop();
    Now, please appreciate that I know very lkittle about ActionScript but I do know to change the path "rtmp etc etc" to the location of my video on the FMS, so thats fine. However this is where I have a problem I am afraid. I am 100% sure that I need to replace some other items within the code to make it work (as I get errors when I test the video in Flash) but I am afraid and embarassed that I have no idea which items to change. I know the code is perfect but I dont know what a NetStream is and this I think is letting me down.
    I apologise in advance for being an idiot but I am just desperate to get these videos buffering, I know this is the codfe to do it but I need someone to just talk to me in dead simpl;e terms to put me in the right direction. Can anyone help ? : Many thanks : Dom  

    MediaPlayer.stop() will only stop playback of the stream, but not close the connection.
    If you set MediaPlayer.media to null, then it will close the connection.

Maybe you are looking for

  • IPod Mini Problems Please Help

    This is my second post of the type... no one replied to that so im hoping someone could help me. Problems: -Wont Update or Load Songs -It starts loading, gets to around the 5th song (out of well over 600) and says "Ipod Update Complete, OK To Disconn

  • How do I save voice recordings to my phone sent to me via text messaging?

    I have recieved voice recordings sent to me via text messaging and I would like to save them to my computer. How would one go about this?

  • How to activate business content extractor for masterdata in ECC 6.0?

    Hi Experts, I have a small problem with the extracttor 0PS_RESPNO_TEXT in ECC 6.0? If i try to open it in RSA2 / RSA6, it says that active version not available. When i check in the developement system, i have it as modified version. For this problem

  • Crystal Reports Charting Issue with SAP Function Module

    I created a custom SAP Function module that returns 2 tables. The first table (summary table) contains two columns, column "a"  contains a grouping and column "b" is a quantity.  The second table is the detail and is linked to the first table by the

  • Multiple applications open cause crash

    My mac is crashing when multiple apps are running. It looks like it may be a GeForce problem but I'm not that smart. Any help is appreciated. Process: Safari [13153] Path: /Applications/Safari.app/Contents/MacOS/Safari Identifier: com.apple.Safari Ve