Video push method and system
暂无分享,去创建一个
The invention provides a video push method. The method comprises the following steps: a client information list is acquired by a transmitting client from a business server, wherein information of all clients connected to the business server is stored in the client information list; the transmitting client is used to select a receiving client for receiving video data according to the client information list; the transmitting client is used to perform direct connection tests on the selected receiving client and record the test result; and the transmitting client is used to select corresponding method to push the video data to the receiving client according to the test result. The method of the invention has the following advantages that the server side supports high concurrent connection; both of the transmitting client and the receiving client maintains long connection with the server side through regular heartbeat, and related data can be acquired at any time; and the method can be used to support the situation that data transmission is performed between the clients through the UDP hole punching technology by bypassing the business server, so the stress of the business server can be reduced.