OStreamOnDemandSMS.hh

Go to the documentation of this file.
00001 /*
00002  *  Copyright (C) Massimo Cora' 2005 <maxcvs@email.it>
00003  *
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License as published by
00006  *  the Free Software Foundation; either version 2 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  This program is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU Library General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU General Public License
00015  *  along with this program; if not, write to the Free Software
00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017  */
00018 
00019 
00020 #ifndef _OSTREAMONDEMANDSMS_H_
00021 #define _OSTREAMONDEMANDSMS_H_
00022 
00023 #include <liveMedia.hh>
00024 #include <BasicUsageEnvironment.hh>
00025 #include <GroupsockHelper.hh>
00026 #include <OnDemandServerMediaSubsession.hh>
00027 
00028 #include "OStreamConfig.hh"
00029 
00030 #include "FileSingleVideoSource.hh"
00031 #include "BufferedImageMultiVideoSource.hh"
00032 #include "HardwareSingleVideoSource.hh"
00033 #include "MJPEGVideoSource.hh"
00034 #include "H263plusVideoSource.hh"
00035 #include "MP3FromPCM.hh"
00036 
00042 class OStreamOnDemandSMS : public OnDemandServerMediaSubsession
00043 {
00044 public:
00057         static OStreamOnDemandSMS *
00058         createNew( UsageEnvironment& env, bool reuseFirstSource, BaseInputVideo *input_video,
00059                            int encoding_type, int audio_port, int stream_id = 0 );
00060 
00061         virtual ~OStreamOnDemandSMS();
00062 
00063 private:        // functions
00068         OStreamOnDemandSMS( UsageEnvironment& env, bool reuseFirstSource, BaseInputVideo *input_video,  
00069                                             int audio_port, int encoding_type, int stream_id );
00070 
00078         virtual FramedSource* createNewStreamSource( unsigned clientSessionId,
00079                                                         unsigned& estBitrate );
00080 
00089         virtual RTPSink* createNewRTPSink( Groupsock* rtpGroupsock,
00090                                     unsigned char rtpPayloadTypeIfDynamic,
00091                                     FramedSource* inputSource );
00092 
00093 private:        // data
00095         BaseInputVideo *_input_video;
00096         
00101         int _encoding_type;
00102         
00104         int _stream_id;
00105         
00107         int _audio_port;
00108 };
00109 
00110 
00111 #endif  //_OSTREAMONDEMANDSMS_H_
00112 

Generated on Tue Dec 26 10:32:38 2006 for Omnimeeting by  doxygen 1.4.7