2 Minimal VLC client for AceProxy. Messages class.
6 class VlcMessage(object):
12 def startBroadcast(stream_name, input, out_port, muxer='ts', pre_access=''):
13 return 'new "' + stream_name + '" broadcast input "' + input + '" output ' + (pre_access + ':' if pre_access else '#') + \
14 'http{mux=' + muxer + ',dst=:' + \
15 str(out_port) + '/' + stream_name + '} option sout-keep option sout-all enabled' + \
16 "\r\n" + 'control "' + stream_name + '" play'
19 def stopBroadcast(stream_name):
20 return 'del "' + stream_name + '"'
23 def pauseBroadcast(stream_name):
24 return 'control "' + stream_name + '" pause'
27 def playBroadcast(stream_name):
28 return 'control "' + stream_name + '" play'
30 class response(object):
31 WRONGPASS = 'Wrong password'
32 AUTHOK = 'Welcome, Master'
33 BROADCASTEXISTS = 'Name already in use'
34 SYNTAXERR = 'Wrong command syntax'
37 STOPERR = 'media unknown'