Ejemplo n.º 1
0
        void ClientIDStreamIDUpdated(RealtimeAvatarVoiceModel model)
        {
            if (isOwnedLocally)
            {
                return;
            }

            // Connect the new audio stream
            ConnectAudioStream();
        }
Ejemplo n.º 2
0
        void SetModel(RealtimeAvatarVoiceModel model)
        {
            if (_model != null)
            {
                _model.clientIDStreamIDUpdated -= ClientIDStreamIDUpdated;
            }
            DisconnectAudioStream();

            _model = model;

            ConnectAudioStream();
            if (_model != null)
            {
                _model.clientIDStreamIDUpdated += ClientIDStreamIDUpdated;
            }
        }