32 lines
877 B
C++
32 lines
877 B
C++
#include <mist/defines.h>
|
|
#include "output.h"
|
|
#include "output_http.h"
|
|
#include <mist/mp4_generic.h>
|
|
#include <mist/ts_packet.h>
|
|
|
|
#ifndef TS_BASECLASS
|
|
#define TS_BASECLASS Output
|
|
#endif
|
|
|
|
namespace Mist {
|
|
|
|
class TSOutput : public TS_BASECLASS {
|
|
public:
|
|
TSOutput(Socket::Connection & conn);
|
|
virtual ~TSOutput(){};
|
|
void sendNext();
|
|
virtual void sendTS(const char * tsData, unsigned int len=188){};
|
|
void fillPacket(const char * data, const size_t dataLen);
|
|
protected:
|
|
std::map<unsigned int, bool> first;
|
|
std::map<unsigned int, int> contCounters;
|
|
unsigned int packCounter; ///\todo update constructors?
|
|
TS::Packet packData;
|
|
bool haveAvcc;
|
|
MP4::AVCC avccbox;
|
|
bool appleCompat;
|
|
bool sendRepeatingHeaders;
|
|
long long unsigned int until;
|
|
long long unsigned int lastVid;
|
|
};
|
|
}
|