wangmengmeng
2024-12-24 24432a361d5c6bd6f3d8c008693e9f1155d62517
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.dji.sample.psdk.service.impl;
 
import com.dji.sample.psdk.service.PsdkService;
import com.dji.sdk.cloudapi.livestream.api.AbstractLivestreamService;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
/**
 * @author wmm
 * @version 0.1
 * @date 2024/5/8
 */
@Service
@Slf4j
public class PsdkServiceImpl implements PsdkService {
 
 
    @Autowired
    private AbstractLivestreamService livestreamService;
 
    @Autowired
    private ObjectMapper mapper;
 
 
 
//    @Override
//    public HttpResultResponse liveCameraChange(String sn, LiveCameraChangeParam param) {
//
//        TopicServicesResponse<ServicesReplyData<RemoteDebugResponse>> response = livestreamService.liveCameraChange(SDKManager.getDeviceSDK(sn),mapper.convertValue(param, EsimOperatorSwitchRequest.class));
//
//        ServicesReplyData reply = response.getData();
//        return reply.getResult().isSuccess() ?
//                HttpResultResponse.success()
//                : HttpResultResponse.error("The live camera failed to change. " + reply.getResult());
//    }
}