MistServer  2.5.3-Pro-19-gf5e75b1 ( Generic_64)
stream.h
Go to the documentation of this file.
1 
4 #pragma once
5 #include <string>
6 #include "socket.h"
7 #include "json.h"
8 
9 namespace Util {
10  std::string getTmpFolder();
11  void sanitizeName(std::string & streamname);
12  bool streamAlive(std::string & streamname);
13  bool startInput(std::string streamname, std::string filename = "", bool forkFirst = true);
14  /* roxlu-begin */
15  int startRecording(std::string streamname);
16  /* roxlu-end */
17  JSON::Value getStreamConfig(std::string streamname);
18 }
void sanitizeName(std::string &streamname)
Filters the streamname, removing invalid characters and converting all letters to lowercase...
Definition: stream.cpp:57
A JSON::Value is either a string or an integer, but may also be an object, array or null...
Definition: json.h:21
bool streamAlive(std::string &streamname)
Checks if the given streamname has an active input serving it.
Definition: stream.cpp:109
Contains utility code, not directly related to streaming media.
Definition: bitfields.h:3
int startRecording(std::string streamname)
Definition: stream.cpp:298
bool startInput(std::string streamname, std::string filename="", bool forkFirst=true)
Assures the input for the given stream name is active.
Definition: stream.cpp:137
std::string getTmpFolder()
Definition: stream.cpp:25
JSON::Value getStreamConfig(std::string streamname)
Definition: stream.cpp:83