Comment out the notification to highlight being spoken items

This commit is contained in:
Jackson Harper 2022-09-09 10:55:35 +08:00
parent 339745a93b
commit f7de80f87d

View file

@ -369,14 +369,14 @@ public class AudioController: NSObject, ObservableObject, AVAudioPlayerDelegate,
}
if let item = self.item, let speechItem = player?.currentItem as? SpeechPlayerItem {
NotificationCenter.default.post(
name: NSNotification.SpeakingReaderItem,
object: nil,
userInfo: [
"pageID": item.unwrappedID,
"anchorIdx": String(speechItem.speechItem.htmlIdx)
]
)
// NotificationCenter.default.post(
// name: NSNotification.SpeakingReaderItem,
// object: nil,
// userInfo: [
// "pageID": item.unwrappedID,
// "anchorIdx": String(speechItem.speechItem.htmlIdx)
// ]
// )
}
}