
- 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
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
#include <iostream>
|
|
#include <mist/stream.h>
|
|
#include <mist/config.h>
|
|
#include <unistd.h>
|
|
|
|
int main(int argc, char **argv){
|
|
Util::Config cfg;
|
|
cfg.activate();
|
|
uint8_t prevStat = 255;
|
|
while (cfg.is_active){
|
|
uint8_t currStat = Util::getStreamStatus(argv[1]);
|
|
if (currStat != prevStat){
|
|
std::cout << "Stream status: ";
|
|
switch (currStat){
|
|
case STRMSTAT_OFF:
|
|
std::cout << "Off";
|
|
break;
|
|
case STRMSTAT_INIT:
|
|
std::cout << "Init";
|
|
break;
|
|
case STRMSTAT_BOOT:
|
|
std::cout << "Boot";
|
|
break;
|
|
case STRMSTAT_WAIT:
|
|
std::cout << "Wait";
|
|
break;
|
|
case STRMSTAT_READY:
|
|
std::cout << "Ready";
|
|
break;
|
|
case STRMSTAT_SHUTDOWN:
|
|
std::cout << "Shutdown";
|
|
break;
|
|
case STRMSTAT_INVALID:
|
|
std::cout << "Invalid";
|
|
break;
|
|
default:
|
|
std::cout << "??? (" << currStat << ")";
|
|
}
|
|
std::cout << std::endl;
|
|
prevStat = currStat;
|
|
}
|
|
Util::sleep(200);
|
|
}
|
|
return 0;
|
|
}
|
|
|