edgexfoundry / device-usb-camera

Owner: Device WG
Apache License 2.0
12 stars 28 forks source link

Get stream URI not picking up rtsp server address from config file with rtsp server mode set to 'external' #288

Closed vyshali-chitikeshi closed 1 year ago

vyshali-chitikeshi commented 1 year ago

🐞 Bug Report

Affected Services [REQUIRED]

The issue is located in: Device USB service ### Is this a regression? Yes, the previous version in which this bug was not present was: .... No ### Description and Minimal Reproduction [**REQUIRED**] 1. Get latest code from device usb service main branch & edgex compose main branch 2. Go to device usb service cmd/res folder, and update configuation.yaml file with below settings RtspServerMode set to "external" RtspServerHostName set to remote ip address of system where rtsp server running 3. Build usb docker image locally with updated configuration file 4. Go to edgex compose/compose builder, and update add-device-usb-camera.yaml file to use local usb image 5. from compose builder, run 'make run no-secty ds-usb-camera' - this wills start edgex services and device usb services, also discovers and adds usb cameras to edgex 6. Execute some generic api like camera info, ensure camera is accessible and it works correctly 7. Execute ger stream uri, API Expected behavior: Should give rtsp stream uri with remote ip![Screenshot from 2023-09-12 15-33-19](https://github.com/edgexfoundry/device-usb-camera/assets/60447543/9d9dc047-82d7-47a2-acd7-5e37601e5532)address actual behavior: It does not retrieve rtsp server address in stream uri path attached screenshot of stream URI api ## πŸ”₯ Exception or Error



attached screenshot of stream uri api output

🌍 Your Environment

Deployment Environment: EdgeX Version [REQUIRED]:

3.0 Anything else relevant?