| | |
| | | * API兼容:实时直播 |
| | | */ |
| | | @SuppressWarnings(value = {"rawtypes", "unchecked"}) |
| | | @CrossOrigin |
| | | |
| | | @RestController |
| | | @RequestMapping(value = "/api/v1/stream") |
| | | public class ApiStreamController { |
| | |
| | | } |
| | | try { |
| | | cmder.streamByeCmd(device, code, streamInfo.getStream(), null); |
| | | } catch (InvalidArgumentException | ParseException | SipException | SsrcTransactionNotFoundException e) { |
| | | } catch (InvalidArgumentException | ParseException | SipException | SsrcTransactionNotFoundException e) { |
| | | JSONObject result = new JSONObject(); |
| | | result.put("error","发送BYE失败:" + e.getMessage()); |
| | | return result; |