MCPcopy Create free account
hub / github.com/Moosync/Moosync / play_next_multiple

Method play_next_multiple

src/store/player_store.rs:287–300  ·  view source on GitHub ↗
(&mut self, songs: Vec<Song>)

Source from the content-addressed store, hash-verified

285
286 #[tracing::instrument(level = "debug", skip(self, songs))]
287 pub fn play_next_multiple(&mut self, songs: Vec<Song>) {
288 if songs.is_empty() {
289 return;
290 }
291
292 let first_song = songs.first();
293 if let Some(first_song) = first_song {
294 self.play_next(first_song.clone())
295 }
296
297 if songs.len() > 1 {
298 self.add_to_queue_at_index(songs[1..].to_vec(), self.data.queue.current_index + 1);
299 }
300 }
301
302 #[tracing::instrument(level = "debug", skip(self, new_index))]
303 pub fn change_index(&mut self, new_index: usize, force: bool) {

Callers 1

play_nextMethod · 0.80

Calls 3

cloneMethod · 0.80
add_to_queue_at_indexMethod · 0.80
play_nextMethod · 0.45

Tested by

no test coverage detected