You can upgrade an audio call to a video call by calling the enableLocalVideo(YES) method of the StringeeCall object:
[stringeeCall enableLocalVideo:YES];
Stringee also provides APIs to make it easy to send an upgrade request from a client to another. Follow the instructions below to implement a full upgrade flow:
[stringeeCallA enableLocalVideo:YES];
NSDictionary *callInfo = @{
@"requestVideo" : @(YES)
};
[stringeeCallA sendCallInfo:callInfo];
- (void)didReceiveCallInfo:(StringeeCall *)stringeeCall info:(NSDictionary *)info {
}
- (void)didReceiveCallInfo:(StringeeCall *)stringeeCall info:(NSDictionary *)info {
BOOL requestVideo = [[info objectForKey:@"requestVideo"] boolValue];
if (requestVideo) {
[stringeeCallB enableLocalVideo:YES];
}
}