| CPC H04L 67/141 (2013.01) [H04L 67/142 (2013.01); H04L 67/148 (2013.01)] | 16 Claims |

|
1. A connection method, applied to a data transmission system, wherein the data transmission system comprises a display apparatus and a client terminal, the client terminal is installed with a first screen-transmission application, the display apparatus is installed with a second screen-transmission application, the client terminal and the display apparatus is configured to perform data transmission through the first screen-transmission application and the second screen-transmission application, and the method comprises:
acquiring and displaying, by the display apparatus, a connection code through the second screen-transmission application, and publishing service information, wherein the service information comprises the connection code, available connection information indicated by the connection code, and available connection information indicated by the service information;
acquiring, by the client terminal, the connection code through the first screen-transmission application;
sending media data to the second screen transmission application through the first screen transmission application; and
displaying the media data on the display apparatus,
wherein acquiring, by the display apparatus, the connection code through the second screen-transmission application comprises:
determining whether the display apparatus is networkable, wherein the display apparatus is networkable when the display apparatus has access to the Internet, and the display apparatus is non-networkable when the display apparatus does not have access to the Internet;
in response to determining that the display apparatus is networkable, transmitting, by the display apparatus, the connection information to a server through the second screen-transmission application, and acquiring, by the display apparatus, through the second screen-transmission application, a connection code allocated by the server, wherein the connection code allocated by the server based on the connection information does not include the connection information; and
in response to determining that the display apparatus is non-networkable, generating, by the display apparatus, through the second screen-transmission application, a connection code, wherein the connection code generated by the display apparatus includes the connection information.
|