Post

Replies

Boosts

Views

Activity

Reply to Triggering “realtime” mode for peer-to-peer WiFi via awdl to fix jitter problems
Hi Quinn, Thank you so much for your reply. I appreciate it. Just wanted to ask a followup related to this: [quote='881072022, DTS Engineer, /thread/819926?answerId=881072022#881072022'] It might be possible to find some API that does it as a side effect, but that would be an implementation detail and thus not something you’d want to rely on. [/quote] I understand that this is not something to rely on, but do you have any recommendations of things that might work here? I already tried creating separate peer-to-peer TCP channels with heartbeat messages, tried using the Multipeer Connectivity API with MCSession to establish connections between the devices (although the actual video packets were still sent via NWConnection), etc. I find it a little frustrating that the best options as of right now to reduce latency appear to be: Change your router to use specific channels Drag your cursor from your Mac to your iPad prior to starting the stream transmission (if transmitting to/from Mac and iPad) I am aware the Wi-Fi Aware API may help so I probably will look into that separately, however, that still seems to only offer limited support seeing as it is only available on iPhone and iPad at the moment so there is no macOS option, and I intend to add a tvOS and Vision Pro receiver as well.
Mar ’26
Reply to PiP not launching from a WKWebview Sandboxed app
I have been developing an app for a little while now. I have been building it without any entitlements/sandboxing, but I decided to try to turn on sandboxing, and I noticed the exact same issue. The video player says “This video is playing in picture in picture”, and I can hear the audio, but the video doesn’t show up. Additionally, there is an error that shows up in the video playback menu bar item. I also see this error in the console which I suspect is related, but not positive: 0x114041e90 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'WebKit Media Playback' for process with PID=51324, error: Error Domain=RBSServiceErrorDomain Code=1 "(originator doesn't have entitlement com.apple.runningboard.assertions.webkit AND originator doesn't have entitlement com.apple.multitasking.systemappassertions)" UserInfo={NSLocalizedFailureReason=(originator doesn't have entitlement com.apple.runningboard.assertions.webkit AND originator doesn't have entitlement com.apple.multitasking.systemappassertions)} I tried adding these entitlements to my app, but that causes it to crash on startup. Supposedly they are reserved for Apple only. I am on macOS sonoma 14.5 (23F79) on Apple Silicon M1 Just wanted to add that adding com.apple.PIPAgent to com.apple.security.temporary-exception.mach-lookup.global-name entitlement as referenced in this thread fixed it for me: https://developer.apple.com/forums/thread/756472
Aug ’24
Reply to Triggering “realtime” mode for peer-to-peer WiFi via awdl to fix jitter problems
Hi Quinn, Thank you so much for your reply. I appreciate it. Just wanted to ask a followup related to this: [quote='881072022, DTS Engineer, /thread/819926?answerId=881072022#881072022'] It might be possible to find some API that does it as a side effect, but that would be an implementation detail and thus not something you’d want to rely on. [/quote] I understand that this is not something to rely on, but do you have any recommendations of things that might work here? I already tried creating separate peer-to-peer TCP channels with heartbeat messages, tried using the Multipeer Connectivity API with MCSession to establish connections between the devices (although the actual video packets were still sent via NWConnection), etc. I find it a little frustrating that the best options as of right now to reduce latency appear to be: Change your router to use specific channels Drag your cursor from your Mac to your iPad prior to starting the stream transmission (if transmitting to/from Mac and iPad) I am aware the Wi-Fi Aware API may help so I probably will look into that separately, however, that still seems to only offer limited support seeing as it is only available on iPhone and iPad at the moment so there is no macOS option, and I intend to add a tvOS and Vision Pro receiver as well.
Replies
Boosts
Views
Activity
Mar ’26
Reply to PiP not launching from a WKWebview Sandboxed app
I have been developing an app for a little while now. I have been building it without any entitlements/sandboxing, but I decided to try to turn on sandboxing, and I noticed the exact same issue. The video player says “This video is playing in picture in picture”, and I can hear the audio, but the video doesn’t show up. Additionally, there is an error that shows up in the video playback menu bar item. I also see this error in the console which I suspect is related, but not positive: 0x114041e90 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'WebKit Media Playback' for process with PID=51324, error: Error Domain=RBSServiceErrorDomain Code=1 "(originator doesn't have entitlement com.apple.runningboard.assertions.webkit AND originator doesn't have entitlement com.apple.multitasking.systemappassertions)" UserInfo={NSLocalizedFailureReason=(originator doesn't have entitlement com.apple.runningboard.assertions.webkit AND originator doesn't have entitlement com.apple.multitasking.systemappassertions)} I tried adding these entitlements to my app, but that causes it to crash on startup. Supposedly they are reserved for Apple only. I am on macOS sonoma 14.5 (23F79) on Apple Silicon M1 Just wanted to add that adding com.apple.PIPAgent to com.apple.security.temporary-exception.mach-lookup.global-name entitlement as referenced in this thread fixed it for me: https://developer.apple.com/forums/thread/756472
Replies
Boosts
Views
Activity
Aug ’24