def main(args):
def usage():
- sys.stdout.write("usage: %s <filename>\n" % args[0])
+ sys.stdout.write("usage: %s <filename> <speedrate>\n" % args[0])
- if len(args) != 2:
+ if len(args) != 3:
usage()
sys.exit(1)
uri = Gst.filename_to_uri(args[1])
+ rate = float(args[2])
- player = Player(uri, 3.0)
+ player = Player(uri, rate)
player.run()
if __name__ == '__main__':