tkmn0 / SimpleWebRTCExample_iOS

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

Simple and powerful code :) #2

Closed saroar closed 5 years ago

saroar commented 5 years ago

hi try it but does work sound? do you know why? I am using this pod > 'GoogleWebRTC', '=1.1.24717' is that reason the audio sound does not work? do you know also who to work with callKit and PushKit? thanks for code

tkmn0 commented 5 years ago

Thanks for reading my code & throwing your star on this repository :)

I am using this pod > 'GoogleWebRTC', '=1.1.24717' is that reason the audio sound does not work?

I think you are correct.
The WebRTC API may be different from that version. When I have time to check, I will try with that library not with my pre build framework.

do you know also who to work with callKit and PushKit?

Unfortunately, No, I don't.

Thanks!

saroar commented 5 years ago

after use this it still not sound this https://github.com/tkmn0/SimpleWebRTCExample_iOS/releases

tkmn0 commented 5 years ago

I will check it. Could you tell me your environment? (simulator & simulator ?)

saroar commented 5 years ago

simulator & iPhone 6

tkmn0 commented 5 years ago

hi I checked in my environment. (simulator & iPhone6) Actually, the volume was too soft, so I increased the remote audio track (check it out).

In addition, RTCFileVideoCapturer does not capture audio from mp4 file BUT captures mic audio. So, please allow to use mic on your PC when you run simulator.

saroar commented 5 years ago

