Fix waveform not showing on mobile: update CSS height rules and resume AudioContext
This commit is contained in:
parent
349bba2ab0
commit
ace1ad71ab
2 changed files with 7 additions and 1 deletions
|
|
@ -44,6 +44,12 @@ export function initializePlayerEvents(player, audioPlayer, scrobbler, ui) {
|
||||||
if (scrobbler.isAuthenticated() && lastFMStorage.isEnabled()) {
|
if (scrobbler.isAuthenticated() && lastFMStorage.isEnabled()) {
|
||||||
scrobbler.updateNowPlaying(player.currentTrack);
|
scrobbler.updateNowPlaying(player.currentTrack);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Resume AudioContext for waveform on mobile (iOS)
|
||||||
|
if (waveformGenerator.audioContext.state === 'suspended') {
|
||||||
|
waveformGenerator.audioContext.resume();
|
||||||
|
}
|
||||||
|
|
||||||
updateWaveform();
|
updateWaveform();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3948,7 +3948,7 @@ img:not([src]), img[src=''] {
|
||||||
grid-area: main;
|
grid-area: main;
|
||||||
}
|
}
|
||||||
|
|
||||||
.progress-bar,
|
.progress-bar:not(.waveform-loaded),
|
||||||
.volume-bar {
|
.volume-bar {
|
||||||
height: 8px;
|
height: 8px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue