Data transmission method and apparatus, electronic device, and storage medium

By utilizing historical connection establishment information and the QUIC transmission protocol, the network communication connection between the terminal device and the server is optimized, solving the problem of multiple and long connection establishment times under the WebRTC method, and improving the startup speed and user experience of cloud games.

WO2024212774A1PCT designated stage expired Publication Date: 2024-10-17DOUYIN VISION CO LTD

Patent Information

Application Number
PCT/CN2024/082653
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-12
Filing Date
2024-03-20
Publication Date
2024-10-17

AI Technical Summary

Technical Problem

In real-time communication scenarios, the transmission of data and control instructions based on WebRTC has the problem of multiple connection establishments between the terminal device and the server and a long single connection establishment time, resulting in poor user experience, especially in cloud gaming scenarios. The loading time of the first frame is too long, which affects user satisfaction.

Method used

By using historical connection establishment information to establish network communication connections, the number of communication connection establishment times is reduced, and control instructions and audio and video data streams are transmitted in the same network communication connection. QUIC transmission protocol and codec optimization are used to prioritize the transmission of key frame data to improve Transmission efficiency and user experience.

Benefits of technology

It significantly shortens the network communication connection establishment time between the terminal device and the server, reduces the number of communication connection establishment times, improves the startup speed and user experience of cloud games, and optimizes the loading and running process of applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024082653_17102024_PF_FP_ABST
    Figure CN2024082653_17102024_PF_FP_ABST
Patent Text Reader

Abstract

The present disclosure can provide a data transmission method and apparatus, an electronic device, and a storage medium. The data transmission method comprises: establishing a network communication connection with a terminal device according to historical connection establishment information, wherein the historical connection establishment information is historical information of a connection between a server and the terminal device; receiving a control instruction from the terminal device on the basis of the network communication connection, wherein the control instruction is used for controlling the process of a first application on the server, and the first application is a version of an application on the server; and on the basis of the network communication connection, pushing to the terminal device a data stream corresponding to the control instruction, wherein the data stream is used for the loading and / or running of a second application on the terminal device, and the second application is a version of the application on the terminal device.
Need to check novelty before this filing date? Find Prior Art

Description

Data transmission method and device, electronic device, and storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based on and claims priority to a Chinese application with application number 202310389329.0, application date April 12, 2023, entitled “Data transmission method and device, electronic device, storage medium”. The disclosed content of the Chinese application is hereby introduced as a whole into this application. Technical Field

[0003] The present disclosure relates to the field of communications, and more specifically, to a data transmission method and apparatus, an electronic device, and a storage medium. Background Art

[0004] In real-time communication scenarios (for example, cloud gaming, live streaming, and video conferencing), it is generally implemented based on WebRTC (Web Real-Time Communication) technology to transmit data and control instructions.

[0005] Summary of the Invention

[0006] To address the issue of real-time communication based on WebRTC affecting the loading or running of applications on terminal devices, the present disclosure provides a data transmission method and apparatus, an electronic device, and a storage medium to achieve technical goals such as optimizing the user experience.

[0007] To solve one or more problems in related technologies, the present disclosure can provide a data transmission method, which is applied to a server. The data transmission method includes:

[0008] Establishing a network communication connection with the terminal device based on historical connection information, where the historical connection information is historical information of the connection between the server and the terminal device;

[0009] receiving a control instruction from the terminal device based on the network communication connection, the control instruction being used to control a process of a first application on the server, the first application being a version of the application on the server;

[0010] A data stream corresponding to the control instruction is pushed to the terminal device based on a network communication connection. The data stream is used to load and / or run a second application on the terminal device. The second application is a version of the application on the terminal device.

[0011] To solve one or more problems in the related art, the present disclosure further provides a data transmission method for a terminal device, the data transmission method comprising:

[0012] Establishing a network communication connection with the server, where the network communication connection is established based on historical connection information stored in the server, where the historical connection information is historical information about connections between the server and the terminal device;

[0013] sending a control instruction to the server based on the network communication connection, the control instruction being used to control the process of a first application on the server, the first application being a version of the application on the server;

[0014] A data stream corresponding to the control instruction is received from the server based on a network communication connection. The data stream is used to load and / or run a second application on the terminal device. The second application is a version of the application on the terminal device.

[0015] To solve one or more problems in the related art, the present disclosure further provides a data transmission device, which is applied to a server. The data transmission device includes:

[0016] A first connection module is configured to establish a network communication connection with a terminal device based on historical connection information, where the historical connection information is historical information of connections between the server and the terminal device;

[0017] A first receiving module is configured to receive a control instruction from a terminal device based on a network communication connection, the control instruction being used to control a process of a first application on the server, the first application being a version of the application on the server;

[0018] The data push module is used to push a data stream corresponding to the control instruction to the terminal device based on a network communication connection. The data stream is used to load and / or run a second application on the terminal device. The second application is the version of the application on the terminal device.

[0019] To solve one or more problems in the related art, the present disclosure further provides a data transmission device for use in a terminal device, the data transmission device comprising:

[0020] A second connection module is used to establish a network communication connection with the server, where the network communication connection is established based on historical connection information in the server, where the historical connection information is historical information of connections between the server and the terminal device;

[0021] an instruction sending module, configured to send a control instruction to the server based on a network communication connection, wherein the control instruction is used to control a process of a first application on the server, where the first application is a version of the application on the server;

[0022] The data receiving module is used to receive a data stream corresponding to the control instruction from the server based on a network communication connection. The data stream is used to load and / or run the second application on the terminal device. The second application is the version of the application on the terminal device.

