The invention provides a dynamic self-adapting method for the connection of a Web RTC (
Real Time Communication)
client, belonging to the technical fields of a Web RTC, an
HTML (
Hypertext Markup Language) 5 web Socket and the like. An entity related by the method comprises a Web RTC
client, a browser and a real-time communication
server, wherein the Web RTC
client can support three connecting ways, including an HTTP (
Hyper Text Transport Protocol)
polling, an HTTP long connection and a Web Socket, and the HTTP long connection comprises an HTTP
stream; according to the method, the connecting way with lowest
delay of the HTTP
polling, the HTTP long connection and the Web Socket can be optimally selected, and the Web RTC client and the real-time communication
server are connected by using the connecting way with the lowest
delay. Under the premise of guaranteeing timeliness, the communication
delay can be reduced, the functions of the client can be enhanced, and the intelligence of the client can be improved.