Beispiel #1
0
        public void SendImageToPeer()
        {
            string peer = peerUserBox.text;

            if (string.IsNullOrEmpty(peer))
            {
                Debug.LogError("You must enter peer id in the input textfield!");
                messageDisplay.AddTextToDisplay("You must enter peer id in the input textfield!", Message.MessageType.Error);
                return;
            }
            else
            {
                ImageMessage message = rtmClient.CreateImageMessageByMediaId(ImageMediaId);
                rtmClient.SendMessageToPeer(
                    peerId: peer,
                    message: message,
                    options: _MessageOptions
                    );
            }
        }