[0023] In order to solve one or more problems existing in the related art, the present disclosure may also provide an electronic device, including a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the data transmission method described in any embodiment of the present disclosure.

[0024] In order to solve one or more problems existing in the related art, the present disclosure may also provide a storage medium storing computer-readable instructions, which, when executed by one or more processors, enables the one or more processors to execute the data transmission method described in any embodiment of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] FIG1 shows a flow chart of a data transmission method applied to a server in one or more embodiments of the present disclosure.

[0026] FIG2 shows a schematic diagram of a process of pushing a data stream corresponding to a control instruction to a terminal device based on a network communication connection in one or more embodiments of the present disclosure.

[0027] FIG3 shows a schematic flow chart of controlling the process of a first application based on a control instruction in one or more embodiments of the present disclosure.

[0028] FIG4 is a schematic diagram showing an interaction process between a terminal device and a server in one or more embodiments of the present disclosure.

[0029] FIG5 shows a flow chart of a data transmission method applied to a terminal device in one or more embodiments of the present disclosure.

[0030] FIG6 is a schematic diagram showing the structure of a data transmission device integrated in a server in one or more embodiments of the present disclosure.

[0031] FIG7 is a schematic diagram showing the structure of a data transmission device integrated into a terminal device in one or more embodiments of the present disclosure.

[0032] FIG8 is a schematic diagram showing the internal structure of an electronic device in one or more embodiments of the present disclosure. DETAILED DESCRIPTION

[0033] In the process of real-time communication between terminal devices and servers based on WebRTC, related technologies need to use different communication connections accordingly in the process of transmitting different types of content. However, the more times communication connections are established and the longer it takes to establish a single communication connection, the longer the total time it takes to establish a connection between the terminal device and the server. This situation often affects the loading and / or operation of the application on the terminal device. In particular, there is a problem of long loading time for the first frame, which seriously affects the user experience.

[0034] Compared with the related art, the embodiment of the present disclosure can significantly shorten the time taken to establish a network communication connection between the terminal device and the server based on historical connection information. Based on the same established network communication connection, control instructions are sent from the terminal device to the server and data streams are pushed from the server to the terminal device. It can be seen that the embodiment of the present disclosure can also reduce the number of times communication connections are established. Therefore, compared with the related art, the present disclosure significantly shortens the total time of the connection process, thereby optimizing the loading and / or running process of the second application on the terminal device, improving the user experience, and improving user satisfaction.

[0035] In related technologies, real-time communication based on WebRTC has problems such as multiple connection attempts between terminal devices and servers and long single connection times, resulting in a poor user experience. Taking the network transmission solution for cloud gaming as an example, it is generally necessary to establish a P2P (peer-to-peer) connection based on WebRTC to transmit game images over the network, and to establish a Data Channel (data channel) connection to transmit control instructions. It can be seen that the network transmission solution of related technologies requires the use of different communication connections in different interaction processes. It has the problems of long single connection times and a large number of connection attempts, resulting in multiple interactions between terminal devices and servers and a long total connection time.

[0036] Cloud gaming is a type of game based on cloud computing. In the cloud gaming operation mode, the operating entity of the game program and the entity presenting the game screen are separated; for example, the operating entity of the game program is generally a server, and the entity presenting the game screen is generally a terminal device. The operating entity of the game program is used to render the game screen, and then sends the rendered game screen-related data to the game screen presenting entity through the network; wherein, in addition to transmitting the game screen-related data through the network, game-related control instructions are often also transmitted. In the cloud gaming scenario, it is necessary to create a corresponding network communication connection before transmitting instructions, and it is necessary to create a corresponding network communication connection before transmitting data streams. Especially when the cloud game is started and when the network is restored after an interruption during the operation of the cloud game, the network transmission solution based on WebRTC in the related art will cause the startup and operation of the cloud game to be greatly affected, resulting in poor cloud game user experience, low user satisfaction with cloud games, and other problems. In view of this, the present disclosure provides a data transmission method and device, an electronic device, and a storage medium. The various embodiments of the present disclosure are described in detail below.

[0037] As shown in FIG1 , one or more embodiments of the present disclosure provide a data transmission method, which is applied to a server. The data transmission method includes but is not limited to steps S101 to S103 .

[0038] Step S101: establishing a network communication connection with a terminal device according to historical connection establishment information, where the historical connection establishment information is historical information of connections between the server and the terminal device.

[0039] The historical connection information specifically involved in this embodiment may include, for example, but is not limited to, a terminal device ID (Identity document), a terminal device IP (Internet Protocol) address, and terminal device configuration information.

[0040] The terminal device involved in this embodiment may include but is not limited to one or more terminals such as smart phones, tablet computers, PCs (Personal Computers), televisions, wearable devices, etc.

[0041] In one or more embodiments of the present disclosure, a network communication connection is established with a terminal device based on historical connection information, including: the server can query the historical connection information with the connection parameters sent by the terminal device. If historical connection information matching the connection parameters is queried, it is determined that the terminal device has established a connection with the server, then the connection is successful and there is no need to reply to the connection parameters; however, if historical connection information matching the connection parameters is not queried, it is determined that the terminal device has not established a connection with the server, then new connection parameters are replied, and the connection parameters include handshake information.

[0042] The network communication connection between the terminal device and the server involved in this embodiment is specifically Web Transport, which helps to reduce the time spent in starting the application on the terminal device and establishing the connection with the server.

[0043] 4 , the specific process of establishing a network communication connection between the terminal device and the server in this embodiment may include but is not limited to the following steps.

[0044] S401: The terminal device queries historical information of connections with the server.

[0045] S402. The terminal device sends QUIC (Quick UDP Internet Connection) Transport connection parameters to the server based on the historical connection information it has found with the server. The connection parameters include, for example, config_id, transport_parameters, idle_timeout, and max_stream_number. config_id (configuration identifier) ​​indicates the public key information used for handshaking between the terminal device and the server; transport_parameters (transmission parameters) indicate the cached transmission parameters of historical connections, such as the initial window size; idle_timeout indicates the idle timeout; if the connection is idle for longer than the idle_timeout without data interaction, the connection is automatically disconnected; and max_stream_number indicates the maximum number of multiplexed data streams. Data streams exceeding this number cannot be successfully created in a single connection.

[0046] S403: The server queries the terminal device's historical connection information. If historical connection information matching the connection parameters is found, it is determined that the terminal device has previously connected to the server, indicating a successful connection. If historical connection information matching the connection parameters is not found, it is determined that the terminal device has not previously connected to the server.

[0047] S404. The server responds to the QUIC Transport connection establishment, which may include: if there is no historical connection establishment information, responding with new connection parameters; if there is historical connection establishment information, the connection is successful.

[0048] S411. The terminal device sends a QUIC Transport connection establishment request to the server.

[0049] S412, QUIC Transport responds with a successful connection.

[0050] Step S102: receiving a control instruction from a terminal device based on a network communication connection, where the control instruction is used to control a process of a first application on a server, where the first application is a version of an application on the server.

[0051] The process referred to in the present disclosure specifically refers to an operation activity of a program in a terminal device on a certain data set, and is the basic unit for resource allocation by the operating system on the terminal device.

[0052] In this embodiment, the content transmitted over the network includes control instructions, which may be control instructions for live broadcasting, video conferencing, or cloud gaming. Taking cloud gaming as an example, the control instructions in this embodiment may include but are not limited to game start (Game Start) instructions, game operation instructions, etc.

[0053] Taking game operation instructions as an example, the way in which control instructions are triggered may include but is not limited to user screen clicks, rotations, clarity selections, and other operations.

[0054] Taking the game start instruction as an example, this embodiment can greatly shorten the time taken to load the first frame of the cloud game, so this embodiment can greatly improve the startup speed of the cloud game.

[0055] As shown in FIG. 4 , step S102 in the embodiment of the present disclosure may include but is not limited to steps S421 to S424 .

[0056] S421. The terminal device creates a bidirectional instruction stream based on the user's operation and sends the instruction to the server. The user operation may be, for example, a screen click, etc. The process of creating a bidirectional instruction stream includes: creating a Bidirection Stream (bidirectional reliable stream) object based on the established network communication connection.

[0057] Among them, Bidirection Stream (bidirectional reliable stream) refers to a data stream that can be sent and received by both the terminal device and the server.

[0058] In an optional embodiment of the present disclosure, step S421 can be executed simultaneously with step S411, which helps to further shorten the instruction interaction time.

[0059] S422: The server creates a two-way instruction stream object and responds to the above-mentioned user operations such as screen clicks with instruction results.

[0060] S423: The server responds with the command result. When a command needs to be transmitted between the terminal device and the server, the terminal device and the server send and receive data via a bidirectional reliable stream.

[0061] S424: The subsequent command interaction process can then proceed. The present disclosure can be used in scenarios such as live streaming, video conferencing, or cloud gaming. In a cloud gaming scenario, taking the start command as an example, after receiving the start command, the server starts the local game and executes the game progress collection process of audio and video information described later. Taking the end (Game Stop) command as an example, after receiving the end command sent by the terminal device, the server stops the audio and video push stream and closes the game process.

[0062] Step S103: Pushing a data stream corresponding to the control instruction to the terminal device based on the network communication connection. The data stream is used to load and / or run a second application on the terminal device. The second application is a version of the application on the terminal device.

[0063] In order to better implement the functions of the application, the embodiment of the present disclosure runs a first application on the server and a second application on the terminal device.

[0064] The data stream in this embodiment specifically includes an audio and video data stream, and the content transmitted over the network includes an audio and video data stream.

[0065] The terminal device is equipped with a separate first codec module, which is used to decode the received data stream to decode the audio and video information. The first codec module may include an encoder and a decoder.

[0066] A second application may be installed on the terminal device. The application involved in this embodiment may be, for example, a cloud gaming program, a video conferencing program, or a live broadcast program.

[0067] The present disclosure can transmit both control instructions and audio and video data streams based on one network communication connection. The present disclosure can reuse channels created by the same network communication connection, avoiding the problem of establishing multiple network communication connections for transmitting different content in related technologies.

[0068] As shown in FIG. 2 , in one or more optional embodiments of the present disclosure, a data stream corresponding to a control instruction is pushed to a terminal device based on a network communication connection, including but not limited to steps S201 to S203 .

[0069] Step S201 : determining audio and video information, where the audio and video information is audio and video information in a process of a first application program running according to a control instruction, and the audio and video information includes audio and video.

[0070] In this embodiment, the audio and video information is determined by collecting audio and video information; the audio and video information is the audio and video information in the process of the first application program running according to the control instruction.

[0071] The audio and video information in this embodiment is specifically the audio and video information of the first application running on the server, and the audio and video information is collected in real time.

[0072] Step S202: Create a transport stream based on the audio and video information, where the data stream includes the transport stream.

[0073] In this embodiment, audio and video information is used to create a multi-frame transmission stream; wherein the data stream is specifically a multi-frame unidirectional transmission stream.

[0074] The unidirectional transmission stream may include, for example, a video transmission stream and an audio transmission stream, and / or an audio-video mixed stream.

[0075] Step S203: Push the transport stream to the terminal device based on the network communication connection.

