Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 11:04, 21 August 2007.

如何生成视频电话和VoIP电话

From Forum Nokia Wiki

  • 设备, 软件 版本:

S60 3rd Edition

S60 3rd Edition, FP1


  • 详细描述

现在可以通过使用AIW Service Handler API初始化视频和网络电话(VoIP),这组API属于S60第三版SDK扩展插件的一部分。


视频电话

下列示例演示了如何初始化一个视频通话

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电话

下面这个函数可以初始化VoIP电话:

MakeAiwCallL( _L("user@sip.server.com"), 
 
                  _L("Firstname Lastname"), 
 
                  EAiwVoIPCall );


  • 相关链接

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

 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX