Video Call and VoIP call in s60 3rd

Source: Internet
Author: User

The video call and VoIP call functions were required for a 3rd Mr project in March. At that time, the project team planned to ask Nokia people to implement the call. The final situation was unknown. Today, I happened to see the implementation method in the Nokia documentation library, which is a little tricky. The document was created on July 4, 2007, almost one year later.

The implementation method is as follows:

It is possible to initiate video and Internet telephony (VoIP) callwith the aiw service handler API, encoded in the extensions plug-in package for s60 3rd edition sdks.

Video call

The following example code demonstrates how to initiate a video call.

Makeaiwcalll (_ L ("+ 3581234567"), _ L ("firstname lastname"), eaiwvideo );

// Eaiwforcedvideo doesn't show dialogs

// Makeaiwcalll (_ L ("+ 3581234567"), _ L ("firstname lastname"), eaiwforcedvideo );

Void makeaiwcalll (const tdesc & anumber, const tdesc & aname, taiwcalltype acalltype)

{

// Create aiw service Handler

Caiwservicehandler * servicehandler = caiwservicehandler: newlc ();

// Create aiw interest

Rcriteriaarray interest;

Cleanupclosepushl (interest );

Caiwcriteriaitem * criteria =

Caiwcriteriaitem: newlc (kaiwcmdcall, kaiwcmdcall, _ L8 ("*"));

Const tuid kuidaiwbase = {kaiwclassbase };

Criteria-> setserviceclass (kuidaiwbase );

User: leaveiferror (interest. append (criteria ));

// Attach to aiw interest

Servicehandler-> attachl (interest );

// Create aiw Param package

Taiwdialdatav1 data;

Taiwdialdatav1pckg datapckg (data );

Inamebuffer = aname. Left (inamebuffer. maxlength ());

Data. setname (inamebuffer );

Itelnumber = anumber. Left (itelnumber. maxlength ());

Data. settelephonenumber (itelnumber );

Data. setcalltype (acalltype );

Data. setwindowgroup (ccoeenv: static ()-> rootwin (). identifier ());

Caiwgenericparamlist & paramlist = servicehandler-> inparamlistl ();

Tptrc8 PTR;

PTR. Set (datapckg );

Taiwvariant variant (PTR );

Taiwgenericparam param (egenericparamcalldialdatav1, variant );

Paramlist. appendl (PARAM );

// Execute aiw command

Servicehandler-> executeservicecmdl (kaiwcmdcall,

Paramlist,

Servicehandler-> outparamlistl ());

// Destroy criteria, interest, and servicehandler

Cleanupstack: popanddestroy (3 );

}

VoIP call

Using the above function, it is possible to initiate a VoIP call as follows:

Makeaiwcalll (_ L ("user@sip.server.com "),

_ L ("firstname lastname "),

Eaiwvoipcall );

See also:

Extensions plug-in package for s60 3rd edition SDK for Symbian OS, for C ++, maintenance release

Extensions plug-in package for s60 3rd edition SDK for Symbian OS, for C ++, Supporting Feature Pack 1

Link: http://forum.nokia.com/document/Forum_Nokia_Technical_Library/contents/FNTL/Creating_video_and_VoIP_calls.htm

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.