Beispiel #1
0
 def on_press_fullscreen(self):
     c = DalyinskiClient()
     c.command(b'fullscreen')
     if not app.in_fullscreen:
         app.in_fullscreen = True
     else:
         app.in_fullscreen = False
Beispiel #2
0
 def _on_press_open_browser(self):
     ''' Private function to call with threading, to prevent gui blocking '''
     p = show_popup("Opening web browser...\nPlease wait.")
     p.open()
     c = DalyinskiClient()
     c.command(b'fbro')
     p.dismiss()
Beispiel #3
0
 def _on_press_find_server(self):
     ''' If the server changed its IP, reset the IP
     in config file, so the client.py can run the redisovery
     routine. '''
     Logger.info("dalYinskiApp: Resetting IP...")
     p = show_popup("Finding server IP...\nPlease wait.")
     p.open()
     store.put('connection', ip='')
     c = DalyinskiClient()
     c.command(b'ping')
     p.dismiss()
Beispiel #4
0
 def on_press_subscriptions(self):
     c = DalyinskiClient()
     c.command(b'subscriptions')
Beispiel #5
0
 def on_press_rewind(self):
     c = DalyinskiClient()
     c.command(b'rewind')
Beispiel #6
0
 def on_press_fforward(self):
     c = DalyinskiClient()
     c.command(b'fforward')
Beispiel #7
0
 def on_press_switch_tab(self):
     c = DalyinskiClient()
     c.command(b'switchtab')
Beispiel #8
0
 def on_press_captions(self):
     c = DalyinskiClient()
     c.command(b'captions')
Beispiel #9
0
 def _select_playlist(self):
     ''' Send playvideo command + video url from the list
     which gets passed in the constructor above as vidurl variable
     so that the server can select that playlist url. '''
     c = DalyinskiClient()
     c.command(b'playvideo' + b' ' + bytes(self.vidurl, 'utf-8'))
Beispiel #10
0
 def on_press_watch_later(self):
     c = DalyinskiClient()
     c.command(b'watchlater')
Beispiel #11
0
 def on_press_play_next(self):
     c = DalyinskiClient()
     c.command(b'playnext')
Beispiel #12
0
 def on_press_play_pause(self):
     c = DalyinskiClient()
     c.command(b'playpause')
Beispiel #13
0
 def on_press_play_previous(self):
     c = DalyinskiClient()
     c.command(b'playprevious')
Beispiel #14
0
 def on_press_vol_up(self):
     c = DalyinskiClient()
     c.command(b'volup')
Beispiel #15
0
 def on_press_go_home(self):
     c = DalyinskiClient()
     c.command(b'gohome')
Beispiel #16
0
 def on_press_vol_down(self):
     c = DalyinskiClient()
     c.command(b'voldown')
Beispiel #17
0
 def _play_video(self, vidurl):
     ''' Send playvideo command + video url from the video_thumb_urls list
     which gets passed in the constructor above as vidurl variable
     so that the server can start video. '''
     c = DalyinskiClient()
     c.command(b'playvideo' + b' ' + bytes(vidurl, 'utf-8'))