Explore the integration of media technologies within your app. Discuss working with audio, video, camera, and other media functionalities.

Post

Replies

Boosts

Views

Activity

iOS 17.1 Features (Credits, Favorite Artist & Playlist Covers)
Hey there, There was so many awesome new changes introduced in iOS 17.1, and we would love to leverage them via the API! Namely: A new endpoint that returns the credits of a song. A way to add an artist to the library of a user. A way to update the cover of a playlist. All these three features are amazing - please let us know if you plan to add them to the API! All the best, Oskar
0
0
356
Nov ’23
Getting 16bit RGBA data from ProRAW by using CIRAWFilter is quite slow in iOS 17
guard let rawfilter = CoreImage.CIRAWFilter(imageData: data, identifierHint: nil) else { return } guard let ciImage = rawfilter.outputImage else { return } let width = Int(ciImage.extent.width) let height = Int(ciImage.extent.height) let rect = CGRect(x: 0, y: 0, width: width, height: height) let context = CIContext() guard let cgImage = context.createCGImage(ciImage, from: rect, format: .RGBA16, colorSpace: CGColorSpaceCreateDeviceRGB()) else { return } print("cgImage prepared") guard let dataProvider = cgImage.dataProvider else { return } let rgbaData = CFDataCreateMutableCopy(kCFAllocatorDefault, 0, dataProvider.data) In iOS 16 this process is much faster than the same process in iOS 17 Is there a method to boost up the decoding speed?
1
0
671
Nov ’23
Replaykit sometimes will be auto stop screen record !!!
I just used replaykit to achieve simple screen recording,But sometimes there may be frequent occurrences of automatic stopping of recording, i don`t why ? have anyone konw this bug ? use Api: func startCapture(handler captureHandler: ((CMSampleBuffer, RPSampleBufferType, Error?) -> Void)?, completionHandler: ((Error?) -> Void)? = nil) open func stopCapture(handler: ((Error?) -> Void)? = nil) `` The prerequisite for monitoring the automatic stop recording method is that you have already started screen recording and have not actively called to stop recording let publisher = recorder.publisher(for: .isRecording) let cancelBag = Subscribers.Sink<Bool, Never>(receiveCompletion: {[weak self] complete in /// }, receiveValue: {[weak self] value in /// }) publisher.subscribe(cancelBag)
0
0
502
Nov ’23
Request for Free Access to the Apple Music API and Apple Link Shortener for Affiliate Links
Dear Apple devs, I hope this message finds you well. I am writing to seek your guidance and assistance in a matter related to my blog, which features affiliate links to the Apple Music store. Currently, I manage all aspects of my blog independently. However, I find myself facing the formidable task of updating 300 articles, and I am exploring options to streamline and automate this process. To achieve this automation, I am looking into the creation of affiliate links through the Apple Music API and the affiliate program. While this approach promises efficiency and enhanced user experience, I must acknowledge a financial constraint. Acquiring a developer account, a prerequisite for API access, involves a cost of €99, which presents a challenge within my budgetary constraints. I have come across information suggesting the possibility of requesting a fee waiver, yet the process entails an initial payment with no guarantees. This leads me to seek your advice on the most viable and cost-effective solution to address this predicament. Your insights and recommendations would be greatly appreciated, as they will guide my decision on the best course of action moving forward. I am committed to upholding the integrity of my blog and ensuring its continued success, and your expertise will be instrumental in achieving this goal. Thank you in advance for your time and assistance. I eagerly await your response and look forward to resolving this matter with your support.
0
0
589
Nov ’23
Difference between CIContext outputs
I have two CIContexts configured with the following options: let options1:[CIContextOption:Any] = [CIContextOption.cacheIntermediates: false, CIContextOption.outputColorSpace: NSNull(), CIContextOption.workingColorSpace: NSNull()]; let options2:[CIContextOption:Any] = [CIContextOption.cacheIntermediates: false]; And an MTKView with CAMetalLayer configured with HDR output. metalLayer = self.layer as? CAMetalLayer metalLayer?.wantsExtendedDynamicRangeContent = true metalLayer.colorspace = CGColorSpace(name: CGColorSpace.itur_2100_HLG) colorPixelFormat = .bgr10a2Unorm The two context options produce different outputs when input is in BT.2020 pixel buffers. But I believe the outputs shouldn't be different. Because the first option simply disables color management. The second one performs intermediate buffer calculations in sRGB extended linear color space and then converts those buffers to BT.2020 color space in the output.
0
0
498
Nov ’23
Channel is Only Preview Allowed (didn't used to be), How to fix?
I have a website that had been publishing to Apple News for a good while via RSS feed. At some point I implemented the Word Press plugin for publishing, created the PAPI file and that was working. I could login to Apple News Publisher and see my most recent articles. The RSS feed also still shows in the ANP dashboard. This appears to have stopped working in September as those are the most recent articles I can see in the Apple News Publisher dashboard. If I attempt to publish an article within the plugin it returns an error about "ONLY_PREVIEW_ALLOWED" So it appears my channel is back in a preview only mode. But nowhere in the News Publisher dashboard can I see anything to resubmit for approval. If I go to All Published Articles I can see where they stopped in September. If I go to Draft Articles and click "Preview these articles" I can see the channel in the Apple News app and it contains the most recent articles published. But back in the APN dashboard I don't have anything that allows me to submit to being published again. Any advice? Thanks!
2
0
649
Nov ’23
Bring Back Gapless Playback
I just ripped a CD onto my Itunes, and when it plays on the CD, it plays gapless as intended, but when ripped and uploaded to my Itunes and Iphone, there is a gap. I hate it. I know previously you could have gapless playback. Can you PLEASE bring it back? It is a simple fix, update your software, and bring back gapless playback please. People have complained about it before, DO something about it.
0
0
503
Nov ’23
Got error of PC register does not match crashing frame
the log of error thread is as following Thread 4 Crashed:: Dispatch queue: CA DispatchGroup 0 libwx_osx_cocoau_core-3.1.1.0.0.dylib 0x10f3707f0 wxMacCoreGraphicsBrushData::CalculateShadingValues(void*, double const*, double*) + 240 1 CoreGraphics 0x7ff80acda1ce CGFunctionEvaluate + 243 2 CoreGraphics 0x7ff80acda032 function_evaluate + 369 3 CoreGraphics 0x7ff80acd9758 ripc_AcquireFunction + 831 4 CoreGraphics 0x7ff80acd8934 ripc_DrawShading + 5841 5 CoreGraphics 0x7ff80b1e6e7a CG::DisplayListExecutor::drawShading(CG::DisplayListEntryShading const*) + 438 6 CoreGraphics 0x7ff80b2de843 CG::DisplayList::executeEntries(std::__1::__wrap_iter<std::__1::shared_ptr<CG::DisplayListEntry const>*>, std::__1::__wrap_iter<std::__1::shared_ptr<CG::DisplayListEntry const>*>, CGContextDelegate*, CGRenderingState*, CGGStack*, CGRect const*, __CFDictionary const*, bool) + 195 7 CoreGraphics 0x7ff80ad5cb03 CG::DisplayList::execute(CGContextDelegate*, CGRenderingState*, CGGStack*, CGRect const*, __CFDictionary const*) + 341 8 CoreGraphics 0x7ff80ad5c869 CGDisplayListDrawInContextDelegate + 617 9 AppKit 0x7ff80900769a -[NSViewBackingLayerContentLayer drawInContext:] + 57 10 QuartzCore 0x7ff80dd19293 CABackingStoreUpdate_ + 630 11 QuartzCore 0x7ff80dd77f2e invocation function for block in CA::Layer::display_() + 53 12 QuartzCore 0x7ff80dd182f2 -[CALayer _display] + 2253 13 QuartzCore 0x7ff80dd43d67 display_callback(void*, void*) + 97 14 QuartzCore 0x7ff80dd43ce6 CA::DispatchGroup::dispatch(bool) + 108 15 libdispatch.dylib 0x7ff80510d59a _dispatch_client_callout + 8 16 libdispatch.dylib 0x7ff805113668 _dispatch_lane_serial_drain + 816 17 libdispatch.dylib 0x7ff805114100 _dispatch_lane_invoke + 377 18 libdispatch.dylib 0x7ff80511daee _dispatch_root_queue_drain_deferred_wlh + 271 19 libdispatch.dylib 0x7ff80511d3fd _dispatch_workloop_worker_thread + 451 20 libsystem_pthread.dylib 0x7ff8052b1c47 _pthread_wqthread + 327 21 libsystem_pthread.dylib 0x7ff8052b0b97 start_wqthread + 15 Thread 4 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x000000030ee7ea60 rcx: 0x0000600000a4df58 rdx: 0x000000030ee7ea60 rdi: 0x000060000237b9a8 rsi: 0x000000030ee7ea10 rbp: 0x000000030ee7ea00 rsp: 0x000000030ee7ea00 r8: 0xe000000000000002 r9: 0x1ffffffffffffffe r10: 0x000000008ee09001 r11: 0x0000000000000019 r12: 0x0000000000000001 r13: 0x0000000000000001 r14: 0x000060000237bdb0 r15: 0x000000030ee7ea10 rip: <unavailable> rfl: 0x0000000000000242 tmp0: 0x000000010fa69800 tmp1: 0x00007ff80acda1ce tmp2: 0x00007ff89da92500 Binary Images: 0x20606a000 - 0x206109fff dyld (*) <d5406f23-6967-39c4-beb5-6ae3293c7753> /usr/lib/dyld 0x10f2c9000 - 0x10f2d8fff libobjc-trampolines.dylib (*) <7e101877-a6ff-3331-99a3-4222cb254447> /usr/lib/libobjc-trampolines.dylib 0x10ebb0000 - 0x10ebc3fff tdsearch-x64.dylib (*) <1bd85264-ee0d-36f4-ab94-a6d81ec1bb0f> /Applications/BaKoMa TeX/*/tdsearch-x64.dylib 0x10f2fd000 - 0x10f7c1fff libwx_osx_cocoau_core-3.1.1.0.0.dylib (*) <0362fcaf-20bc-39e8-8a36-a8736662480e> /Applications/BaKoMa TeX/*/libwx_osx_cocoau_core-3.1.1.0.0.dylib 0x10ffb0000 - 0x1101a6fff libwx_baseu-3.1.1.0.0.dylib (*) <a0e6ac20-4be1-3f6d-810f-f116d5f29279> /Applications/BaKoMa TeX/*/libwx_baseu-3.1.1.0.0.dylib 0x10ecf2000 - 0x10ed6bfff libwx_osx_cocoau_aui-3.1.1.0.0.dylib (*) <97bc52cb-e328-361a-a7ea-58e1b7c04f58> /Applications/BaKoMa TeX/*/libwx_osx_cocoau_aui-3.1.1.0.0.dylib 0x10ef30000 - 0x10efc8fff libwx_osx_cocoau_html-3.1.1.0.0.dylib (*) <3abef03a-ea27-3b81-bdbe-136afe43eae2> /Applications/BaKoMa TeX/*/libwx_osx_cocoau_html-3.1.1.0.0.dylib 0x1104a8000 - 0x1105c4fff libwx_osx_cocoau_adv-3.1.1.0.0.dylib (*) <048f9971-9720-32ee-9b41-aa1224eba010> /Applications/BaKoMa TeX/*/libwx_osx_cocoau_adv-3.1.1.0.0.dylib 0x10ee4a000 - 0x10ee7cfff libwx_baseu_net-3.1.1.0.0.dylib (*) <4ef643bb-33ba-353e-8f1f-42e3cfd80259> /Applications/BaKoMa TeX/*/libwx_baseu_net-3.1.1.0.0.dylib 0x10ec63000 - 0x10ec7efff liblzma.5.dylib (*) <e4406e42-7bc4-3945-a1a4-e9b6874ef052> /usr/local/Cellar/xz/5.2.5/lib/liblzma.5.dylib 0x7ff7ffc5a000 - 0x7ff7ffc89fff runtime (*) <2c5acb8c-fbaf-31ab-aeb3-90905c3fa905> /usr/libexec/rosetta/runtime 0x10e235000 - 0x10e288fff libRosettaRuntime (*) <a61ec9e9-1174-3dc6-9cdb-0d31811f4850> /Library/Apple/*/libRosettaRuntime 0x104b78000 - 0x104d88fff texword (*) <feb2b054-bd1a-36a5-8803-605478982dc1> /Applications/BaKoMa TeX/*/texword 0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ??? 0x7ff805274000 - 0x7ff8052aeff7 libsystem_kernel.dylib (*) <4df0d732-7fc4-3200-8176-f1804c63f2c8> /usr/lib/system/libsystem_kernel.dylib 0x7ff8052af000 - 0x7ff8052bafff libsystem_pthread.dylib (*) <c64722b0-e96a-3fa5-96c3-b4beaf0c494a> /usr/lib/system/libsystem_pthread.dylib 0x7ff80dcf6000 - 0x7ff80e09dff9 com.apple.QuartzCore (1.11) <75bd9503-d1ab-32d2-bd5b-89ec89d3e8dd> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore 0x7ff8088c1000 - 0x7ff809cc6ffb com.apple.AppKit (6.9) <27fed5dd-d148-3238-bc95-1dac5dd57fa1> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit 0x7ff805314000 - 0x7ff8057acffc com.apple.CoreFoundation (6.9) <4d842118-bb65-3f01-9087-ff1a2e3ab0d5> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x7ff8100c5000 - 0x7ff810360ff4 com.apple.HIToolbox (2.1.1) <06bf0872-3b34-3c7b-ad5b-7a447d793405> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox 0x7ff80acad000 - 0x7ff80b53effc com.apple.CoreGraphics (2.0) <c709e588-6adf-33ad-b7c8-5dbe61c7694d> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics 0x7ff80510a000 - 0x7ff805150ffd libdispatch.dylib (*) <4472f1a5-1d47-3665-ac8d-7adb0e9d2d87> /usr/lib/system/libdispatch.dylib 0x7ff805154000 - 0x7ff8051dbfff libsystem_c.dylib (*) <83c7b73c-86fe-32f9-85dd-f46fa2c1315b> /usr/lib/system/libsystem_c.dylib
0
1
1.6k
Nov ’23
Android Music SDK published to maven
Overview Hi I'm an Android Engineer at Mapbox. We are building SDKs that would include Apple Music integrations. The issue is that we cannot publish an .aar file that includes .aar files. Direct local .aar file dependencies are not supported when building an AAR So the question is, why isn't Apple Music Android SDK published to maven? It's bizarre to download android sdks and then include raw versions in your app anyways. To be specific, the issue is talking about these files. mediaplayback-release-1.1.1.aar musickitauth-release-1.1.2.aar If the artifacts were uploaded to maven, then we could make them part of a build.gradle like this: implementation("com.apple.music.mediaplayback:1.1.1") implementation("com.apple.music.musickitauth:1.1.2") Questions Has someone published these SDKs so we can include them without a raw download? Is there a legal reason to not publish it ourselves?
0
1
419
Nov ’23
Catalyst - Cannot play media with SystemMusicPlayer
Since the latest updates of macOS, probably 14.1, I have not been able to play media using SystemMusicPlayer.shared or MPMusicPlayerController.systemMusicPlayer. ApplicationMusicPlayer still works. This is the error code I am encountering: systemMusicPlayer _establishConnectionIfNeeded failed [application failed to launch] Failed to prepareToPlay with error: Error Domain=MPMusicPlayerControllerErrorDomain Code=10 "Failed to obtain remoteObject [nil server]" UserInfo={NSDebugDescription=Failed to obtain remoteObject [nil server]} Here is a small example to reproduce the bug. MPMusicPlayerController.systemMusicPlayer.setQueue(with: ["1445887715"]) MPMusicPlayerController.systemMusicPlayer.prepareToPlay() Or: extension PlayableMusicItem { // Not working func playWithSystemPlayer() { Task { SystemMusicPlayer.shared.queue = [self] try await SystemMusicPlayer.shared.play() } } // Working func playWithApplicationPlayer() { Task { ApplicationMusicPlayer.shared.queue = [self] try await ApplicationMusicPlayer.shared.play() } } }
2
1
659
Nov ’23
Radio station APP iOS
Hi everyone, I'm the owner of a radio station called Radio Krimi and we have an official APP on iOS but because the technician, don't replied anymore to our message, we would like to update it with a new audio link. Then deeply sorry but I really don't know how to do it, basically it sould be easy because is a just a new link instead an old one. Please someone could help us with the process ? Thanks a lot ! Seb https://apps.apple.com/fr/app/radio-krimi/id1034088733
0
0
390
Nov ’23
Using dynamic island and picture in picture together
We are implementing new Live Activities in our app (we are a live shopping app). We also have PIP however i've noticed that when I start a live activity, then go into picture in picture, the dynamic island does not show the activity we've created for it. I can only see the activity on the lock screen widget while the audio for the videos plays. Is there any way to get the dynamic island to work with an app that is also in picture in picture? If there is and I'm doing something wrong, I can post some code. But from what I see, these don't seem to be compatible unfortunately :(
0
0
748
Nov ’23
Core Haptics error on Unity app iPhone 11 iOS 16.7
Hi, I have implemented Core Haptics into a Unity app but there are some unexpected behaviours. I followed the documentation on GitHub and did not get any errors while implementing it. My issue is core haptics giving errors on iPhone 11. iOS 16.7 but works perfectly on iPhone 13 and iPhone 14 pro. This is the error code I am getting in logs: [hapi] HapticDictionaryReader.mm:44 -[HapticDictionaryReader readAndVerifyVersion:error:]: ERROR: Unsupported version number: 10.0 2023-11-20 18:20:01.040069+0300 *** - Game599:12190] Error occurred playing JSON one-shot: Error Domain=com.apple.CoreHaptics Code=-4809 "(null)" CHException: Exception of type 'Apple.CoreHaptics.CHException' was thrown. at Apple.CoreHaptics.CHHapticEngine.PlayPattern (Apple.CoreHaptics.CHHapticPattern ahap) [0x00000] in <00000000000000000000000000000000>:0 at ButtonController.OpenCenterPanel (UnityEngine.Transform panel) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Events.UnityEvent.Invoke () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchPress (UnityEngine.EventSystems.PointerEventData pointerEvent, System.Boolean pressed, System.Boolean released) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.EventSystems.StandaloneInputModule.ProcessTouchEvents () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.EventSystems.StandaloneInputModule.Process () [0x00000] in <00000000000000000000000000000000>:0 UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1) UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchPress(PointerEventData, Boolean, Boolean) UnityEngine.EventSystems.StandaloneInputModule:ProcessTouchEvents() UnityEngine.EventSystems.StandaloneInputModule:Process() It says unsupported version number: 10.0 I do not know why. For the context I play haptic patterns like this example: HapticEngine.PlayPatternFromAhap(_hitAHAP); How can I solve this problem?
2
1
754
Nov ’23
Apple News: adding padding around text with background color
I can't figure it out. the "padding":10 either is ignored or the background extends to the left and right edge. See attached screenshot from the simulator. "role": "heading", "text": "News", "format": "markdown", "textStyle": { "textAlignment": "center", "backgroundColor": "#006FBA", "textColor": "#FFFFFF", "fontSize": 14, "lineHeight": 16, "fontWeight": "bold", "fontScaling": false }, "style": { "backgroundColor": "#006FBA" }, "layout": { "padding":5, "ignoreDocumentMargin": false, "margin": { "bottom": 15, "left":30, "right":30 } } }, { "role": "heading", "text": "News", "format": "markdown", "textStyle": { "textAlignment": "center", "backgroundColor": "#006FBA", "textColor": "#FFFFFF", "fontSize": 14, "lineHeight": 16, "fontWeight": "bold", "fontScaling": false }, "layout": { "padding":5, "ignoreDocumentMargin": false, "margin": { "bottom": 15, "left":30, "right":30 } } }, { "role": "container", "components": [ { "role": "heading", "text": "News", "textStyle": { "textAlignment": "center", "backgroundColor": "#006FBA", "textAbove": "1", "textColor": "#FFFFFF", "fontSize": 14, "lineHeight": 16, "fontWeight": "bold", "fontScaling": false }, "style": { "backgroundColor": "#006FBA" }, "layout": { "padding":5 } } ] },
0
0
641
Nov ’23
Classical Music App metadata using API
Hi, I'm a newbie here. I've signed up for the developer program hoping to retrieve extended metadata for the Classical music that is avaliable in Classical app. For example, each performer is assigned an instrument or voice. Unfortunately, the test API call did not return extended metadata, just regular metadata from Music App or page. Does anybody knows if there are plans to make this extended metadata available thru API ?
0
0
387
Nov ’23
Apple Music API Extended Features - UPDATE/DELETE
Trying to use the Apple Music API for mirroring playlists from spotify. Wondering if it will ever be on the roadmap to update/reorder playlists, or delete playlists/remove items using the API? Is this something that can't be handled or is it a business decision? I see that there is more flexibility with the MusicKit. Can we expect something like this in the future for the API? Thanks,
0
0
560
Dec ’23