Media content transmission method and apparatus, electronic device, and storage medium

CN122991175APending Publication Date: 2026-10-27BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510526805.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-24
Publication Date
2026-10-27

AI Technical Summary

Technical Problem

目前,媒体内容传输采用了固定压缩率的方式,这种方式在一定程度上简化了媒体内容的传输流程,但是在实际应用过程中,却暴露出诸多显著问题,尤其是在媒体内传输流畅性、媒体内容质量保证、实时性要求以及多样化应用场景需求等方面,均存在着明显的限制,导致媒体内容的传输很可能造成资源浪费以及产生传输延迟

Benefits of technology

[0017]本公开实施例的技术方案,通过检测数据传输网络的网络状态,能够实时获取数据传输网络的承载能力和传输特性,在接收到针对第一媒体内容的传输请求的情况下,会根据数据传输网络的网络状态针对第一媒体内容匹配合适的压缩控制信息,压缩控制信息能实现在对媒体内容进行压缩操作时控制媒体内容的压缩过程与压缩效果,实现根据数据传输网络的网络状态实时调整对媒体内容的压缩策略,可以使用合适的压缩控制信息对第一媒体内容进行压缩处理,使得媒体内容在保证质量的情况下更适应网络的传输能力,避免在任何网络条件下都采用固定压缩比所带来的弊端,从而在不同网络环境下都能将媒体内容的质量能维持在一个相对适配的水平,实现在有限的网络资源下顺利传输媒体内容,保证能够在不同网络环境下平衡媒体内容的质量与传输效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122991175A_ABST
    Figure CN122991175A_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a media content transmission method and device, electronic equipment and storage medium. The method comprises: in response to a transmission request for first media content, determining compression control information of the first media content, the first media content being media content that needs to be transmitted over a network, the compression control information being used to control the compression process and compression effect of the media content when the media content is compressed, the configuration of the compression control information being associated with the network state when the media content is transmitted; determining second media content according to the compression control information of the first media content, the second media content being media content obtained by compressing the first media content; and transmitting the media content according to the second media content. The present application balances the content quality and transmission efficiency of the media content according to the network state of the data transmission network required for media content transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of data processing technology, and in particular to a media content transmission method, apparatus, electronic device, and storage medium. Background Technology

[0002] With the rapid development of digital technology, the demand for media content transmission is increasing daily. Taking audio as an example, audio transmission is crucial in scenarios ranging from everyday music playback and voice calls to audio production and remote conferencing. Currently, media content transmission uses a fixed compression rate, which simplifies the transmission process to some extent. However, in practical applications, it has exposed many significant problems, especially in areas such as smooth transmission within the media, ensuring media content quality, real-time requirements, and the needs of diverse application scenarios. These limitations can lead to resource waste and transmission delays in media content transmission. Summary of the Invention

[0003] This disclosure provides a media content transmission method, apparatus, electronic device, and storage medium to balance the content quality and transmission efficiency of media content based on the network status of the data transmission network required for media content transmission.

[0004] In a first aspect, embodiments of this disclosure provide a media content transmission method, wherein the method includes:

[0005] In response to a transmission request for first media content, compression control information for the first media content is determined. The first media content is media content that needs to be transmitted over the network. The compression control information is used to control the compression process and compression effect of the media content when performing compression operations. The configuration selection of the compression control information is related to the network status when transmitting the media content.

[0006] The second media content is determined based on the compression control information of the first media content, and the second media content is the media content after the first media content has been compressed.

[0007] The media content is transmitted based on the second media content.

[0008] Secondly, embodiments of this disclosure also provide a media content transmission apparatus, wherein the apparatus includes:

[0009] The detection module is used to respond to a transmission request for the first media content and determine the compression control information of the first media content, wherein the first media content is media content that needs to be transmitted over the network, and the compression control information is used to control the compression process and compression effect of the media content when performing compression operations, and the configuration selection of the compression control information is related to the network status when transmitting the media content;

[0010] The compression module determines the second media content based on the compression control information of the first media content, wherein the second media content is the media content after the first media content has been compressed.

[0011] The transmission module is used to transmit media content according to the second media content.

[0012] Thirdly, embodiments of this disclosure also provide an electronic device, wherein the electronic device includes:

[0013] One or more processors;

[0014] Storage device for storing one or more programs.

[0015] When the one or more programs are executed by the one or more processors, the one or more processors implement any of the media content transmission methods described in the embodiments of this disclosure.

[0016] Fourthly, embodiments of this disclosure also provide a storage medium containing computer-executable instructions, wherein the computer-executable instructions, when executed by a computer processor, are used to perform any of the media content transmission methods described in the embodiments of this disclosure.

[0017] The technical solution of this disclosure embodiment can obtain the carrying capacity and transmission characteristics of the data transmission network in real time by detecting the network status of the data transmission network. When a transmission request for the first media content is received, appropriate compression control information is matched to the first media content according to the network status of the data transmission network. The compression control information can control the compression process and compression effect of the media content when performing compression operations. It can adjust the compression strategy of the media content in real time according to the network status of the data transmission network. Appropriate compression control information can be used to compress the first media content, so that the media content is more adaptable to the network transmission capacity while ensuring quality. It avoids the drawbacks of using a fixed compression ratio under any network conditions. Thus, the quality of the media content can be maintained at a relatively suitable level under different network environments, so as to achieve smooth transmission of media content under limited network resources and ensure a balance between the quality of media content and transmission efficiency under different network environments.

[0018] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0019] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.

[0020] Figure 1 This is a schematic flowchart of a media content transmission method provided in an embodiment of this disclosure;

[0021] Figure 2 This is a schematic flowchart of another media content transmission method provided in this embodiment of the disclosure;

[0022] Figure 3 This is a schematic diagram of the structure of a media content transmission device provided in an embodiment of this disclosure;

[0023] Figure 4 This is a schematic diagram of the structure of an electronic device that implements a media content transmission method according to an embodiment of this disclosure. Detailed Implementation

[0024] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.

[0025] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.

[0026] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.

[0027] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.

[0028] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0029] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0030] Figure 1 This is a flowchart illustrating a media content transmission method provided in an embodiment of the present disclosure. This embodiment is applicable to situations where media content can be transmitted as quickly as possible while ensuring media content quality. The media content transmission method can be executed by a media content transmission device, which can be implemented in the form of software and / or hardware, or optionally, by an electronic device, such as a mobile terminal, a PC, or a server.

