Fixed slow embed code (internal HTTP output) problem

This commit is contained in:
Thulinma 2016-06-09 15:17:40 +02:00
parent c4d4671281
commit 54b9079ab1
3 changed files with 7 additions and 0 deletions

View file

@ -226,6 +226,7 @@ namespace Mist {
}
return false;
}
/// Connects or reconnects to the stream.
/// Assumes streamName class member has been set already.
/// Will start input if not currently active, calls onFail() if this does not succeed.

View file

@ -39,6 +39,11 @@ namespace Mist {
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){
HTTPOutput::init(cfg);
capa.removeMember("deps");

View file

@ -10,6 +10,7 @@ namespace Mist {
static bool listenMode();
virtual void onFail();
void onHTTP();
bool isReadyForPlay();
};
}