zlm service 添加 ffmpeg 拉流代理

This commit is contained in:
shikong 2024-01-16 15:43:25 +08:00
parent 0e8d4f0cc1
commit c993a15711

View File

@ -159,5 +159,19 @@ public class ZlmMediaService {
public GetRtpInfoResp getRtpInfo(String streamId){ public GetRtpInfoResp getRtpInfo(String streamId){
return exchange.getRtpInfo(secret, streamId); return exchange.getRtpInfo(secret, streamId);
} }
/**
* 功能通过 fork FFmpeg 进程的方式拉流代理支持任意协议
*/
public ZlmResponse<AddFFmpegSourceResp> addFfmpegSource(AddFFmpegSource params){
return exchange.addFFmpegSource(secret, params);
}
/**
* 功能关闭 ffmpeg 拉流代理
*/
public ZlmResponse<DelFFmpegSourceResp> delFfmpegSource(String key){
return exchange.delFFmpegSource(secret, key);
}
} }