[0031] like Figure 1 As shown, the media content transmission method of this disclosure embodiment may include the following process:

[0032] S110. In response to a transmission request for the first media content, determine compression control information for the first media content. The first media content is media content that needs to be transmitted over the network. The compression control information is used to control the compression process and compression effect of the media content when performing compression operations. The configuration selection of the compression control information is related to the network status when transmitting the media content.

[0033] Media content can refer to information in at least one form that is disseminated through media channels, which present a rich variety of forms. For example, media content includes information, news, entertainment, and opinions disseminated through various media channels. Media content is presented in multiple formats, including at least one of the following: text, images, audio, and video.

[0034] A request to transmit the first media content can be triggered by displaying the first media content on the screen that requires network transmission. This request can be generated by triggering an interactive operation on an interactive element configured on the screen to initiate the transmission of the first media content, such as, but not limited to, buttons. This interactive operation can include, but is not limited to, clicking on the first media content or touching an icon on the screen indicating that the first media content needs to be transmitted.

[0035] Compression control information refers to parameter information that regulates the compression process and its effects during media content processing. It indicates the compression algorithm and degree of compression to be used, reducing both the size and quality of the media content. This allows for precise management of the compression process to achieve the desired compression effect. Compression control information can be a set of parameters and related instructions used to manage and adjust the compression operation to achieve the desired compression effect and goals. It guides the compression process and indicates the desired effect the media content should have after compression.

[0036] Compression is used to reduce the storage space or transmission bandwidth occupied by media content after compression processing. For example, it reduces the size of an audio file or the number of bytes in a high-resolution image while preserving as much of its original visual or auditory quality as possible. The network status of the data transmission network used to transmit media content refers to the operational status and performance of the data transmission network used during media content transmission.

[0037] When transmitting media content, the data volume may exceed network capacity, causing transmission delays or even failure. Therefore, media content is compressed before transmission. However, in poor network conditions, compression increases transmission latency and data loss, severely impacting the smoothness of media display. Conversely, in good network conditions, compression reduces media quality (e.g., audio quality) and wastes network bandwidth.

[0038] Therefore, this solution considers the data transmission network used for media content transmission when compressing the first media content. It allocates compression control information based on the network status of the data transmission network. The network status of the data transmission network is constantly changing during media content transmission, and the configuration of the compression control information is flexibly adjusted according to these changes. When the network bandwidth of the data transmission network is sufficient and the signal is stable, the compression control information can instruct a reduction in the compression level when compressing the first media content. In other words, if the network status is good, the compression control information may instruct the use of a relatively low compression ratio algorithm to compress the first media content, preserving the content details to the greatest extent possible. When the data transmission network becomes congested and bandwidth narrows, the compression control information will react quickly to ensure uninterrupted transmission of the first media content, switching from a low compression ratio to a high compression ratio to significantly reduce the data volume of the media content. For example, when watching a live stream in a mobile network environment with poor signal, the media content will automatically reduce the resolution and color depth to adapt to the limited network bandwidth. Although the quality of the media content will decrease, it can at least ensure basic smoothness and prevent long-term lag or loading failures.

[0039] Optionally, when the first media content is presented in the form of audio data, compression control information can be used to encode and convert the audio data to remove redundant information. Redundant information in the audio data includes, but is not limited to, at least one of the following: sound information within frequency ranges that do not meet auditory requirements, and noise in the audio data. Sound information within frequency ranges that do not meet auditory requirements may include high-frequency or low-frequency components that have a relatively small impact on human hearing. The compression control information can determine which frequency ranges of sound information to retain and discard high-frequency or low-frequency components that have a relatively small impact on auditory perception, thereby compressing the audio file while maintaining audibility as much as possible.

[0040] Optionally, when the first media content is presented in the form of video data, compression control information can be used to encode and convert the video data, reducing the image quality precision of non-critical areas while preserving key image details. For example, while preserving key image details, the image quality precision of non-critical areas can be appropriately reduced, such as simplifying pixel information in blurred background areas of the video, thereby reducing the amount of data.

[0041] By employing the above method and flexibly configuring compression control information based on network conditions, media content transmission interruptions caused by network fluctuations can be effectively avoided. In complex and ever-changing network environments, whether in busy urban commercial areas or remote areas with weak signals, continuous media content transmission can be guaranteed. Furthermore, reasonable compression control information reduces unnecessary data transmission, improving the utilization efficiency of network resources. With limited network bandwidth, precise control of the compression level of media content allows the network to handle more media content requests. Adaptively adjusting compression control information based on network conditions significantly enhances the transmission of media content in different network environments.

[0042] A data transmission network refers to a communication system consisting of at least one network device (such as a router, switch, or server) and a communication link (such as an optical fiber, cable, or wireless frequency band), capable of transmitting audio and video data from the sending end to the receiving end. In audio transmission, the data transmission network digitizes audio signals and transmits the digitized data between different devices using specified protocols and encoding methods, ensuring the accuracy and real-time performance of the audio data so that the receiving end can accurately reproduce the original audio signal. In video transmission, the data transmission network efficiently transmits digitized video image information and related audio information. This requires meeting the characteristics of large video data volumes and high requirements for real-time performance and stability. By optimizing network bandwidth allocation and employing specified transmission protocols, the receiving end can achieve smooth video playback.

[0043] S120. Determine the second media content based on the compression control information of the first media content. The second media content is the media content after the first media content has been compressed.

[0044] Compression control information can be a set of parameters and instructions used to control the compression operation, specifically controlling the compression effect during media content compression. This information indicates the type of compression algorithm used and the degree of compression applied. Different compression algorithms differ in at least one of the following: color reproduction, detail retention, and compression ratio. The degree of compression describes the reduction in size of the media content data after compression; it roughly indicates how much the data size, storage space, and transmission bandwidth are reduced after processing by the compression algorithm.

[0045] The second media content is the media content obtained after compression of the first media content under the compression control information of the first media content. The second media content has a smaller data volume than the first media content to accommodate different storage and transmission needs. The similarity between the media content display effect presented by the second media content and the media content display effect presented by the first media content meets the preset similarity requirement. The media content display effect can be described using visual and / or auditory effects. The media content detail presented by the second media content is lower than that presented by the first media content; the media content detail can be described using picture quality and / or sound quality. Both the first and second media content are audio.

[0046] By employing the above method and appropriately setting compression control information, the compression level can be flexibly adjusted according to actual needs. This allows media content to be transmitted smoothly under different network conditions while meeting storage limitations, significantly reducing the storage space and transmission bandwidth occupied by the media content. Dynamically adjusting the compression control information based on network conditions effectively ensures the smooth playback of media content during transmission. Furthermore, this compression mechanism based on compression control information enables different types of media content to adapt to various storage devices and transmission networks.

[0047] Optionally, the compression control information can configure at least one of the following control parameters: compression algorithm type, compression ratio, sampling rate, number of channels control, quantization bit depth, and compression mode. Different compression algorithms are suitable for different types of data and application scenarios. The compression ratio setting determines the degree to which media content is compressed. A higher compression ratio makes the media content smaller, but sacrifices some media content quality; a lower compression ratio retains more media content details, resulting in better media content refinement, but the data volume is larger. The sampling rate represents the number of samples extracted from a continuous signal per second to form a discrete signal, measured in Hertz (Hz). During compression, the sampling rate can be adjusted. A lower sampling rate reduces the data volume, thus increasing the compression degree, but it also affects the high-frequency performance and the refinement of the media content. The quantization bit depth refers to the number of binary bits used to describe each sample point. A higher quantization bit depth can represent richer amplitude information of the media content, providing better media content refinement, but the data volume is larger. Compression modes can include fast compression mode (fast but potentially slightly lower sound quality), high-quality compression mode (longer processing time but better sound quality), etc.

[0048] S130. Transmit media content based on the second media content.

[0049] The transmission of media content based on the second media content may include the following steps: when the second media content is obtained, the second media content may be encapsulated according to the transmission protocol requirements of the selected data transmission network, and the encapsulated data packet of the second media content may be transmitted through the data transmission network. The data packet of the second media content will pass through multiple nodes in the data transmission network (such as at least one of routers and switches), and then be forwarded to the receiving end step by step according to the destination address information in the header of the data packet of the second media content.

[0050] In one optional example, the first media content is audio input or acquired in real time when the voice input function is activated or triggered. Accordingly, when the voice input function is activated or triggered, the first media content associated with the voice input function is acquired, and in response to a transmission request for the first media content, compression control information of the first media content is determined. The compression control information is used to control the compression process and compression effect of the media content when performing compression operations. The configuration selection of the compression control information is related to the network status when transmitting the media content. The second media content is determined based on the compression control information of the first media content. The second media content is the media content after the first media content has been compressed. The media content is transmitted based on the second media content so that the server receives the second media content and recognizes the text corresponding to the second media content.

[0051] As an optional but not limited implementation, the second media content is determined based on the compression control information of the first media content, including but not limited to the following steps:

[0052] Determine the compression ratio indicated by the compression control information of the first media content, and call the media content encoding algorithm to encode the first media content according to the compression ratio indicated by the compression control information to obtain the second media content.

[0053] During the transmission of the first media content, compression control information for the first media content is received. This compression control information indicates the degree of compression during the compression operation, i.e., it determines the compression ratio of the first media content. The compression ratio is presented as a numerical value or a percentage. After determining the compression ratio of the first media content, the corresponding media content encoding algorithm is invoked to compress and encode the first media content according to the compression ratio indicated by the compression control information. The compression ratio is an indicator that measures the degree of data compression, representing the percentage reduction in data volume after the media content has been processed by the compression algorithm.

[0054] Media content encoding algorithms are the logical algorithms used to compress media content. Different types of media content require different media content encoding algorithms. These algorithms are based on different mathematical principles and data processing methods, aiming to reduce the amount of data in the media content while preserving as much key information as possible.

[0055] Optionally, a corresponding media content encoding algorithm is invoked to compress and encode the first media content. This includes: after receiving the first media content and the compression ratio to be applied to it, invoking the media content encoding algorithm to begin encoding the first media content. Specifically, each part of the first media content is processed according to the predetermined process and rules of the media content encoding algorithm. After a series of processing steps, a second media content that meets the compression ratio requirements is generated. The second media content has a smaller data volume than the first media content.

[0056] The first media content is the raw, uncompressed media data, containing complete media information. The second media content, on the other hand, is the result of processing the data using an encoding algorithm at a specific compression rate. The second media content has a significantly reduced data volume compared to the first media content, at the cost of sacrificing some information detail. For example, in audio compression, some high-frequency sound details may be lost. As long as the compression rate is set reasonably, the second media content can still maintain acceptable quality, meeting basic needs such as watching video and listening to audio. At the same time, due to its reduced data volume, the second media content has significant advantages in storage and transmission, saving storage space and transmission bandwidth.

[0057] Encoding the first media content into the second media content according to the compression rate indicated by the compression control information can significantly reduce the storage space occupied by the media file. When transmitting media content over a network, a smaller data volume means lower transmission bandwidth requirements. Because the second media content is compressed, its data volume is reduced, allowing it to be transmitted to the receiving end faster during network transmission. Simultaneously, for network service providers, reducing transmission bandwidth requirements can reduce network congestion and improve the utilization efficiency of network resources.

[0058] The technical solution of this disclosure embodiment can obtain the carrying capacity and transmission characteristics of the data transmission network in real time by detecting the network status of the data transmission network. When a transmission request for the first media content is received, appropriate compression control information is matched to the first media content according to the network status of the data transmission network. The compression control information can control the compression process and compression effect of the media content when performing compression operations. It can adjust the compression strategy of the media content in real time according to the network status of the data transmission network. Appropriate compression control information can be used to compress the first media content, so that the media content is more adaptable to the network transmission capacity while ensuring quality. It avoids the drawbacks of using a fixed compression ratio under any network conditions. Thus, the quality of the media content can be maintained at a relatively suitable level under different network environments, so as to achieve smooth transmission of media content under limited network resources and ensure a balance between the quality of media content and transmission efficiency under different network environments.

[0059] Figure 2 This is a flowchart illustrating another media content transmission method provided by an embodiment of the present invention. The technical solution of this embodiment further optimizes the process of determining the compression control information of the first media content in the foregoing embodiments based on the technical solutions of the above embodiments. This embodiment can be combined with various optional solutions in one or more of the above embodiments.

[0060] like Figure 2 As shown, the media content transmission method of this embodiment may include the following processes:

[0061] S210. Detect the first network status information of the first media content. The first network status information is used to reflect the network performance of the data transmission network used to transmit the first media content.

[0062] The network performance of a data transmission network refers to the performance of a series of indicators used to measure and evaluate the transmission capacity and characteristics of the data transmission network used to transmit media content during the data transmission process. This reflects the efficiency, quality, and reliability of the data transmission network in processing and transmitting data. Optionally, network status information includes several key indicators, such as network bandwidth, latency, and packet loss rate. Network bandwidth determines the amount of data that can be transmitted per unit time, latency reflects the time required for data to travel from the sender to the receiver, and packet loss rate indicates the proportion of data lost during transmission. At least one of these key indicators can comprehensively describe the network's operating status.

[0063] S220. In response to a transmission request for the first media content, based on the first network status information of the first media content, determine the compression control information of the first media content from multiple compression control information, wherein different compression control information in the multiple compression control information indicates that different compression rates are used when compressing the media content; the compression control information is used to indicate that when compressing the media content, the media content is compressed according to the compression rate indicated by the compression control information.

[0064] The first media content is the media content that needs to be transmitted over the network. The compression control information is used to control the compression process and compression effect of the media content when performing compression operations. The configuration selection of the compression control information is related to the network status when transmitting the media content.

[0065] In a series of compression control messages, each corresponds to a specified compression ratio. Different compression control messages indicate different degrees of compression of the media content. A higher compression ratio means the compressed data size will be smaller, allowing for faster transmission over the network, but may result in some loss of content quality. A lower compression ratio, on the other hand, better preserves the quality of the media content, but requires more network bandwidth for transmission. In other words, some compression control messages apply a high compression ratio (meaning the media content is compressed more severely, resulting in a much smaller file size, but potentially some quality loss), while others apply a low compression ratio (meaning the media content is compressed less severely, resulting in a relatively larger file size, but possibly better quality). Once the appropriate compression control information for the first media content is determined, the compression operation can be performed according to the compression ratio indicated by that information. For example, if the determined compression control information indicates a compression ratio of 80%, then the first media content will be compressed at an 80% compression ratio to achieve suitable storage or transmission under network conditions.

[0066] By employing the above method, and dynamically selecting appropriate compression control information based on network performance, media content can be transmitted in the most suitable way under different network conditions. When network performance is good, excessive compression is avoided, fully utilizing network bandwidth to quickly transmit high-quality media content. When network performance is poor, the compression ratio is increased to reduce data volume, preventing network congestion and thus improving overall transmission efficiency, allowing media content to reach the receiving end more promptly. Furthermore, the mechanism of dynamically adjusting compression parameters based on network performance enables the media transmission system to adapt to different network environments, effectively completing media content transmission tasks whether in high-speed, stable wired networks or in unstable wireless networks.

[0067] As an optional but not limited implementation, detecting the first network state information of the first media content includes, but is not limited to, the following steps:

[0068] Obtain multiple network status parameters of the data transmission network used by the first media content, including at least one of the following: network latency, throughput, and packet loss rate; determine the first network status information of the first media content based on the multiple network status parameters.

[0069] When transmitting the first media content, the network status parameters of the data transmission network used by the first media content are monitored in real time by the network detection module. Network performance indicators may include, but are not limited to, at least one of the following: network latency, network bandwidth, throughput, packet loss rate, jitter, and network availability. Network bandwidth reflects the data transmission network's ability to transmit data, i.e., the amount of data that can be transmitted per unit of time. Network latency refers to the time it takes for data to travel from the sender to the receiver, which affects the transmission of media content with high real-time requirements (such as live video streaming and real-time calls). Packet loss rate indicates the proportion of data packets lost during transmission; an excessively high packet loss rate can lead to problems such as stuttering, screen tearing, or audio interruptions in the media content. Throughput refers to the amount of data successfully transmitted by the network within a specific time period, and is affected by various factors such as bandwidth, network equipment performance, and network congestion. Jitter refers to the degree of variation in packet latency; even if the average latency is low, high jitter can adversely affect real-time applications. Network availability indicates the proportion of time the data transmission network is available for transmission, usually measured as a percentage. High availability means that the data transmission network has less downtime and can provide continuous and stable service. Furthermore, when multiple network status parameter information is obtained, the network rating module determines the first network status information of the first media content based on the multiple network status parameter information.

[0070] As an optional but not limited implementation, the first network state information of the first media content is determined based on multiple network state parameter information, including but not limited to the following steps:

[0071] Determine the network state parameter threshold corresponding to each network parameter in multiple network state parameter information; based on the multiple network state parameter information and the network state parameter threshold corresponding to each network parameter, determine the network performance level of the data transmission network used by the first media content, which is used as the first network state information of the first media content. The data transmission effect of data transmission networks with different network performance levels when transmitting media content is different. The data transmission effect is represented by at least one of the following: data transmission efficiency, data transmission real-time performance, and data transmission integrity.

[0072] Network status parameters include various parameters that reflect network performance, such as bandwidth, latency, and packet loss rate. For each network status parameter, a corresponding threshold is required. The network status parameter threshold is used to determine whether the network performance corresponding to that parameter exceeds the preset network performance for that parameter. The network status parameter threshold is set based on factors such as the data transmission network's design goals, application requirements, and industry standards, and is an important criterion for judging whether network performance is good.

[0073] After determining the network state threshold for each network state parameter, each network state parameter can be compared with its corresponding threshold based on multiple network state parameter information and the threshold values. This comparison determines whether the data transmission network used for the first media content has a performance greater than the preset network performance for each network state parameter. For example, for a data transmission network used for real-time video playback, a network transmission bandwidth threshold of 5Mbps, a latency threshold of 30ms, and a packet loss rate threshold of 1% can be set. If the actual bandwidth of the data transmission network is lower than 5Mbps, the network performance corresponding to the bandwidth is considered not to meet the preset network performance; or, if the latency of the data transmission network is higher than 30ms, the network performance corresponding to the bandwidth is considered not to meet the preset network performance; or, if the packet loss rate of the data transmission network is higher than 1%, the network performance corresponding to the bandwidth is considered not to meet the preset network performance.

[0074] Optionally, the network performance level of the data transmission network used by the first media content is determined based on multiple network status parameter information and the network status parameter threshold corresponding to each network parameter. This includes: determining the number of network status parameter information that exceeds the preset network performance corresponding to each network status parameter based on whether the network performance of the data transmission network used by the first media content is greater than the preset network performance corresponding to each network status parameter; and determining the network performance level of the data transmission network used by the first media content based on the number of network status parameter information that exceeds the preset network performance corresponding to each network status parameter. Specifically, the more network status parameter information that exceeds the preset network performance corresponding to each network status parameter, the lower the network performance level of the data transmission network used by the first media content; conversely, the fewer network status parameter information that exceeds the preset network performance corresponding to each network status parameter, the higher the network performance level of the data transmission network used by the first media content.

[0075] Based on multiple network status parameters and the corresponding threshold values ​​for each network status parameter, the network performance level of the data transmission network used by the first media content is determined, including: if, based on whether the network performance of the data transmission network used by the first media content is greater than the preset network performance for each network status parameter, it is determined that all network status parameters exceed the preset network performance for each network status parameter, then the data transmission network used by the first media content is determined to be at a first network performance level; if, based on whether the network performance of the data transmission network used by the first media content is greater than the preset network performance for each network status parameter, it is determined that some network status parameters exceed the preset network performance for each network status parameter, then the data transmission network used by the first media content is determined to be at a second network performance level; if, based on whether the network performance of the data transmission network used by the first media content is greater than the preset network performance for each network status parameter, it is determined that no network status parameter exceeds the preset network performance for each network status parameter, then the data transmission network used by the first media content is determined to be at a third network performance level.

[0076] The first, second, and third network performance levels reflect a progressively lower network performance of the data transmission network. The compression control information configured for the first media content at different network performance levels indicates different compression rates for the compression operation. For example, the compression control information for the first media content at the first, second, and third network performance levels indicates compression rates of 4x, 8x, and 16x, respectively.

[0077] For example, if network transmission bandwidth, latency, and packet loss rate are all lower than their respective preset network performance levels, then the network performance level is likely to be high. Conversely, if some of the network status parameters exceed their respective preset network performance levels, the network performance level will be low. Furthermore, as the number of network status parameters exceeding their respective preset network performance levels increases, the network performance level of the data transmission network gradually decreases. The network performance level can be divided into different grades, such as excellent, good, average, and poor, with each grade corresponding to a different network performance condition of the data transmission network.

[0078] Different network performance levels will produce different data transmission effects when transmitting the same media content. Data transmission effects can be represented by data transmission efficiency, real-time performance, and data transmission integrity. Data transmission efficiency is mainly related to bandwidth; higher bandwidth usually results in higher transmission efficiency, allowing media content to load and play faster. Real-time performance is closely related to latency and jitter; low latency and low jitter ensure the integrity of media content and prevent stuttering and delays. Data transmission integrity is related to packet loss rate; a low packet loss rate ensures that no data is lost during transmission, guaranteeing the integrity and quality of playback.

[0079] By adopting the above method, and by determining the network performance level and using it as the first network status information of the primary media content, the playback strategy of the media content can be adaptively adjusted according to the network status. This allows for the rational allocation of server resources and network bandwidth based on the network performance conditions in different regions and time periods, enabling more efficient transmission of media content, improving resource utilization, and reducing operating costs.

[0080] As an optional but not limited implementation, before detecting the first network state information of the first media content, the following steps are also included, but are not limited to:

[0081] The second network status information of the third media content is obtained to control the execution of the following operations: detecting the first network status information of the first media content; wherein, the third media content is media content transmitted before the first media content using the data transmission network used by the first media content, and the second network status information is used to reflect the network performance of the data transmission network used to transmit the third media content; the network performance indicated by the second network status information is negatively correlated with the reference time interval, which is the time interval between the detection time corresponding to the first network status information and the detection time corresponding to the second network status information.

[0082] The third media content is media content transmitted before the first media content, using the same data transmission network as the first media content. This means that the first and third media content use the same network but are at different times. Since the network performance of the data transmission network may change over time, it is necessary to monitor the network status of each media content transmission separately. The second network status information refers to the network status information of the data transmission network used by the third media content during transmission, reflecting the network performance of the data transmission network during transmission. For example, the second network status information includes a comprehensive description of at least one network status parameter among bandwidth, latency, and packet loss rate of the data transmission network during the transmission of the third media content, similar to the performance description of the network used by the first media content mentioned earlier.

[0083] The network performance indicated by the second network status information is negatively correlated with the reference time interval. The reference time interval is the time interval between the detection time corresponding to the first network status information and the detection time corresponding to the second network status information. Simply put, if the network performance detected during the transmission of the third media content is good, then the first network status information of the first media content should be checked after a relatively short time interval, because the network may still be in a good state, suitable for detection or appropriate control of the transmission of the first media content. Conversely, if the network performance is poor during the transmission of the third media content, a relatively longer time may be waited before checking the first network status information of the first media content, allowing the network time to recover or adjust, avoiding frequent checks or adverse effects on the transmission of the first media content when network performance is poor. The purpose of obtaining the second network status information is to control the detection of the first network status information of the first media content; that is, using the network status information of the data transmission network corresponding to the transmission of the third media content as a reference, it determines when and how to initiate and detect the first network status information of the first media content.

[0084] By employing the above method, the timing of network status detection for subsequent first media content can be adaptively determined based on the network status during the transmission of the third media content. This makes the detection operation more targeted and reasonable, better adapting to dynamic changes in network performance and avoiding unnecessary detection during periods of network instability or poor performance, thus reducing resource waste. Controlling the detection of first network status information based on the relationship between second network status information and a reference time interval helps to more accurately grasp the network status during the transmission of first media content. This allows for optimized control of first media content transmission based on real-time network performance, and reasonable detection control can reduce system fluctuations caused by frequent changes in network status. It also avoids the resource consumption caused by excessive or inappropriate detection.

[0085] S230. Determine the second media content based on the compression control information of the first media content. The second media content is the media content after the first media content has been compressed.

[0086] Optionally, the network rating module determines the network status parameter threshold corresponding to each network parameter in the multiple network status parameter information; based on the multiple network status parameter information and the network status parameter threshold corresponding to each network parameter, the network performance level of the data transmission network used by the first media content is determined as the first network status information of the first media content; the compression control unit corresponding to the compression module determines the compression control information of the first media content from multiple compression control information based on the first network status information of the first media content; and the encoding unit of the compression control unit corresponding to the compression module determines the second media content based on the compression control information of the first media content.

[0087] S240. Transmit media content based on the second media content.

[0088] As an optional but not limited implementation, the following steps may also be included before transmitting the media content based on the second media content:

[0089] Based on the first network status information of the first media content, the buffer size of the first media content is determined; the buffer size of the first media content indicates the amount of media content data that the buffer needs to store when the first media content is buffered; the first network status information of the first media content is used to reflect the network performance of the data transmission network used to transmit the first media content; the buffer is configured according to the buffer size of the first media content for caching the second media content.

[0090] The buffer size for the first media content is a quantified value representing the amount of media content data that the buffer needs to store when performing buffering operations on the first media content. The buffer size for the first media content is calculated based on the first network state information to determine the size of the buffer and storage requirements. The buffer is a memory or storage area used to temporarily store data. During media content transmission, it is used to pre-store a certain amount of media content data to cope with network fluctuations and other situations, preventing media content loss during transmission.

[0091] The network performance of the data transmission network indicated by the first network status information is negatively correlated with the buffer size of the first media content, while the buffer size of the first media content is positively correlated with the buffer size. Higher network performance allows for faster media content transmission, preventing content backlog and loss due to transmission failures. This results in a smaller buffer size for the first media content and a correspondingly smaller allocated buffer. Conversely, lower network performance hinders fast media content transmission, increasing the likelihood of content backlog. This necessitates a larger buffer size for the first media content to prevent loss and requires a larger allocated buffer.

[0092] The buffering module can determine the buffer size of the first media content based on the first network status information. This network status information includes at least one parameter such as network bandwidth, latency, and packet loss rate. These parameters comprehensively reflect the network performance of the data transmission network. If the first network status information indicates sufficient network bandwidth, low latency, and a low packet loss rate, it indicates good network performance, and the buffer size for the first media content should be relatively small because the network can transmit media data smoothly in real time. Conversely, if the first network status information indicates insufficient network bandwidth, high latency, or a high packet loss rate, a larger buffer size is needed to ensure smooth playback of the first media content and to cope with potential transmission interruptions or stuttering. By converting the network status information into a specific buffer size value, this value indicates the amount of media content data that the buffer needs to store when buffering the first media content.

[0093] After determining the buffer size for the first media content, the buffer can be configured accordingly. The buffer is an area used for temporary storage of media content, and its size and configuration affect the transmission of the media content. Configuring the buffer based on the buffer size of the first media content involves adjusting parameters such as the buffer size and storage strategy to adapt to the transmission requirements of the first media content. For example, if the buffer size is large, it may be necessary to allocate more memory space as a buffer, or to use a more efficient storage algorithm to manage the data in the buffer. After configuring the buffer based on the buffer size of the first media content, this buffer can be used to cache the second media content to optimize its playback performance. The second media content has similar attributes to the first media content or is related to it in the same playback context. By configuring the buffer based on the buffer size of the first media content, a more optimized caching environment can be provided for subsequent second media content, improving the continuity and smoothness of media content playback.

[0094] Dynamically determining and configuring the buffer size based on network status information effectively addresses network fluctuations. When network performance is poor, a larger buffer size allows for pre-storing sufficient media data, preventing stuttering or interruptions during playback and significantly improving playback smoothness. This method avoids both over-buffering and under-buffering. When network performance is good, reducing the buffer size avoids unnecessary memory consumption and improves system resource utilization efficiency; conversely, when network performance is poor, appropriately increasing the buffer size ensures playback quality. This achieves rational resource allocation and effective utilization, enabling the system to maintain good operation under various network conditions. By configuring the buffer based on the network status information of the first media content, it can adapt to different network environments and media content transmission requirements.

[0095] As an optional but not limited implementation, the transmission of media content based on the second media content includes, but is not limited to, the following steps A1-A2:

[0096] Step A1: When the data transmission network used by the first media content is interrupted, the second media content is cached in a buffer, and the first data transmission position is recorded. The first data transmission position is used to indicate the cache position of the second media content that has been transmitted when the data transmission network used by the first media content is interrupted in the buffer area.

[0097] Step A2: If the data transmission network used by the first media content is interrupted and then resumed, the uncompleted second media content is read from the buffer according to the first data transmission position and the transmission continues.

[0098] An interruption in the data transmission network refers to a situation where the data transmission network used by the first media content suddenly stops transmitting data due to various network reasons (such as network failure, signal interference, server problems, etc.), making it impossible to continue transmitting media content data normally. The first data transmission location indicates the storage location of the second media content, which has been successfully transmitted and stored in the buffer, when the data transmission network used by the first media content experiences an interruption. The first data transmission location is used to locate the untransmitted second media content when the data transmission network is restored.

[0099] When the data transmission network upon which the first media content depends suddenly fails, preventing the normal transmission of the second media content, a buffer is used to cache the second media content that is being transmitted or is about to be transmitted. The buffer acts as a temporary data storage station, preserving the second media content data that should be transmitted via the data transmission network during the network outage. Simultaneously, it precisely records the exact cached location of the second media content that has been successfully transmitted at the moment of the data transmission network interruption, designated as the first data transmission location. The first data transmission location indicates the storage location of the second media content that has been successfully transmitted and stored in the buffer during the data transmission network interruption.

[0100] Data transmission network interruption recovery can occur when the data transmission network used by the first media content experiences an interruption, undergoes a series of processing and repairs, and returns to a state where it can transmit data normally, allowing the data transmission of the media content to continue. Once the data transmission network used by the first media content successfully recovers from the interruption, based on the previously recorded first data transmission position, the untransmitted second media content is accurately located in the buffer. Starting from this position, the remaining untransmitted second media content in the buffer continues to be transmitted. Continuing to transmit the remaining untransmitted second media content means that after the data transmission network interruption is recovered, starting from the position indicated by the first data transmission position in the buffer, the remaining untransmitted second media content data in the buffer continues to be transmitted through the recovered network according to the established transmission rules and paths of the data transmission network. This ensures that the second media content can be completely received and processed, guaranteeing smooth media playback or other related operations.

[0101] By caching data and recording transmission positions during network outages, transmission can accurately resume from the point of interruption upon network recovery. This ensures that all data of the secondary media content is transmitted completely to the target device, avoiding data loss or partial content failure due to network interruptions. This guarantees users access to complete media content and improves data transmission reliability. This approach avoids retransmitting cached data after network recovery, reducing unnecessary data duplication and saving network bandwidth and system processing resources. Furthermore, the efficient use of buffers provides a suitable temporary storage solution for data during network outages, improving resource utilization efficiency and enabling high-efficiency operation even under unstable network conditions. This mechanism for handling network outages better adapts to complex and changing network environments, maintaining data transmission continuity through caching and resuming interrupted transmissions, whether dealing with temporary network fluctuations or brief network failures.

[0102] The technical solution of this disclosure embodiment can obtain the carrying capacity and transmission characteristics of the data transmission network in real time by detecting the network status of the data transmission network. When a transmission request for the first media content is received, appropriate compression control information is matched to the first media content according to the network status of the data transmission network. The compression control information can control the compression process and compression effect of the media content when performing compression operations. It can adjust the compression strategy of the media content in real time according to the network status of the data transmission network. Appropriate compression control information can be used to compress the first media content, so that the media content is more adaptable to the network transmission capacity while ensuring quality. It avoids the drawbacks of using a fixed compression ratio under any network conditions. Thus, the quality of the media content can be maintained at a relatively suitable level under different network environments, so as to achieve smooth transmission of media content under limited network resources and ensure a balance between the quality of media content and transmission efficiency under different network environments.

[0103] Figure 3 This is a schematic diagram of a media content transmission device provided in an embodiment of the present disclosure. The embodiments of the present disclosure are applicable to situations where media content can be transmitted as quickly as possible while ensuring the quality of the media content. The media content transmission device can be implemented in the form of software and / or hardware, and optionally, it can be implemented by an electronic device, such as a mobile terminal, a PC, or a server.

[0104] like Figure 3 As shown, the media content transmission apparatus of this disclosure embodiment may include the following:

[0105] The detection module 310 is used to respond to a transmission request for the first media content and determine the compression control information of the first media content. The first media content is media content that needs to be transmitted over the network. The compression control information is used to control the compression process and compression effect of the media content when performing compression operations. The configuration selection of the compression control information is related to the network status when transmitting the media content.

[0106] Compression module 320 determines second media content based on compression control information of the first media content, wherein the second media content is media content after compression processing of the first media content;

[0107] The transmission module 330 is used to transmit media content according to the second media content.

[0108] Based on the above embodiments, optionally, determining the compression control information of the first media content includes:

[0109] The first network status information of the first media content is detected, and the first network status information is used to reflect the network performance of the data transmission network used to transmit the first media content.

[0110] Based on the first network status information of the first media content, compression control information of the first media content is determined from multiple compression control information. Each of the multiple compression control information indicates a different compression rate when compressing the media content. The compression control information is used to indicate that when compressing the media content, the media content is compressed according to the compression rate indicated by the compression control information.

[0111] Based on the above embodiments, optionally, detecting the first network status information of the first media content includes:

[0112] Obtain multiple network status parameter information of the data transmission network used by the first media content, wherein the multiple network status parameter information includes at least one of the following: network latency, throughput and packet loss rate;

[0113] Based on the multiple network status parameter information, the first network status information of the first media content is determined.

[0114] Based on the above embodiments, optionally, determining the first network status information of the first media content according to the plurality of network status parameter information includes:

[0115] Determine the network state parameter threshold corresponding to each of the plurality of network state parameter information;

[0116] Based on the multiple network status parameter information and the network status parameter threshold corresponding to each network parameter, the network status level of the data transmission network used by the first media content is determined, which is used as the first network status information of the first media content. The data transmission effect of the data transmission network with different network status levels is different when transmitting media content. The data transmission effect is represented by at least one of the following: data transmission efficiency, data transmission real-time performance, and data transmission integrity.

[0117] Optionally, based on the above embodiments, before detecting the first network status information of the first media content, the method further includes:

[0118] Obtain the second network status information of the third media content, and use it to control the execution of the following operation: detect the first network status information of the first media content;

[0119] The third media content is media content transmitted using the data transmission network used by the first media content before the first media content. The second network status information is used to reflect the network performance of the data transmission network used to transmit the third media content. The network performance indicated by the second network status information is negatively correlated with the reference time interval, which is the time interval between the detection time corresponding to the first network status information and the detection time corresponding to the second network status information.

[0120] Based on the above embodiments, optionally, determining the second media content according to the compression control information of the first media content includes:

[0121] The compression ratio indicated by the compression control information of the first media content is determined, and the media content encoding algorithm is invoked to encode the first media content according to the compression ratio indicated by the compression control information to obtain the second media content.

[0122] Optionally, based on the above embodiments, before transmitting the media content according to the second media content, the method further includes:

[0123] Based on the first network status information of the first media content, the buffer size of the first media content is determined; the buffer size of the first media content indicates the amount of media content data that the buffer needs to store when the first media content is buffered; the first network status information of the first media content is used to reflect the network performance of the data transmission network used to transmit the first media content.

[0124] Configure a buffer based on the buffer size of the first media content to cache the second media content.

[0125] Based on the above embodiments, optionally, transmitting media content according to the second media content includes:

[0126] When the data transmission network used by the first media content is interrupted, the second media content is cached in a buffer and the first data transmission position is recorded. The first data transmission position is used to indicate the cache position of the second media content that has been transmitted when the data transmission network used by the first media content is interrupted in the buffer area.

[0127] If the data transmission network used by the first media content is interrupted and then resumed, the uncompleted second media content is read from the buffer according to the first data transmission position and the transmission continues.

[0128] The technical solution of this disclosure embodiment can obtain the carrying capacity and transmission characteristics of the data transmission network in real time by detecting the network status of the data transmission network. When a transmission request for the first media content is received, appropriate compression control information is matched to the first media content according to the network status of the data transmission network. The compression control information can control the compression process and compression effect of the media content when performing compression operations. It can adjust the compression strategy of the media content in real time according to the network status of the data transmission network. Appropriate compression control information can be used to compress the first media content, so that the media content is more adaptable to the network transmission capacity while ensuring quality. It avoids the drawbacks of using a fixed compression ratio under any network conditions. Thus, the quality of the media content can be maintained at a relatively suitable level under different network environments, so as to achieve smooth transmission of media content under limited network resources and ensure a balance between the quality of media content and transmission efficiency under different network environments.

