How to test streaming bandwidth on localhost with Flash Media Server ?

Hello,
I'm trying to debbug my code on Client side (Action Script 3) that works with Flash Media Server 4 on localhost. Everything seems fine up to that point.
However, when I'm trying to test my player with other remote streaming servers, I notice bugs because of lower bandwith transmission between the server and the player.
Is there a simple way to simulate lower bandwith with FMS4 on localhost (by config, application.xml, programmation...) ?
Thanks
Seb Ethier

Thank you zarihs Rawna
Indeed, i have been with Server-Side ActionScript (SSAS) way. it's more simple, i think.
Well, here the step what i did :
Step 1 :
Make a file "main.asc" et copy & paste the code below.
- more info : http://www.peachpit.com/articles/article.aspx?p=31217
      *main.asc*
    var bandwidth;
    application.allowDebug = true;
    // Application callback functions
    application.onConnect = function(client, user) {
        //12800 = 100 Kbps   
        //64000 = 500 Kbps
        //131072 = 1Mbps
        //327680 = 2.5 Mbps
        //983040 = 7.5 Mbps
        //1966080 = 15 Mbps
        //3932160 = 30 Mbps
        //6553600 = 50 Mbps
        //15728640 = 120 Mbps
        bandwidth = 64000;
        client.setBandwidthLimit(bandwidth, bandwidth);
        trace("clientToServer = " + client.getBandwidthLimit(0) +  " serverToClient="+  client.getBandwidthLimit(1));
        application.acceptConnection(client);       
        trace("TEST");
Step 2 : Save the file under the folder underneath FMS's applications directory
Example : FMS\application\dyn
More info : http://www.flashcomguru.com/articles/fms2_basics.cfm
Step 3: Start the FMS server. If there is a problem, check the log file
Example : FMS\logs\_defaultVHost_\dyn\_definst_\application.00.log
Step 4 : (optional) Change the value of the variable bandwidth for your test. I put in comment some common internet connection speed converted in bytes.
That's all,
regards,
sethier

Similar Messages

  • Need help with Flash media server

    I am using XAMPP. Now i want to intall Flash media server. How can i configure my apache server to work with flash media server? I dont want to install the apache server coming along with flash media

    Hi,
    What excactly is the usecase you are trying here? Are using your external Apache to proxy your http traffic from FMS to it or do you want to use http streaming feature of FMS?
    If you want to proxy it then use the following document : http://help.adobe.com/en_US/FlashMediaServer/3.5_AdminGuide/WSE2A5A7B9-E118-496f-92F9-E295 038DB7DB.html
    Refer Configure HTTP proxying topic in the document.

  • Flash MX with Flash Media Server 2.0.1

    Hello
    I would like to know if I can use Flash MX with Flash Media
    Server 2.0.1 ?
    Thank you

    quote:
    Originally posted by:
    JayCharles
    Yes.. you can.
    But my old version of Flash MX show me an error message when
    I try to open "CommunicationComponents.fla" which contain the
    components of Flash Media Server 2.0.1.
    My old version of Flash MX can't read this file and say
    something like "Unexpected file format".

  • Streaming with Flash Media Server

    Hello all,
    I'm new user in Flash Media Server. I installed it in a Red
    Hat Enerprise 4 but i am not able in create no steaming file. I'm
    be simple. What have i to do in order to create a simple atream
    flash video? I don`t have any idea on where i havve to put the
    video, where i have to put the swf file, how i create a fls who
    communicate with my server...
    Please help me,
    Thanks for all,
    Mauricio Barreto

    Hello Mauricio -
    There is probably several ways to do this, but being sort of
    new with FMS2 too, I'll give you the way that I'm currently using
    it. Both my Web server and FMS2 are on the same computer.
    You FMS2 installation created a /fms/ directory.
    for FLV files - /fms/applications/ and then I've created sub
    directories under here for each FLV file. So, for example, the full
    directory path for one of my FLV files
    /fms/applications/lemurs/streams/_definst_/lemurs.flv
    The "main.asc" file needs to go here too -
    /fms/applications/lemurs/main.asc (for the example above).
    for SWF files - put these on your Web server side.
    When you make your SWF files you will reference your FLV
    'source' (in 'parameters tab' in Flash) as
    "rtmp:/lemurs/lemurs.flv" - again, if your Web server and FMS2 is
    on the same computer. You can also do
    "rtmp://UR.IP.AD.RES/lemurs/lemurs.flv" - for example,
    "rtmp:/192.168.1.1/lemurs/lemurs.flv"
    I hope this helps some.
    Donavan

  • Live Streaming with flash media server

    Hi,
    i am installing flash media server 5.0. And its working perfect locally, I need to publish my video through my own IP address. How can i configure local to server

    Thanks for the response
    I m having Flash Media Server 4.5 . It works correctly in localhost. I want to make it online. I found a way, that place public ip address on the fms.ini file. I did it, but it does not work for me. How to fix this?

  • Archival services with Flash Media Server

    I work for a broadcasting company and we do live telecast of
    various events, mostly related to professional sports. We currently
    have a Windows Media Encoder 9 setup with Windows Media Server,
    etc. I have a custom written application that archives all of our
    broadcasts. This was accomplished with the M$ media SDKs. Archival
    means we record each one of our daily live feeds for review and
    archival purposes (game footage for coaches, stuff like that).
    We are currently looking at h.264 capable setups, or
    something equivalent. We have been playing around with Adobe's
    encoders, media server, and all that. We are impressed with the
    quality. Switching to this right now has some logistical
    complications, mostly related to an operational requirement based
    on our current business model. Simply switching to h.264 overnight
    isn't going to be possible; we will need to prepare.
    So, with that in mind, I have a question relative to SDKs and
    Flash. My current application (the archiver) can archive up to 120
    events simultaneously on a single, reasonably fast machine on a
    fast network. I have to be able to record at least 60 on a given
    night, the 120 was discovered during testing and its faltering is
    relative to network collisions and getting ethernet up to 40%
    utilization more than not having enough CPU to process the streams.
    I would need something similar for Adobe. I have the spec (at least
    the public domain version) for the tunnelling protocol so reverse
    engineering this isn't going to be a big deal. What I'm mosly
    interested in is an SDK with functionality that allows me to record
    a lot of streams in software for archival purposes. This SDK has to
    be smart enough to deal with Disk I/O VERY intelligently because
    clearly anything more than 8-12 realtime stream records to a disk
    in a linear fashion is going to overload the hard drive.
    Before anyone starts spouting off about DRM and piracy, we
    are recording the broadcasts we own. This is for archival and this
    archival process has to be automated (the app isn't JUST a
    recorder, there's a whole process shielded from the operators of
    this thing for defining stream locations, where to save the files,
    and all that). I realize all this code that automates this process
    for our company would still need to be written. What I'm interested
    in specifically are readers and writers for flash streams,
    especially relative to network reading and disk writing
    (intelligent disk writing; I've written custom implementations of
    MMS, HTTP, etc that mash the hard drive).
    In a nutshell, is there an equivalent SDK for Adobe's
    technology as the Windows Media Format SDK is for WMV files? This
    is currently the only hurdle in implementing Adobe's h264
    technology in lieu of our current setup (which is 100's of encoders
    and locations at the current time, all over North America.
    Thank you for your time.

    Take a look at On2's Flix SDK for Live. That uses the VP6 and
    any day now, the h264 codec for FLV.

  • Linux issue with Flash Media Server 2

    Greetings all,
    We have just upgraded from Flash Communication Server 1.5 to
    Flash Media Server 2, running on a server with Redhat Enterprise
    Linux 4.
    For some reason, a Flash movie that uses the old
    MediaPlayBack component does not stream video of a FLV. It does
    stream audio. On my testing server using Windows 2000 it functioned
    fine.
    On the other hand, the FLVPlayback component works nicely.
    But I will have to go back and rewrite literally dozens of
    applications that I wrote for Flash Comm 1.5 which used the
    MediaPlaybackComponent, unless there is an easy fix for this.
    I have documented this anomaly with a Captivate movie which
    you can see at
    http://breeze.stfrancis.edu:8900/mediaplayerwoes/.
    It runs 2 minutes 13 seconds.
    I BADLY need help with this. If you can help I would greatly
    appreciate it.
    Glen Gummess,
    Instructional Designer
    University of St. Francis
    Joliet, IL

    quote:
    Originally posted by:
    JayCharles
    Yes.. you can.
    But my old version of Flash MX show me an error message when
    I try to open "CommunicationComponents.fla" which contain the
    components of Flash Media Server 2.0.1.
    My old version of Flash MX can't read this file and say
    something like "Unexpected file format".

  • Domain issues with Flash Media Server

    I have a webcam streaming to Flash Media Server via the Media
    Encoder. I have published the .swf file with the flash player and
    rtmp://99.999.999.999:1935/live/livestream address to my website on
    a hosted webserver.
    When I am on another internet source, the player on my
    webpage loads and works fine. However when I load the webpage in a
    browser on the same network that has the Media Server and Webcam on
    it, the browser freezes up.
    I need some help with a solution that will cause the rtmp://
    address to switch to a local host address. Any suggestions.

    quote:
    Originally posted by:
    JayCharles
    Yes.. you can.
    But my old version of Flash MX show me an error message when
    I try to open "CommunicationComponents.fla" which contain the
    components of Flash Media Server 2.0.1.
    My old version of Flash MX can't read this file and say
    something like "Unexpected file format".

  • Streaming from Digital Rapids to Flash Media Server

    Hello,
    I am using a Digital Rapids StreamZ encoder (version 3.8.0) to stream towards YouTube, Dailymotion, Akamai. I wish to install a Flash server on the same VLAN as my Digital Rapids in order to check the encoding in case there is an issue on YT/DM's side. I therefore downloaded Adobe Flash Media Server and now wish to send my stream towards the AMS. Which Server URL and Stream Name should I use to configure my Digital Rapids? How should I configure the AMS to receive the stream from the DR?
    Many thanks in advance for your help and advice,
    mdicamp

    The Digital Rapids doesn't seem to recognize my destination Server URL. I guess it is because of a port issue.
    Checking the ports situation on my AMS Server (cmd -> netstat -an), I realise port 1935 (which receives RTMP) is only listening locally (127.0.0.1:1935) instead of to the exterior (I would like to have 0.0.0.0:1935). The application does not seem to have forced the port to open (I don't have any firewall).
    I hope this helps move anyone forward in helping me out. Thanks in advance !

  • Starting with Flash Media Server 3

    Hi All, im thinking in start wiht FMS3 developing a flash
    phone, in the first version the users logged in the flash media
    server could call another users logged into the FMS.
    I see samples that open a live stream between 2 users that
    open a swf, both users publish and dowload a stream with a specific
    name, It is the only way to open a live stream between 2 users?
    Any ideas would be appreciated.
    Regards
    Nacho.

    Hi All, im thinking in start wiht FMS3 developing a flash
    phone, in the first version the users logged in the flash media
    server could call another users logged into the FMS.
    I see samples that open a live stream between 2 users that
    open a swf, both users publish and dowload a stream with a specific
    name, It is the only way to open a live stream between 2 users?
    Any ideas would be appreciated.
    Regards
    Nacho.

  • LCCS functionality with flash media server 4

    Hi,
    I'm now using the LCCS account in my application to create p2p audio/video connections and screen sharing. Audio/video streaming is working well. However screen sharing uses RTMP protocol which means that all the data goes through the server. Due to network speed (and big distance from user1 -> LCCS server -> user2) screen sharing isn't very enjoyable and efficient because of delays. Now I wonder how to implement my own Flash Server, that users can authenticate to, publish p2p streams, and share their screens via my private server. I Assume that I need Flash Media Server 4 Enterprise (Am I wrong? Maybe some lower version applies), but what next. I completely don't know how to bite it. How to implement connecting/authenticating/routing/making connections to my own server?
    Best Regards
    Peter.

    Check out below links:
    http://help.adobe.com/en_US/flashmediaserver/techoverview/WS02f7d8d4857b16772f462f081294b9 46df9-8000.html#WS3f305989b15d10dc56a9904212a5dec9b49-8000
    http://help.adobe.com/en_US/flashmediaserver/devguide/WSa4cb07693d123884520b86f312a354ba36 d-8000.html
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/NetGroup.html
    http://help.adobe.com/en_US/flashmediaserver/configadmin/WS5b3ccc516d4fbf351e63e3d119f2925 e64-7fd2.html#WSf6b44f6ae3478e7f-67b40a2012a82c512f1-7fff
    http://help.adobe.com/en_US/flashmediaserver/configadmin/WSf888d222081ca19c-641751a912a847 7639a-8000.html
    http://www.adobe.com/devnet/flashmediaserver/articles/p2p_rtmfp_groups.html
    Hope above links help - let me know

  • GEO Location with Flash media server 4.5

    Ok so here is what im having issues with... i have 3 servers france, LA,Florida all using Flash media server Enterprise.. now my issues is my site has 5 channels of feeds but i have people from all over the world and some get bufffering issues to my servers cause they are too far.. now if my floplayer or fms could somehow tell where they are and point them to the closer server is this at all possible?

    I have not used Flowplayer but is there a way to find bandwidth between client and server using Bandwidth API's which FMS & AS provides - now before using any server you can do quick check and server which returns connection in minimum time and has better bandwidth and then choose that server. I think some delay uprfront is much better in terms of usablity than constant buffering.

  • Hello help with Flash Media Server to Endavo Media Management.

    Flash Media Encoder 3.1 and I'm trying to connect to: rtmp://fli001.ph1.hwcdn.net/g2q6m9d2/_definst_ and I'm not sure if I'm doing it right.
    Below is my encoder log:
    Tue Aug 24 2010 13:16:24 : Primary - Connected to FMS/3,5,4,1004
    Tue Aug 24 2010 13:16:24 : Primary - Network Command: onBWDone
    Tue Aug 24 2010 13:18:21 : Primary - Network Status: NetConnection.Connect.Closed status
    Tue Aug 24 2010 13:18:21 : Primary - Disconnected
    Tue Aug 24 2010 13:22:47 : Primary - Connected to FMS/3,5,4,1004
    Tue Aug 24 2010 13:22:47 : Primary - Network Command: onBWDone
    Tue Aug 24 2010 13:24:10 : Primary - Network Status: NetConnection.Connect.Closed status
    Tue Aug 24 2010 13:24:10 : Primary - Disconnected
    Tue Aug 24 2010 13:27:46 : Primary - Connected to FMS/3,5,4,1004
    Tue Aug 24 2010 13:27:51 : Backup - Connection failed
    Tue Aug 24 2010 13:27:51 : Failure to connect to backup server. Please verify that your Server URL and application name are valid and that your Internet connection is working and retry.
    Tue Aug 24 2010 13:27:57 : Primary - Network Status: NetConnection.Connect.Closed status
    Tue Aug 24 2010 13:27:57 : Primary - Disconnected
    Tue Aug 24 2010 13:30:33 : Primary - Connected to FMS/3,5,4,1004
    Tue Aug 24 2010 13:32:45 : Primary - Stream[livestream] Status: Success
    Tue Aug 24 2010 13:32:45 : Primary - Stream[livestream] Status: NetStream.Failed
    Tue Aug 24 2010 13:32:45 : Primary - Stream[livestream] Status: NetStream.InvalidArg
    Tue Aug 24 2010 13:32:45 : Primary - Stream[livestream] Status: NetStream.InvalidArg

    I think at FMLE end it looks ok, i mean url the way you entered seem to be fine. I think if you have FMS access it would be good to see FMS logs and see what you see there. Also do you have access to server-side applications - you might want to see what code is there in application "g2q6m9d2"

  • How to create a mp3 playlist compatable with the media server (storage link)

    Hi,
    I have setup the wrt160nl wireless router with the latest Firmware Version: 1.00.01 B17.
    Everything is working great. I can browse the artists, albums, song titles etc from my usb hard disk.
    What isn't working is the play lists.
    What format does the play list need to be in?
    I assume a text file with the tracks listed like: \music\acdc\back in black.mp3
    What file extention or name will the playlist need to be in?
    My pnp player only sees two playlists:
    1) playlistlastplayed
    2) playlistmostplayed
    If I knew where those play lists were stored on the usb hard drive (or linksys internal ram?) then I might have a clue.....
    Thanks for any help on this.

    Playlistlastplayed has every track on the hard disk - and I haven't played them all, only like 3
    Playlistmostplayed has ONLY 1 track that I haven't played from the linksys upnp server at all
    I can play music off the album, artist and song lists fine.
    I'd just like to be able to use a play list, and can't seem to find out how to make one.
    I realize and understand that the linksys storage link system doesn't create them.
    I assume I can make my own text file with track listings and copy the play list to the usb hard drive attached.
    I just need to know the format of the text file, and what extention will it need.
    I have tried .m3u .m3u8 .wpl
    I don't have iTunes but if you told me I have to download that, import my music into that, then create the playlist there, well, I guess I could try that. I rather not load iTunes if possible.
    Thanks

  • A question on using Cairngorm with flash media server

    Hi,
    I want to use the data from a remote sharedobject on FMS with cairngorm framework.
    Where should I put the service (connection) to the FMS?
    It seems not possible to put it into ServiceLocator.
    This service is quite different from the service of HTTPService, RemoteObjects and WebService.
    It needs a listener to the SyncEvent while the other 3 do not.
    Pls give some hints on how to do this.
    Thx a lot.
    Best
    ChaChaYa

    The IP camera would need to have an embedded RTMP publishing client. I don't know of any IP cameras that have such support, but I suppose it couldn't hurt to check with the manufacturer of the camera to find out if it can be done.

Maybe you are looking for

  • Missing Javascript menu items on Acrobat 9 Standard

    I've been trying to get into some more advanced JS coding within Acrobat for forms, and I'm running into a bit of a roadblock in accessing the javascript tools.  Specifically, I keep seeing references to Javascript menu items under the Advanced menu,

  • Change settings for external displays: no "mirror displays" mode

    Hello, I'm using a 13" MBP with Snow Leopard. I'm using different displays and projectors in different locations. When you plug an external display in, the two displays are first in "mirror displays" mode. First thing I do is to switch this off. Is t

  • SRM possible with external catalogs only?

    Hi, We are thinking about implementing SRM 5.0 or SRM 6.0. Decision has not been made yet, but one item on the wishlist would be to use external catalogs only (not CCM or MDM). Is this possible and could we then completely skip the CCM/Trex or MDM in

  • Audio in Windows 8 Boot Camp not working

    I have installed Widows 8 using boot camp. The audio was perfectly fine until recently, it is not working anymore even with my earphones (though it works if I connect to an external speaker using Bluetooth).

  • Cannot connect ipad mini 2 to TP link extender

    The extender is syncd with PC with sky broadband and boosts signal around house (works well) but Ipad cannot connect to TP link and defaults to the PC Router and does not recognise TP link