Shazamkit's SHManagedSession() doesn't work on macOS 14 RC 23A339
Error code:
AddInstanceForFactory: No factory registered for id <CFUUID 0x600000540340> F8BB1C28-BAE8-11D6-9C31-00039315CD46
HALC_ShellDevice.cpp:2,609 HALC_ShellDevice::RebuildControlList: couldn't find the control object
Prepare call ignored, the caller does not have record permission
Error The operation couldn’t be completed. (com.apple.ShazamKit error 202.)
Create a great ShazamKit experience
RSS for tagDiscuss the WWDC23 Session Create a great ShazamKit experience
Posts under wwdc2023-10051 tag
4 Posts
Sort by:
Post
Replies
Boosts
Views
Activity
I want use SHLibrary.default.items to show the music i recognized by Shazam. but SHLibrary.default.items always return empty list.
I did an experiment and I called SHLibrary.default.items as soon as I entered on a page and it returned an empty list, but after use SHManagedSession to identify songs and then call SHLibrary.default.items it returned the result I wanted. Below is the test code
private func bindEvent() {
// call when View was create the items return empty
if #available(iOS 17, *) {
let items = SHLibrary.default.items
print("-------->>>>>>>>\(items)")
}
self.addToMediaLibray.onTap { [weak self] in
guard let `self` = self, let result = self.result, let appleMusicID = result.appleMusicID else { return }
if #available(iOS 17, *) {
// call when music was recognized the item is not empty.
let items = SHLibrary.default.items
print("1111-------->>>>>>>>\(items)")
}
}
}
The attach file is the part of result log
My iOS Verion is iOS 17 (21A5326a) XCode Version is 15.0 beta 8 (15A5229m)
The result log
Looking to fill up a budget line for an iOs application we are trying to build.
By adding ShazamKit to our app, how much cost the use of it per stream ?
My research indicates that it is 0,00065$, correct ?
https://developer.apple.com/documentation/shazamkit/shazamkit_dance_finder_with_managed_session
The song detection is successful however with new APIs,
I can't find this demo working with SHLibrary, it expect to display the RecentDanceRowView.
I wonder if I missed any steps or the SHLibrary is not ready yet.