Esempio n. 1
0
    def POST(self, channel):
        ''' Roku-HDHomerun gives ply its display type as query string 
	attached to tune POST method, ply selects optimal HDHomerun encode '''
        ''' Tuning w/o transcode query selects HDHomeRun's default profile '''
        hdhr_quality = ""
        get_data = web.input(quality="")
        if get_data.quality == "HD":
            hdhr_quality = "?transcode=heavy"
        elif get_data.quality == "SD":
            hdhr_quality = "?transcode=internet480"
        devices = db.getDevices(dbase)
        hdhr.stream.startStream(channel, devices, hdhr_quality)
Esempio n. 2
0
 def GET(self):
     netDevices = hdhr.cfg.getDevices()
     dbDevices = db.getDevices(dbase)
     return render.setup(netDevices, dbDevices)
Esempio n. 3
0
File: ply.py Progetto: rcleere/ply
 def POST(self, channel):
     get_data = web.input(quality="heavy")
     devices = db.getDevices(dbase)
     hdhr.stream.startStream(channel,devices,get_data.quality)
Esempio n. 4
0
File: ply.py Progetto: theschles/ply
 def POST(self, channel):
     get_data = web.input(quality="heavy")
     devices = db.getDevices(dbase)
     hdhr.stream.startStream(channel, devices, get_data.quality)
Esempio n. 5
0
File: ply.py Progetto: rcleere/ply
 def GET(self):
     netDevices = hdhr.cfg.getDevices()
     dbDevices = db.getDevices(dbase)
     return render.setup(netDevices,dbDevices)