Post

Replies

Boosts

Views

Activity

Reply to AVVideoCompositionInstruction with custom compositor
Thank you for the response. Well I can always implement and compare, but implementing the most optimal strategy and finding the most optimal set of instructions may be hard in a multilayer setup with so many visual element types. If we just keep black video(1 frame of size 480x320 stretched to fit timerange) in the below layers of passthrough tracks, will the decoder have any extra hard time decoding the black videos? In other words, passthrough track + black video vs passthrough track, is it any different?
Sep ’20
Reply to App rejected for Microphone Usage description
Well I already mention app name, but still they rejected. I could go longer by saying <Appname> requires microphone to record audio for video tracks. Without this permission, video clips would be silent. But this becomes unnecessarily long and confusing. I checked tons of other video camera apps and they write stuff such as "this allows app to record audio". The thing is in a video camera app, isn't it obvious that microphone permission is needed to record audio?
Sep ’20
Reply to iOS14 beta 4 stuck in boot loop when disk space runs out
I have filed a bug and captured all the videos & photos as the problem happened. Because when the problem happens, nothing can be extracted from the device, nothing can be saved on the device, the device fails to sync to computer. I didn't hear back from Apple so far as it is a very critical iOS bug threatening severe data loss. The feedback ID is FB8334182. Core iOS engineering team must investigate the issue as there is no guarantee that the problem is fixed in iOS 14 beta 5 or not. Reproducing the problem is a nightmare which everyone would avoid.
Aug ’20
Reply to iOS 13/13.1 Bug with Autorotation
There is another solution I found. Present &amp; dismiss a custom dummy view controller which should be full screen and whose supportedInterfaceOrientations are precisely the orientation you want your view controller to be set to. This does not use unofficial APIs but is a hack to force autorotation.
Aug ’20
Reply to iOS 13/13.1 Bug with Autorotation
The only unofficial solution to forcefully rotate the device is by using this code, but it is undocumented. Can't use it in production code as one day it may be broken. &#9;&#9;&#9;&#9; if view.bounds.width > view.bounds.height {        &#9;     UIDevice.current.setValue(UIDeviceOrientation.portrait.rawValue, forKey: "orientation")         } else {             UIDevice.current.setValue(UIDeviceOrientation.landscapeLeft.rawValue, forKey: "orientation")         } This works no matter whether the portrait orientation is locked on device or not.
Aug ’20
Reply to UIKit strange layout bug in iOS14
Dear UIKit Engineers, This is a bug with XCode projects not having UISceneDelegate (pre iOS 13) and is very simple to reproduce. Just have an XCode project without UISceneDelegate and have a hidden subview with white background in the Storyboard. Unhide this subview in viewDidLoad and see the glitch on startup in landscape mode. I have filed feedback FB8400870. Is there any known workaround? This is causing very bad app load experience.
Aug ’20
Reply to XCode12 beta build errors with AVAudioSession APIs
I found it eventually but this is driving me crazy to share projects between XCode11 and XCode12. At times I need XCode12 to test new iOS14 APIs but then XCode12 beta 3 is too buggy so coming back to XCode11 is painful. There are lot of code changes required to make the project compatible with XCode11. For instance, this code if usingFrontCamera {    preferredAutoMicrophoneOrientation = AVAudioSession.Orientation.front } else {  preferredAutoMicrophoneOrientation = AVAudioSession.Orientation.back } It requires a different approach altogether in XCode11. Setting it to AVAudioSession.Orientation.orientationFront doesn't work!
Jul ’20