6,513 questions
1
vote
0
answers
23
views
How can we disable iOS ducking feature completely during our video call app?
we have a problem in our video calling app (built in react native) where we want to play background music locally (we are using react-native-sound) and we are using daily react native sdk for video ...
0
votes
1
answer
84
views
How to dynamically update an existing AVComposition when users add a new custom video clip?
I’m building a macOS video editor that uses AVComposition and AVVideoComposition.
Initially, my renderer creates a composition with some default video/audio tracks:
@Published var composition: ...
2
votes
1
answer
71
views
iOS Picture-in-Picture stops unexpectedly despite using AVPlayerLooper - How to keep PiP running continuously?
I'm building a teleprompter app that uses iOS Picture-in-Picture (PiP) to display scrolling text while users record videos with the camera app. The text is rendered into a video which plays in PiP ...
3
votes
1
answer
102
views
Update Custom AVVideoCompositing in real time based on the project updates
I am trying to replicate how professional video editing apps like final cut pro shows and update the video player in real time based on user configuration in the editing settings. For example, I am ...
1
vote
0
answers
74
views
How to switch between AAC and AC-3 audio groups in HLS dynamically (AVPlayer, tvOS/iOS)
I’m playing an HLS stream on tvOS/iOS using AVPlayer.
The master playlist has two independent AUDIO groups: one for AAC (stereo) and one for AC-3 (5.1). Example:
# AUDIO groups
#EXT-X-MEDIA:TYPE=AUDIO,...
0
votes
1
answer
120
views
LockedCameraCaptureExtension and Sharing User Preferences
I have the main app that saves preferences to UserDefaults.standard. So I have this one preference that the user is able to toggle - isRawOn
UserDefaults.standard.set(self.isRawOn, forKey: "...
2
votes
1
answer
92
views
AVAssetExportSession ignores frameDuration 60fps and exports at 30fps, but AVPlayer playback is correct
I'm stuck on a really frustrating AVFoundation problem. I'm building a video editor that uses a custom AVVideoCompositor to add effects, and I need the final output to be 60 FPS.
So basically, I ...
5
votes
1
answer
210
views
AVFoundation Custom Video Compositor Skipping Frames During AVPlayer Playback Despite 60 FPS Frame Duration
I'm building a video editor in Swift using AVFoundation with a custom video compositor. I've set my
AVVideoComposition.frameDuration to 60 FPS, but when I log the composition times in my startRequest ...
1
vote
2
answers
108
views
How to solve issue with Vision framework in Swift showing too much background
I am working on a feature for a Photo Booth app in Swift to do background replacement using the Vision framework and AVFoundation. However, I am having an issue where the original background is ...
3
votes
2
answers
141
views
Seek to the actual first frame of a video whose timestamps don’t start at zero (AVPlayer / AVAsset)
I’m working on an iOS app that loads videos using AVPlayer, and I’ve run into a common issue: some videos have timestamps that don’t start at zero, so when I seek to zero I get a black or transparent ...
1
vote
1
answer
85
views
LockedCameraCapture Does Not Launch The App from Lock Screen
My implementation of LockedCameraCapture does not launch my app when tapped from locked screen. But when the same widget is in the Control Center, it launches the app successfully.
Standard Xcode ...
1
vote
0
answers
101
views
AVCaptureDevice - Getting a List of Cameras Including Ones with Virtual 2x Crop
So using AVCaptureDevice.DiscoverySession gets you each dedicated camera nowadays.
let devices = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInWideAngleCamera], mediaType: .video, position: ....
2
votes
1
answer
44
views
How to map a drag offset into a value range similar to SwiftUI slider
I am making a draggable view to control exposure in AVFoundation:
func setExposure(value: Float) {
guard let device = videoCaptureDevice else { return }
if device....
2
votes
0
answers
87
views
AVAssetWriter creating time code issues in NLEs
This is specifically a question about AVAssetWriter in Swift.
I'm not a programmer, so I assume I've got something wrong, but after testing and searching forums and more testing I can't find an answer ...
3
votes
1
answer
96
views
Making my camera display full screen on iPad
I'm using the code created by https://medium.com/@barbulescualex/making-a-custom-camera-in-ios-ea44e3087563. I've tinkered with it to only display the camera view and show landscape. However I don't ...