Added debug level options.
This commit is contained in:
parent
407d2e344d
commit
3810330343
19 changed files with 66 additions and 60 deletions
|
@ -25,6 +25,13 @@ namespace Mist {
|
|||
return ((long long int)timePoint[0] << 56) | ((long long int)timePoint[1] << 48) | ((long long int)timePoint[2] << 40) | ((long long int)timePoint[3] << 32) | ((long long int)timePoint[4] << 24) | ((long long int)timePoint[5] << 16) | ((long long int)timePoint[6] << 8) | timePoint[7];
|
||||
}
|
||||
|
||||
void Output::init(Util::Config * cfg){
|
||||
capa["optional"]["debug"]["name"] = "debug";
|
||||
capa["optional"]["debug"]["help"] = "The debug level at which messages need to be printed.";
|
||||
capa["optional"]["debug"]["option"] = "--debug";
|
||||
capa["optional"]["debug"]["type"] = "uint";
|
||||
}
|
||||
|
||||
Output::Output(Socket::Connection & conn) : myConn(conn) {
|
||||
firstTime = 0;
|
||||
parseData = false;
|
||||
|
|
|
@ -37,7 +37,7 @@ namespace Mist {
|
|||
Output(Socket::Connection & conn);
|
||||
virtual ~Output();
|
||||
//static members for initialization and capabilities
|
||||
static void init(Util::Config * cfg) {}
|
||||
static void init(Util::Config * cfg);
|
||||
static JSON::Value capa;
|
||||
//non-virtual generic functions
|
||||
int run();
|
||||
|
|
|
@ -135,6 +135,7 @@ namespace Mist {
|
|||
OutHDS::~OutHDS() {}
|
||||
|
||||
void OutHDS::init(Util::Config * cfg){
|
||||
Output::init(cfg);
|
||||
capa["desc"] = "Enables HTTP protocol Adobe-specific dynamic streaming (also known as HDS).";
|
||||
capa["deps"] = "HTTP";
|
||||
capa["url_rel"] = "/dynamic/$/manifest.f4m";
|
||||
|
|
|
@ -87,6 +87,7 @@ namespace Mist {
|
|||
}
|
||||
|
||||
void OutHLS::init(Util::Config * cfg){
|
||||
Output::init(cfg);
|
||||
capa["name"] = "HTTP_Live";
|
||||
capa["desc"] = "Enables HTTP protocol Apple-specific streaming (also known as HLS).";
|
||||
capa["deps"] = "HTTP";
|
||||
|
|
|
@ -49,6 +49,7 @@ namespace Mist {
|
|||
OutHSS::~OutHSS() {}
|
||||
|
||||
void OutHSS::init(Util::Config * cfg) {
|
||||
Output::init(cfg);
|
||||
capa["name"] = "HTTP_Smooth";
|
||||
capa["desc"] = "Enables HTTP protocol Microsoft-specific smooth streaming through silverlight (also known as HSS).";
|
||||
capa["deps"] = "HTTP";
|
||||
|
|
|
@ -11,6 +11,7 @@ namespace Mist {
|
|||
OutJSON::~OutJSON() {}
|
||||
|
||||
void OutJSON::init(Util::Config * cfg){
|
||||
Output::init(cfg);
|
||||
capa["desc"] = "Enables HTTP protocol JSON streaming.";
|
||||
capa["deps"] = "HTTP";
|
||||
capa["url_rel"] = "/$.json";
|
||||
|
|
|
@ -8,6 +8,7 @@ namespace Mist {
|
|||
OutProgressiveFLV::~OutProgressiveFLV() {}
|
||||
|
||||
void OutProgressiveFLV::init(Util::Config * cfg){
|
||||
Output::init(cfg);
|
||||
capa["name"] = "HTTP_Progressive_FLV";
|
||||
capa["desc"] = "Enables HTTP protocol progressive streaming.";
|
||||
capa["deps"] = "HTTP";
|
||||
|
|
|
@ -8,6 +8,7 @@ namespace Mist {
|
|||
OutProgressiveMP3::~OutProgressiveMP3() {}
|
||||
|
||||
void OutProgressiveMP3::init(Util::Config * cfg){
|
||||
Output::init(cfg);
|
||||
capa["name"] = "HTTP_Progressive_MP3";
|
||||
capa["desc"] = "Enables HTTP protocol progressive streaming.";
|
||||
capa["deps"] = "HTTP";
|
||||
|
|
|
@ -9,6 +9,7 @@ namespace Mist {
|
|||
OutProgressiveMP4::~OutProgressiveMP4() {}
|
||||
|
||||
void OutProgressiveMP4::init(Util::Config * cfg){
|
||||
Output::init(cfg);
|
||||
capa["name"] = "HTTP_Progressive_MP4";
|
||||
capa["desc"] = "Enables HTTP protocol progressive streaming.";
|
||||
capa["deps"] = "HTTP";
|
||||
|
|
|
@ -30,6 +30,7 @@ namespace Mist {
|
|||
OutRaw::~OutRaw() {}
|
||||
|
||||
void OutRaw::init(Util::Config * cfg){
|
||||
Output::init(cfg);
|
||||
capa["name"] = "RAW";
|
||||
capa["desc"] = "Enables raw DTSC over TCP.";
|
||||
capa["deps"] = "";
|
||||
|
|
|
@ -39,6 +39,7 @@ namespace Mist {
|
|||
OutRTMP::~OutRTMP() {}
|
||||
|
||||
void OutRTMP::init(Util::Config * cfg) {
|
||||
Output::init(cfg);
|
||||
capa["name"] = "RTMP";
|
||||
capa["desc"] = "Enables the RTMP protocol which is used by Adobe Flash Player.";
|
||||
capa["deps"] = "";
|
||||
|
|
|
@ -19,6 +19,7 @@ namespace Mist {
|
|||
OutProgressiveSRT::~OutProgressiveSRT() {}
|
||||
|
||||
void OutProgressiveSRT::init(Util::Config * cfg){
|
||||
Output::init(cfg);
|
||||
capa["desc"] = "Enables HTTP protocol subtitle streaming.";
|
||||
capa["deps"] = "HTTP";
|
||||
capa["url_rel"] = "/$.srt";
|
||||
|
|
|
@ -34,6 +34,7 @@ namespace Mist {
|
|||
OutTS::~OutTS() {}
|
||||
|
||||
void OutTS::init(Util::Config * cfg){
|
||||
Output::init(cfg);
|
||||
capa["name"] = "TS";
|
||||
capa["desc"] = "Enables the raw MPEG Transport Stream protocol over TCP.";
|
||||
capa["deps"] = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue