Comments (5)
The issue could not be reproduced with the combination of the example app and iPhone 7 Plus. I would like to have sample code demonstrating how you are using the library.
from haishinkit.swift.
Is the improvement not addressed in this commit?. a5c0b3a
from haishinkit.swift.
I checked the fix above along with 1.7.2 release - preview lag is gone, but I can't connect to the live stream at all in this version.
I see something like this in the logs and it goes indefinitely:
2023-11-12 10:04:57.066 [Info] [com.haishinkit.HaishinKit] [VideoCodecSettings.swift:156] apply(_:rhs:) > bitRate change from 640000 to 8388608
2023-11-12 10:04:57.763 [Info] [com.haishinkit.HaishinKit] [IOAudioResampler.swift:227] setUp(_:) > inputFormat:<AVAudioFormat 0x281b3dd60: 1 ch, 48000 Hz, Int16>,outputFormat:<AVAudioFormat 0x281b3de00: 1 ch, 48000 Hz, Int16>
2023-11-12 10:04:57.764 [Info] [com.haishinkit.HaishinKit] [AudioCodec.swift:149] makeAudioConverter() > inputFormat:<AVAudioFormat 0x281b3de00: 1 ch, 48000 Hz, Int16>,outputFormat:<AVAudioFormat 0x281b3eda0: 1 ch, 48000 Hz, 'aac ' (0x00000002) 0 bits/channel, 0 bytes/packet, 1024 frames/packet, 0 bytes/frame>
2023-11-12 10:05:04.756 [Info] [com.haishinkit.HaishinKit] [RTMPNWSocket.swift:168] stateDidChange(to:) > Connection is ready.
2023-11-12 10:05:04.763 [Info] [com.haishinkit.HaishinKit] [RTMPNWSocket.swift:159] viabilityDidChange(to:) > Connection viability changed to true
2023-11-12 10:05:20.134 [Warn] [com.haishinkit.HaishinKit] [RTMPNWSocket.swift:179] stateDidChange(to:) > Connection failed:POSIXErrorCode(rawValue: 54): Connection reset by peer
2023-11-12 10:05:20.139 [Warn] [com.haishinkit.HaishinKit] [RTMPConnection.swift:405] on(status:) >
2023-11-12 10:05:22.166 [Info] [com.haishinkit.HaishinKit] [RTMPNWSocket.swift:168] stateDidChange(to:) > Connection is ready.
2023-11-12 10:05:22.170 [Info] [com.haishinkit.HaishinKit] [RTMPNWSocket.swift:159] viabilityDidChange(to:) > Connection viability changed to true
2023-11-12 10:05:37.635 [Warn] [com.haishinkit.HaishinKit] [RTMPConnection.swift:405] on(status:) >
2023-11-12 10:05:39.655 [Info] [com.haishinkit.HaishinKit] [RTMPNWSocket.swift:168] stateDidChange(to:) > Connection is ready.
2023-11-12 10:05:39.660 [Info] [com.haishinkit.HaishinKit] [RTMPNWSocket.swift:159] viabilityDidChange(to:) > Connection viability changed to true
2023-11-12 10:05:55.039 [Warn] [com.haishinkit.HaishinKit] [RTMPNWSocket.swift:179] stateDidChange(to:) > Connection failed:POSIXErrorCode(rawValue: 54): Connection reset by peer
2023-11-12 10:05:55.039 [Warn] [com.haishinkit.HaishinKit] [RTMPConnection.swift:405] on(status:) >
2023-11-12 10:05:57.071 [Info] [com.haishinkit.HaishinKit] [RTMPNWSocket.swift:168] stateDidChange(to:) > Connection is ready.
2023-11-12 10:05:57.078 [Info] [com.haishinkit.HaishinKit] [RTMPNWSocket.swift:159] viabilityDidChange(to:) > Connection viability changed to true
2023-11-12 10:06:12.489 [Warn] [com.haishinkit.HaishinKit] [RTMPNWSocket.swift:179] stateDidChange(to:) > Connection failed:POSIXErrorCode(rawValue: 54): Connection reset by peer
2023-11-12 10:06:12.490 [Warn] [com.haishinkit.HaishinKit] [RTMPConnection.swift:405] on(status:) >
2023-11-12 10:06:14.516 [Info] [com.haishinkit.HaishinKit] [RTMPNWSocket.swift:168] stateDidChange(to:) > Connection is ready.
2023-11-12 10:06:14.524 [Info] [com.haishinkit.HaishinKit] [RTMPNWSocket.swift:159] viabilityDidChange(to:) > Connection viability changed to true
2023-11-12 10:06:30.012 [Warn] [com.haishinkit.HaishinKit] [RTMPConnection.swift:405] on(status:) >
2023-11-12 10:06:32.046 [Info] [com.haishinkit.HaishinKit] [RTMPNWSocket.swift:168] stateDidChange(to:) > Connection is ready.
2023-11-12 10:06:32.051 [Info] [com.haishinkit.HaishinKit] [RTMPNWSocket.swift:159] viabilityDidChange(to:) > Connection viability changed to true
2023-11-12 10:06:47.407 [Warn] [com.haishinkit.HaishinKit] [RTMPNWSocket.swift:179] stateDidChange(to:) > Connection failed:POSIXErrorCode(rawValue: 54): Connection reset by peer
from haishinkit.swift.
Regarding the connection issue, I'm not quite sure because it works on my end. I would like you to review if there are any issues with the network or other related aspects.
from haishinkit.swift.
This issue itself has been completed, so I will close it.
from haishinkit.swift.
Related Issues (20)
- [BUG] Updating NetStream.multiCamCaptureSettings.Mode doesn't work HOT 2
- [Crash] App crashes due to thread-safe issue of RTMPConnection.uri HOT 3
- running ios example with SRT does not work with srt-live-transmit
- It is very slow to rotate camera in PiP mode HOT 4
- 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
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.