Commit 5ab432856deb79c26a3b4ea05e8582acf9e80cdc
1 parent
efcd7707
默认含有音频通道,改为播放时判断音频编码
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/request/impl/MessageRequestProcessor.java
| @@ -203,7 +203,7 @@ public class MessageRequestProcessor extends SIPRequestAbstractProcessor { | @@ -203,7 +203,7 @@ public class MessageRequestProcessor extends SIPRequestAbstractProcessor { | ||
| 203 | deviceChannel.setLongitude(itemDevice.element("Longitude") == null? 0.00:Double.parseDouble(XmlUtil.getText(itemDevice,"Longitude"))); | 203 | deviceChannel.setLongitude(itemDevice.element("Longitude") == null? 0.00:Double.parseDouble(XmlUtil.getText(itemDevice,"Longitude"))); |
| 204 | deviceChannel.setLatitude(itemDevice.element("Latitude") == null? 0.00:Double.parseDouble(XmlUtil.getText(itemDevice,"Latitude"))); | 204 | deviceChannel.setLatitude(itemDevice.element("Latitude") == null? 0.00:Double.parseDouble(XmlUtil.getText(itemDevice,"Latitude"))); |
| 205 | deviceChannel.setPTZType(itemDevice.element("PTZType") == null? 0:Integer.parseInt(XmlUtil.getText(itemDevice,"PTZType"))); | 205 | deviceChannel.setPTZType(itemDevice.element("PTZType") == null? 0:Integer.parseInt(XmlUtil.getText(itemDevice,"PTZType"))); |
| 206 | - deviceChannel.setHasAudio(false); // 默认含有音频为false | 206 | + deviceChannel.setHasAudio(true); // 默认含有音频,播放时再检查是否有音频及是否AAC |
| 207 | storager.updateChannel(device.getDeviceId(), deviceChannel); | 207 | storager.updateChannel(device.getDeviceId(), deviceChannel); |
| 208 | } | 208 | } |
| 209 | 209 |