[0076] In this embodiment, the server pushes a multi-frame unidirectional transmission stream to the terminal device based on a network communication connection.

[0077] The above-mentioned embodiments of the present disclosure create a unidirectional transmission stream for transmission based on the collected audio and video. The unidirectional transmission stream is more suitable for network transmission. This method helps to improve the efficiency of audio and video information transmission.

[0078] As shown in Figure 4, in one or more optional embodiments of the present disclosure, a transmission stream is created based on audio and video information, including: encoding the audio and video information into a first transmission stream and a second transmission stream; the first transmission stream is used to be transmitted to the terminal device based on a reliable transmission method, and the second transmission stream is used to be transmitted to the terminal device based on an unreliable transmission method, and the transmission stream includes the first transmission stream and the second transmission stream.

[0079] The first transmission stream includes a plurality of data packets for transmission, and the second transmission stream includes a plurality of data packets for transmission.

[0080] In this embodiment, the server side is configured with a separate second codec module, and the second codec module is used to encode the collected audio and video information.

[0081] Specifically, the second codec module of this embodiment can be used to encode audio and video information into a first transport stream and a second transport stream. The encoding process includes a data compression process of the audio and video information. The data format of the first transport stream and the second transport stream can be, for example, AVI, H265, etc. The second codec module includes an encoder and a decoder.

[0082] Based on the Web Transport transmission solution, this embodiment can effectively avoid the coupling problem between the transmission protocol and the codec protocol existing in WebRTC, thereby enabling the transport layer optimization and audio and video codec encapsulation optimization to be performed independently.

[0083] By integrating a transmission strategy that combines reliable transmission with unreliable transmission, the present invention can ensure that the first transmission stream is reliably transmitted from the server to the terminal device, and the second transmission stream is transmitted from the server to the terminal device as much as possible, giving priority to ensuring the smoothness of the video and discarding data packets with low importance. The greatest advantage of this method is that even if the network environment is unstable, for example, the network quality suddenly deteriorates, this embodiment can give priority to ensuring that the first transmission stream is transmitted from the server to the terminal device, thereby maximizing the normal presentation of the terminal device's game screen.

[0084] As shown in Figure 4, in one or more optional embodiments of the present disclosure, the first transmission stream is an I-frame (Intra coded frames) unidirectional transmission stream, and the I-frame transmission stream is used to be transmitted to the terminal device based on the first transmission protocol; the second transmission stream is a P-frame (Predictive coded frames) unidirectional transmission stream, and the P-frame transmission stream is used to be transmitted to the terminal device based on the second transmission protocol. Wherein, the priority of the first transmission protocol is higher than the priority of the second transmission protocol, which means that the priority of the I-frame unidirectional transmission stream transmission is higher than the priority of the P-frame unidirectional transmission stream transmission. Wherein, the audio and video information is encoded in a manner of setting several P frames after an I frame, such as an encoding output sequence similar to IPPPIPPP.

[0085] For the server, the I-frame unidirectional transmission stream and the P-frame unidirectional transmission stream in this embodiment are both unidirectional transmission streams from the server to the terminal device.

[0086] More specifically, this embodiment can transmit data streams and control instructions through QUIC (Quick UDP Internet Connection) Transport, where UDP refers to User Datagram Protocol.

[0087] This embodiment transmits the I-frames output by the second codec module via the highest-priority QUIC Unidirection Stream (a unidirectional reliable stream), thereby ensuring the highest-priority and reliable transmission of I-frames, which are key frames, in the user's limited network. For data streams (P-frames) that are not of the highest priority, this embodiment uses a best-effort delivery approach, performing low-priority transmission (i.e., low-priority transmission) or discarding them in the user's limited network. This embodiment transmits the P-frames output by the second codec module via the second-priority QUIC Datagrams (unreliable data packets).

[0088] This embodiment can still meet the terminal device's playback needs in the special case where the terminal device only receives I frames, so as to improve the application experience in poor network environments, such as improving the experience of cloud games, video conferencing or live broadcast scenarios.

[0089] For the terminal device, the received P frame is processed by the jitter buffer and sorted before being sent to the decoder in the first encoding and decoding module. After receiving the P frame, the decoder will decode it with reference to the I frame and then render it for display.

[0090] In addition, the method based on prioritizing the transmission of I frames can ensure the smoothness of the cloud game screen of the terminal device, thereby avoiding the problem of cloud game screen freeze that is easily caused in related technologies.

[0091] As shown in FIG. 4 , step S103 in this embodiment may include but is not limited to steps S431 to S472 .

[0092] S431. The server creates and sends an I-frame unidirectional transmission stream.

[0093] S432: The terminal device creates a data channel for the I frame.

[0094] The server writes the video I-frame data output by the encoder into the created unidirectional stream, and the web transport protocol stack is responsible for sending it out; the terminal device passively creates a unidirectional stream data channel after receiving the data received by this stream.

[0095] S441. The server creates a P-frame unidirectional transmission stream and sends it.

[0096] S442: The terminal device creates a data channel for the P frame.

[0097] S451. The server collects audio and video information and encodes the collected audio and video information.

[0098] S461. The server encodes the audio and video information into I frames and then sends them to the terminal device.

[0099] S462: After receiving the I frame, the terminal device sends the I frame to the decoder.

[0100] S471. The server encodes the audio and video information into P frames and then sends them to the terminal device.

[0101] S472. After receiving the P frame, the terminal device sends it to the jitter buffer, sorts it according to sep (bucket sort), and then sends it to the decoder.

[0102] As shown in FIG3 , in one or more optional embodiments of the present disclosure, the data transmission method further includes but is not limited to steps S301 to S302 .

