Browse Source

修复自动点播

pull/151/head
648540858 3 years ago
parent
commit
f4aa3e0ee8
  1. 8
      src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java

8
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java

@ -376,10 +376,10 @@ public class ZLMHttpHookListener {
String app = json.getString("app"); String app = json.getString("app");
String streamId = json.getString("stream"); String streamId = json.getString("stream");
if ("rtp".equals(app)) { if ("rtp".equals(app)) {
String[] s = streamId.split("_"); String[] s = streamId.split("/");
if (s.length == 4) { if (s.length == 2) {
String deviceId = s[2]; String deviceId = s[0];
String channelId = s[3]; String channelId = s[1];
Device device = storager.queryVideoDevice(deviceId); Device device = storager.queryVideoDevice(deviceId);
if (device != null) { if (device != null) {
UUID uuid = UUID.randomUUID(); UUID uuid = UUID.randomUUID();

Loading…
Cancel
Save