@tkmn0 can we make it default max volume? does not work for me :(


2019-02-07 18:51:59.403031+0300 SimpleWebRTC[63139:6554546] [AudioHAL_Client] HALDefaultDevice.cpp:131:InstallServerListeners:  HALDefaultDevice::Initialize: couldn't add the default input device listener, Error: 1102 ()
2019-02-07 18:51:59.404949+0300 SimpleWebRTC[63139:6554546] [AudioHAL_Client] HALDefaultDevice.cpp:135:InstallServerListeners:  HALDefaultDevice::Initialize: couldn't add the default output device listener, Error: 1102 ()
2019-02-07 18:51:59.405194+0300 SimpleWebRTC[63139:6554546] [AudioHAL_Client] HALDefaultDevice.cpp:139:InstallServerListeners:  HALDefaultDevice::Initialize: couldn't add the default system output device listener, Error: 1102 ()
2019-02-07 18:51:59.405393+0300 SimpleWebRTC[63139:6554546] [AudioHAL_Client] HALDefaultDevice.cpp:143:InstallServerListeners:  HALDefaultDevice::Initialize: couldn't add the default shared output device listener, Error: 1102 ()
2019-02-07 18:51:59.467435+0300 SimpleWebRTC[63139:6554546] Error loading /Library/Audio/Plug-Ins/HAL/BartenderAudioPlugIn.plugin/Contents/MacOS/BartenderAudioPlugIn:  dlopen(/Library/Audio/Plug-Ins/HAL/BartenderAudioPlugIn.plugin/Contents/MacOS/BartenderAudioPlugIn, 262): no suitable image found.  Did find:
    /Library/Audio/Plug-Ins/HAL/BartenderAudioPlugIn.plugin/Contents/MacOS/BartenderAudioPlugIn: mach-o, but not built for iOS simulator
2019-02-07 18:51:59.469513+0300 SimpleWebRTC[63139:6554546] Cannot find function pointer New_SHP_PlugIn for factory <CFUUID 0x600000ec9be0> 834FC054-C1CC-11D6-BD01-00039315CD46 in CFBundle/CFPlugIn 0x7f9ff8d22b90 </Library/Audio/Plug-Ins/HAL/BartenderAudioPlugIn.plugin> (bundle, not loaded)
2019-02-07 18:51:59.469834+0300 SimpleWebRTC[63139:6554546] [AudioHAL_Client] AudioHardware.cpp:780:AudioObjectSetPropertyData:  AudioObjectSetPropertyData: no object with given ID 0
2019-02-07 18:51:59.470015+0300 SimpleWebRTC[63139:6554546] 80: Failed to set processVolumeScalar on device. Error: 560947818
2019-02-07 18:51:59.488569+0300 SimpleWebRTC[63139:6555925] [AudioHAL_Client] HALCADClient.cpp:438:GetPropertyData:  HALCADClient::GetPropertyData: unknown property
2019-02-07 18:51:59.489961+0300 SimpleWebRTC[63139:6555925] [AudioHAL_Client] HALCADClient.cpp:438:GetPropertyData:  HALCADClient::GetPropertyData: unknown property
2019-02-07 18:51:59.490199+0300 SimpleWebRTC[63139:6555925] [AudioHAL_Client] AudioHardware.cpp:875:AudioObjectAddPropertyListenerBlock:  AudioObjectAddPropertyListenerBlock: no object with given ID 0
2019-02-07 18:51:59.490280+0300 SimpleWebRTC[63139:6555925] [AudioHAL_Client] AudioHardware.cpp:875:AudioObjectAddPropertyListenerBlock:  AudioObjectAddPropertyListenerBlock: no object with given ID 0
2019-02-07 18:51:59.490384+0300 SimpleWebRTC[63139:6555925] [DDAgg] DefaultDeviceAggregate.cpp:737:BuildAggregate: Error finding valid input or output devices!
2019-02-07 18:51:59.490703+0300 SimpleWebRTC[63139:6555925] [AudioHAL_Client] AudioHardware.cpp:2692:AudioDeviceStop:  AudioDeviceStop: no device with given ID
2019-02-07 18:51:59.490935+0300 SimpleWebRTC[63139:6555925] [aqme] 318: error -66680 finding/initializing AQDefaultDevice
2019-02-07 18:51:59.495902+0300 SimpleWebRTC[63139:6555925] [aqme] 318: error -66680 finding/initializing AQDefaultDevice
2019-02-07 18:51:59.496108+0300 SimpleWebRTC[63139:6554602] [AudioHAL_Client] AudioHardware.cpp:2692:AudioDeviceStop:  AudioDeviceStop: no device with given ID
2019-02-07 18:51:59.496234+0300 SimpleWebRTC[63139:6554602] [aqme] 318: error -66680 finding/initializing AQDefaultDevice
2019-02-07 18:51:59.496355+0300 SimpleWebRTC[63139:6554602] 108: * * * NULL AQIONode object
2019-02-07 18:51:59.496159+0300 SimpleWebRTC[63139:6554546] [aurioc] 1029: failed: -10851 (enable 3, outf< 1 ch,  48000 Hz, Int16> inf< 1 ch,  48000 Hz, Int16>)
2019-02-07 18:51:59.500192+0300 SimpleWebRTC[63139:6554602] 771: Can't make UISound Renderer
2019-02-07 18:51:59.602427+0300 SimpleWebRTC[63139:6555925] [aqme] 318: error -66680 finding/initializing AQDefaultDevice
2019-02-07 18:51:59.602625+0300 SimpleWebRTC[63139:6555925] [aqme] 318: error -66680 finding/initializing AQDefaultDevice
2019-02-07 18:51:59.602769+0300 SimpleWebRTC[63139:6554546] [aurioc] 1029: failed: -10851 (enable 3, outf< 1 ch,  48000 Hz, Int16> inf< 1 ch,  48000 Hz, Int16>)
2019-02-07 18:51:59.708202+0300 SimpleWebRTC[63139:6555925] [AudioHAL_Client] AudioHardware.cpp:2692:AudioDeviceStop:  AudioDeviceStop: no device with given ID
2019-02-07 18:51:59.708424+0300 SimpleWebRTC[63139:6555925] [aqme] 318: error -66680 finding/initializing AQDefaultDevice
2019-02-07 18:51:59.708607+0300 SimpleWebRTC[63139:6555925] [AudioHAL_Client] AudioHardware.cpp:2692:AudioDeviceStop:  AudioDeviceStop: no device with given ID
2019-02-07 18:51:59.708766+0300 SimpleWebRTC[63139:6555925] [aqme] 318: error -66680 finding/initializing AQDefaultDevice
2019-02-07 18:51:59.708998+0300 SimpleWebRTC[63139:6554546] [aurioc] 1029: failed: -10851 (enable 3, outf< 1 ch,  48000 Hz, Int16> inf< 1 ch,  48000 Hz, Int16>)
2019-02-07 18:51:59.810768+0300 SimpleWebRTC[63139:6555925] [aqme] 318: error -66680 finding/initializing AQDefaultDevice
2019-02-07 18:51:59.810967+0300 SimpleWebRTC[63139:6555925] [aqme] 318: error -66680 finding/initializing AQDefaultDevice
2019-02-07 18:51:59.811193+0300 SimpleWebRTC[63139:6554546] [aurioc] 1029: failed: -10851 (enable 3, outf< 1 ch,  48000 Hz, Int16> inf< 1 ch,  48000 Hz, Int16>)
2019-02-07 18:51:59.914352+0300 SimpleWebRTC[63139:6555925] [AudioHAL_Client] AudioHardware.cpp:2692:AudioDeviceStop:  AudioDeviceStop: no device with given ID
2019-02-07 18:51:59.914522+0300 SimpleWebRTC[63139:6555925] [aqme] 318: error -66680 finding/initializing AQDefaultDevice
2019-02-07 18:51:59.914639+0300 SimpleWebRTC[63139:6555925] [AudioHAL_Client] AudioHardware.cpp:2692:AudioDeviceStop:  AudioDeviceStop: no device with given ID
2019-02-07 18:51:59.914742+0300 SimpleWebRTC[63139:6555925] [aqme] 318: error -66680 finding/initializing AQDefaultDevice
2019-02-07 18:51:59.914878+0300 SimpleWebRTC[63139:6554546] [aurioc] 1029: failed: -10851 (enable 3, outf< 1 ch,  48000 Hz, Int16> inf< 1 ch,  48000 Hz, Int16>)```
saroar commented 5 years ago

Hi everything is working fine after restart my mac thanks and sorry