[0103] Step S301: converting the control instruction into a local instruction, where the local instruction is an instruction executed in the process of the first application program.

[0104] The local instructions in this embodiment refer to instructions that can be directly executed in the process of the first application without being parsed.

[0105] Step S302: Control the process of the first application program using local instructions.

[0106] During specific implementation, this embodiment may send the local instructions to the process of the first application running on the server, and execute the local instructions in the process of the first application.

[0107] Based on the method of converting the control instruction into the local instruction of the server, the present disclosure can also directly send the local instruction to the process of the first application, thereby significantly improving the effectiveness and reliability of the execution of the control instruction.

[0108] In one or more optional embodiments of the present disclosure, the data transmission method further includes: sending a specified instruction to the terminal device, where the specified instruction is used to control the state of the second application.

[0109] The server sends specified instructions to the terminal device. For example, the server may ask the terminal device to change decoding parameters, and the server may notify the terminal device of information in real time, such as the transfer of multi-person control and the mute of voice in the entire venue; the server may send the location information of the cloud game instance to the terminal device, etc.

[0110] In an optional embodiment of the present disclosure, receiving control instructions from a terminal device based on a network communication connection includes: receiving control instructions from the terminal device based on a third transmission protocol; the data transmission method also includes: receiving file packages from the terminal device based on a fourth transmission protocol, and multiple file packages form a file uploaded by the terminal device; wherein the priority of the second transmission protocol is higher than the priority of the third transmission protocol, and the priority of the third transmission protocol is higher than the priority of the fourth transmission protocol.

[0111] Preferably, the first transmission protocol is a unidirectional reliable stream transmission protocol; and / or the second transmission protocol is an unreliable datagram transmission protocol; and / or the third transmission protocol is a bidirectional reliable stream transmission protocol; and / or the fourth transmission protocol is a network transmission sending stream transmission protocol. In this embodiment, the unidirectional reliable stream transmission protocol is, for example, QUIC Unidirection Stream, the unreliable datagram transmission protocol is, for example, QUIC Datagrams, the bidirectional reliable stream transmission protocol is, for example, QUIC Bidirection Stream, and the network transmission sending stream transmission protocol is, for example, WebTransportSendStream.

[0112] Based on the above-mentioned multiple different transmission protocols to transmit multiple different data, the present disclosure can reliably ensure the transmission of I frame transmission stream, P frame transmission stream, control instructions and files in order from high to low priority, further optimizing the loading and / or operation of the application on the terminal device.

[0113] Specifically, the process of the terminal device uploading a file may include: S481, the terminal device creates a file transmission stream as needed. S482, the terminal device uploads the file.

[0114] Taking the cloud gaming scenario as an example, the terminal device sends game archive files, game account login-free files, etc. to the server; the server sends game screenshots, game archive files, etc. to the terminal device.

[0115] In this embodiment, a file is uploaded from the terminal device to the server via the WebTransportSendStream (network transport send stream) with the lowest priority.

[0116] Among them, this embodiment can transmit file packages through an additional transmission channel to realize the function of terminal equipment transmitting files to the server; of course, based on the present disclosure, it can also realize the function of the server pushing content to the terminal equipment.

[0117] The present disclosure can also realize file transfer functions in cloud gaming scenarios, enriching the functional applications in cloud gaming scenarios.

[0118] In combination with the above-mentioned embodiments, the embodiments of the present disclosure can specifically transmit control instructions and specified instructions through QUIC Bidirection Stream (bidirectional reliable stream) to realize the interactive function of instructions between the terminal device and the server.

[0119] In some embodiments, for example, in extreme network conditions such as when the network environment quality of the terminal device is very poor, the transmission process of the instruction can be delayed to ensure that the key frames of the video are played on the terminal device.

[0120] The disclosed embodiment divides the priorities of audio and video data streams, control instructions and files to ensure the continuous and stable operation of the cloud gaming screen of the terminal device based on the data stream with higher priority, and realizes the interactive function of the control instructions based on the secondary priority. On the basis of the above functions, it can also meet the user's file transfer function in the cloud gaming scenario.

[0121] As shown in FIG5 , based on the same inventive technical concept as the data transmission method applied to the server in the present disclosure, one or more embodiments of the present disclosure can also provide a data transmission method applied to a terminal device.

[0122] The data transmission method applied to the terminal device may include but is not limited to steps S501 to S503.

[0123] Step S501: Establish a network communication connection with a server. The network communication connection is established based on historical connection information in the server. The historical connection information is historical information of connections between the server and the terminal device.

[0124] Step S502: Send a control instruction to the server based on the network communication connection. The control instruction is used to control the process of the first application on the server. The first application is the version of the application on the server.

[0125] In an optional embodiment of the present disclosure, the first application may be a first cloud game, and the control instruction is used to control the process of the first cloud game on the server.

[0126] Step S503: receiving a data stream corresponding to the control instruction from the server based on the network communication connection. The data stream is used to load and / or run a second application on the terminal device. The second application is a version of the application on the terminal device.

[0127] In an optional embodiment of the present disclosure, the second application may be a second cloud game, and the data stream may be used to load and / or run the second cloud game on the terminal device.

[0128] Optionally, the server is configured to determine audio and video information, the audio and video information being the audio and video information of the first application process running according to the control instruction, the audio and video information including audio and video; the server is configured to create a transport stream based on the audio and video information, the data stream including the transport stream; and the server is configured to push the transport stream to the terminal device based on the network communication connection. The server may be configured to determine the audio and video information by collecting the audio and video information.

