Example #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
Example #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()
Example #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()
Example #4
0
 def on_press_subscriptions(self):
     c = DalyinskiClient()
     c.command(b'subscriptions')
Example #5
0
 def on_press_rewind(self):
     c = DalyinskiClient()
     c.command(b'rewind')
Example #6
0
 def on_press_fforward(self):
     c = DalyinskiClient()
     c.command(b'fforward')
Example #7
0
 def on_press_switch_tab(self):
     c = DalyinskiClient()
     c.command(b'switchtab')
Example #8
0
 def on_press_captions(self):
     c = DalyinskiClient()
     c.command(b'captions')
Example #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'))
Example #10
0
 def on_press_watch_later(self):
     c = DalyinskiClient()
     c.command(b'watchlater')
Example #11
0
 def on_press_play_next(self):
     c = DalyinskiClient()
     c.command(b'playnext')
Example #12
0
 def on_press_play_pause(self):
     c = DalyinskiClient()
     c.command(b'playpause')
Example #13
0
 def on_press_play_previous(self):
     c = DalyinskiClient()
     c.command(b'playprevious')
Example #14
0
 def on_press_vol_up(self):
     c = DalyinskiClient()
     c.command(b'volup')
Example #15
0
 def on_press_go_home(self):
     c = DalyinskiClient()
     c.command(b'gohome')
Example #16
0
 def on_press_vol_down(self):
     c = DalyinskiClient()
     c.command(b'voldown')
Example #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'))