| | |
| | | #include <liveMedia/H264VideoStreamDiscreteFramer.hh> |
| | | #include <UsageEnvironment/UsageEnvironment.hh> |
| | | #include <groupsock/Groupsock.hh> |
| | | #include <string> |
| | | |
| | | namespace MESAI |
| | | namespace MESAI |
| | | { |
| | | |
| | | class LiveServerMediaSubsession: public OnDemandServerMediaSubsession |
| | | { |
| | | public: |
| | | static LiveServerMediaSubsession* createNew(UsageEnvironment& env, StreamReplicator* replicator); |
| | | |
| | | protected: |
| | | LiveServerMediaSubsession(UsageEnvironment& env, StreamReplicator* replicator) |
| | | : OnDemandServerMediaSubsession(env, False), m_replicator(replicator) {}; |
| | | |
| | | virtual FramedSource* createNewStreamSource(unsigned clientSessionId, unsigned& estBitrate); |
| | | virtual RTPSink* createNewRTPSink(Groupsock* rtpGroupsock, unsigned char rtpPayloadTypeIfDynamic, FramedSource* inputSource); |
| | | class LiveServerMediaSubsession: public OnDemandServerMediaSubsession |
| | | { |
| | | public: |
| | | static LiveServerMediaSubsession* createNew(UsageEnvironment& env, StreamReplicator* replicator); |
| | | |
| | | StreamReplicator * m_replicator; |
| | | }; |
| | | protected: |
| | | LiveServerMediaSubsession(UsageEnvironment& env, StreamReplicator* replicator) |
| | | : OnDemandServerMediaSubsession(env, False), m_replicator(replicator), m_SDPLines() |
| | | {} |
| | | |
| | | virtual FramedSource* createNewStreamSource(unsigned clientSessionId, unsigned& estBitrate); |
| | | virtual RTPSink* createNewRTPSink(Groupsock* rtpGroupsock, unsigned char rtpPayloadTypeIfDynamic, FramedSource* inputSource); |
| | | virtual char const* sdpLines(); |
| | | //virtual char const* getAuxSDPLine(RTPSink* rtpSink, FramedSource* inputSource); |
| | | |
| | | StreamReplicator * m_replicator; |
| | | std::string m_SDPLines; |
| | | }; |
| | | |
| | | } |
| | | #endif |