Jump to content
  • 0

API call to move the IP camera angle




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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...