Comments (2)
I want to know the content of the error message. You can see the content inside Error.Domain with print(error).
- This commonly occurs when the microphone is detached, and the app is in the background for 30 seconds or more, especially when the Control Center is open for 30 seconds or longer. This can lead to recording failures.
failedToFinishWriting(error: Optional(Error Domain=AVFoundationErrorDomain Code=-11847 "Operation Interrupted" UserInfo={NSLocalizedRecoverySuggestion=Stop other operations and try again., NSLocalizedDescription=Operation Interrupted, NSUnderlyingError=0x2815224c0 {Error Domain=NSOSStatusErrorDomain Code=-16121 "(null)"}}))
- When you specify recorder.startRecording([.audio: [], .video: []]) and either the video or audio is missing, recording will fail. The error message in this case is as follows:
failedToFinishWriting(error: nil)
from haishinkit.swift.
Apparently here's what happened:
Swipe to left to other app => app goes to background => sessionWasInterrupted => stop recording
While my app was in background, sessionInterruptionEnded called => started streaming & recording
...something empty recorded,
returned to foreground...
stop recording=> error nil
I fixed the logic in my app, but FYI recording error may happen if recording was running in the background.
from haishinkit.swift.
Related Issues (20)
- MTHKView with many VideoEffects - preview is lagging HOT 5
- What happens when playing pure audio fails? We only did audio push-pull streaming, but we ran into problems playing it back. HOT 6
- When I closed the stream and then turned it back on, the log showed that it was connected, but frequent switching results in low transmission speed HOT 2
- Recording is broken if using an audio sample rate is set to 44.1 kHz HOT 1
- App audio performance issue HOT 3
- videoCodecErrorOccurred reason=failedToFlame(status: 0), description=The operation couldn’t be completed. (HaishinKit.IOVideoUnitError error 3.) HOT 2
- Metadata issue leading to out-of-sync audio after recording on server HOT 16
- RTMP: First AVC interframe has timestamp delta == 0
- CPU usage increases after SRT Playback ends HOT 1
- ReplayKit and multicam .audioMic issue HOT 6
- Exception "required condition is false: [_nodes containsObject: node]" when I close RTMP stream connection HOT 6
- LTE and 5G Network Connection Failure: POSIXErrorCode(rawValue: 50): Network is down HOT 4
- Change resolution during stream HOT 4
- Recording not working since 1.8.0 HOT 3
- connection closed by peer on stopping the RTMP stream HOT 6
- [Sponsorship] Need Help with New Features HOT 1
- [SRT] After `SRTConnection.close` `SRTConnection.connected` is true
- [SRT] After fist live audio does not have a program
- Black screen at the trailing HOT 1
- NetConnection.Connect.Failed when I use RTMP stream with H264
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haishinkit.swift.