Audio and video and IM, brother soldier summary

  • Client-client communication tool is the role of the socket server only for message forwarding. The message records are stored in the client's local database. Unless your company has a message synchronization function, the server must save it. If it is not necessary, the server is just a simple Forwarded role.
  • That is to say, the server does not matter what the message you send to it at all. The communication protocol is established by you and your Android colleagues. For example, if you send a normal text message. The definition type is text, and Android should also define it like this. It can be parsed. your data structure
  • The design logic of the client is: display from the database for the first time - send - package messages by protocol - receive - parse messages by protocol - display - local database backup.
  • Real-time messages such as voice and video. No backup is required. However, video and audio decompression should be considered to increase the transmission rate
  • A -> Server B-> Server... Of course, like the online status of friends, status changes, etc., this is pushed by the server. Because everyone is connected to the server. The server knows who is online and offline. The server will tell you whose status A change has occurred. The offline message is also sent by A to B. The server judges that B is not online, so it temporarily stores it. After B goes online, the server will push the temporarily stored message to B.
  • Audio and video can be built by yourself
  • Socket-io
  • Simple and easy to use, just build and transmit video streams by yourself
  • Because the company's chat project happened to be built by itself. Familiar with it
  • And the company's chat project can be done. It is very successful
  • Company chat is written in xmpp
  • Such sensitive data should not be handed over to third parties
  • If the data is encrypted and transmitted, the third party will not know
  • If it is just a third party, you will need to pay extra for many services if you want to expand.
  • If you want to do message migration server, you need to save
  • There are two ways to migrate ios. 1. icloud local backup and migration 2. server save migration
  • WeChat Chat History Migration: Settings - General - Chat History Backup and Migration

question:

1. When WeChat chat records are migrated, is the chat data transmitted through the local area network or through the server?

Guess you like

Origin blog.csdn.net/baidu_40537062/article/details/124339823
Recommended