[0129] Optionally, the server can also be used to encode audio and video information into a first transmission stream and a second transmission stream; the first transmission stream is used to be transmitted to the terminal device based on a reliable transmission method, and the second transmission stream is used to be transmitted to the terminal device based on an unreliable transmission method, and the transmission stream includes the first transmission stream and the second transmission stream.

[0130] Optionally, the first transmission stream is an I frame transmission stream, which is used to be transmitted to the terminal device based on the first transmission protocol; the second transmission stream is a P frame transmission stream, which is used to be transmitted to the terminal device based on the second transmission protocol; wherein the priority of the first transmission protocol is higher than the priority of the second transmission protocol.

[0131] Optionally, the server is configured to convert the control instruction into a local instruction, where the local instruction is an instruction executed in the process of the first application; and the server is configured to control the process of the first application using the local instruction.

[0132] Optionally, the data transmission method further includes: receiving a specified instruction from the server, where the specified instruction is used to control the state of the second application.

[0133] Optionally, the server is used to receive control instructions from the terminal device based on a third transmission protocol; the data transmission method also includes: sending file packages to the server based on a fourth transmission protocol, and multiple file packages form a file uploaded by the terminal device.

[0134] The priority of the second transmission protocol is higher than the priority of the third transmission protocol, and the priority of the third transmission protocol is higher than the priority of the fourth transmission protocol.

[0135] Preferably, the first transmission protocol is a unidirectional reliable stream transmission protocol; and / or the second transmission protocol is an unreliable datagram transmission protocol; and / or the third transmission protocol is a bidirectional reliable stream transmission protocol; and / or the fourth transmission protocol is a network transmission sending stream transmission protocol. In this embodiment, the unidirectional reliable stream transmission protocol is, for example, QUIC Unidirection Stream, the unreliable datagram transmission protocol is, for example, QUIC Datagrams, the bidirectional reliable stream transmission protocol is, for example, QUIC Bidirection Stream, and the network transmission sending stream transmission protocol is, for example, WebTransportSendStream.

[0136] As shown in FIG6 , based on the same inventive technical concept as the data transmission method applied to the server in the present disclosure, one or more embodiments of the present disclosure can also provide a data transmission device, which is applied to the server.

[0137] The data transmission device applied to the server includes but is not limited to a first connection module 601 , a first receiving module 602 and a data pushing module 603 .

[0138] The first connection module 601 is configured to establish a network communication connection with a terminal device according to historical connection establishment information, where the historical connection establishment information is historical information of connections between the server and the terminal device.

[0139] The first receiving module 602 is configured to receive a control instruction from a terminal device based on a network communication connection, where the control instruction is used to control a process of a first application on the server, where the first application is a version of the application on the server.

[0140] The data push module 603 is used to push a data stream corresponding to the control instruction to the terminal device based on the network communication connection. The data stream is used to load and / or run the second application on the terminal device. The second application is the version of the application on the terminal device.

[0141] Optionally, the data push module includes a collection module, a creation module and a transmission module.

[0142] The acquisition module is used to determine audio and video information, where the audio and video information is audio and video information in the process of the first application program running according to the control instruction, and the audio and video information includes audio and video.

[0143] A creation module creates a transport stream based on audio and video information, and the data stream includes the transport stream.

[0144] The transmission module pushes the transmission stream to the terminal device based on the network communication connection.

[0145] Optionally, a module is created for encoding audio and video information into a first transport stream and a second transport stream; the first transport stream is used to be transmitted to the terminal device based on a reliable transmission method, and the second transport stream is used to be transmitted to the terminal device based on an unreliable transmission method, and the transport stream includes the first transport stream and the second transport stream.

[0146] Optionally, the first transmission stream is an I frame transmission stream, which is used to be transmitted to the terminal device based on the first transmission protocol; the second transmission stream is a P frame transmission stream, which is used to be transmitted to the terminal device based on the second transmission protocol; wherein the priority of the first transmission protocol is higher than the priority of the second transmission protocol.

[0147] Optionally, the data transmission device further includes an instruction conversion module and a process control module.

[0148] The instruction conversion module is used to convert the control instruction into a local instruction, where the local instruction is an instruction executed in the process of the first application.

[0149] The process control module is used to control the process of the first application program using local instructions.

[0150] Optionally, the data transmission device further includes an instruction sending module.

[0151] The instruction sending module is used to send a specified instruction to the terminal device, where the specified instruction is used to control the state of the second application.

[0152] Optionally, the first receiving module 602 may be configured to receive a control instruction from a terminal device based on a third transmission protocol.

[0153] The data transmission device also includes a file receiving module.

[0154] The file receiving module is used to receive file packages from a terminal device based on a fourth transmission protocol, and multiple file packages form a file uploaded by the terminal device.

[0155] The priority of the second transmission protocol is higher than the priority of the third transmission protocol, and the priority of the third transmission protocol is higher than the priority of the fourth transmission protocol.

[0156] Preferably, the first transmission protocol is a unidirectional reliable stream transmission protocol; and / or the second transmission protocol is an unreliable datagram transmission protocol; and / or the third transmission protocol is a bidirectional reliable stream transmission protocol; and / or the fourth transmission protocol is a network transmission sending stream transmission protocol. In this embodiment, the unidirectional reliable stream transmission protocol is, for example, QUIC Unidirection Stream, the unreliable datagram transmission protocol is, for example, QUIC Datagrams, the bidirectional reliable stream transmission protocol is, for example, QUIC Bidirection Stream, and the network transmission sending stream transmission protocol is, for example, WebTransportSendStream.

[0157] As shown in FIG7 , based on the same inventive technical concept as the data transmission method applied to the server in the present disclosure, at least one embodiment of the present disclosure can also provide a data transmission device, which is applied to a terminal device.

