Skip to content
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

Unable to start a second RTMP stream on iOS #6

Open
izquiratops opened this issue Nov 25, 2022 · 5 comments
Open

Unable to start a second RTMP stream on iOS #6

izquiratops opened this issue Nov 25, 2022 · 5 comments

Comments

@izquiratops
Copy link

izquiratops commented Nov 25, 2022

The very first time works fine, but stopping the stream and starting a new one will crash. This is happening only on iOS.

To Reproduce

  1. Run .startStream()
  2. Stream works
  3. Run .stopStream()
  4. Run .startStream() again
  5. Stream won't start. RTMP client is not able to proceed the connection after the handshake.

Expected behavior
Should start a new stream every time I run startStream.

Smartphone:

  • Device: iPhone 13 and iPhone 11
  • OS: both with iOS 16.1
  • react-native-rtmp-publisher: 0.4.4

Additional context
apiVideo uses HaishinKit 1.3.0 and works as expected, maybe this is an issue that comes from 1.2.7.

I tried to fork it and upgrade the package, but I've never worked with Xcode before and I'm kinda lost

@ezranbayantemur
Copy link
Owner

I'll be looking at it soon 👍🏻

@izquiratops
Copy link
Author

Maybe this thing happens because stream.attachCamera(nil)/stream.attachAudio(nil) is never called, removeFromSuperview could be a great place to write those lines. I tried to build it a couple of times but XCode is always throwing the build with a lot of errors from HaishinKit

@ezranbayantemur
Copy link
Owner

@izquiratops I'm currently updating the HaishinKit to 1.4.1 but there is a problem about the process. I've created an issue about it on here

I'm working about it

@turkmenkaan
Copy link

I was wondering if there are any updates on this.

@Andriiklymiuk
Copy link

Used suggested @izquiratops changes to fix that.
Also updated haishinkit to 1.4.3

#38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants