Jump to content
  • 0

API call to move the IP camera angle


EmileIB
 Share

Question

Hello.

I want to make an API call to move the IP camera angle, and according to antmedia rest api documentation here, I should make a call to /v2/broadcasts/{id}/ip-camera/move

However, it is always returning an internal server error with a message of java.lang.NullPointerException
Please find attached below a full log of the error.

What isn't very clear to me, what is the "id of the IP camera" that I should be using as a parameter. Is there other configurations I should have done before actually being able to tilt the camera? All I did was a postman POST request.

Syntax I used: http://SERVER_URL/LiveApp/rest/v2/broadcasts/{broadcast_id}/ip-camera/move?valueX=0.5f&id={???}

Help would be greatly appreciated.

Thank you.

 

antmedia move error log.txt

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 1

Hi @EmileIB,

Thank you for feedback.

You should add the stream id value into the URL path. Here is a working cUrl command that calls the ip-camera/move REST method. In this example my stream id is 863499564162840870932073. Please check its position in the URL. You can find the stream id for a stream from the Ant Media Server dashboard.

curl -i -X POST -H "Accept: Application/json" -H "Content-Type: application/json" "http://localhost:5080/WebRTCAppEE/rest/v2/broadcasts/863499564162840870932073/ip-camera/move?valueX=0.5"

  • Like 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...