tkmn0 / SimpleWebRTCExample_iOS

Simple example for WebRTC on iOS written in swift5
MIT License
182 stars 49 forks source link

Crash on call button , after web socket connected #14

Closed FaizalMalik closed 4 years ago

FaizalMalik commented 4 years ago

Thanks for the code.!

I am able to run the code and run on my device and simulator. Everything works fine up to connect.

After that, When I click call button on the phone, the simulator will crash and throwing an error

No factory registered for id <CFUUID 0x60000093ff20> F8BB1C28-BAE8-11D6-9C31-00039315CD46 succeed to set local answer SDP

Simulator Screen Shot - iPhone 11 - 2020-01-17 at 20 01 41

Screen Shot 2020-01-17 at 8 02 01 PM
tkmn0 commented 4 years ago

Hi, Thanks for opening this issue :)

I will check it within a few days. Could you tell me your environment ? (e.g. iOS version, iPhone version, and so on)

FaizalMalik commented 4 years ago

@tkmn0 iOs version 13.3, simulator iphone 11 iOs version 13.3, iPhone 8plus Xcode 11.3

Also, I would like to know, whether the audio and video work fine with this configuration? because I couldn't run and check the audio streaming.. due to this issue ..!

tkmn0 commented 4 years ago

HI, I'm sorry for the late replay. I got same error with connection between iPhoneXS and simulator. However still I don't have any solution.

I guess this is WebRTC.framework bug for simulator. (coz there are some log outputs and issues, RTCPixelbuffer, AudioPlayer)

So, I will update framework and try again.

FaizalMalik commented 4 years ago

@tkmn0 Suppose if I run the code successfully, will it transfer the audio as well as video on other side ?

I am asking this question, As I couldn't run the app ! (I have only one iPhone).

tkmn0 commented 4 years ago

Suppose if I run the code successfully, will it transfer the audio as well as video on other side ?

Yes it will :) This code is example for audio, video, and data bidirectional transmission with WebRTC.

nkllkc commented 4 years ago

Is there any change on this? :) Thank you!

tkmn0 commented 4 years ago

@nkllkc Not yet. Thanks :)

gnik2036 commented 4 years ago

Is there any change on this? it still make a big issue :( Thank you!

tkmn0 commented 4 years ago

Hi :) Unfortunately, not yet. However, if You want to establish connection between simulator and iPhone right now, You can try to update frame work.

By the way, I think it's better to use this pod. So, first, I will update current Framework version, second, I will change to use the GoogleWebRTC pod.

tkmn0 commented 4 years ago

Hey guys. Last weekend, I rebuild WebRTC.framework and tried to connect simulator and my iPhone. In the iPhone side, it was fine, but in the simulator side, the remote video view rendered red screen.

According to this post, this is WebRTC.framework side bug.

Instead of WebRTC.framework, I have two plans or simulator.

  1. SFSafariView + web page for simulator.
  2. Create simple web app for testing.
tkmn0 commented 4 years ago
  1. updated framework.
  2. use vp8 or vp9 codec for simulator

I already merged it to master. :)