mistserver/lib/stream.h

18 lines
500 B
C++

/// \file stream.h
/// Utilities for handling streams.
#pragma once
#include <string>
#include "socket.h"
#include "json.h"
namespace Util {
std::string getTmpFolder();
void sanitizeName(std::string & streamname);
bool streamAlive(std::string & streamname);
bool startInput(std::string streamname, std::string filename = "", bool forkFirst = true);
/* roxlu-begin */
int startRecording(std::string streamname);
/* roxlu-end */
JSON::Value getStreamConfig(std::string streamname);
}