mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-03-04 13:10:53 +08:00
ffmpeg拉流支持指定命令模板
This commit is contained in:
@@ -55,12 +55,13 @@ public:
|
||||
|
||||
/**
|
||||
* 开始播放url
|
||||
* @param ffmpeg_cmd_key FFmpeg拉流命令配置项key,用户可以在配置文件中同时设置多个命令参数模板
|
||||
* @param src_url FFmpeg拉流地址
|
||||
* @param dst_url FFmpeg推流地址
|
||||
* @param timeout_ms 等待结果超时时间,单位毫秒
|
||||
* @param cb 成功与否回调
|
||||
*/
|
||||
void play(const string &src_url, const string &dst_url, int timeout_ms, const onPlay &cb);
|
||||
void play(const string &ffmpeg_cmd_key, const string &src_url, const string &dst_url, int timeout_ms, const onPlay &cb);
|
||||
|
||||
/**
|
||||
* 设置录制
|
||||
@@ -93,6 +94,7 @@ private:
|
||||
MediaInfo _media_info;
|
||||
string _src_url;
|
||||
string _dst_url;
|
||||
string _ffmpeg_cmd_key;
|
||||
function<void()> _onClose;
|
||||
Ticker _replay_ticker;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user