| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.io.IOException; |
| | | import java.util.List; |
| | | |
| | | import static com.dji.sample.component.AuthInterceptor.TOKEN_CLAIM; |
| | |
| | | // CustomClaim customClaim = (CustomClaim)request.getAttribute(TOKEN_CLAIM); |
| | | |
| | | List<CapacityDeviceDTO> liveCapacity = liveStreamService.getLiveCapacity(workspaceId,sn); |
| | | |
| | | return ResponseResult.success(liveCapacity); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | @PostMapping("/streams/address") |
| | | public ResponseResult liveAddress(@RequestParam String deviceSn,@RequestParam String deviceId) { |
| | | return liveStreamService.liveAddress(deviceSn,deviceId); |
| | | public ResponseResult liveAddress(@RequestParam String deviceSn,@RequestParam String deviceName) throws IOException { |
| | | return liveStreamService.liveAddress(deviceSn,deviceName); |
| | | } |
| | | |
| | | /** |