facebook twitter hatena line email

Unity/Agora/voicechat assetstore

提供: 初心者エンジニアの簡易メモ
移動: 案内検索

agoraassetstore側

agoraインストール

  1. https://assetstore.unity.com/packages/audio/sound-fx/voices/agora-voice-sdk-for-unity-134505
  2. Assets/Agora-RTC-Pluginが作成されることを確認

デモ動作

  1. Assets/Agora-RTC-Plugin/examples/BasicやAdvancedの下のSceneを、Unityメインメニュー/File/BuildSettingのSceneInBuildに追加する
  2. Assets/Agora-RTC-Plugin/API-Example/AppIdInput/AppIdInputにAppIDとTokenなどを入れる
  3. Assets/Agora-RTC-Plugin/HomeSceneを開き動作させる。
  4. AppID入力フォームにデータが入ってることを確認して、BasicAudioCallSceneなどに移動できることを確認。

BasicAudioシーンで、JoinChannelした時にerr110なエラーが出る

OnError err: 110, msg: 
UnityEngine.Debug:Log (object)
Agora.Util.Logger:UpdateLog (string) (at Assets/Agora-RTC-Plugin/API-Example/Tools/Logger.cs:17)
Agora_RTC_Plugin.API_Example.Examples.Basic.JoinChannelAudio.UserEventHandler:OnError (int,string) (at Assets/Agora-RTC-Plugin/API-Example/examples/Basic/JoinChannelAudio/JoinChannelAudio.cs:182)
Agora.Rtc.RtcEngineEventHandlerNative/<>c__DisplayClass2_0:<OnEvent>b__0 () (at Assets/Agora-RTC-Plugin/Agora-Unity-RTC-SDK/Code/Impl/Private/Observer/RtcEngineEventHandlerNative.cs:37)
Agora.Rtc.AgoraCallbackQueue:Update () (at Assets/Agora-RTC-Plugin/Agora-Unity-RTC-SDK/Code/Tools/AgoraCallbackQueue.cs:53)

WebGLビルド時

Assets/Agora-RTC-Plugin/API-Example/examples/Advanced/SpatialAudioWithMediaPlayer/SpatialAudioWithMediaPlayer.cs(232,24): error CS0246: The type or namespace name 'VideoSurface' could not be found (are you missing a using directive or an assembly reference?)

なエラーが出る。