Wednesday, January 5, 2011

Flash Media Interactive Server 4



Flash Media Interactive Server 4 can be downloaded from
http://www.adobe.com/products/flashmediaserver/
Flash Media Interactive Server 4 is for medium and large business and social media companies
requiring multi-users experience, while  Flash Media Streaming server 4 for basic streaming and blogger.
For trial version, you can only get Adobe Flash Media Development Server 4 for a limitation of 10 RTMP connection.
Video:  Webcam Basics in ActionScript 3

3 comments:

  1. Beginner's guide to streaming video with Flash Media Server 3.5:
    http://www.adobe.com/devnet/flashmediaserver/articles/beginner_vod_fm3.html

    ReplyDelete
  2. Flash media server:
    1) instead of put videos in your web server, you put videos in the Application folder of Flash Media Server. The folder where the media files are located is called the "instance." It looks somewhat like this: rtmp://server/Application/Instance.
    2) You need to understand some server-side ActionScript.

    Examples:
    1) Copy FLV files to C:\Program Files\Adobe\Flash Media Server 4\applications\media
    2) Inside the Flash CS5 select File > New > ActionScript 3.0, drag a copy of the FLVPlayback component from the Components panel to the Stage.
    2. Save the Flash file to a folder of your choosing.
    3. Click once on the component on the Stage, and open the Component inspector
    4. Double-click the source parameter. When the Content Path dialog box appears, enter rtmp://server/Application/Instance. .

    ReplyDelete
  3. Using NetConnection class to connect to an application instance on the server.

    var nc:NetConnection = new NetConnection();
    nc.connect("rtmp://localhost/MyServer");
    (fold in the server is:
    C:\Program Files\Adobe\Flash Media Server 4\applications\MyServer\media)

    Example of ActionScript for HelloServer in client side from Adobe:
    package {
    import flash.display.MovieClip;
    import flash.net.NetConnection;
    import flash.events.NetStatusEvent;
    import flash.events.MouseEvent;

    public class HelloServer extends MovieClip {
    private var nc:NetConnection;
    }
    public function HelloServer() {
    // register listeners for mouse clicks on the two buttons
    connectBtn.addEventListener(MouseEvent.CLICK, connectHandler);
    closeBtn.addEventListener(MouseEvent.CLICK, closeHandler);
    }
    public function connectHandler(event:MouseEvent):void {
    trace("Okay, let's connect now");
    nc = new NetConnection();
    nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
    nc.connect("rtmp://localhost/HelloServer");
    }
    public function closeHandler(event:MouseEvent):void {
    trace("Now we're disconnecting");
    nc.close();
    }
    public function netStatusHandler(event:NetStatusEvent):void {
    trace("connected is: " + nc.connected);
    trace("event.info.level: " + event.info.level);
    trace("event.info.code: " + event.info.code);
    switch (event.info.code)
    {
    case "NetConnection.Connect.Success":
    trace("Congratulations! you're connected" + "\n");
    break;
    case "NetConnection.Connect.Rejected":
    trace ("Oops! the connection was rejected" + "\n");
    break;
    case "NetConnection.Connect.Closed":
    trace("Thanks! the connection has been closed" + "\n");
    break;
    }
    }
    }

    When you run the application, you can see the message displayed.

    ReplyDelete