-
-
Notifications
You must be signed in to change notification settings - Fork 307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS Recorded Video playback is mute when > 10 Seconds #384
Comments
ping @martijn00 |
I found the issue, it turns out The fix: var movieOutput = new AVCaptureMovieFileOutput
{
MovieFragmentInterval = CoreMedia.CMTime.Invalid
}; Turns out this library wasn't the issue, but the video created without this change that is > 10 seconds, <= 15 seconds isn't playable (Even in the Photos app!) |
@WilliamABradley I am having a similar issue with Swifty Cam, a top Swift media capture library. Do you know of any solution in Swift? |
this is accepted answers, Recently I got same issue and did changes in this file 'SwiftyCamViewController.swift' inside 'configureVideoOutput' method
Hopefully this helps someone to fix this issue.... |
Steps to reproduce 📜
Repro repo: https://github.com/WilliamABradley/VideoCaptureDemo
Run the App on an iOS Device (Problem observed on iPad Pro (2nd Gen w/ 11.3), enable Permissions for Microphone and Camera.
Record Video for 11 seconds or longer (Down to 4 on the Countdown)
Play the Video back on the Playback page, there is no sound.
Expected behavior 🤔
Any video length should playback with audio.
Actual behavior 🐛
Videos longer than 11 seconds play with no audio.
Audio is contained in the file, as when uploaded to Dropbox, it has audio.
I have tried delaying playback of the player, thinking that maybe a file handle was still open, saving the audio data, but this does not work, and playing the video cold (App restart, the audio is still mute).
Configuration 🔧
Version: 2.x
Platform:
The text was updated successfully, but these errors were encountered: