Open ahmedsafadii opened 3 years ago
your issue maybe because the audio time is bigger than the video time, you can try to cut the audio time or extend the video time
@vitoziv thank you for answering, as you can see here I already do the selected time range
if videoTimelineView.duration <= ((voiceOvers[currentVoiceOver]?.startTime ?? 0.0) + asset.duration.seconds) {
voiceResource.selectedTimeRange = CMTimeRange(start: .zero, duration: CMTime(seconds: asset.duration.seconds, preferredTimeScale: 10))
}
in case the audio is bigger than video, but I would say that's it's not because sometimes it's works and sometime I get black,
you need to know that i had more than one audio recorded and all have startime, but the only voice which reach the end can make the black issue