
- Fixed segfault when attempting to initialseek on disconnected streams - Fix 100% CPU bug in controller's stats code - WebRTC UDP bind socket improvements - Several segfault fixes - Increased packet reordering buffer size from 30 to 150 packets - Tweaks to default output/buffer behaviour for incoming pushes - Added message for load balancer checks - Fixed HLS content type - Stats fixes - Exit reason fixes - Fixed socket IP address detection - Fixed non-string arguments for stream settings - Added caching for getConnectedBinHost() - Added WebRTC playback rate control - Added/completed VP8/VP9 support to WebRTC/RTSP - Added live seek option to WebRTC - Fixed seek to exactly newest timestamp - Fixed HLS input # Conflicts: # lib/defines.h # src/input/input.cpp
32 lines
778 B
C++
32 lines
778 B
C++
#include "input.h"
|
|
#include <deque>
|
|
#include <mist/dtsc.h>
|
|
|
|
namespace Mist{
|
|
class inputPlaylist : public Input{
|
|
public:
|
|
inputPlaylist(Util::Config *cfg);
|
|
bool needsLock(){return false;}
|
|
|
|
protected:
|
|
bool checkArguments();
|
|
bool readHeader(){return true;}
|
|
virtual void parseStreamHeader(){}
|
|
void streamMainLoop();
|
|
virtual bool needHeader(){return false;}
|
|
virtual bool publishesTracks(){return false;}
|
|
|
|
private:
|
|
void reloadPlaylist();
|
|
std::deque<std::string> playlist;
|
|
std::deque<uint16_t> playlist_startTime;
|
|
std::string currentSource;
|
|
size_t playlistIndex;
|
|
size_t minIndex, maxIndex;
|
|
bool seenValidEntry;
|
|
uint32_t wallTime;
|
|
uint32_t reloadOn;
|
|
};
|
|
}// namespace Mist
|
|
|
|
typedef Mist::inputPlaylist mistIn;
|