Giter Site home page Giter Site logo

Comments (5)

shogo4405 avatar shogo4405 commented on June 16, 2024

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.

shogo4405 avatar shogo4405 commented on June 16, 2024

Is the improvement not addressed in this commit?. a5c0b3a

from haishinkit.swift.

AdamAexol avatar AdamAexol commented on June 16, 2024

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.

shogo4405 avatar shogo4405 commented on June 16, 2024

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.

shogo4405 avatar shogo4405 commented on June 16, 2024

This issue itself has been completed, so I will close it.

from haishinkit.swift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.