Media stream transmission control method, media stream processing method and device, and communication system
By extracting media stream identifiers and duration information during the RTC connection process and sending media stream segments in chronological order, the latency problem in the RTC connection and transmission process is solved, enabling early playback of RTC media streams and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA TELECOM CORP LTD
- Filing Date
- 2022-09-21
- Publication Date
- 2026-06-26
AI Technical Summary
There is latency in the process of establishing an RTC connection between the user terminal and the cloud platform and transmitting media streams, resulting in a longer playback response time for RTC media streams and reducing the user experience.
During the RTC connection establishment process, the media stream identifier and duration information are extracted through the signaling channel, and the media stream segments are sent in chronological order, including accelerating the transmission of the first media stream segment and decelerating the transmission of the second media stream segment. After confirming the RTC connection, the complete media stream is sent through the service channel.
It effectively shortens the playback response time of RTC media streams and improves the user experience.
Smart Images

Figure CN117793066B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of network technology, and in particular to a media stream transmission control method, a media stream processing method and apparatus, and a communication system. Background Technology
[0002] Currently, in scenarios where a user terminal requests RTC (Real-time Communication) media stream services from a cloud platform, the user terminal first establishes an RTC connection with the server in the cloud platform. After the RTC connection is successfully established, the server sends the RTC media stream to the user terminal. Summary of the Invention
[0003] The inventors noted that in related technologies, due to the latency in establishing an RTC connection, sending and transmitting the media stream, the playback response time of the RTC media stream is relatively long, which reduces the user experience.
[0004] Accordingly, this disclosure provides a media stream transmission control scheme. During the process of establishing an RTC connection between the user terminal and the server, the server sends the corresponding media stream segments to the user terminal for playback through a signaling channel, so that the user can watch the media stream before the RTC connection is established. This effectively shortens the long playback response time of the RTC media stream and improves the user experience.
[0005] According to a first aspect of the present disclosure, a media stream transmission control method is provided, executed by a server, comprising: extracting a media stream identifier, first duration information, and second duration information from a real-time communication (RTC) connection establishment request sent by a user terminal through a signaling channel, wherein the first duration information is greater than the second duration information; extracting a first media stream segment and a second media stream segment associated with the media stream identifier in chronological order, wherein the playback duration of the first media stream segment is the first duration, and the playback duration of the second media stream segment is the difference between the first duration and the second duration; sending an RTC connection response to the user terminal through the signaling channel; sequentially sending the first media stream segment and the second media stream segment to the user terminal for playback through the signaling channel; and after receiving confirmation of RTC connection establishment information sent by the user terminal, sending the RTC media stream associated with the media stream identifier to the user terminal for playback through a service channel.
[0006] In some embodiments, the first rate at which the first media stream segment is transmitted is greater than a preset transmission rate; and the second rate at which the second media stream segment is transmitted is less than the preset transmission rate.
[0007] In some embodiments, the first duration is the sum of the historical maximum values of the preparation time for establishing an RTC connection, the confirmation time for establishing an RTC connection, and the transmission delay and propagation delay of the RTC media stream; the second duration is the sum of the historical average values of the preparation time for establishing an RTC connection, the confirmation time for establishing an RTC connection, and the transmission delay and propagation delay of the RTC media stream.
[0008] According to a second aspect of the present disclosure, a server is provided, comprising: a first processing module configured to extract a media stream identifier, first duration information, and second duration information from a real-time communication (RTC) connection establishment request sent by a user terminal through a signaling channel, wherein the first duration information is greater than the second duration information; extracting a first media stream segment and a second media stream segment associated with the media stream identifier in chronological order, wherein the playback duration of the first media stream segment is the first duration, and the playback duration of the second media stream segment is the difference between the first duration and the second duration; a second processing module configured to send an RTC connection response to the user terminal through the signaling channel, and sequentially send the first media stream segment and the second media stream segment to the user terminal for playback through the signaling channel; and a third processing module configured to, upon receiving confirmation of RTC connection establishment information sent by the user terminal, send the RTC media stream associated with the media stream identifier to the user terminal for playback through a service channel.
[0009] In some embodiments, the first rate at which the first media stream segment is transmitted is greater than a preset transmission rate; and the second rate at which the second media stream segment is transmitted is less than the preset transmission rate.
[0010] In some embodiments, the first duration is the sum of the historical maximum values of the preparation time for establishing an RTC connection, the confirmation time for establishing an RTC connection, and the transmission delay and propagation delay of the RTC media stream; the second duration is the sum of the historical average values of the preparation time for establishing an RTC connection, the confirmation time for establishing an RTC connection, and the transmission delay and propagation delay of the RTC media stream.
[0011] According to a third aspect of the present disclosure, a server is provided, comprising: a memory configured to store instructions; and a processor coupled to the memory, the processor being configured to execute instructions stored in the memory to implement the method as described in any of the above embodiments.
[0012] According to a fourth aspect of the present disclosure, a media stream processing method is provided, executed by a user terminal, comprising: sending an RTC connection establishment request to a server via a signaling channel, the RTC connection establishment request including a media stream identifier, first duration information and second duration information, wherein the first duration information is greater than the second duration information; establishing an RTC connection after receiving an RTC connection response from the server; sending confirmation of RTC connection establishment information to the server after the RTC connection is successfully established; sequentially playing a first media stream segment and a second media stream segment sent by the server via the signaling channel; and playing the RTC media stream after receiving the RTC media stream sent by the server via a service channel.
[0013] In some embodiments, playing the RTC media stream includes: if the RTC media stream is received during the playback of the first media stream segment, stopping the playback of the first media stream segment, playing the RTC media stream, and no longer playing the second media stream segment.
[0014] In some embodiments, playing the RTC media stream includes: if the RTC media stream is received during the playback of the second media stream segment, stopping the playback of the second media stream segment and playing the RTC media stream.
[0015] In some embodiments, the first duration is the sum of the historical maximum values of the preparation time for establishing an RTC connection, the confirmation time for establishing an RTC connection, and the transmission delay and propagation delay of the RTC media stream; the second duration is the sum of the historical average values of the preparation time for establishing an RTC connection, the confirmation time for establishing an RTC connection, and the transmission delay and propagation delay of the RTC media stream.
[0016] According to a fifth aspect of the present disclosure, a user terminal is provided, comprising: a fourth processing module configured to send an RTC connection establishment request to a server via a signaling channel, the RTC connection establishment request including a media stream identifier, first duration information and second duration information, wherein the first duration information is greater than the second duration information; a fifth processing module configured to establish an RTC connection after receiving an RTC connection response from the server, and to send confirmation of RTC connection establishment information to the server after the RTC connection is successfully established; and a sixth processing module configured to sequentially play a first media stream segment and a second media stream segment sent by the server via the signaling channel, and to play the RTC media stream after receiving the RTC media stream sent by the server via a service channel.
[0017] In some embodiments, the sixth processing module is configured to stop playing the first media stream segment and play the RTC media stream if the RTC media stream is received during the playback of the first media stream segment, and stop playing the second media stream segment.
[0018] In some embodiments, the sixth processing module is configured to stop playing the second media stream segment and play the RTC media stream if the RTC media stream is received during the playback of the second media stream segment.
[0019] In some embodiments, the first duration is the sum of the historical maximum values of the preparation time for establishing an RTC connection, the confirmation time for establishing an RTC connection, and the transmission delay and propagation delay of the RTC media stream; the second duration is the sum of the historical average values of the preparation time for establishing an RTC connection, the confirmation time for establishing an RTC connection, and the transmission delay and propagation delay of the RTC media stream.
[0020] According to a sixth aspect of the present disclosure, a user terminal is provided, comprising: a memory configured to store instructions; and a processor coupled to the memory, the processor being configured to execute instructions stored in the memory to implement the method as described in any of the above embodiments.
[0021] According to a seventh aspect of the present disclosure, a communication system is provided, comprising: a server as described in any of the preceding embodiments; and a user terminal as described in any of the preceding embodiments.
[0022] According to an eighth aspect of the present disclosure, a non-transient computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions that, when executed by a processor, implement the method as described in any of the above embodiments.
[0023] Other features and advantages of this disclosure will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. Attached Figure Description
[0024] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0025] Figure 1 This is a schematic flowchart of a media stream transmission control method according to an embodiment of the present disclosure;
[0026] Figure 2This is a schematic diagram of media stream segmentation according to an embodiment of the present disclosure;
[0027] Figure 3 This is a schematic diagram of the structure of a server according to an embodiment of the present disclosure;
[0028] Figure 4 This is a schematic diagram of the structure of a server according to another embodiment of the present disclosure;
[0029] Figure 5 This is a schematic flowchart of a media stream processing method according to an embodiment of the present disclosure;
[0030] Figure 6 This is a schematic diagram of the structure of a user terminal according to an embodiment of the present disclosure;
[0031] Figure 7 This is a schematic diagram of the structure of a user terminal according to another embodiment of the present disclosure;
[0032] Figure 8 This is a schematic diagram of the structure of a communication system according to an embodiment of the present disclosure;
[0033] Figure 9 This is a schematic flowchart of a media stream transmission control method according to another embodiment of the present disclosure. Detailed Implementation
[0034] The technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit this disclosure or its application or use. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without creative effort are within the scope of protection of this disclosure.
[0035] Unless otherwise specifically stated, the relative arrangement, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of this disclosure.
[0036] At the same time, it should be understood that, for ease of description, the dimensions of the various parts shown in the accompanying drawings are not drawn according to actual scale.
[0037] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment should be considered part of the specification.
[0038] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limitations. Therefore, other examples of exemplary embodiments may have different values.
[0039] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.
[0040] Figure 1 This is a schematic flowchart illustrating a media stream transmission control method according to an embodiment of the present disclosure. In some embodiments, the following media stream transmission control method is executed by a server.
[0041] In step 101, the media stream identifier, first duration information and second duration information are extracted from the RTC connection establishment request sent by the user terminal through the signaling channel, wherein the first duration information is greater than the second duration information.
[0042] In some embodiments, the first duration is the sum of the historical maximum values of the preparation time for establishing an RTC connection, the confirmation time for establishing an RTC connection, and the transmission delay and propagation delay for transmitting the RTC media stream. The second duration is the sum of the historical average values of the preparation time for establishing an RTC connection, the confirmation time for establishing an RTC connection, and the transmission delay and propagation delay for transmitting the RTC media stream.
[0043] In step 102, the first media stream segment and the second media stream segment associated with the media stream identifier are extracted in chronological order, wherein the playback duration of the first media stream segment is the first duration, and the playback duration of the second media stream segment is the difference between the first duration and the second duration.
[0044] In some embodiments, the first rate at which the first media stream segment is transmitted is greater than a preset transmission rate, and the second rate at which the second media stream segment is transmitted is less than the preset transmission rate.
[0045] For example, the first rate is 1.1-1.2 times the normal transmission rate, and the second rate is 0.8-0.9 times the normal transmission rate.
[0046] In step 103, an RTC connection response is sent to the user terminal through the signaling channel so that the user terminal is ready to establish an RTC connection.
[0047] In step 104, the first media stream segment and the second media stream segment are sequentially sent to the user terminal for playback via the signaling channel.
[0048] For example, such as Figure 2 As shown, the media stream segments transmitted through the signaling channel include a first media stream segment and a second media stream segment. The first media stream segment is transmitted at an accelerated speed, while the second media stream segment is transmitted at a decelerated speed. Because the first media stream segment is transmitted at an accelerated speed, the user terminal can play the media stream content as early as possible.
[0049] Furthermore, the playback duration of the first media stream segment is the first duration, and the playback duration of the second media stream segment is the difference between the first and second durations. Normally, the RTC connection will be established within the first duration, meaning the user terminal will receive the RTC media stream within that timeframe. If the user terminal does not receive the RTC media stream within the first duration, the second media stream segment will continue playing to prevent situations where the user terminal is unable to play the media stream.
[0050] In step 105, after receiving the confirmation information for establishing an RTC connection sent by the user terminal, the RTC media stream associated with the media stream identifier is sent to the user terminal for playback through the service channel.
[0051] It should be noted that once the user terminal receives the RTC media stream, regardless of whether it is currently playing the first or second media stream segment, it will not continue playing; instead, it will immediately start playing the RTC media stream.
[0052] In the media stream transmission control method provided in the above embodiments of this disclosure, during the establishment of an RTC connection, media stream segments are sent to the user terminal for playback via a signaling channel. As a result, the user can watch the media stream before the RTC connection is established, thereby effectively shortening the playback response time of the RTC media stream, which is relatively long, and improving the user experience.
[0053] Figure 3 This is a schematic diagram of the structure of a server according to an embodiment of this disclosure. Figure 3 As shown, the server includes a first processing module 31, a second processing module 32, and a third processing module 33.
[0054] The first processing module 31 is configured to extract the media stream identifier, first duration information and second duration information from the RTC connection establishment request sent by the user terminal through the signaling channel, wherein the first duration information is greater than the second duration information, and extract the first media stream segment and the second media stream segment associated with the media stream identifier in chronological order, wherein the playback duration of the first media stream segment is the first duration and the playback duration of the second media stream segment is the difference between the first duration and the second duration.
[0055] In some embodiments, the first rate at which the first media stream segment is transmitted is greater than a preset transmission rate, and the second rate at which the second media stream segment is transmitted is less than the preset transmission rate.
[0056] In some embodiments, the first duration is the sum of the historical maximum values of the preparation time for establishing an RTC connection, the confirmation time for establishing an RTC connection, and the transmission delay and propagation delay for transmitting the RTC media stream. The second duration is the sum of the historical average values of the preparation time for establishing an RTC connection, the confirmation time for establishing an RTC connection, and the transmission delay and propagation delay for transmitting the RTC media stream.
[0057] The second processing module 32 is configured to send an RTC connection response to the user terminal through a signaling channel, and sequentially send the first media stream segment and the second media stream segment to the user terminal for playback through the signaling channel.
[0058] The third processing module 33 is configured to send the RTC media stream associated with the media stream identifier to the user terminal for playback via the service channel after receiving confirmation information from the user terminal to establish an RTC connection.
[0059] Figure 4 This is a schematic diagram of the structure of a server according to another embodiment of this disclosure. Figure 4 As shown, the server includes a memory 41 and a processor 42.
[0060] Memory 41 is used to store instructions, and processor 42 is coupled to memory 41. Processor 42 is configured to execute instructions based on the memory storage, as shown in the example. Figure 1 The method involved in any of the embodiments.
[0061] like Figure 4 As shown, the server also includes a communication interface 43 for exchanging information with other devices. Additionally, the server includes a bus 44, through which the processor 42, communication interface 43, and memory 41 communicate with each other.
[0062] The memory 41 may include high-speed RAM, and may also include non-volatile memory, such as at least one disk storage device. The memory 41 may also be a memory array. The memory 41 may also be divided into blocks, and the blocks may be combined into virtual volumes according to certain rules.
[0063] Furthermore, processor 42 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present disclosure.
[0064] This disclosure also relates to a computer-readable storage medium storing computer instructions that, when executed by a processor, implement as follows: Figure 1 The method involved in any of the embodiments.
[0065] Figure 5 This is a schematic flowchart illustrating a media stream processing method according to an embodiment of the present disclosure. In some embodiments, the following media stream processing method is executed by a user terminal.
[0066] In step 501, an RTC connection establishment request is sent to the server through the signaling channel. The RTC connection establishment request includes a media stream identifier, a first duration information and a second duration information, wherein the first duration information is longer than the second duration information.
[0067] In some embodiments, the first duration is the sum of the historical maximum values of the preparation time for establishing an RTC connection, the confirmation time for establishing an RTC connection, and the transmission delay and propagation delay for transmitting the RTC media stream. The second duration is the sum of the historical average values of the preparation time for establishing an RTC connection, the confirmation time for establishing an RTC connection, and the transmission delay and propagation delay for transmitting the RTC media stream.
[0068] In step 502, after receiving the RTC connection response from the server, an RTC connection is established, and after the RTC connection is successfully established, an acknowledgment message confirming the establishment of the RTC connection is sent to the server.
[0069] In step 503, the first media stream segment and the second media stream segment sent by the server through the signaling channel are played in sequence.
[0070] In step 504, after receiving the RTC media stream sent by the server through the service channel, the RTC media stream is played.
[0071] In some embodiments, if an RTC media stream is received during the playback of a first media stream segment, the playback of the first media stream segment is stopped, and the RTC media stream is played instead, while the second media stream segment is no longer played.
[0072] In some embodiments, if an RTC media stream is received during the playback of a second media stream segment, the playback of the second media stream segment is stopped, and the RTC media stream is played instead.
[0073] Figure 6 This is a schematic diagram of the structure of a user terminal according to an embodiment of this disclosure. Figure 6 As shown, the user terminal includes a fourth processing module 61, a fifth processing module 62, and a sixth processing module 63.
[0074] The fourth processing module 61 is configured to send an RTC connection establishment request to the server through a signaling channel. The RTC connection establishment request includes a media stream identifier, a first duration information and a second duration information, wherein the first duration information is longer than the second duration information.
[0075] In some embodiments, the first duration is the sum of the historical maximum values of the preparation time for establishing an RTC connection, the confirmation time for establishing an RTC connection, and the transmission delay and propagation delay for transmitting the RTC media stream. The second duration is the sum of the historical average values of the preparation time for establishing an RTC connection, the confirmation time for establishing an RTC connection, and the transmission delay and propagation delay for transmitting the RTC media stream.
[0076] The fifth processing module 62 is configured to establish an RTC connection after receiving an RTC connection response from the server, and to send confirmation information to the server after the RTC connection is successfully established.
[0077] The sixth processing module 63 is configured to sequentially play the first media stream segment and the second media stream segment sent by the server through the signaling channel, and to play the RTC media stream after receiving the RTC media stream sent by the server through the service channel.
[0078] In some embodiments, the sixth processing module 63 is configured to stop playing the first media stream segment and play the RTC media stream if an RTC media stream is received during the playback of the first media stream segment, and stop playing the second media stream segment.
[0079] In some embodiments, the sixth processing module 63 is configured to stop playing the second media stream segment and play the RTC media stream if an RTC media stream is received during the playback of the second media stream segment.
[0080] Figure 7 This is a schematic diagram of the structure of a user terminal according to another embodiment of this disclosure. Figure 7 As shown, the user terminal includes a memory 71, a processor 72, a communication interface 73, and a bus 74. Figure 7 and Figure 4 The difference is that, in Figure 7 In the illustrated embodiment, processor 72 is configured to execute instructions stored in memory 71 as follows: Figure 5 The method involved in any of the embodiments.
[0081] This disclosure also relates to a computer-readable storage medium storing computer instructions that, when executed by a processor, implement as follows: Figure 5 The method involved in any of the embodiments.
[0082] Figure 8 This is a schematic diagram of the structure of a communication system according to an embodiment of this disclosure. Figure 8 As shown, the communication system includes a server 81 and a user terminal 82. The server 81 is... Figure 3 or Figure 4 In any embodiment, the server and user terminal 82 are... Figure 6 or Figure 7 The user terminal involved in any of the embodiments.
[0083] Figure 9 This is a schematic flowchart of a media stream transmission control method according to another embodiment of the present disclosure.
[0084] In step 901, the user terminal sends an RTC connection establishment request to the server through the signaling channel. The RTC connection establishment request includes a media stream identifier, a first duration information and a second duration information, wherein the first duration information is longer than the second duration information.
[0085] In some embodiments, the first duration is the sum of the historical maximum values of the preparation time for establishing an RTC connection, the confirmation time for establishing an RTC connection, and the transmission delay and propagation delay for transmitting the RTC media stream. The second duration is the sum of the historical average values of the preparation time for establishing an RTC connection, the confirmation time for establishing an RTC connection, and the transmission delay and propagation delay for transmitting the RTC media stream.
[0086] In step 902, the server extracts the media stream identifier, first duration information and second duration information from the RTC connection establishment request, and extracts the first media stream segment and the second media stream segment associated with the media stream identifier in chronological order, wherein the playback duration of the first media stream segment is the first duration, and the playback duration of the second media stream segment is the difference between the first duration and the second duration.
[0087] In some embodiments, the first rate at which the first media stream segment is transmitted is greater than a preset transmission rate, and the second rate at which the second media stream segment is transmitted is less than the preset transmission rate.
[0088] In step 903, the server sends an RTC connection response to the user terminal through the signaling channel, and sequentially sends the first media stream segment and the second media stream segment to the user terminal through the signaling channel.
[0089] For example, the first rate is 1.1-1.2 times the normal transmission rate, and the second rate is 0.8-0.9 times the normal transmission rate.
[0090] In step 904, after receiving the RTC connection response, the user terminal begins to establish an RTC connection and sequentially plays the first media stream segment and the second media stream segment.
[0091] In step 905, after the RTC connection is successfully established, the user terminal sends confirmation information to the server to establish the RTC connection.
[0092] In step 906, after receiving the confirmation of establishing an RTC connection, the server sends the RTC media stream associated with the media stream identifier to the user terminal through the service channel.
[0093] In step 907, after receiving the RTC media stream, the server immediately plays the RTC media stream and stops playing the current segment of the first media stream or the second media stream segment.
[0094] In some embodiments, if an RTC media stream is received during the playback of a first media stream segment, the playback of the first media stream segment is stopped, and the RTC media stream is played instead, while the second media stream segment is no longer played.
[0095] In some embodiments, if an RTC media stream is received during the playback of a second media stream segment, the playback of the second media stream segment is stopped, and the RTC media stream is played instead.
[0096] By implementing the embodiments described above, the playback response time of RTC media streams can be effectively reduced, which helps to improve the user experience.
[0097] In some embodiments, the functional units described above may be implemented as general-purpose processors, programmable logic controllers (PLCs), digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or any suitable combination thereof for performing the functions described herein.
[0098] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0099] The description in this disclosure is provided for illustrative and descriptive purposes only and is not intended to be exhaustive or to limit the disclosure to its forms. Many modifications and variations will be apparent to those skilled in the art. The embodiments were chosen and described in order to better illustrate the principles and practical application of this disclosure and to enable those skilled in the art to understand this disclosure and to design various embodiments with various modifications suitable for a particular purpose.
Claims
1. A media stream transmission control method, executed by a server, comprising: The media stream identifier, first duration information, and second duration information are extracted from the real-time communication (RTC) connection establishment request sent by the user terminal through the signaling channel, wherein the first duration information is greater than the second duration information; Extract the first media stream segment and the second media stream segment associated with the media stream identifier in chronological order, wherein the playback duration of the first media stream segment is the first duration, and the playback duration of the second media stream segment is the difference between the first duration and the second duration; An RTC connection response is sent to the user terminal through the signaling channel; The first media stream segment and the second media stream segment are sequentially sent to the user terminal for playback via the signaling channel; After receiving confirmation of RTC connection establishment from the user terminal, the RTC media stream associated with the media stream identifier is sent to the user terminal for playback via the service channel; Wherein, the first rate at which the first media stream segment is sent is greater than the preset transmission rate; and the second rate at which the second media stream segment is sent is less than the preset transmission rate.
2. The method according to claim 1, wherein, The first duration is the sum of the historical maximum values of the preparation time for establishing an RTC connection, the confirmation time for establishing an RTC connection, and the transmission delay and propagation delay for transmitting the RTC media stream; The second duration is the sum of the historical average values of the preparation time for establishing an RTC connection, the confirmation time for establishing an RTC connection, and the transmission delay and propagation delay for transmitting the RTC media stream.
3. A server, comprising: The first processing module is configured to extract a media stream identifier, a first duration information, and a second duration information from a real-time communication (RTC) connection establishment request sent by a user terminal through a signaling channel, wherein the first duration information is greater than the second duration information; extract a first media stream segment and a second media stream segment associated with the media stream identifier in chronological order, wherein the playback duration of the first media stream segment is the first duration, the playback duration of the second media stream segment is the difference between the first duration and the second duration; and send the first media stream segment at a first rate greater than a preset transmission rate, and send the second media stream segment at a second rate less than the preset transmission rate. The second processing module is configured to send an RTC connection response to the user terminal through the signaling channel, and to send the first media stream segment and the second media stream segment to the user terminal for playback in sequence through the signaling channel; The third processing module is configured to, upon receiving confirmation information from the user terminal regarding the establishment of an RTC connection, send the RTC media stream associated with the media stream identifier to the user terminal for playback via a service channel.
4. The server according to claim 3, wherein, The first duration is the sum of the historical maximum values of the preparation time for establishing an RTC connection, the confirmation time for establishing an RTC connection, and the transmission delay and propagation delay for transmitting the RTC media stream; The second duration is the sum of the historical average values of the preparation time for establishing an RTC connection, the confirmation time for establishing an RTC connection, and the transmission delay and propagation delay for transmitting the RTC media stream.
5. A server, comprising: The memory is configured to store instructions; A processor, coupled to a memory, configured to implement the method as described in any one of claims 1-2 based on memory-stored instruction execution.
6. A media stream processing method, executed by a user terminal, comprising: A request to establish an RTC connection is sent to the server through a signaling channel. The request to establish an RTC connection includes a media stream identifier, a first duration information, and a second duration information, wherein the first duration information is greater than the second duration information. After receiving the RTC connection response from the server, an RTC connection is established, and after the RTC connection is successfully established, an confirmation message for establishing the RTC connection is sent to the server. The server sequentially plays a first media stream segment and a second media stream segment sent through a signaling channel, wherein the server sends the first media stream segment at a first rate greater than a preset transmission rate, and sends the second media stream segment at a second rate less than the preset transmission rate. After receiving the RTC media stream sent by the server through the service channel, the RTC media stream is played.
7. The method according to claim 6, wherein, Playing the RTC media stream includes: If the RTC media stream is received during the playback of the first media stream segment, the playback of the first media stream segment is stopped, and the RTC media stream is played instead, while the second media stream segment is no longer played.
8. The method according to claim 7, wherein, Playing the RTC media stream includes: If the RTC media stream is received during the playback of the second media stream segment, the playback of the second media stream segment is stopped, and the RTC media stream is played instead.
9. The method according to any one of claims 6-8, wherein, The first duration is the sum of the historical maximum values of the preparation time for establishing an RTC connection, the confirmation time for establishing an RTC connection, and the transmission delay and propagation delay for transmitting the RTC media stream; The second duration is the sum of the historical average values of the preparation time for establishing an RTC connection, the confirmation time for establishing an RTC connection, and the transmission delay and propagation delay for transmitting the RTC media stream.
10. A user terminal, comprising: The fourth processing module is configured to send an RTC connection establishment request to the server through a signaling channel. The RTC connection establishment request includes a media stream identifier, a first duration information, and a second duration information, wherein the first duration information is greater than the second duration information. The fifth processing module is configured to establish an RTC connection after receiving an RTC connection response from the server, and to send confirmation information to the server after the RTC connection is successfully established. The sixth processing module is configured to sequentially play a first media stream segment and a second media stream segment sent by the server through a signaling channel, wherein the server sends the first media stream segment at a first rate greater than a preset transmission rate, and sends the second media stream segment at a second rate less than the preset transmission rate. After receiving the RTC media stream sent by the server through a service channel, the module plays the RTC media stream.
11. The user terminal according to claim 10, wherein, The sixth processing module is configured to stop playing the first media stream segment and play the RTC media stream if the RTC media stream is received during the playback of the first media stream segment, and stop playing the second media stream segment.
12. The user terminal according to claim 11, wherein, The sixth processing module is configured to stop playing the second media stream segment and play the RTC media stream if the RTC media stream is received during the playback of the second media stream segment.
13. The user terminal according to any one of claims 10-12, wherein, The first duration is the sum of the historical maximum values of the preparation time for establishing an RTC connection, the confirmation time for establishing an RTC connection, and the transmission delay and propagation delay for transmitting the RTC media stream; The second duration is the sum of the historical average values of the preparation time for establishing an RTC connection, the confirmation time for establishing an RTC connection, and the transmission delay and propagation delay for transmitting the RTC media stream.
14. A user terminal, comprising: The memory is configured to store instructions; A processor, coupled to memory, configured to implement the method as described in any one of claims 6-9 based on memory-stored instruction execution.
15. A communication system, comprising: The server as described in any one of claims 3-5; The user terminal as described in any one of claims 10-14.
16. A non-transient computer-readable storage medium, wherein, A computer-readable storage medium stores computer instructions that, when executed by a processor, implement the method as described in any one of claims 1-2 and 6-9.