madhawa

rtmpappprotocolhandler.h

Apr 25th, 2011
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.95 KB | None | 0 0
  1. /*
  2.  *  Copyright (c) 2010,
  3.  *  Gavriloaie Eugen-Andrei ([email protected])
  4.  *
  5.  *  This file is part of crtmpserver.
  6.  *  crtmpserver is free software: you can redistribute it and/or modify
  7.  *  it under the terms of the GNU General Public License as published by
  8.  *  the Free Software Foundation, either version 3 of the License, or
  9.  *  (at your option) any later version.
  10.  *
  11.  *  crtmpserver is distributed in the hope that it will be useful,
  12.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  *  GNU General Public License for more details.
  15.  *
  16.  *  You should have received a copy of the GNU General Public License
  17.  *  along with crtmpserver.  If not, see <http://www.gnu.org/licenses/>.
  18.  */
  19.  
  20.  
  21. #ifdef HAS_PROTOCOL_RTMP
  22. #ifndef _RTMPAPPPROTOCOLHANDLER_H
  23. #define _RTMPAPPPROTOCOLHANDLER_H
  24.  
  25. #include "protocols/rtmp/basertmpappprotocolhandler.h"
  26.  
  27. namespace app_flvplayback {
  28.  
  29.         class RTMPAppProtocolHandler
  30.         : public BaseRTMPAppProtocolHandler {
  31.         public:
  32.                 RTMPAppProtocolHandler(Variant &configuration);
  33.                 virtual ~RTMPAppProtocolHandler();
  34.  
  35.                 virtual bool ProcessInvokeGeneric(BaseRTMPProtocol *pFrom,
  36.                                 Variant &request);
  37.                 virtual bool ProcessInvokeConnect(BaseRTMPProtocol *pFrom,
  38.                                 Variant &request);
  39.                 //virtual bool ValidateRequest(Variant &request);
  40.         //For URI Token-Key Auth added by Madhawa Jayanath
  41.                 virtual bool ValidateRequest(BaseRTMPProtocol *pFrom,
  42.                                 Variant &request);
  43.  
  44.         private:
  45.                 bool ProcessGetAvailableFlvs(BaseRTMPProtocol *pFrom, Variant &request);
  46.                 bool ProcessInsertMetadata(BaseRTMPProtocol *pFrom, Variant &request);
  47.         };
  48. }
  49. #endif  /* _RTMPAPPPROTOCOLHANDLER_H */
  50. #endif /* HAS_PROTOCOL_RTMP */
Advertisement
Add Comment
Please, Sign In to add comment