[0158] The data transmission device applied to the terminal device includes but is not limited to a second connection module 701 , an instruction sending module 702 and a data receiving module 703 .

[0159] The second connection module 701 is used to establish a network communication connection with the server. The network communication connection is established according to the historical connection information in the server. The historical connection information is the historical information of the connection between the server and the terminal device.

[0160] The instruction sending module 702 is used to send a control instruction to the server based on the network communication connection. The control instruction is used to control the process of the first application on the server. The first application is the version of the application on the server.

[0161] The data receiving module 703 is used to receive a data stream corresponding to the control instruction from the server based on a network communication connection. The data stream is used to load and / or run the second application on the terminal device. The second application is the version of the application on the terminal device.

[0162] Optionally, the server is configured to determine audio and video information, the audio and video information being the audio and video information of the first application process running according to the control instruction, the audio and video information including audio and video; the server is configured to create a transport stream based on the audio and video information, the data stream including the transport stream; and the server is configured to push the transport stream to the terminal device based on the network communication connection. The server may be configured to determine the audio and video information by collecting the audio and video information.

[0163] Optionally, the server can also be used to encode audio and video information into a first transmission stream and a second transmission stream; the first transmission stream is used to be transmitted to the terminal device based on a reliable transmission method, and the second transmission stream is used to be transmitted to the terminal device based on an unreliable transmission method, and the transmission stream includes the first transmission stream and the second transmission stream.

[0164] Optionally, the first transmission stream is an I frame transmission stream, which is used to be transmitted to the terminal device based on the first transmission protocol; the second transmission stream is a P frame transmission stream, which is used to be transmitted to the terminal device based on the second transmission protocol; wherein the priority of the first transmission protocol is higher than the priority of the second transmission protocol.

[0165] Optionally, the server is configured to convert the control instruction into a local instruction, where the local instruction is an instruction executed in the process of the first application; and the server is configured to control the process of the first application using the local instruction.

[0166] Optionally, the data transmission device further includes a second receiving module.

[0167] The second receiving module is used to receive a specified instruction from the server, where the specified instruction is used to control the state of the second application.

[0168] Optionally, the server is configured to receive control instructions from the terminal device based on a third transmission protocol.

[0169] The data transmission device also includes a file sending module.

[0170] The file sending module is used to send file packages to the server based on the fourth transmission protocol, and multiple file packages form the file uploaded by the terminal device.

[0171] The priority of the second transmission protocol is higher than the priority of the third transmission protocol, and the priority of the third transmission protocol is higher than the priority of the fourth transmission protocol.

[0172] Preferably, the first transmission protocol is a unidirectional reliable stream transmission protocol; and / or the second transmission protocol is an unreliable datagram transmission protocol; and / or the third transmission protocol is a bidirectional reliable stream transmission protocol; and / or the fourth transmission protocol is a network transmission sending stream transmission protocol. In this embodiment, the unidirectional reliable stream transmission protocol is, for example, QUIC Unidirection Stream, the unreliable datagram transmission protocol is, for example, QUIC Datagrams, the bidirectional reliable stream transmission protocol is, for example, QUIC Bidirection Stream, and the network transmission sending stream transmission protocol is, for example, WebTransportSendStream.

[0173] As shown in Figure 8, based on the same technical concept as the data transmission method applied to the server, at least one embodiment of the present disclosure can also provide an electronic device including a memory and a processor, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor executes the data transmission method of any embodiment of the present disclosure. The specific implementation process of the data transmission method has been described in detail in this specification and will not be repeated here.

[0174] The electronic device includes a processor, a non-volatile storage medium, a memory and a network interface connected via a system bus. Among them, the non-volatile storage medium of the electronic device stores an operating system, a database and computer-readable instructions, and the database may store a control information sequence. When the computer-readable instructions are executed by the processor, the processor can implement a data transmission method. The processor of the electronic device is used to provide computing and control capabilities to support the operation of the entire electronic device. The memory of the electronic device may store computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor can execute a data transmission method. The network interface of the electronic device is used to connect and communicate with the terminal. Those skilled in the art will understand that the structure shown in Figure 8 is only a block diagram of a partial structure related to the disclosed solution, and does not constitute a limitation on the electronic device to which the disclosed solution is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0175] As shown in Figure 8 , based on the same technical concept as the data transmission method applied to the server, at least one embodiment of the present disclosure can also provide a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the data transmission method of any embodiment of the present disclosure. The specific implementation process of the data transmission method has been described in detail in this specification and will not be repeated here.

[0176] All or part of the processes in the above-described method embodiments can be accomplished by controlling the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when executed, the program can include the processes of the above-described method embodiments. The logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable storage medium for use by an instruction execution system, device, or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch and execute instructions from an instruction execution system, device, or apparatus), or in conjunction with such instruction execution systems, devices, or apparatuses. For the purposes of this specification, "computer-readable storage medium" can be any device that can contain, store, communicate, propagate, or transmit a program for use by an instruction execution system, device, or apparatus, or in conjunction with such instruction execution systems, devices, or apparatuses. More specific examples (a non-exhaustive list) of computer-readable storage media include the following: an electrical connection with one or more wires (electronic device), a portable computer disk cartridge (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM, or flash memory), a fiber optic device, and a portable compact disc read-only memory (CDROM). In addition, the computer-readable storage medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering, or processing in another suitable manner as necessary, and then stored in a computer memory.

[0177] It should be understood that various parts of the present disclosure can be implemented using hardware, software, firmware, or a combination thereof. In the above-described embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement the present invention: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0178] In the description of this specification, the description with reference to the terms "this embodiment", "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are mutually inconsistent.

