예제 #1
0
def channel_monitor():
    ib = InfoBeamerQuery('127.0.0.1')
    con = ib.node("root").io(raw=True)

    for line in con:
        stream_url = line.strip()
        if stream_url:
            q.put(stream_url)
            break

    for line in con:
        now_url = line.strip()
        if now_url != stream_url:
            break
    os.kill(os.getpid(), 9)
예제 #2
0
파일: master.py 프로젝트: mshaub/videowall
 def reconnect(self):
     self._io = InfoBeamerQuery(self._addr).node("videowall").io(raw=True)