Code: Select all
def play_song(self):
self.mediaplayer.set_media(self.media)
self.mediaplayer.play()
Code: Select all
def play_next_song(self):
if self.current_song_index < len(self.numbered_list) - 1:
self.current_song_index += 1
self.media = self.instance.media_new(self.numbered_list[self.current_song_index][1])
self.play_song()
def SongFinished(self, event):
self.play_next_song()