apivideo / api.video-flutter-live-stream

Flutter RTMP live stream client. Made with ♥ by api.video
MIT License
62 stars 37 forks source link

[Bug]: Ios is crashed when another application is using microphone #34

Closed nhat108 closed 8 months ago

nhat108 commented 1 year ago

Version

v1.1.1

Which operating systems have you used?

Environment that reproduces the issue

Iphone 12

Is it reproducible in the example application?

Yes

RTMP Server

api.video

Reproduction steps

  1. Config livestream
  2. check microphone permission is denined
  3. start livestream -> crash

Expected result

image

Actual result

com.haishinkit.HaishinKit.AudioIOComponent.lock', stop reason = Swift runtime failure: Unexpectedly found nil while unwrapping an Optional value frame #1: 0x0000000105c4b1f4 HaishinKit`AudioCodec.converter.getter(self=) at AudioCodec.swift:171:26 [opt] 168 if status != noErr { 169 logger.warn("(status)") 170 } -> 171 return _converter! ^ 172 } 173 174 /// Encodes bytes data.

Additional context

No response

Relevant logs output

No response

ThibaultBee commented 1 year ago

Hi,

I tried to reproduce your issue with the example but could not face it. See the video above. output

Am I missing something?

nhat108 commented 1 year ago

For example: you are calling with your friend via Skype,... , and open app to go livestream -> that will crash. I think you need to upgrade lastest version of Hashinkit

ThibaultBee commented 1 year ago

I tried with the native recorder but it did not crash either. Could test it?

ThibaultBee commented 1 year ago

Have you tried directly with latest version of HaishinKit?

ThibaultBee commented 1 year ago

Hi,

The HaishinKit version has been updated on the main branch. Could you test that it fixes this issue?

ThibaultBee commented 8 months ago

Stalled issue -> Closing. Feel free to repoen the issue if you still need support.