Fluorinefx+flex Video chat room case development----Client

Source: Internet
Author: User

Previous "FluorineFX + Flex Video chat room case development----Server Side" detailed how to use FluorineFX to develop a timely communication of the video chat Room server processing program, and through the Web site to host the operation of the service handler. This article will focus on client-side development of video chat rooms, including connecting rtmp servers, releasing video, receiving video, online user list, sending text messages, and all-server small speaker function points.

These function points in my previous writing has appeared in the article n many times, so here I do not want to explain to them too much, please refer to the flex and. NET Interoperability series, here I put the core of a few method code to post a simple description. The first is the customer to achieve user login, through the FluorineFX provided by the Remotingservice interface method for data validation.

Private Function Onlogin (event:mouseevent): void {remoteconn = new Remotingconnection ("Http://localhost:2020/ChatRo Om.
    Fluorinefxweb/gateway.aspx ", OBJECTENCODING.AMF3);
    MyInfo = new UserInfo ();
    Myinfo.username=this.txtusername.text;
    Myinfo.password=this.txtpassword.text;
Remoteconn.remotingcall ("ChatRoom.Services.DataService.Login", onloginresult,onloginfault,myinfo);
        Private Function Onloginresult (result:userinfo): void {if (result!= null) {This.myinfo = result;
        This.viewStack.selectedChild = Chatview;
    RTMPNC = new Rtmpconnection ("Rtmp://localhost:2777/videochat", objectencoding.amf3,onnetstatushandler,myinfo); else {This.lbState.text = "Login failed, username or password error!"
    "; } Private Function Onloginfault (event:object): void {This.lbState.text = "Login failed, please try again!"

";
}
    Private Function OnClear (event:mouseevent): void {this.txtusername.text= "";
    This.txtpassword.text= "";
    This.lbstate.text= ""; This.txtuSername.setfocus (); }

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.