Daadwerkelijke restarten werkend en getest
This commit is contained in:
parent
7629ab6af0
commit
08107b606b
1 changed files with 3 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
int getparam (std::string input) {
|
int getparam (std::string input) {
|
||||||
if(input.size() <= 3) { return -1;}
|
if(input.size() <= 3) { return -1;}
|
||||||
|
@ -49,8 +50,9 @@ void writesh( unsigned int values[], std::string filename ) {
|
||||||
if (values[4] != 0) { shfile << "-r " << values[4] << " "; }
|
if (values[4] != 0) { shfile << "-r " << values[4] << " "; }
|
||||||
if (values[5] != 0) { shfile << "-ab " << values[5] << " "; }
|
if (values[5] != 0) { shfile << "-ab " << values[5] << " "; }
|
||||||
if (values[6] != 0) { shfile << "-ar " << values[6] << " "; }
|
if (values[6] != 0) { shfile << "-ar " << values[6] << " "; }
|
||||||
shfile << "rtmp://projectlivestream.com/oflaDemo/test";
|
shfile << "rtmp://projectlivestream.com/oflaDemo/test &";
|
||||||
shfile.close();
|
shfile.close();
|
||||||
|
system("sh ./run.sh");
|
||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue