| | |
| | | // baseURL: 'http://192.168.1.133:6789', // This url must end with "/". Example: 'http://192.168.1.1:6789/' |
| | | baseURL: 'http://192.168.1.198:6789', // This url must end with "/". Example: 'http://192.168.1.1:6789/' |
| | | // ws: 'ws//127.0.0.1:6789/api/v1/ws', |
| | | ws: 'wss://wrj.shuixiongit.com/drone-wss/api/v1/ws', |
| | | // ws://192.168.1.198:1883/ |
| | | websocketURL: 'ws://192.168.1.198:6789/api/v1/ws', // Example: 'ws://192.168.1.198:6789/api/v1/ws' |
| | | websocketURL: 'ws://192.168.1.114:6790/api/v1/ws', // Example: 'ws://192.168.1.198:6789/api/v1/ws' |
| | | // websocketURL: 'ws://192.168.1.133:6789/api/v1/ws', // Example: 'ws://192.168.1.198:6789/api/v1/ws' |
| | | // websocketURL: 'wss://dev.jxpskj.com:36789/api/v1/ws', // Example: 'ws://192.168.1.198:6789/api/v1/ws' |
| | | |
| | | // livestreaming |
| | | // RTMP Note: This IP is the address of the streaming server. If you want to see livestream on web page, you need to convert the RTMP stream to WebRTC stream. |
| | | rtmpURL: 'rtmp://www.ainfo.top:735/uav/', // Example: 'rtmp://192.168.1.1/live/' |
| | | rtmpURL: 'rtmp://139.196.74.78/live/', // Example: 'rtmp://192.168.1.1/live/' |
| | | // GB28181 Note:If you don't know what these parameters mean, you can go to Pilot2 and select the GB28181 page in the cloud platform. Where the parameters same as these parameters. |
| | | // gbServerIp: '171.34.76.175', |
| | | // gbServerPort: '15060', |
| | |
| | | return window.djiBridge.wsConnect(host, token, callback) |
| | | }, |
| | | wsDisconnect (): string { |
| | | return window.djiBridge.wsConnect() |
| | | return window.djiBridge.wsDisconnect() |
| | | }, |
| | | wsSend (message: string): string { |
| | | return window.djiBridge.wsSend(message) |
| | |
| | | connectCallback: 'connectCallback' |
| | | } |
| | | components.set(EComponentName.Thing, param) |
| | | components.set(EComponentName.Ws, param) |
| | | apiPilot.loadComponent(EComponentName.Thing, components.get(EComponentName.Thing)) |
| | | |
| | | bindParam.device_sn = device.data.gateway_sn |
| | | bindParam.user_id = res.data.user_id |
| | | bindParam.workspace_id = res.data.workspace_id |
| | |
| | | } |
| | | case EComponentName.Ws: { |
| | | const wsParam: WsParam = components.get(EComponentName.Ws) |
| | | wsParam.token = '' + localStorage.getItem(ELocalStorageKey.Token) |
| | | wsParam.token = '' + localStorage.getItem(ELocalStorageKey.Token)?.replace('bearer ', '') |
| | | param = wsParam |
| | | break |
| | | } |
| | | default: |
| | | param = components.get(m.module) |
| | | } |
| | | |
| | | components.set(m.module, param) |
| | | console.info(components.get(m.module)) |
| | | apiPilot.loadComponent(m.module, components.get(m.module)) |
| | | |
| | | refreshStatus() |
| | | } |
| | | |
| | | function moduleUninstall (m: any) { |
| | | message.info('卸载 ' + m.module) |
| | | apiPilot.unloadComponent(m.module) |