Jump to content
  • 0

Error when making REST API call to start recording a stream


Albin
 Share

Question

Hi,

I'm getting HTTP Status 405 – Method Not Allowed: "The method received in the request-line is known by the origin server but not supported by the target resource."

when I'm making the following REST API call 

https://myantserver.example:5443/WebRTCAppEE/rest/v2/broadcasts/{id of my stream}/recording/true 

Not sure what i'm doing wrong... Is there any setting i need to configure? The streams get saved just fine if i enable "Record Live Streams as MP4" 

But I want to only record specific streams. If there was any way to "Record all livestreams where the stream ID includes a specific string" that would work as well.

Any suggestions appreciated, Thanks!

error.png

Link to comment
Share on other sites

  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

3 answers to this question

Recommended Posts

  • 0
26 minutes ago, Mohit said:

Hi @Albin,

How are you?

Please share your Ant Media Server Web Panel login credentials with me so that I can check the API call.

You can inbox me send the details to support@antmedia.io

--

Best Regards,

Mohit Dubey

I solved it! I had made it a POST request instead of a PUT request!

Thanks anyway for the offer to help!

  • Like 2
Link to comment
Share on other sites

  • 0
22 minutes ago, Albin said:

Hi,

I'm getting HTTP Status 405 – Method Not Allowed: "The method received in the request-line is known by the origin server but not supported by the target resource."

when I'm making the following REST API call 

https://myantserver.example:5443/WebRTCAppEE/rest/v2/broadcasts/{id of my stream}/recording/true 

Not sure what i'm doing wrong... Is there any setting i need to configure? The streams get saved just fine if i enable "Record Live Streams as MP4" 

But I want to only record specific streams. If there was any way to "Record all livestreams where the stream ID includes a specific string" that would work as well.

Any suggestions appreciated, Thanks!

error.png

Hi @Albin,

How are you?

Please share your Ant Media Server Web Panel login credentials with me so that I can check the API call.

You can inbox me send the details to support@antmedia.io

--

Best Regards,

Mohit Dubey

Link to comment
Share on other sites

 Share

×
×
  • Create New...