Fixed slow embed code (internal HTTP output) problem
This commit is contained in:
parent
903786df60
commit
ea18815676
3 changed files with 7 additions and 0 deletions
|
@ -139,6 +139,7 @@ namespace Mist {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Connects or reconnects to the stream.
|
/// Connects or reconnects to the stream.
|
||||||
/// Assumes streamName class member has been set already.
|
/// Assumes streamName class member has been set already.
|
||||||
/// Will start input if not currently active, calls onFail() if this does not succeed.
|
/// Will start input if not currently active, calls onFail() if this does not succeed.
|
||||||
|
|
|
@ -38,6 +38,11 @@ namespace Mist {
|
||||||
}
|
}
|
||||||
Output::onFail();
|
Output::onFail();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// We assume it's ready to play if there is at least one track available
|
||||||
|
bool OutHTTP::isReadyForPlay() {
|
||||||
|
return myMeta.tracks.size();
|
||||||
|
}
|
||||||
|
|
||||||
void OutHTTP::init(Util::Config * cfg){
|
void OutHTTP::init(Util::Config * cfg){
|
||||||
HTTPOutput::init(cfg);
|
HTTPOutput::init(cfg);
|
||||||
|
|
|
@ -10,6 +10,7 @@ namespace Mist {
|
||||||
static bool listenMode();
|
static bool listenMode();
|
||||||
virtual void onFail();
|
virtual void onFail();
|
||||||
void onHTTP();
|
void onHTTP();
|
||||||
|
bool isReadyForPlay();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue