Beispiel #1
0
    def __init__(self):
        super().__init__()
        self._first_play = True
        self._gst_player: player = player.get_playbin()
        player.add_player_listener(self._pass_legacy_player_events)

        self.play_status_updater: IntervalTimer = IntervalTimer(
            1, self._emit_tick)
Beispiel #2
0
    def __init__(self):
        super().__init__()
        self._gst_player: player = player.get_playbin()
        player.add_player_listener(self._pass_legacy_player_events)

        self.play_status_updater: IntervalTimer = IntervalTimer(
            1, self._emit_tick)
        self._fadeout_thread: Optional[Thread] = None

        player.init()
        last_book = self._library.last_played_book
        if last_book:
            last_book.last_played = int(time.time())
            player.load_file(last_book.current_chapter._db_object)
            self._rewind_feature()
Beispiel #3
0
 def __init__(self):
     super().__init__()
     self._gst_player: player = player.get_playbin()
     player.add_player_listener(self._pass_legacy_player_events)