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
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()
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()
def on_press_subscriptions(self): c = DalyinskiClient() c.command(b'subscriptions')
def on_press_rewind(self): c = DalyinskiClient() c.command(b'rewind')
def on_press_fforward(self): c = DalyinskiClient() c.command(b'fforward')
def on_press_switch_tab(self): c = DalyinskiClient() c.command(b'switchtab')
def on_press_captions(self): c = DalyinskiClient() c.command(b'captions')
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'))
def on_press_watch_later(self): c = DalyinskiClient() c.command(b'watchlater')
def on_press_play_next(self): c = DalyinskiClient() c.command(b'playnext')
def on_press_play_pause(self): c = DalyinskiClient() c.command(b'playpause')
def on_press_play_previous(self): c = DalyinskiClient() c.command(b'playprevious')
def on_press_vol_up(self): c = DalyinskiClient() c.command(b'volup')
def on_press_go_home(self): c = DalyinskiClient() c.command(b'gohome')
def on_press_vol_down(self): c = DalyinskiClient() c.command(b'voldown')
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'))