| | |
| | | import com.dji.sample.common.model.ResponseResult; |
| | | import com.dji.sample.manage.model.dto.CapacityDeviceDTO; |
| | | import com.dji.sample.manage.model.dto.LiveTypeDTO; |
| | | import com.dji.sample.manage.model.receiver.CapacityDeviceReceiver; |
| | | import com.dji.sample.manage.model.receiver.LiveCapacityReceiver; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | |
| | | /** |
| | | * Get all the drone data that can be broadcast live in this workspace. |
| | | * 获取所有可以在这个工作区中直播的无人机数据。 |
| | | * @param workspaceId |
| | | * @return |
| | | */ |
| | | List<CapacityDeviceDTO> getLiveCapacity(String workspaceId); |
| | | List<CapacityDeviceDTO> getLiveCapacity(String workspaceId,String sn); |
| | | |
| | | /** |
| | | * Save live capability data from drone. |
| | | * @param capacityDeviceReceiver |
| | | * @return |
| | | * Save live capability data. |
| | | * @param liveCapacityReceiver |
| | | * @param timestamp |
| | | */ |
| | | Boolean saveLiveCapacity(CapacityDeviceReceiver capacityDeviceReceiver); |
| | | void saveLiveCapacity(LiveCapacityReceiver liveCapacityReceiver, Long timestamp); |
| | | |
| | | /** |
| | | * Initiate a live streaming by publishing mqtt message. |
| | | * 通过发布mqtt消息启动实时流。 |
| | | * @param liveParam Parameters needed for on-demand. |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * Stop the live streaming by publishing mqtt message. |
| | | * 通过发布mqtt消息来停止实时流。 |
| | | * @param videoId |
| | | * @return |
| | | */ |
| | |
| | | * @return |
| | | */ |
| | | ResponseResult liveSetQuality(LiveTypeDTO liveParam); |
| | | |
| | | /** |
| | | * Switches the lens of the device during the live streaming. |
| | | * @param liveParam |
| | | * @return |
| | | */ |
| | | ResponseResult liveLensChange(LiveTypeDTO liveParam); |
| | | } |