2017-03-01 5 views
0

Ich erhalte "Eingehende Audioanruf" aber der Anruf VideoSinch Videoanruf erhalten Benachrichtigung für Audio Anruf

Hinweis: Ich verwende (IOS SDK 3.10.1) SDK und SinchService.

hier ist der Code:

func startVideoCall(userId: String, isPrivate: Bool) -> SINCall? { 
     if let user = User.current { 
      let callingId = userId 
      if let callClient = self.callClient() { 
       let privateString = isPrivate ? VoipCallConstants.Parameters.PrivateTrue : VoipCallConstants.Parameters.PrivateFalse 
       let headers:[String: String] = [VoipCallConstants.Parameters.Private:privateString] 
       let call = callClient.callUserVideo(withId: callingId, headers: headers) 
       return call 
      } 
     } 
     return nil 
    } 


func callClient() -> SINCallClient? { 
     let appDelegate: AppDelegate = (UIApplication.shared.delegate as! AppDelegate) 
     return appDelegate.sinch?.callClient() 
    } 

class AppDelegate: UIResponder, UIApplicationDelegate{ 

    var sinch: SINService! 
    var push: SINManagedPush! 
} 

und i in SINSLazyCallClient hat dieses

- (id<SINCall>)callUserVideoWithId:(NSString *)userId { 
    return [self callUserVideoWithId:userId headers:@{}]; 
} 

- (id<SINCall>)callUserVideoWithId:(NSString *)userId headers:(NSDictionary *)headers { 
    if (self.proxee) { 
     return [self.proxee callUserVideoWithId:userId headers:headers]; 
    } else { 
     return [[SINSFailedCall alloc] initWithUserId:userId headers:headers]; 
    } 
} 

hier Localization.strings für Ihr Feedback

SIN_INCOMING_CALL = "Incoming audio call"; 
SIN_INCOMING_CALL_DISPLAY_NAME = "Incoming audio call from %@"; 
SIN_INCOMING_VIDEO_CALL = "Incoming video call"; 
SIN_INCOMING_VIDEO_CALL_DISPLAY_NAME = "Incoming video call from %@"; 

Antwort

0

Dank ist. Wir haben uns das angeschaut und es stellte sich heraus, dass die Unterstützung für "SIN_INCOMING_VIDEO_CALL" und "SIN_INCOMING_VIDEO_CALL_DISPLAY_NAME" noch nicht in unserem System implementiert ist. Wir werden Sie auf dem Laufenden halten, sobald dies behoben ist.

Verwandte Themen