From f7de80f87d62a50755f5ee0bd1b0d1178ae91eb2 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Fri, 9 Sep 2022 10:55:35 +0800 Subject: [PATCH] Comment out the notification to highlight being spoken items --- .../Services/AudioSession/AudioController.swift | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/apple/OmnivoreKit/Sources/Services/AudioSession/AudioController.swift b/apple/OmnivoreKit/Sources/Services/AudioSession/AudioController.swift index e2f009d44..5bade892a 100644 --- a/apple/OmnivoreKit/Sources/Services/AudioSession/AudioController.swift +++ b/apple/OmnivoreKit/Sources/Services/AudioSession/AudioController.swift @@ -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) +// ] +// ) } }