|
@@ -97,8 +97,8 @@ public class TkVideoController extends BaseController { |
|
@@ -97,8 +97,8 @@ public class TkVideoController extends BaseController { |
97
|
@PathVariable("protocolType") ProtocolType protocolType)
|
97
|
@PathVariable("protocolType") ProtocolType protocolType)
|
98
|
throws ThingsboardException {
|
98
|
throws ThingsboardException {
|
99
|
if (!protocolType.equals(ProtocolType.RTSP)
|
99
|
if (!protocolType.equals(ProtocolType.RTSP)
|
100
|
- || !protocolType.equals(ProtocolType.RTMP)
|
|
|
101
|
- || !protocolType.equals(ProtocolType.HLS)) {
|
100
|
+ && !protocolType.equals(ProtocolType.RTMP)
|
|
|
101
|
+ && !protocolType.equals(ProtocolType.HLS)) {
|
102
|
protocolType = ProtocolType.HLS;
|
102
|
protocolType = ProtocolType.HLS;
|
103
|
}
|
103
|
}
|
104
|
return getCameraURL(entityId, protocolType);
|
104
|
return getCameraURL(entityId, protocolType);
|
|
@@ -115,7 +115,7 @@ public class TkVideoController extends BaseController { |
|
@@ -115,7 +115,7 @@ public class TkVideoController extends BaseController { |
115
|
|
115
|
|
116
|
private ResponseResult<Map<String, String>> getCameraURL(
|
116
|
private ResponseResult<Map<String, String>> getCameraURL(
|
117
|
String entityId, ProtocolType protocolType) throws ThingsboardException {
|
117
|
String entityId, ProtocolType protocolType) throws ThingsboardException {
|
118
|
- if (protocolType == null) {
|
118
|
+ if (protocolType == null) {
|
119
|
protocolType = ProtocolType.HLS;
|
119
|
protocolType = ProtocolType.HLS;
|
120
|
}
|
120
|
}
|
121
|
String url =
|
121
|
String url =
|