Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef __H264LIVE_SERVER_MEDIA_SESSION_H
- #define __H264LIVE_SERVER_MEDIA_SESSION_H
- #include "liveMedia.hh"
- #include "OnDemandServerMediaSubsession.hh"
- #include "LiveSourceWithx264.h"
- class H264LiveServerMediaSession:public OnDemandServerMediaSubsession
- {
- public:
- static H264LiveServerMediaSession* createNew(UsageEnvironment& env, bool reuseFirstSource);
- void checkForAuxSDPLine1();
- void afterPlayingDummy1();
- protected:
- H264LiveServerMediaSession(UsageEnvironment& env, bool reuseFirstSource);
- virtual ~H264LiveServerMediaSession(void);
- void setDoneFlag() { fDoneFlag = ~0; }
- protected:
- virtual char const* getAuxSDPLine(RTPSink* rtpSink, FramedSource* inputSource);
- virtual FramedSource* createNewStreamSource(unsigned clientSessionId, unsigned& estBitrate);
- virtual RTPSink* createNewRTPSink(Groupsock* rtpGroupsock, unsigned char rtpPayloadTypeIfDynamic, FramedSource* inputSource);
- private:
- char* fAuxSDPLine;
- char fDoneFlag;
- RTPSink* fDummySink;
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement