assert 0 <= timeoutInSeconds
if timeoutInSeconds == 0:
- self.__timeoutId = gobject.idle_add(self._on_once)
+ self.__timeoutId = gobject.idle_add(callback)
else:
- self.__timeoutId = timeout_add_seconds(timeoutInSeconds, self._on_once)
+ self.__timeoutId = timeout_add_seconds(timeoutInSeconds, callback)
def is_running(self):
return self.__timeoutId is not None
if self._active and self._player.state == self._player.STATE_PLAY:
self._seekbar.show()
assert self._updateSeek is None
- self._updateSeek = go_utils.Timeout(self._updateSeek, once=False)
- self._updateSeek.start(seconds=30)
+ self._updateSeek = go_utils.Timeout(self._on_player_update_seek, once=False)
+ self._updateSeek.start(seconds=1)
else:
self._seekbar.hide()
self._updateSeek.cancel()
if self._active and self._player.state == self._player.STATE_PLAY:
self._seekbar.show()
assert self._updateSeek is None
- self._updateSeek = go_utils.Timeout(self._updateSeek, once=False)
- self._updateSeek.start(seconds=30)
+ self._updateSeek = go_utils.Timeout(self._on_player_update_seek, once=False)
+ self._updateSeek.start(seconds=1)
else:
self._seekbar.hide()
self._updateSeek.cancel()
if self._active and self._player.state == self._player.STATE_PLAY:
self._seekbar.show()
assert self._updateSeek is None
- self._updateSeek = go_utils.Timeout(self._updateSeek, once=False)
- self._updateSeek.start(seconds=30)
+ self._updateSeek = go_utils.Timeout(self._on_player_update_seek, once=False)
+ self._updateSeek.start(seconds=1)
else:
self._seekbar.hide()
self._updateSeek.cancel()