cpendpoint.cxx

来自「使用VOIP技术.能够无连接接通远程用户」· CXX 代码 · 共 108 行

CXX
108
字号
////  The contents of this file are subject to the Mozilla Public License//  Version 1.0 (the "License"); you may not use this file except in//  compliance with the License. You may obtain a copy of the License at//  http://www.mozilla.org/MPL/// //  Software distributed under the License is distributed on an "AS IS"//  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See//  the License for the specific language governing rights and limitations//  under the License.// //  The Original Code is CPhone, a cross platform voip gui.////  The Initial Developer of the Original Code is Derek Smithies.////  Copyright (C) 2002 Indranet Technologies Ltd, //                                  http://www.indranet-technologies.com//  All Rights Reserved.////  Contributor(s): _______________/* * * $Log: cpendpoint.cxx,v $ * Revision 1.7  2003/04/04 04:37:49  dereksmithies * Major upgrade. * Ixj & microtelco support added. Fix threading issues. * * Revision 1.6  2003/02/27 23:14:02  dereksmithies * Fix to get it to work with the latest openh323 libraries. * * Revision 1.5  2003/02/03 09:07:37  rogerhardiman * Change AverageBitRate to MaxBitRate for new OpenH323 API * * Revision 1.4  2002/11/27 23:52:48  dereksmithies * Changes to make compatible with current openh323 library code. * * Revision 1.3  2002/07/31 22:14:52  dereksmithies * Minor tweaks. * * Revision 1.2  2002/05/26 23:01:41  dereksmithies * Correct start up test for availability of the listener/connect port. * * Revision 1.1.1.1  2002/05/12 22:55:01  dereksmithies * Initial release. * * * */#include <ptlib.h>#include <qapplication.h>#include "mainwindowSub.h"#include "main.h"#include "gsmcodec.h"#include "lpc10codec.h"#include "mscodecs.h"#include <speexcodec.h>#include "g726codec.h"#include "h261codec.h"#include "h323pdu.h"#include "cpendpoint.h"#include "qtvid.h"#include "keys.h"///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////CpVideoChannel::CpVideoChannel()  :PVideoChannel(){}CpVideoChannel::~CpVideoChannel(){}  BOOL CpVideoChannel::Close(){  return TRUE;}void CpVideoChannel::AttachVideoPlayer(PVideoOutputDevice *player, BOOL keepCurrent){  PVideoChannel::AttachVideoPlayer(player, keepCurrent);}void CpVideoChannel::RemoveVideoImage(){  RestrictAccess();  QtVideoDevice *dev = (QtVideoDevice *)GetVideoPlayer();  if (dev != NULL)    dev->RemoveVideoImage();  EnableAccess();}// End of File ///////////////////////////////////////////////////////////////

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?