2017-03-01 5 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」のサポートはまだシステムに実装されていませんでした。これが修正されると、私たちはあなたに最新の情報を提供します。

関連する問題