Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 48ebe4291b
Fetching contributors…

Cannot retrieve contributors at this time

50 lines (43 sloc) 2.11 kB
/*
* Copyright (C) 2005-2006 WIS Technologies International Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and the associated README documentation file (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
// A 'ServerMediaSubsession' object that creates new, unicast, "RTPSink"s
// on demand, that stream a MPEG-2 Transport Stream from an input video
// and audio source.
// C++ header
#ifndef _WIS_MPEG2_TRANSPORT_STREAM_SERVER_MEDIA_SUBSESSION_HH
#define _WIS_MPEG2_TRANSPORT_STREAM_SERVER_MEDIA_SUBSESSION_HH
#ifndef _WIS_SERVER_MEDIA_SUBSESSION_HH
#include "WISServerMediaSubsession.hh"
#endif
class WISMPEG2TransportStreamServerMediaSubsession: public WISServerMediaSubsession {
public:
static WISMPEG2TransportStreamServerMediaSubsession*
createNew(UsageEnvironment& env, WISInput& wisInput);
private:
WISMPEG2TransportStreamServerMediaSubsession(UsageEnvironment& env, WISInput& wisInput);
// called only by createNew();
virtual ~WISMPEG2TransportStreamServerMediaSubsession();
private: // redefined virtual functions
virtual FramedSource* createNewStreamSource(unsigned clientSessionId,
unsigned& estBitrate);
virtual RTPSink* createNewRTPSink(Groupsock* rtpGroupsock,
unsigned char rtpPayloadTypeIfDynamic,
FramedSource* inputSource);
};
#endif
Jump to Line
Something went wrong with that request. Please try again.