2017-03-01 59 views
0

我得到「傳入音頻呼叫」但是呼叫視頻Sinch視頻通話得到通知的音頻呼叫

提示:我使用(IOS SDK 3.10.1)SDK和SinchService

這裏是代碼:

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! 
} 

,我在SINSLazyCallClient加入這個

- (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]; 
    } 
} 

這裏是Localization.strings

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 %@"; 

回答

0

感謝您的反饋。我們仔細研究過,結果發現我們的系統還沒有實現對「SIN_INCOMING_VIDEO_CALL」和「SIN_INCOMING_VIDEO_CALL_DISPLAY_NAME」的支持。一旦這個問題得到解決,我們會及時更新。