扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
作者:wayne编译 来源:yesky 2007年11月4日
关键字:
OnRTCEvent(UINT message, WPARAM wParam, LPARAM lParam) { // Based on the RTC_EVENT type, query for the // appropriate event interface and call a helper // method to handle the event switch ( wParam ) { …. …. …. case RTCE_MEDIA: { IRTCMediaEvent * pEvent = NULL; hr = pDisp->QueryInterface( IID_IRTCMediaEvent, (void **)&pEvent ); if (SUCCEEDED(hr)) { OnRTCMediaEvent(pEvent); SAFE_RELEASE(pEvent); } } break; …. …. …. } |
HRESULT CAVDConfDlg::MakeCall(RTC_SESSION_TYPE enType, BSTR bstrURI) { ... // Create the session IRTCSession * pSession = NULL; hr = m_pClient->CreateSession(enType, NULL, NULL, 0, &pSession); // Add the participant to the session hr = pSession->AddParticipant(bstrURI, NULL, &m_Participant); ... return S_OK; } |
void CAVDConfDlg::OnRTCMediaEvent(IRTCMediaEvent *pEvent) { ... hr = pEvent->get_MediaType(&lMediaType); hr = pEvent->get_EventType(&enType); hr = pEvent->get_EventReason(&enReason); if ((m_AVDlg) && (m_AVDlg.GetState () != RTCSS_IDLE)) { // Deliver the media state to the session window m_AVDlg.DeliverMedia(lMediaType, enType, enReason); } } |
void CAVDConfDlg::OnRTCIntensityEvent(IRTCIntensityEvent *pEvent) { ... hr = pEvent->get_Direction(&enDevice); hr = pEvent->get_Level(&lLevel); hr = pEvent->get_Min(&lMin); hr = pEvent->get_Max(&lMax); if (m_AVDlg.GetState () != RTCSS_IDLE) { // Deliver the intensity state to the session window m_AVDlg.DeliverIntensity(enDevice, lLevel); } } |
HRESULT CAVDConfDlg::OnRTCMessagingEvent(IRTCMessagingEvent *pEvent) { ... hr = pEvent->get_Session(&pSession); hr = pEvent->get_EventType(&enType); hr = pEvent->get_Participant(&pParticipant); if (enType == RTCMSET_MESSAGE) { hr = pEvent->get_MessageHeader(&bstrContentType); hr = pEvent->get_Message(&bstrMessage); // Deliver the message to the session window if (m_cMessageDlg) m_cMessageDlg.DeliverMessage(pParticipant, bstrContentType, bstrMessage); } else if (enType == RTCMSET_STATUS) { hr = pEvent->get_UserStatus(&enStatus); // Deliver the user status to the session window m_cMessageDlg.DeliverUserStatus(pParticipant, enStatus); } return S_OK; } |
Void CAVDConfDlg::OnRTCSessionStateChangeEvent(IRTCSessionStateChangeEvent *pEvent) { ... hr = pEvent->get_State(&enState); hr = pEvent->get_Session(&pSession); switch ( enState ) { case RTCSS_INCOMING: { ... // This event is called when an incoming call occurs RTC_SESSION_TYPE enType; hr = pSession->get_Type(&enType); // Ring the bell m_pClient->PlayRing(RTCRT_PHONE, VARIANT_TRUE); // Accept the session hr = pSession->Answer(); } } ... } |
hr = m_pClient->StartT120Applet ( RTCTA_APPSHARING ); |
任务 | 2.2-GHz 的Pentium 4处理器 (% CPU使用率)1 | 1.0-GHz的Pentium III 处理器 (% CPU 使用率)2 |
只使用音频/视频会议 | 9% | 22% |
添加应用程序(共享IE) | 10% | 35% |
添加白板 | 12% | 37% |
添加即时消息 | 12% | 37% |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者