Commit f4aa3e0ee8c988c0d7535ad1c76e68e23e400194
1 parent
fd803c21
修复自动点播
Showing
1 changed file
with
4 additions
and
4 deletions
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMHttpHookListener.java
| ... | ... | @@ -376,10 +376,10 @@ public class ZLMHttpHookListener { |
| 376 | 376 | String app = json.getString("app"); |
| 377 | 377 | String streamId = json.getString("stream"); |
| 378 | 378 | if ("rtp".equals(app)) { |
| 379 | - String[] s = streamId.split("_"); | |
| 380 | - if (s.length == 4) { | |
| 381 | - String deviceId = s[2]; | |
| 382 | - String channelId = s[3]; | |
| 379 | + String[] s = streamId.split("/"); | |
| 380 | + if (s.length == 2) { | |
| 381 | + String deviceId = s[0]; | |
| 382 | + String channelId = s[1]; | |
| 383 | 383 | Device device = storager.queryVideoDevice(deviceId); |
| 384 | 384 | if (device != null) { |
| 385 | 385 | UUID uuid = UUID.randomUUID(); | ... | ... |