[0129] The media content transmission apparatus provided in this disclosure can execute the media content transmission method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects for executing the media content transmission method.

[0130] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of this disclosure.

[0131] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Reference is made below. Figure 4 It illustrates an electronic device suitable for implementing embodiments of the present disclosure (e.g., Figure 4 The diagram below shows the structure of the terminal device or server 500. The terminal device in this embodiment may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and vehicle terminals (e.g., vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 4 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0132] like Figure 4As shown, electronic device 500 may include a processing unit (e.g., central processing unit, graphics processor, etc.) 501, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 502 or a program loaded from storage device 508 into random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of electronic device 500. The processing unit 501, ROM 502, and RAM 503 are interconnected via bus 504. An edit / output (I / O) interface 505 is also connected to bus 504.

[0133] Typically, the following devices can be connected to I / O interface 505: input devices 506 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 507 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 508 including, for example, magnetic tapes, hard disks, etc.; and communication devices 509. Communication device 509 allows electronic device 500 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 4 An electronic device 500 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0134] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, it performs the functions defined in the methods of embodiments of this disclosure.

[0135] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0136] The electronic device provided in this embodiment and the media content transmission method provided in the above embodiments belong to the same inventive concept. Technical details not described in detail in this embodiment can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.

[0137] This disclosure provides a computer storage medium storing a computer program that, when executed by a processor, implements the media content transmission method provided in the above embodiments.

[0138] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0139] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.

[0140] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0141] The aforementioned computer-readable medium carries one or more programs. When the electronic device executes the one or more programs, the electronic device causes the electronic device to: determine compression control information for the first media content in response to a transmission request for the first media content, wherein the first media content is media content to be transmitted over a network, the compression control information being used to control the compression process and compression effect of the media content during compression operations, and the configuration selection of the compression control information being related to the network status during transmission of the media content; determine a second media content based on the compression control information of the first media content, wherein the second media content is media content after compression of the first media content; and transmit the media content based on the second media content.

[0142] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including but not limited to object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0143] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0144] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".

[0145] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.

[0146] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0147] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0148] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0149] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.

Claims

1. A method for transmitting media content, characterized in that, The method includes: In response to a transmission request for first media content, compression control information for the first media content is determined. The first media content is media content that needs to be transmitted over the network. The compression control information is used to control the compression process and compression effect of the media content when performing compression operations. The configuration selection of the compression control information is related to the network status when transmitting the media content. The second media content is determined based on the compression control information of the first media content, and the second media content is the media content after the first media content has been compressed. The media content is transmitted based on the second media content.

2. The method according to claim 1, characterized in that, Determine the compression control information for the first media content, including: The first network status information of the first media content is detected, and the first network status information is used to reflect the network performance of the data transmission network used to transmit the first media content. Based on the first network status information of the first media content, compression control information of the first media content is determined from multiple compression control information. Each of the multiple compression control information indicates a different compression rate when compressing the media content. The compression control information is used to indicate that when compressing the media content, the media content is compressed according to the compression rate indicated by the compression control information.

3. The method according to claim 2, characterized in that, The first network status information for detecting the first media content includes: Obtain multiple network status parameter information of the data transmission network used by the first media content, wherein the multiple network status parameter information includes at least one of the following: network latency, throughput and packet loss rate; Based on the multiple network status parameter information, the first network status information of the first media content is determined.

4. The method according to claim 3, characterized in that, Based on the multiple network status parameter information, the first network status information of the first media content is determined, including: Determine the network state parameter threshold corresponding to each of the plurality of network state parameter information; Based on the multiple network status parameter information and the network status parameter threshold corresponding to each network parameter, the network status level of the data transmission network used by the first media content is determined, which is used as the first network status information of the first media content. The data transmission effect of the data transmission network with different network status levels is different when transmitting media content. The data transmission effect is represented by at least one of the following: data transmission efficiency, data transmission real-time performance, and data transmission integrity.

5. The method according to claim 2, characterized in that, Before detecting the first network state information of the first media content, the process also includes: Obtain the second network status information of the third media content, and use it to control the execution of the following operation: detect the first network status information of the first media content; The third media content is media content transmitted using the data transmission network used by the first media content before the first media content. The second network status information is used to reflect the network performance of the data transmission network used to transmit the third media content. The network performance indicated by the second network status information is negatively correlated with the reference time interval, which is the time interval between the detection time corresponding to the first network status information and the detection time corresponding to the second network status information.

6. The method according to claim 1, characterized in that, The second media content is determined based on the compression control information of the first media content, including: The compression ratio indicated by the compression control information of the first media content is determined, and the media content encoding algorithm is invoked to encode the first media content according to the compression ratio indicated by the compression control information to obtain the second media content.

7. The method according to claim 1, characterized in that, Before transmitting the media content based on the second media content, it also includes: Based on the first network status information of the first media content, the buffer size of the first media content is determined; the buffer size of the first media content indicates the amount of media content data that the buffer needs to store when the first media content is buffered; the first network status information of the first media content is used to reflect the network performance of the data transmission network used to transmit the first media content. Configure a buffer based on the buffer size of the first media content to cache the second media content.

8. The method according to claim 1, characterized in that, Transmitting media content based on the second media content includes: When the data transmission network used by the first media content is interrupted, the second media content is cached in a buffer and the first data transmission position is recorded. The first data transmission position is used to indicate the cache position of the second media content that has been transmitted when the data transmission network used by the first media content is interrupted in the buffer area. If the data transmission network used by the first media content is interrupted and then resumed, the uncompleted second media content is read from the buffer according to the first data transmission position and the transmission continues.

9. The method according to claim 1, characterized in that, Both the first media content and the second media content are audio.

10. A media content transmission device, characterized in that, The device includes: The detection module is used to respond to a transmission request for the first media content and determine the compression control information of the first media content, wherein the first media content is media content that needs to be transmitted over the network, and the compression control information is used to control the compression process and compression effect of the media content when performing compression operations, and the configuration selection of the compression control information is related to the network status when transmitting the media content; The compression module determines the second media content based on the compression control information of the first media content, wherein the second media content is the media content after the first media content has been compressed. The transmission module is used to transmit media content according to the second media content.

11. An electronic device, characterized in that, The electronic device includes: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the media content transmission method according to any one of claims 1-9.

12. A storage medium containing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by a computer processor, are used to perform the media content transmission method according to any one of claims 1-9.