Fluorinefx+flex Video chat room case Development----Application Deployment Chapter

Source: Internet
Author: User
Tags config iis

This time the essay has been about the timely communication applications, many of whom have no problems with the development, but in the deployment of the program is a problem. This article will briefly describe the deployment aspects of the FLUORINEFX + Flex video chat room.

First need to note that the flex configuration file Service-config.xml, the following flash will be configured in the Service-config.xml rtmp communication channel and FluorineFX RTMP server connection, detailed configuration As follows:

<channel-definition id= "my-rtmp" 

class= "Mx.messaging.channels.RTMPChannel" >
    <endpoint uri= "rtmp" ://{server.name}:2777 " 

class=" Flex.messaging.endpoints.RTMPEndpoint "/>
    <properties>
        < idle-timeout-minutes>20</idle-timeout-minutes>
    </properties>
</channel-definition >

Add a new Web page (fluorinechatroom.aspx) to the Web site to host the run of Flash (. swf) and load the newly published. swf onto the page.

<object classid= "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id= "VideoChat" width= "520"
        height=
        

"520" Codebase= "Http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" &g

t;
        <param name= "movie" value= "flash/videochat.swf"/> <param name=
        "quality" value= "High"/>
        < param name= "bgcolor" value= "#869ca7"/> <param name=
        "allowscriptaccess" value= "Samedomain"/>
        < Embed src= "flash/videochat.swf" quality= "High" bgcolor= "#869ca7" width= "520" height= "520
            " name= "videochat" align = "Middle"
            play= "true"
            loop= "false"
            quality= "High"
            allowscriptaccess= "Samedomain"
            type = "Application/x-shockwave-flash"
            pluginspage= "Http://www.adobe.com/go/getflashplayer" >
        </embed >
</object>

The Remotingservice and Applicationadapter sites provided by the host FluorineFX are then published and deployed to IIS.

During deployment I assigned a separate Web port 88,ok, now run geteway.aspx will get an address: http://localhost:88/Gateway.aspx This address is a communication network that needs to be used as RPC communication in Flash A simple understanding of the address is to access the remote Service (Remotingservice) provided by FluorineFX. Now go back to the client development code, modify the address of the communication gateway, and modify the address originally debugged under VS to the access address deployed to IIS:

Remoteconn = new Remotingconnection ("http://localhost:2020/ChatRoom.FluorineFxWeb/Gateway.aspx", Objectenco Ding. AMF3);

Modified to read as follows:

Remoteconn = new Remotingconnection ("Http://localhost:88/Gateway.aspx", OBJECTENCODING.AMF3);

Now republish Flash to copy the newly released. SWF to the directory of the sites deployed in IIS, where local testing is almost complete. However, this can only be done locally stand-alone access, if you want to access in the LAN will need to be in IIS for the application site to assign IP, and then through IP access on the OK.

How to deploy on the server host? Through these steps may have realized that the Flash client needs only two addresses, a gateway.aspx gateway address, a RTMP server access address, in fact, you will be the Web application so deployed, as long as the guarantee that the two addresses valid on the line. For example, your server IP is: 61.128.128.68, deployed on this server FluorineFX Web site (the bound domain name is www.mydomain.com), then the client Access Remotingservice address is: "http:// Www.mydomain.com/Gateway.aspx ", rtmp server's address is:" Rtmp://61.128.128.68:2777/videochat ". Modify the flash end through these two addresses and redistribute a. swf overwrites the previous flash file, so you can use the domain name on the public Internet in this video chat room case Project.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.