* Plays all tracks. Noop when already playing.
({ state, dispatch })
| 111 | * Plays all tracks. Noop when already playing. |
| 112 | */ |
| 113 | async playAll ({ state, dispatch }) { |
| 114 | const plays = Object.keys(state.tracks) |
| 115 | .map(track => dispatch('playTrack', track)) |
| 116 | |
| 117 | const ids = await Promise.all(plays) |
| 118 | return ids.flat() |
| 119 | }, |
| 120 | |
| 121 | /** |
| 122 | * Pauses all tracks. Noop when already paused. |
nothing calls this directly
no test coverage detected