1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-13 03:41:55 +00:00

update server.py

This commit is contained in:
winlin 2014-04-10 16:33:45 +08:00
parent c3c2767363
commit ca02cfe1bf

View file

@ -329,8 +329,16 @@ class RESTServers(object):
def __init__(self):
self.__server_ip = "192.168.1.142";
def GET(self):
'''
id canbe:
ingest: the ingest demo.
meeting: the meeting demo.
'''
def GET(self, id=None):
enable_crossdomain()
if id == "meeting"
url = "http://%s:8085/players/srs_chat.html?port=1935"%(self.__server_ip)
else:
url = "http://%s:8080/live/livestream.html"%(self.__server_ip)
raise cherrypy.HTTPRedirect(url)