mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix #367, support nginx-rtmp exec. 3.0.1
This commit is contained in:
parent
7de181004f
commit
c34b0c86e1
25 changed files with 519 additions and 14 deletions
|
@ -38,7 +38,7 @@
|
|||
* // the binary is the process to fork.
|
||||
* binary = "./objs/ffmpeg/bin/ffmpeg";
|
||||
* // where argv is a array contains each params.
|
||||
* argv = ["-i", "in.flv", "1", ">", "/dev/null", "2", ">", "/dev/null"];
|
||||
* argv = ["./objs/ffmpeg/bin/ffmpeg", "-i", "in.flv", "1", ">", "/dev/null", "2", ">", "/dev/null"];
|
||||
*
|
||||
* process = new SrsProcess();
|
||||
* if ((ret = process->initialize(binary, argv)) != ERROR_SUCCESS) { return ret; }
|
||||
|
@ -71,6 +71,8 @@ public:
|
|||
virtual bool started();
|
||||
/**
|
||||
* initialize the process with binary and argv.
|
||||
* @param binary the binary path to exec.
|
||||
* @param argv the argv for binary path, the argv[0] generally is the binary.
|
||||
*/
|
||||
virtual int initialize(std::string binary, std::vector<std::string> argv);
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue