Changeset - 519adb4e539f
[Not reviewed]
default
0 4 0
drewp@bigasterisk.com - 15 years ago 2010-06-13 07:56:06
drewp@bigasterisk.com
asco startup improvements
Ignore-this: 41a4ce074e02e64166164813879380b
4 files changed with 5 insertions and 6 deletions:
0 comments (0 inline, 0 general)
bin/ascoltami2
Show inline comments
 
@@ -6,8 +6,8 @@ from light9.ascoltami.player import Play
 
from light9.ascoltami.webapp import makeApp
 
from light9 import networking, showconfig
 

	
 
logging.basicConfig()
 
log = logging.getLogger()
 
logging.basicConfig()
 
gobject.threads_init()
 

	
 
parser = optparse.OptionParser()
 
@@ -15,16 +15,14 @@ parser.add_option('--show',
 
    help='show URI, like http://light9.bigasterisk.com/show/dance2008')
 
parser.add_option("-v", "--verbose", action="store_true",
 
                  help="logging.DEBUG")
 
graph = showconfig.getGraph()
 
(options, args) = parser.parse_args()
 

	
 

	
 
log.setLevel(logging.DEBUG if options.verbose else logging.INFO)
 

	
 
graph = showconfig.getGraph()
 
if not options.show:
 
    raise ValueError("missing --show http://...")
 
        
 
graph = showconfig.getGraph()
 
player = Player()
 

	
 
# the cherrypy server would wedge when vidref pounds on it; this
light9/ascoltami/index.html
Show inline comments
 
@@ -29,7 +29,8 @@
 
      <button id="cmd-go">Go  <div class="key">space</div></button>
 
    </div>
 

	
 
todo: go button actions, display next action
 
    todo: go button actions, display next action
 
    <a href="">reload</a>
 

	
 
<script type="text/javascript">
 
// <![CDATA[
light9/ascoltami/player.py
Show inline comments
 
@@ -64,6 +64,7 @@ class Player(object):
 
        log.info("set song to %r" % songUri)
 
        self.pipeline.set_state(gst.STATE_READY)
 
        self.pipeline.set_property("uri", songUri)
 
        # todo: don't have any error report yet if the uri can't be read
 
        self.pipeline.set_state(gst.STATE_PLAYING)
 
        self.playStartTime = time.time()
 

	
light9/ascoltami/webapp.py
Show inline comments
 
@@ -33,7 +33,6 @@ class timeResource(object):
 

	
 
class songs(object):
 
    def GET(self):
 

	
 
        playList = graph.value(show, L9['playList'])
 
        if not playList:
 
            raise ValueError("%r has no l9:playList" % show)
0 comments (0 inline, 0 general)