Display headphones if playing another audio item

This commit is contained in:
Jackson Harper
2022-09-24 11:19:14 +08:00
parent 09bea6d8c1
commit be6e52fbab

View File

@ -91,7 +91,7 @@ struct WebReaderContainerView: View {
}
var textToSpeechButtonImage: some View {
if audioController.state == .stopped {
if audioController.state == .stopped || audioController.itemAudioProperties?.itemID != self.item.id {
return Image(systemName: "headphones").font(Font.system(size: 19))
}
let name = audioController.isPlayingItem(itemID: item.unwrappedID) ? "pause.circle" : "play.circle"