简体   繁体   中英

Live Camera Streaming (Red5, PHP)

I'm creating live camera streaming application (php + red5). I will have multiple red5 servers and the thing is i will have to get all chat rooms and users online from all servers. I'm considering 3 approches.

  1. Getting all rooms, users online from each server and cache it for 5 seconds so data will not be retreived every request.
  2. Updating database from the red5 application everytime someone creates room or enters one.
  3. Calling web rest service from the red5 server everytime someone creates room or enters one. (I think it's best approach, since i can store data anywhere i want but i might be wrong)

I'm quite new to red5, that's why i'm asking for help with choosing the best approach.

Found solution already. I've created custom HttpServlet that exposes red5 service. ;)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM