Advertisement
Guest User

Untitled

a guest
Dec 27th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. #ifndef __H264LIVE_SERVER_MEDIA_SESSION_H
  2. #define __H264LIVE_SERVER_MEDIA_SESSION_H
  3.  
  4. #include "liveMedia.hh"
  5. #include "OnDemandServerMediaSubsession.hh"
  6. #include "LiveSourceWithx264.h"
  7.  
  8. class H264LiveServerMediaSession:public OnDemandServerMediaSubsession
  9. {
  10. public:
  11. static H264LiveServerMediaSession* createNew(UsageEnvironment& env, bool reuseFirstSource);
  12. void checkForAuxSDPLine1();
  13. void afterPlayingDummy1();
  14. protected:
  15. H264LiveServerMediaSession(UsageEnvironment& env, bool reuseFirstSource);
  16. virtual ~H264LiveServerMediaSession(void);
  17. void setDoneFlag() { fDoneFlag = ~0; }
  18. protected:
  19. virtual char const* getAuxSDPLine(RTPSink* rtpSink, FramedSource* inputSource);
  20. virtual FramedSource* createNewStreamSource(unsigned clientSessionId, unsigned& estBitrate);
  21. virtual RTPSink* createNewRTPSink(Groupsock* rtpGroupsock, unsigned char rtpPayloadTypeIfDynamic, FramedSource* inputSource);
  22. private:
  23. char* fAuxSDPLine;
  24. char fDoneFlag;
  25. RTPSink* fDummySink;
  26. };
  27.  
  28. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement