| | |
| | | * API兼容:实时直播 |
| | | */ |
| | | @SuppressWarnings(value = {"rawtypes", "unchecked"}) |
| | | @CrossOrigin |
| | | |
| | | @RestController |
| | | @RequestMapping(value = "/api/v1/stream") |
| | | public class ApiStreamController { |
| | |
| | | result.put("ChannelName", deviceChannel.getName()); |
| | | result.put("ChannelCustomName", ""); |
| | | result.put("FLV", streamInfo.getFlv().getUrl()); |
| | | result.put("HTTPS_FLV", streamInfo.getHttps_flv().getUrl()); |
| | | result.put("WS_FLV", streamInfo.getWs_flv().getUrl()); |
| | | result.put("WSS_FLV", streamInfo.getWss_flv().getUrl()); |
| | | result.put("RTMP", streamInfo.getRtmp().getUrl()); |
| | | result.put("RTMPS", streamInfo.getRtmps().getUrl()); |
| | | result.put("HLS", streamInfo.getHls().getUrl()); |
| | | result.put("HTTPS_HLS", streamInfo.getHttps_hls().getUrl()); |
| | | result.put("RTSP", streamInfo.getRtsp().getUrl()); |
| | | result.put("RTSPS", streamInfo.getRtsps().getUrl()); |
| | | result.put("WEBRTC", streamInfo.getRtc().getUrl()); |
| | | result.put("HTTPS_WEBRTC", streamInfo.getRtcs().getUrl()); |
| | | result.put("CDN", ""); |
| | | result.put("SnapURL", ""); |
| | | result.put("Transport", device.getTransport()); |