MP4/WS protocol support.

Approx. 10% of code originally written by Roxlu, but keeping it split up during cleanup before merge proved practically impossible, so it's all merged into a single commit.
This commit is contained in:
Thulinma 2020-11-25 15:39:28 +01:00
parent 6276d03522
commit 9417fa8dc2
3 changed files with 564 additions and 16 deletions

View file

@ -1243,10 +1243,11 @@ namespace Mist{
}
stats();
}
if (!thisPacket){continue;}
}
// delay the stream until metadata has caught up, if needed
if (needsLookAhead){
if (needsLookAhead && M.getLive()){
// we sleep in 20ms increments, or less if the lookahead time itself is less
uint32_t sleepTime = std::min(20ul, needsLookAhead);
// wait at most double the look ahead time, plus ten seconds