peerconnection 學習

在VS2008的webrtc裏面打即時窗口的log : LOG(LS_INFO) << "需要的log",需要包含頭文件 talk/base/logging.h  。這個peerconnection的工程logging.h是在third_party/libjingle/libjingle/overrides/talk/base 下面


wWinMain爲peerconnection的主函數

  MainWnd wnd;//調用main_wnd.c裏面的類
  if (!wnd.Create()) {
    ASSERT(false);
    return -1;
  }創建主窗口

  while ((gm = ::GetMessage(&msg, NULL, 0, 0)) != 0 && gm != -1) {
    if (!wnd.PreTranslateMessage(&msg)) {
      ::TranslateMessage(&msg);
      ::DispatchMessage(&msg);
    }消息處理機制

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章