[0179] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features being referred to. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. Throughout the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.

[0180] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent replacements, and simple improvements made to the essential contents of the present disclosure shall be included in the scope of protection of the present disclosure.

Claims

1. A data transmission method, applied to a server, comprising: Establishing a network communication connection with the terminal device according to historical connection establishment information, wherein the historical connection establishment information is historical information of the connection between the server and the terminal device; receiving a control instruction from the terminal device based on the network communication connection, the control instruction being used to control a process of a first application on the server, the first application being a version of an application on the server; A data stream corresponding to the control instruction is pushed to the terminal device based on the network communication connection, and the data stream is used for loading and / or running a second application on the terminal device, where the second application is a version of the application on the terminal device.

2. The data transmission method according to claim 1, wherein: The pushing the data stream corresponding to the control instruction to the terminal device based on the network communication connection includes: Determine audio and video information, where the audio and video information is audio and video information in a process of the first application program running according to the control instruction, and the audio and video information includes audio and video; Based on the audio and video information, create a transport stream, wherein the data stream includes the transport stream; Based on the network communication connection, the transport stream is pushed to the terminal device.

3. The data transmission method according to claim 2, wherein: The step of creating a transport stream based on the audio and video information includes: The audio and video information is encoded into a first transmission stream and a second transmission stream; the first transmission stream is used to be transmitted to the terminal device based on a reliable transmission method, and the second transmission stream is used to be transmitted to the terminal device based on an unreliable transmission method, and the transmission stream includes the first transmission stream and the second transmission stream.

4. The data transmission method according to claim 3, wherein: The first transmission stream is an I frame transmission stream, and the I frame transmission stream is used to be transmitted to the terminal device based on a first transmission protocol; The second transmission stream is a P frame transmission stream, and the P frame transmission stream is used to be transmitted to the terminal device based on a second transmission protocol; The priority of the first transmission protocol is higher than the priority of the second transmission protocol.

5. The data transmission method according to any one of claims 1 to 4, wherein: The method further comprises: Converting the control instruction into a local instruction, where the local instruction is an instruction executed in the process of the first application program; The process of the first application is controlled using the local instruction.

6. The data transmission method according to any one of claims 1 to 4, wherein: The method further comprises: A specified instruction is sent to the terminal device, where the specified instruction is used to control the state of the second application.

7. The data transmission method according to claim 4, wherein: The receiving a control instruction from the terminal device based on the network communication connection comprises: receiving a control instruction from the terminal device based on a third transmission protocol; The method further comprises: receiving a file package from the terminal device based on a fourth transmission protocol, a plurality of the file packages forming a file uploaded by the terminal device; The priority of the second transmission protocol is higher than the priority of the third transmission protocol, and the priority of the third transmission protocol is higher than the priority of the fourth transmission protocol.

8. The data transmission method according to claim 7, wherein: The first transmission protocol is a unidirectional reliable stream transmission protocol; and / or, The second transmission protocol is an unreliable data message transmission protocol; and / or, The third transmission protocol is a bidirectional reliable stream transmission protocol; and / or, The fourth transmission protocol is a network transmission stream transmission protocol.

9. A data transmission method, applied to a terminal device, the data transmission method comprising: Establishing a network communication connection with a server, wherein the network communication connection is established according to historical connection establishment information in the server, wherein the historical connection establishment information is historical information of the connection between the server and the terminal device; Sending a control instruction to the server based on the network communication connection, the control instruction is used to control the process of a first application on the server, the first application being a version of an application on the server; A data stream corresponding to the control instruction is received from the server based on the network communication connection, and the data stream is used for loading and / or running a second application on the terminal device, where the second application is a version of the application on the terminal device.

10. A data transmission device, comprising: The first connection module is used to establish a network communication connection with the terminal device according to the historical connection establishment information. The historical connection information is the historical information of the connection between the server and the terminal device; A first receiving module, configured to receive a control instruction from the terminal device based on the network communication connection, wherein the control instruction is used to control a process of a first application on the server, wherein the first application is a version of an application on the server; A data push module is used to push a data stream corresponding to the control instruction to the terminal device based on the network communication connection, and the data stream is used to load and / or run a second application on the terminal device, and the second application is a version of the application on the terminal device.

11. A data transmission device, comprising: A second connection module, used to establish a network communication connection with a server, wherein the network communication connection is established according to historical connection establishment information in the server, wherein the historical connection establishment information is historical information of the connection between the server and the terminal device; an instruction sending module, configured to send a control instruction to the server based on the network communication connection, wherein the control instruction is used to control the process of a first application on the server, the first application being a version of an application on the server; A data receiving module is used to receive a data stream corresponding to the control instruction from the server based on the network communication connection, and the data stream is used to load and / or run a second application on the terminal device, and the second application is a version of the application on the terminal device.

12. An electronic device comprising a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the data transmission method according to any one of claims 1 to 8 or 9.

13. A storage medium storing computer-readable instructions, wherein when the computer-readable instructions are executed by one or more processors, the one or more processors execute the data transmission method according to any one of claims 1 to 8 or 9.

14. A computer program product storing computer-readable instructions, wherein when the computer-readable instructions are executed by one or more processors, the one or more processors execute the data transmission method according to any one of claims 1 to 8 or 9.

Citation Information

Patent Citations

  • Smart Management of Background Network Connections Based on Historical Data

    US20140365642A1

  • Information terminal, communication terminal, server, license transfer system and license transfer method

    US20190155998A1

  • System and method for intelligent network connection selection

    US9693276B1

Cited By

  • Cloud mobile phone acceleration system and method based on edge computing, processing equipment and storage medium

    CN120512479A