0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

agora.io SignalingSDKで複数のChannelにログインする方法

Last updated at Posted at 2019-01-23

概要

agora.io SignalingSDK(iOS/Android)のver1.4.0から複数のインスタンス生成が可能になりました。
これにより、複数のChannelにログインする事が可能です。

※Signaling SDK は、サポート終了しております。後継サービスとして、[RTM (Real-time Messaging) SDK] (https://docs.agora.io/en/Real-time-Messaging/product_rtm?platform=All%20Platforms) が提供されております。RTM SDK は、Signaling SDK に比べ、 安定性や信頼性が向上しております。

サンプルコード

インスタンス生成部分について抜粋して記載します。

iOS

if isFirstInstance == true {
  agoraSignalKit = AgoraAPI.getInstanceWithoutMedia(KeyCenter.AppId)
} else {
  agoraSignalKitSub = AgoraAPI.createSigInstance(KeyCenter.AppId)
}

Android

signal = AgoraAPIOnlySignal.getInstance(application, agoraAppId)
signal2 = AgoraAPIOnlySignal.createInstance(application, agoraAppId)

最後に

agora.ioに関するお問い合わせはこちらから
スクリーンショット 0001-08-15 13.41.56.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?