REST API integration with Red5 server

230 views
Skip to first unread message

Mobile developer

unread,
May 13, 2016, 8:00:42 AM5/13/16
to red5
Can someone please provide some link to the tutorial which describes the Rest API integration with Red5?

I just want to provide stream stats to my rails server using REST API

Thanks

Rajdeep Rath

unread,
May 13, 2016, 8:17:42 AM5/13/16
to red5in...@googlegroups.com
Hi, 

Welcome to red5 google group.!.

There is no built in RESt API support in red5 open source for stats gathering right now. However,  you can always build your own using a standard servlet or Sprint WEB MVC and red5.

1. Use java application code to gather the data you want to expose. Take a look at red5 admin app / admin plugin (newer) in github

2. Use simple servlet  + JSON  translator to get your data to the web client layer. http://www.tutorialspoint.com/servlets/servlets-first-example.htm

OR use WEB MVC to expose the data to web client layer. : https://github.com/Red5/red5-examples/tree/master/springmvc

Regards
Rajdeep Rath

--

---
You received this message because you are subscribed to the Google Groups "red5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to red5interest...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mobile developer

unread,
May 13, 2016, 10:17:20 AM5/13/16
to red5in...@googlegroups.com
Hi Rajdeep,

Thank you for your inputs.

I tried this step use WEB MVC to expose the data to web client layer. : https://github.com/Red5/red5-examples/tree/master/springmvc

But I always used to get 404 error after all the steps mentioned in the example. I want to send json data as response to the request which is different than what is mentioned in the example.

Regards,
Kunal

--

---
You received this message because you are subscribed to a topic in the Google Groups "red5" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/red5interest/PpDpJX33MYI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to red5interest...@googlegroups.com.

Rajdeep Rath

unread,
May 13, 2016, 10:22:48 AM5/13/16
to red5in...@googlegroups.com

you just have to dig a little on the web on spring webmvc. The return format is controlled by the response entity configuration. From here on its not about red5 but about tomcat and spring MVC. The example if followed correctly shows you how to use annotation based controllers from within a red5 webapp.

Regards
Rajdeep Rath

Reply all
Reply to author
Forward
0 new messages