Sherin Fathima Posted April 14, 2020 Share Posted April 14, 2020 How can i publish using rest api Link to comment Share on other sites More sharing options...
0 Mahmut As1m Onat Posted April 14, 2020 Share Posted April 14, 2020 Hi Sherin, You can send a post request to /v2/broadcasts/create create a broadcast using the REST API. You can check out what to include in the body here: https://antmedia.io/rest/ Best, Asim Link to comment Share on other sites More sharing options...
0 May Nyein Posted May 4, 2020 Share Posted May 4, 2020 I already tried with this /v2/broadcasts/create. It always returns 404 error. It is worked with this /rest/request?_path=WebRTCAppEE/rest/v2/broadcasts/create in postman but not worked in my code. I have no idea how do I continue to test.On Tuesday, April 14, 2020 at 5:24:52 PM UTC+7, mahmut asım Onat wrote:Hi Sherin,You can send a post request to /v2/broadcasts/create create a broadcast using the REST API.You can check out what to include in the body here: https://antmedia.io/rest/Best,Asim Link to comment Share on other sites More sharing options...
0 mekya Posted May 4, 2020 Share Posted May 4, 2020 You can take a look at the REST Guide and Reference to get started. @may , you can take a look at the some sample test codes in order to see how it works. check this out -> https://github.com/ant-media/Ant-Media-Server/blob/master/src/test/java/io/antmedia/integration/RestServiceV2Test.java#L149 Please also pay attention the value of ROOT_SERVICE_URL private static final String ROOT_SERVICE_URL = "http://localhost:5080/LiveApp/rest"; Link to comment Share on other sites More sharing options...
0 May Nyein Posted May 5, 2020 Share Posted May 5, 2020 Does it need any authentication to request API? It returns 403 even though I added my ip address in LiveApp application setting. Link to comment Share on other sites More sharing options...
0 Mahmut As1m Onat Posted May 6, 2020 Share Posted May 6, 2020 Hi May,Could you also add your IP to WebRTCAppEE settings if you are using the WebRTCAppEE. If you are using LiveApp, the link should have LiveApp instead of WebRTCAppEE like:yourdomain/LiveApp/rest/v2/broadcasts/createPlease let me know if this solves your problem.Best,AsimOn Tuesday, May 5, 2020 at 7:40:41 AM UTC+3, may nyein wrote: Does it need any authentication to request API? It returns 403 even though I added my ip address in LiveApp application setting. Link to comment Share on other sites More sharing options...
0 Fritz Michael Manalili Posted February 24, 2021 Share Posted February 24, 2021 Hello! I have my ant media server deployed in AWS. When using the create broadcast API, I noticed that the response returns the private ip in the rtmp url property. How do I make it so that it returns the public ip instead of private ip in the rtmp url response? Link to comment Share on other sites More sharing options...
0 Connessione Posted February 25, 2021 Share Posted February 25, 2021 Are you accessing the api over public IP of the instance ? Link to comment Share on other sites More sharing options...
0 Tahir Posted February 25, 2021 Share Posted February 25, 2021 Hi, Can you try useGlobalIp here: https://github.com/ant-media/Ant-Media-Server/wiki/Server-Configuration-Documentation Link to comment Share on other sites More sharing options...
0 Fritz Michael Manalili Posted February 26, 2021 Share Posted February 26, 2021 Hi! Thank you for the response. I am accessing the api using the static IP attached to the EC2 instance. I tried enabling the useGlobalIp parameter in the properties, however it still only returns the local ip address instead of the public one. I also tried changing the rtmp.host property with the static public IP of the EC2, but didn't work. Here's the response fyr: Link to comment Share on other sites More sharing options...
Question
Sherin Fathima
Link to comment
Share on other sites
Top Posters For This Question
2
2
2
1
Popular Days
Apr 14
2
Feb 25
2
May 4
2
Feb 24
1
Top Posters For This Question
Fritz Michael Manalili 2 posts
Mahmut As1m Onat 2 posts
May Nyein 2 posts
Sherin Fathima 1 post
Popular Days
Apr 14 2020
2 posts
Feb 25 2021
2 posts
May 4 2020
2 posts
Feb 24 2021
1 post
Posted Images
9 answers to this question
Recommended Posts