Beispiel #1
0
	def GET(self, action):
		with engineLock:
			if action == "play":
				playNextVideo()
			elif action == "stop":
				engine.stop()
				resetPlaylist()
			elif action == "pause":
				engine.togglePause()
			elif action == "volup":
				engine.volumeUp()
			elif action == "voldown":
				engine.volumeDown()
			elif action == "seekbacksmall":
				engine.seekBackSmall()
			elif action == "seekforwardsmall":
				engine.seekForwardSmall()
			elif action == "seekbacklarge":
				engine.seekBackLarge()
			elif action == "seekforwardlarge":
				engine.seekForwardLarge()
			elif action == "prevaudiotrack":
				engine.prevAudioTrack()
			elif action == "nextaudiotrack":
				engine.nextAudioTrack()
Beispiel #2
0
 def GET(self, action):
     with engineLock:
         if action == "play":
             playNextVideo()
         elif action == "stop":
             engine.stop()
             resetPlaylist()
         elif action == "pause":
             engine.togglePause()
         elif action == "volup":
             engine.volumeUp()
         elif action == "voldown":
             engine.volumeDown()
         elif action == "seekbacksmall":
             engine.seekBackSmall()
         elif action == "seekforwardsmall":
             engine.seekForwardSmall()
         elif action == "seekbacklarge":
             engine.seekBackLarge()
         elif action == "seekforwardlarge":
             engine.seekForwardLarge()
         elif action == "prevaudiotrack":
             engine.prevAudioTrack()
         elif action == "nextaudiotrack":
             engine.nextAudioTrack()
Beispiel #3
0
	def GET(self, action):
		if action == "play":
			playNextVideo()
		else:			
			controlPlayer(action)
		web.seeother('/playlist')