⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 localinput.h

📁 很好的流媒体服务器程序,linux或window下做流媒体的可以参考很不错哦
💻 H
字号:
/******************************************************************************** localinput.h: Local Input class definition*-------------------------------------------------------------------------------* (c)1999-2001 VideoLAN* $Id: localinput.h,v 1.5 2002/11/05 02:10:53 nitrox Exp $** Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>** This program is free software; you can redistribute it and/or* modify it under the terms of the GNU General Public License* as published by the Free Software Foundation; either version 2* of the License, or (at your option) any later version.** This program is distributed in the hope that it will be useful,* but WITHOUT ANY WARRANTY; without even the implied warranty of* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the* GNU General Public License for more details.** You should have received a copy of the GNU General Public License* along with this program; if not, write to the Free Software* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.**-------------------------------------------------------------------------------* This input has been designed to handle mpeg(1/2, PS/TS) files and DVDs.**-------------------------------------------------------------------------------* Current status:*   - Mpeg1 PS (file) : supported*   - Mpeg2 PS (file) : supported*   - Mpeg2 TS (file) : supported*   - DVD (device)    : supported********************************************************************************/#ifndef _LOCAL_INPUT_H_#define _LOCAL_INPUT_H_//------------------------------------------------------------------------------// C_LocalInput class//------------------------------------------------------------------------------class C_LocalInput : public C_Input{public:  C_LocalInput(C_Module* pModule, const C_String& strName);  ~C_LocalInput();protected:  // Init/termination methods  virtual void OnInit();  virtual void OnDestroy();  // Selection of the pgrms to broadcast  virtual void OnStartStreaming(C_Broadcast* pBroadcast);  virtual void OnResumeStreaming(C_Broadcast* pBroadcast);  virtual void OnSuspendStreaming(C_Broadcast* pBroadcast);  virtual void OnStopStreaming(C_Broadcast* pBroadcast);  virtual void OnUpdateProgram(C_String strProgram,C_String strFileName, C_String strType);  virtual void OnDeleteProgram(C_String strProgram);  virtual C_List<C_Program> OnGetAvailablePgrms();private:  // Directory where to look for the config file  C_String m_strConfigPath;  // Directory where to look for files in  C_String m_strFilesPath;  // Programs names  // the program ID is m_vProgramNames.Find(strName) + 1  C_Vector<C_String> m_vProgramNames;  // List of currently running readers and streamers  C_HashTable<handle, C_MpegConverter> m_cConverters;  C_HashTable<handle, C_TsStreamer> m_cStreamers;};// Declaration and implementation of C_LocalInputModuleDECLARE_MODULE(Local, Input, "local", const C_String&);#else#error "Multiple inclusions of localinput.h"#endif

⌨️ 快捷键说明

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