reorg karina cgi + mpv ipv mplayer

master
Michael Murtaugh 8 years ago
parent ea1320c19f
commit a91567e153

@ -7,16 +7,16 @@ import subprocess
f = cgi.FieldStorage() f = cgi.FieldStorage()
p = f.getvalue("p", "Bump.mp3") p = f.getvalue("p", "Bump.mp3")
p = os.path.join("voice", p) p = os.path.join("voice", p)
out = subprocess.check_output(["mplayer", p], stderr=subprocess.STDOUT) out = subprocess.check_output(["mpv", p], stderr=subprocess.STDOUT)
# print "Location: /pushingscore-Karina.html" # print "Location: /index.html"
# print # print
print "Content-type:text/html; charset=utf-8" print "Content-type:text/html; charset=utf-8"
print print
print """<html> print """<html>
<head> <head>
<meta http-equiv="refresh" content="0;url=/pushingscore-Karina.html" /> <meta http-equiv="refresh" content="0;url=/index.html" />
</head> </head>
<body> <body>
</body> </body>

@ -1 +1,53 @@
GREAT JOB! <html>
<head>
<title></title>
<style>
form.buttons input {
width: 160px;
height: 160px;
/*hide the labels*/
font-size: 0;
line-height: 0;
}
</style>
</head>
<body>
<form action="cgi-bin/play.cgi" class="buttons">
<input type="submit" name="p" value="BasicTurn.mp3" style="background:url(images/Choreology-BasicTurn.png) no-repeat;" />
<input type="submit" name="p" value="Follow.mp3" />
<input type="submit" name="p" value="AmericanSpin.mp3" />
<input type="submit" name="p" value="Bump.mp3" />
<input type="submit" name="p" value="StopAndGo.mp3" />
<input type="submit" name="p" value="Windmill.mp3" />
<input type="submit" name="p" value="SpanishArms.mp3" />
<input type="submit" name="p" value="Hucklebuck.mp3" />
<input type="submit" name="p" value="TheWhip.mp3" />
<input type="submit" name="p" value="Whip.mp3" />
<input type="submit" name="p" value="ChickenWalks.mp3" />
<div class="tempo">
<input id="slider3" type="range" min ="100" max="180" step ="1" style="width: 640px" />
<!-- <input id="slider3" type="range" min ="100" max="180" step ="1" orient="vertical" style="-webkit-appearance: slider-vertical; writing-mode: bt-lr" />
-->
</div>
</form>
</body>
</html>

@ -1,53 +0,0 @@
<html>
<head>
<title></title>
<style>
form.buttons input {
width: 160px;
height: 160px;
/*hide the labels*/
font-size: 0;
line-height: 0;
}
</style>
</head>
<body>
<form action="cgi-bin/play.cgi" class="buttons">
<input type="submit" name="p" value="BasicTurn.mp3" style="background:url(images/Choreology-BasicTurn.png) no-repeat;" />
<input type="submit" name="p" value="Follow.mp3" />
<input type="submit" name="p" value="AmericanSpin.mp3" />
<input type="submit" name="p" value="Bump.mp3" />
<input type="submit" name="p" value="StopAndGo.mp3" />
<input type="submit" name="p" value="Windmill.mp3" />
<input type="submit" name="p" value="SpanishArms.mp3" />
<input type="submit" name="p" value="Hucklebuck.mp3" />
<input type="submit" name="p" value="TheWhip.mp3" />
<input type="submit" name="p" value="Whip.mp3" />
<input type="submit" name="p" value="ChickenWalks.mp3" />
<div class="tempo">
<input id="slider3" type="range" min ="100" max="180" step ="1" style="width: 640px" />
<!-- <input id="slider3" type="range" min ="100" max="180" step ="1" orient="vertical" style="-webkit-appearance: slider-vertical; writing-mode: bt-lr" />
-->
</div>
</form>
</body>
</html>
Loading…
Cancel
Save