解决录像回放未判断是否等待编码导致的回放失败
This commit is contained in:
parent
3ddb6f60a1
commit
230916e530
@ -476,9 +476,9 @@ public class SIPCommander implements ISIPCommander {
|
|||||||
subscribeKey.put("app", "rtp");
|
subscribeKey.put("app", "rtp");
|
||||||
subscribeKey.put("stream", streamId);
|
subscribeKey.put("stream", streamId);
|
||||||
subscribeKey.put("regist", true);
|
subscribeKey.put("regist", true);
|
||||||
|
logger.debug("录像回放添加订阅,订阅内容:" + subscribeKey.toString());
|
||||||
subscribe.addSubscribe(ZLMHttpHookSubscribe.HookType.on_stream_changed, subscribeKey, json->{
|
subscribe.addSubscribe(ZLMHttpHookSubscribe.HookType.on_stream_changed, subscribeKey, json->{
|
||||||
if (json.getJSONArray("tracks") == null) return;
|
if (waitTrack && json.getJSONArray("tracks") == null) return;
|
||||||
event.response(json);
|
event.response(json);
|
||||||
subscribe.removeSubscribe(ZLMHttpHookSubscribe.HookType.on_stream_changed, subscribeKey);
|
subscribe.removeSubscribe(ZLMHttpHookSubscribe.HookType.on_stream_changed, subscribeKey);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user