iOS SDK / API, Missing Notifications for WebRTC
Hello,
I want to build a iOS App for WebRTC Calls.
But when i follow the Documentation i have the different Observers. But this are not working.
// Register for Notifications ..
[[NSNotificationCenter defaultCenter] addObserver:viewController selector:@selector(didCallSuccess:) name:kRTCServiceDidAddCallNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:viewController selector:@selector(didUpdateCall:) name:kRTCServiceDidUpdateCallNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:viewController selector:@selector(statusChanged:) name:kRTCServiceCallStatsNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:viewController selector:@selector(didRemoveCall:) name:kRTCServiceDidRemoveCallNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:viewController selector:@selector(didAllowMicrophone:) name:kRTCServiceDidAllowMicrophoneNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:viewController selector:@selector(didRefuseMicrophone:) name:kRTCServiceDidRefuseMicrophoneNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didAddLocalVideoTrack:) name:kRTCServiceDidAddLocalVideoTrackNotification object:nil];
When i check the API Documentation no Constants are available for this Notifications??
When i search in the API Documentation no RTC Manager are available? Only RTC Service!
When i check the RTC Service the only Available Notification is...
RTC service available notifications
- kRTCServiceCallStatsNotification:
notification sent when new statistics are available
you can explain it to me?
Thanks
-
Hi Raffael,
New WebRTC guide will be published soon as well as a better API documentation in order to help you understanding in details how to develop a voice and video based application.
Just to sum-up:
- Incoming calls are managed by Callkit and so CallKit should be initialized. Only kRTCServiceDidUpdateCallNotification will be then fired once call has been accepted (CallKit screen)
- Outgoing calls are managed through kRTCServiceDidAddCallNotification, kRTCServiceDidUpdateCallNotification
Regards,
Olivier
Please sign in to leave a comment.
Comments
1 comment