Network response method and apparatus, electronic device and storage medium
By obtaining the video stream of the first application in the live broadcast and analyzing the screen content of the video frame, network delay information is determined, network delay problem in the live broadcast is solved, avoiding lag, and improving the live broadcast effect.
Patent Information
- Application Number
- PCT/SG2024/050768
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-12-01
- Filing Date
- 2024-11-29
- Publication Date
- 2025-06-05
AI Technical Summary
When applying the first application in live broadcast, network delay problems often occur, resulting in poor live broadcast effect. An effective solution is needed to deal with network response situations to avoid lag.
By acquiring a video stream corresponding to the first application, a video frame in the video stream is acquired during the live broadcast, and network delay information is determined based on the screen content of the video frame, thereby determining the network response status of the first application.
It realizes timely understanding the network response of the first application in live broadcast, and deals with network delays in a targeted manner to avoid application lags, thereby improving the live broadcast effect.
Smart Images

Figure SG2024050768_05062025_PF_FP_ABST
Abstract
Description
[0001] This application claims priority to Chinese patent application number 202311642985.3, filed with the State Intellectual Property Office of China on December 1, 2023, entitled "Network Response Method, Device, Electronic Device, and Storage Medium," the entire contents of which are incorporated herein by reference. Technical Field: The disclosed embodiments relate to computer application technology, and more particularly to a network response method, device, electronic device, and storage medium. Background: With the development of internet technology, the live streaming industry has also experienced rapid growth. Live streaming platforms offer diverse live content, such as the introduction of content presented by a first application during live streaming. In related art, the content of the first application displayed in a live streaming room is typically recorded using screen recording during the application of the first application. However, this live streaming method often results in network delays, which can affect the live streaming experience. Therefore, there is an urgent need to provide an effective and reliable solution for addressing network response issues associated with the application of the first application during live streaming. SUMMARY OF THE INVENTION The present disclosure provides a network response method, apparatus, electronic device, and storage medium to timely monitor the network response status of a first application and perform targeted processing on network delays, thereby avoiding lag and improving live streaming performance. In one aspect, embodiments of the present disclosure provide a network response method, comprising: obtaining a video stream corresponding to a first application, and displaying the video stream in a live streaming room of a second application; during the live streaming process, obtaining at least one video frame from the video stream, and determining network delay information corresponding to the video frame based on the image content of the video frame; and determining a network response status corresponding to the first application based on the network delay information. In another aspect, embodiments of the present disclosure also provide a network response device, comprising: a video stream acquisition module, configured to obtain a video stream corresponding to the first application, and display the video stream in a live streaming room of a second application; a network delay determination module, configured to obtain at least one video frame from the video stream, and determine network delay information corresponding to the video frame based on the image content of the video frame; and a response status determination module, configured to determine the network response status corresponding to the first application based on the network delay information. In a third aspect, an embodiment of the present disclosure further provides an electronic device, comprising: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the network response method as described in any one of the embodiments of the present disclosure.In a fourth aspect, embodiments of the present disclosure further provide a storage medium containing computer-executable instructions. When executed by a computer processor, the computer-executable instructions are used to perform a network response method as described in any of the embodiments of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS The foregoing and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the accompanying drawings and the following detailed description. Throughout the drawings, identical or similar reference numerals represent identical or similar elements. It should be understood that the drawings are schematic, and the components and elements are not necessarily drawn to scale. Figure 1 is a flowchart of a network response method provided in an embodiment of the present disclosure; Figure 2 is an example of an interface for matching video definition applicable to the network response method provided in an embodiment of the present disclosure; Figure 3 is a flowchart of a video definition matching method provided in an embodiment of the present disclosure; Figure 4 is a flowchart of another network response method provided in an embodiment of the present disclosure; Figure 5 is a flowchart of another network response method provided in an embodiment of the present disclosure; Figure 6 is an example of a live broadcast response framework applicable to the network response method provided in an embodiment of the present disclosure; Figure 7 is a schematic diagram of the structure of a network response device provided in an embodiment of the present disclosure; and Figure 8 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. Specific Embodiments The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present 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 the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure. It should be understood that the steps described in the method embodiments of the present disclosure can be performed in a different order and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit illustrated steps. The scope of the present disclosure is not limited in this respect. As used herein, the term "including" and its variations are intended to be open-ended, meaning "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; and the term "some embodiments" means "at least some embodiments." Definitions of other terms are provided below. It should be noted that the concepts of “first”, “second”, etc. mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of functions performed by these devices, modules or units.It should be noted that the modifiers "one" and "multiple" mentioned in this disclosure are illustrative and non-restrictive. Those skilled in the art should understand that, unless the context clearly indicates otherwise, they should be understood to mean "one or more." The names of the messages or information exchanged between the multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of these messages or information. It should be understood that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, and usage scenarios of the personal information involved in this disclosure should be informed to the user and their authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations. For example, in response to a user's active request, a prompt message may be sent to the user to clearly inform the user that the requested operation will require the acquisition and use of the user's personal information. This allows users to autonomously choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that performs the operations of the disclosed technical solution based on the prompt information. As an optional but non-limiting implementation, in response to receiving the user's active request, the prompt information may be sent to the user in the form of a pop-up window, for example, in which the prompt information may be presented in text form. Furthermore, the pop-up window may also contain a selection control for the user to select "Agree" or "Disagree" to provide personal information to the electronic device. It should be understood that the above notification and user authorization process is merely illustrative and does not constitute a limitation of the disclosed implementation. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the disclosed technology. It should be understood that the data involved in the present technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws and regulations and relevant provisions. Figure 1 is a flow chart of a network response method provided by an embodiment of the present disclosure. This embodiment of the present disclosure is applicable to determining the network response status of an application during a live broadcast. The method can be performed by a network response device, which can be implemented in software and / or hardware. Optionally, the method can be implemented by an electronic device, such as a mobile terminal, a PC, or a server. As shown in Figure 1, the method of this embodiment may specifically include the following:
[0002] S110: Obtain a video stream corresponding to a first application to display the video stream in a live broadcast room of a second application. The second application can be understood as an application that needs to display a video stream. The first application can be understood as an application other than the first application. For example, the second application can be a live broadcast platform. The first application can be a platform other than the live broadcast platform. Optionally, the second application can be a third-party gaming application. The video stream can be understood as a video stream obtained by recording the display content of the first application. In the disclosed embodiment, obtaining the video stream corresponding to the first application can specifically involve screen recording the use of the first application during the use of the first application to obtain the video stream corresponding to the first application. Specifically, upon receiving a view trigger operation for the live broadcast room of the second application, the video stream corresponding to the first application can be obtained. The video stream can then be displayed in the live broadcast room, thereby displaying the video stream in the live broadcast room of the second application. The view trigger operation can be understood as a trigger operation for displaying the live broadcast room. In the disclosed embodiment, presenting the video stream in the live broadcast room may include: determining a target encoding algorithm corresponding to the live broadcast room, and presenting the video stream in the live broadcast room based on the target encoding algorithm, wherein the target encoding algorithm is configured to reduce the maximum streaming bitrate of the live broadcast room based on the target encoding algorithm while maintaining the video clarity of the live broadcast room. The "H-standard encoding algorithm" can be understood as an encoding algorithm capable of reducing the maximum streaming bitrate of the live broadcast room while maintaining the video clarity of the live broadcast room. Video clarity can include ultra-high-definition 1080p, high-definition 720p, standard-definition 540p, standard-definition 480p, and smooth 360p. It is understood that the higher the video clarity, the clearer the live broadcast image. The maximum streaming bitrate can be understood as the maximum streaming bitrate for streaming the live video in the live broadcast room. In the disclosed embodiments, reducing the maximum streaming bitrate of a live broadcast room is intended to: reduce uplink bandwidth usage to accommodate the uplink bandwidth of the first application, thereby optimizing network latency for the first application and ensuring sufficient clarity while allowing viewers to enjoy a smoother live broadcast experience. It should be noted that uplink bandwidth refers to the bandwidth used to upload data in a network connection, which can be expressed as the speed at which data is sent to the network. In the disclosed embodiments, determining a target encoding algorithm for the live broadcast room may include: determining an optional encoding algorithm for the live broadcast room; and determining a target encoding algorithm for the live broadcast room based on the optional encoding algorithm. The optional encoding algorithm can be understood as an encoding algorithm that the live broadcast room can support. There can be one or more optional encoding algorithms.The video definition corresponding to different optional encoding algorithms may be the same or different. The maximum streaming bitrate corresponding to different optional encoding algorithms may be the same or different. In the disclosed embodiment, a target encoding algorithm corresponding to the live broadcast room is selected from the optional encoding algorithms. Specifically, for the video definition used by the live broadcast room, it can be determined that the live broadcast room supports at least one optional encoding algorithm corresponding to the video definition. The encoding algorithm with the lowest maximum streaming bitrate among the optional encoding algorithms is selected as the target encoding algorithm corresponding to the live broadcast room. In an embodiment of the present disclosure, there are multiple ways to determine the target encoding algorithm corresponding to the live broadcast room using the optional encoding algorithm. For example, when there are multiple optional encoding algorithms, or when there is only one optional encoding algorithm, the optional encoding algorithm can be used as the target encoding algorithm corresponding to the live broadcast room. When there are multiple optional encoding algorithms, an encoding algorithm that can reduce the maximum streaming bitrate of the live broadcast room while maintaining the video clarity of the live broadcast room can be selected from each optional encoding algorithm as the target encoding algorithm corresponding to the live broadcast room. Exemplarily, an encoding algorithm for encoding a video is obtained, where the encoding algorithm can include an H264 encoding algorithm and an H265 encoding algorithm. It should be noted that, when the video clarity of the live broadcast room remains unchanged, the bitrate of video encoding using the H265 encoding algorithm is lower than the bitrate of video encoding using the H264 encoding algorithm. Exemplarily, after the broadcast starts, it can be determined whether encoding using the H265 encoding algorithm is supported; if so, If the H265 encoding algorithm is the target encoding algorithm for the live broadcast room, the maximum streaming bitrate for the live broadcast room can be downscaled based on the H265 encoding algorithm at a preset downscaling ratio (e.g., 80%). If not, it can be determined that the H265 encoding algorithm is not the B-standard encoding algorithm for the live broadcast room. Since higher video definition increases the uplink network bandwidth, to avoid network delays caused by a mismatch between the live broadcast room's video definition and bandwidth, in this disclosed embodiment, before displaying the video stream in the live broadcast room, the process may further include: determining a video definition that matches the live broadcast room through network speed testing. Optionally, the network speed testing may include automatic and manual speed testing. As an optional implementation of the present disclosure, if the network speed testing is manual, the video definition that matches the live broadcast room can be determined through manual speed testing. Specifically, as shown in Figure 2, a network speed testing interface is displayed, wherein the network speed testing interface includes a video definition selection control.After receiving a control trigger operation for the video definition selection control, a video definition selection window may be displayed on the network speed test interface. The video definition selection window displays the network speed test control and candidate video definitions, with the candidate video definition corresponding to the initial video definition being highlighted. After receiving a control trigger operation for the network speed test control, a speed test buffer interface may be displayed on the network speed test interface. A video definition matching the live broadcast room is matched based on the network speed test and the matched video definition is displayed. After the network speed test is completed, the interface may switch to the video definition selection window, and the initial video definition displayed in the video definition selection window may be updated to the matched video definition. After the network speed test is completed, a video definition display window may also be displayed on the network speed test interface, wherein the video definition display window displays the video definition matching the live broadcast room. Exemplarily, this may be displayed in correspondence with the video definition selection control, for example, on the control identifier corresponding to the video definition selection control. The initial video definition can be a default video definition, or a video definition selected in response to a selection operation input for a candidate video definition, or a video definition determined from the video definition used at a certain historical moment. It is understood that the video definition matching the live broadcast room and the initial video definition can be the same or different. In an embodiment of the present disclosure, matching the video definition to the live broadcast room through network speed testing can specifically include presetting a network speed test duration and performing a network test based on the test duration. The test duration can be set based on actual needs and is not specifically limited here, for example, 3 seconds or 5 seconds. As another optional implementation of the present disclosure, if the network speed test is an automatic network test, the video definition matching the live broadcast room can be determined through network speed testing upon detecting that a preset speed test condition has been met. Exemplarily, the preset speed test conditions may include, but are not limited to, opening a preset page or triggering a preset control. This technical solution allows automatic speed measurement to determine the video clarity that matches the live broadcast room without the user's awareness. Specifically, as shown in Figure 3, after entering the broadcast preparation page or the broadcast preview page, it can be determined whether the screen displays the tag of the first application. If so, it can be determined whether the live broadcast room meets the automatic speed measurement conditions. If so, the speed measurement function can be triggered. After the speed measurement function is triggered, it can be determined whether a scenario for interrupting the automatic speed measurement is triggered. If not, it can be determined whether the speed measurement was successful. If so, the speed measurement results can be obtained. Based on the speed measurement results, the video clarity that matches the live broadcast room can be determined.It is understood that if the screen displays a label other than the first application's, it can be switched to the first application's label. In embodiments of the present invention, situations in which network testing cannot be performed include: the current live broadcast room failing to meet automatic speed measurement conditions; a triggering interruption of automatic speed measurement; or an unsuccessful speed measurement operation. In the above embodiment, after a video resolution matching the live broadcast room is found through network speed measurement, the live broadcast room's video resolution can be updated based on the found video resolution; or a prompt window can be displayed, wherein the prompt window includes a confirm control and a cancel control. The confirm control can be understood as a control for setting the found video resolution as the live broadcast room's video resolution; the cancel control can be understood as a control for canceling the use of the found video resolution as the live broadcast room's video resolution. Upon receiving a control trigger operation for the confirm control, the found video resolution can be set as the live broadcast room's video resolution. Similarly, upon receiving a control trigger operation for the cancel control, it can be indicated that the found video resolution is not the live broadcast room's video resolution.
[0003] S120: During the live broadcast, obtain at least one video frame from the video stream and determine network delay information corresponding to the video frame based on the image content of the video frame. The number of video frames in the video stream may be one, two, or more. In practical applications, the number of video frames in a video stream is typically multiple. The network delay information may include network response time (ping value). Furthermore, the network delay information may include an application identifier and a timestamp of the first application. The application identifier can be used to distinguish the first application. Specifically, during the live broadcast, obtain at least one video frame from the video stream. After obtaining the video frames, perform delay information extraction on the video image of each video frame. This can thereby obtain network delay information corresponding to the video frame. In the embodiments of the present disclosure, obtaining at least one video frame from the video stream includes the following two methods, which are not specifically limited herein. As an optional implementation in the embodiments of the present disclosure, obtaining at least one video frame from the video stream may include: after obtaining the video stream corresponding to the first application, performing frame segmentation on the video stream, thereby obtaining video frames from the video stream. As an optional implementation in the embodiments of the present disclosure, obtaining at least one video frame from the video stream may include: after obtaining the video stream corresponding to the first application, extracting video frames from the video stream at a preset sampling rate, thereby obtaining video frames from the video stream. The preset sampling frequency can be set according to actual needs, and its value is not specifically limited herein.
[0004] S130. Determine a network response status corresponding to the first application based on the network delay information. The network response status can be understood as the network response status of the first application during the live broadcast. Network response status can include a response delay status and a non-response delay status. The response delay status can indicate a delayed network response. The non-response delay status can indicate a normal network response. In one embodiment, the network response time in the network delay information is determined to determine whether the network response time exceeds a preset response time threshold. If so, the network response status corresponding to the first application is determined to be a response delay status; if not, the network response status corresponding to the first application is determined to be a non-response delay status. The preset response time threshold can be set based on practical experience. It should be noted that a good network response time is generally less than 100ms. If the network response time exceeds 100ms, it indicates that the response time of the first application is prolonged. In this case, the network response status corresponding to the first application is a response delay status. In another embodiment, after obtaining multiple network delay information, a first number of network response times exceeding a preset response time threshold in the multiple network delay information can be determined, as well as a second number of all network response times in the multiple network delay information can be determined. After obtaining the first number and the second number, the first number and the second number can be ratioed to obtain a ratio result. After obtaining the ratio result, a network response status corresponding to the first application can be determined based on the ratio result. Optionally, determining the network response status corresponding to the first application based on the ratio result can specifically include: if the ratio result exceeds a preset ratio threshold, the network response status corresponding to the first application can be characterized as a response delay state; if the ratio result does not exceed the preset ratio threshold, the network response status corresponding to the first application can be characterized as a non-response delay state. In this embodiment of the present disclosure, the network response status can include a response delay state. After determining the network response status corresponding to the first application based on the network delay information, the method can further include: if the network response status is the response delay state, reducing the maximum streaming bitrate of the live streaming room. Specifically, when the network response status is the response delay status, the maximum streaming bitrate of the live broadcast room can be obtained and passed as an actual parameter to the formal parameters of a predefined streaming bitrate reduction method. After the parameter is passed, the streaming bitrate reduction method can be executed to reduce the maximum streaming bitrate of the live broadcast room. The streaming bitrate reduction method can be understood as a method for reducing the maximum streaming bitrate of the live broadcast room.In an embodiment of the present disclosure, reducing the maximum streaming bitrate of the live broadcast room may include: determining the video definition corresponding to the live broadcast room, determining a bitrate range corresponding to the video definition, and reducing the maximum streaming bitrate of the live broadcast room within the bitrate range. Specifically, when the network response status is the response delay state, the video definition and maximum streaming bitrate corresponding to the live broadcast room may be determined. Furthermore, based on the correspondence between the video definition and the bitrate range, the bitrate range corresponding to the video definition may be determined. After determining the bitrate range and the maximum streaming bitrate, the maximum streaming bitrate of the live broadcast room may be reduced within the bitrate range. In this embodiment of the present disclosure, reducing the maximum streaming bitrate of the live broadcast room within the bitrate range can reduce bandwidth pressure while maintaining image quality. Based on the above embodiment, after lowering the maximum streaming bitrate of the live broadcast room within the bitrate range, the method may further include: re-determining the network response status corresponding to the first application; if the network response status is still the response delay state, lowering the video definition of the live broadcast room and adjusting the maximum streaming bitrate of the live broadcast room within the bitrate range corresponding to the lowered video definition. In the embodiments of the present disclosure, there are various ways to lower the video definition of the live broadcast room, which are not specifically limited here. For example, the current video definition of the live broadcast room may be met, and a video definition lower than the current video definition among the preset video definitions may be met as an alternative video definition; if there is only one alternative video definition, the alternative video definition may be used as the target video definition of the live broadcast room. If there are multiple alternative video resolutions, one can be randomly selected from each of the alternative video resolutions as the target video resolution for the live broadcast room. Alternatively, a video resolution adjacent to the current video resolution among the alternative video resolutions can be determined as the target video resolution for the live broadcast room. Alternatively, the lowest video resolution among the alternative video resolutions can be determined as the target video resolution for the live broadcast room. The preset video resolution can be understood as a pre-set video resolution for the live broadcast room. The number of preset video resolutions can be one, two, or more. The alternative video resolution can be understood as a video resolution among the preset video resolutions that is lower than the current video resolution. The target video resolution can be understood as the video resolution obtained by reducing the video resolution of the live broadcast room.Based on the above embodiment, after reducing the maximum streaming bitrate of the live broadcast room, if the network response status corresponding to the first application is detected to be in a non-responsive delay state, the maximum streaming bitrate of the live broadcast room can be restored to make the video more delicate and detailed. The technical solution of the disclosed embodiment obtains the video stream corresponding to the first application and displays it in the live broadcast room of the second application. This technical solution enriches the live broadcast content of the live broadcast room by displaying the video stream of the first application in the live broadcast room. During the live broadcast, at least one video frame in the video stream is obtained, and the network delay information corresponding to the video frame is determined based on the image content of the video frame. This technical solution uses intuitive image content as the object for analysis, making it relatively convenient to obtain network delay information for each video frame. The network response status corresponding to the first application is then determined based on the network delay information. The technical solution of the disclosed embodiments addresses the technical issue in related technologies of network delays during the application of a first application displayed in a live broadcast room. This solution enables timely monitoring of the network response of a second application during a live broadcast and targeted processing of network delays, thereby avoiding lags in the first application and improving the live broadcast experience. Figure 4 is a flow chart of another network response method provided by the disclosed embodiments. Building on the above-mentioned embodiments, the technical solution of this embodiment further refines the method of determining network delay information corresponding to a video frame based on the image content of the video frame. Optionally, determining network delay information corresponding to the video frame based on the image content of the video frame includes: performing character detection on the image content of the video frame to obtain a delay-associated string, and determining network delay information corresponding to the video frame based on the delay-associated string. For detailed implementation details, please refer to the description of this embodiment. Technical features identical or similar to those of the previous embodiments are not further described here. As shown in Figure 4, the method of this embodiment may specifically include:
[0005] S210: Obtain a video stream corresponding to a first application to display the video stream in a live broadcast room of a second application. S220: During the live broadcast, obtain at least one video frame from the video stream, perform character detection on the screen content of the video frame to obtain a delay-associated string, and determine network delay information corresponding to the video frame based on the delay-associated string. The delay-associated string can be understood as a delay-associated string obtained by performing character detection on the screen content of the video frame. Specifically, the screen content of the video frame is analyzed to determine the characters within the screen content of the video frame. Character detection can then be performed on the screen content of the video frame to obtain a character detection result. After obtaining the character detection result, the delay-associated string can be obtained based on the character detection result. Exemplarily, character detection is performed on the screen content of the video frame based on optical character recognition (OCR) technology to obtain the delay-associated string. In a disclosed embodiment, determining the network delay information corresponding to the video frame based on the delay-associated string may include: processing the delay-associated string to obtain a target-associated string; and determining the network delay information corresponding to the video frame based on the target-associated string. The target-associated string may be understood as a string obtained by processing the delay-associated string. Specifically, the delay-associated string may be processed based on a preset regular expression to obtain the target-associated string. The target-associated string may then be parsed to obtain a substring within the target-associated string. The network delay information corresponding to the video frame may be obtained based on the substring. Optionally, parsing the target-associated string may include determining a delimiter within the target-associated string; and determining a substring between two adjacent delimiters as a substring within the target-associated string. The delimiter may be a pre-set delimiter within the target-associated string, such as "+", "*", or "#".In an embodiment of the present disclosure, processing the delay-associated character string may include at least one of the following operations: processing the delay-associated character string based on the correlation between the delay-associated character string and the original character string; deleting the video frame corresponding to the delay-associated character string if multiple delay-associated character strings are identified in the video frame; and deleting the video frame corresponding to the delay-associated character string if the delay-associated character string includes a network delay value and the network delay value is within a preset first value range. The original character string is the actual character string in the video frame corresponding to the delay-associated character string. The network delay value may be a value representing the network delay time. The first value range may be a value range for deleting the delay-associated character string. In an embodiment of the present disclosure, processing the delay-associated character string based on the correlation between the delay-associated character string and the original character string may specifically include calculating a correlation between the delay-associated character string and the original character string, thereby obtaining a correlation between the delay-associated character string and the original character string. If the correlation is below a preset correlation threshold, it indicates that the identified delay-associated character string has a low similarity to an actual field string in the video frame. At this point, the delay-associated character strings can be processed. The preset relevance threshold can be set based on actual needs and is not specifically limited here. In the disclosed embodiment, if multiple delay-associated character strings are identified in the video frame, the accuracy of the multiple delay-associated character strings cannot be determined. In this case, the video frame corresponding to the delay-associated character strings can be deleted.
[0006] S230: Determine the network response status corresponding to the first application based on the network delay information. The technical solution of the disclosed embodiment performs character detection on the screen content of the video frame to obtain a delay-associated string, and determines the network delay information corresponding to the video frame based on the delay-associated string. This enables convenient and accurate acquisition of network delay information corresponding to the video frame without the user's awareness. Figure 5 is a flow chart of another network response method provided by the disclosed embodiment. The technical solution of this embodiment further refines the determination of the network response status corresponding to the first application based on the network delay information based on the above-mentioned embodiment. Optionally, determining the network response status corresponding to the first application based on the network delay information includes: determining, for a single video frame, frame response information corresponding to the video frame based on the network delay information; and determining the network response status corresponding to the first application based on the frame response information corresponding to multiple video frames. For detailed implementation details, please refer to the description of this embodiment. Technical features identical or similar to those of the above-mentioned embodiments are not further described here. As shown in Figure 5, the method of this embodiment may specifically include:
[0007] S310: Obtain a video stream corresponding to the first application to display the video stream in a live broadcast room of the second application.
[0008] S320: During the live broadcast process, obtain at least ■ video frames in the video stream, and determine network delay information corresponding to the video frames based on picture content of the video frames.
[0009] S330: For each video frame, determine frame response information corresponding to the video frame based on the network delay information. The frame response information can be understood as response information for a single video frame. Optionally, the frame response information can be network response time. Specifically, for each video frame, the network delay information corresponding to the video frame can be determined; then, frame response information extraction processing can be performed on the network delay information; thereby, frame response information corresponding to the video frame can be obtained. In this embodiment of the present disclosure, performing frame response information extraction processing on the network delay information can include: matching the frame response information corresponding to the video frame from the network delay information based on a predefined regular expression for matching frame response information.
[0010] S340: Determine the network response status corresponding to the first application based on the frame response information corresponding to the multiple video frames. Specifically, if the frame response information corresponding to the video frames is network response time, the network response status corresponding to the first application can be determined based on the network response times corresponding to the multiple video frames. As an optional implementation in the disclosed embodiment, if there are a preset number of video frames whose network response times exceed a preset response time threshold, the network response status corresponding to the first application can be determined to be a response delay state. It should be noted that the preset number can be at least one, and its value can be set according to actual circumstances and is not specifically limited herein. As another optional implementation in the disclosed embodiment, if there are multiple video frames whose network response times exceed the preset response time threshold within a preset duration, the network response status corresponding to the first application can be determined to be a response delay state. The preset duration can be the entire duration corresponding to the multiple video frames; alternatively, the preset duration can be a sub-duration obtained by dividing the entire duration corresponding to the multiple video frames. As another optional implementation in the disclosed embodiment, if there are multiple consecutive video frames whose network response times exceed a preset response time threshold, the network response status corresponding to the first application can be determined as a response delay state. The technical solution of the disclosed embodiment implements the function of determining the network response status corresponding to the first application based on the frame response information corresponding to the video frame, by determining the frame response information corresponding to a single video frame based on the network delay information; and determining the network response status corresponding to the first application based on the frame response information corresponding to multiple video frames. The disclosed embodiment provides an optional example of a network response method. Referring to FIG6 , the live broadcast response framework of the disclosed embodiment includes a client, a content delivery network (CDN) server, a video architecture server, a first application live broadcast server (e.g., a game live broadcast server), and an image processing server (e.g., an ImageX server). Within this live broadcast response framework, the network response method may specifically include: after the client starts broadcasting, it may collect a video stream corresponding to the first application, push the video stream, and transmit it to the CDN server for the CDN server to receive or transcode the video stream. After the CDN server receives or transcodes the video stream, it can periodically extract frames from the video stream at a preset interval (e.g., 2 seconds) to obtain video frames from the stream and send them to a message queue. The first application live streaming server can determine whether to consume messages from the message queue based on a preset consumption frequency.If so, the algorithm service can be called to pass in the picture to obtain all text information, that is, character detection can be performed on the screen content of the video frame to obtain the Ping information of the video frame. The Ping information can be packaged and processed, and a real-time communication (IM) message for the Ping information can be generated and sent to the client, so that the client receives the Ping information. After receiving the Ping message, the client can parse key information from the Ping message and send it. Specifically, the network response status corresponding to the second application is determined based on the network delay information. In the disclosed embodiment, the first application live broadcast server calls an algorithm service to input an image to obtain the text information. Specifically, the OCR service provided by the image processing server for identifying text within the image is called to perform character detection on the image content of the video frame to obtain all text information within the video frame. In the disclosed embodiment, the Ping information of the video frame may include a Ping value. The Ping value can be obtained by extracting the Ping value from the obtained text information and matching the text "number + milliseconds" using a regular expression as the Ping value. The technical solution of the disclosed embodiment solves the technical problem of network delay during the application of the first application when the content of the first application is displayed in the live broadcast room in the related art. It enables timely understanding of the network response status of the first application when it is used in the live broadcast and targeted processing of the network delay, thereby avoiding the first application from experiencing lag. This improves the live broadcast experience. Figure 7 is a schematic diagram of the structure of a network response device provided by an embodiment of the present disclosure. As shown in Figure 7, the device includes: a video stream acquisition module 410, a network delay determination module 420, and a response status determination module 430. The video stream acquisition module 410 is configured to acquire a video stream corresponding to a first application and display it in a live broadcast room of a second application. The network delay determination module 420 is configured to acquire at least one video frame from the video stream during a live broadcast and determine the network delay information corresponding to the video frame based on the image content of the video frame. The response status determination module 430 is configured to determine the network response status corresponding to the first application based on the network delay information. The technical solution of this embodiment of the present disclosure uses the video stream acquisition module to acquire a video stream corresponding to a first application and display it in a live broadcast room of a second application. This technical solution enriches the live broadcast content of the live broadcast room by displaying the video stream of the first application in the live broadcast room.During the live broadcast, the network delay determination module obtains at least one video frame from the video stream and determines network delay information corresponding to the video frame based on the image content of the video frame. This technical solution analyzes intuitive image content and can more conveniently obtain network delay information for each video frame. The response status determination module determines the network response status corresponding to the first application based on the network delay information. The technical solutions of the embodiments of the present disclosure address the technical issue in related technologies of network delay during the application of a first application when its content is displayed in a live broadcast room. This enables timely monitoring of the network response of a second application when it is used during a live broadcast and targeted processing of network delays, thereby avoiding lags in the second application and improving the live broadcast experience. Based on the aforementioned optional technical solutions, the network delay determination module 420 optionally performs character detection on the image content of the video frame to obtain a delay-associated string, and determines network delay information corresponding to the video frame based on the delay-associated string. Based on the aforementioned optional technical solutions, the network delay determination module 420 is configured to process the delay-associated string to obtain a target-associated string, and determine network delay information corresponding to the video frame based on the target-associated string. Based on the aforementioned optional technical solutions, the network delay determination module 420 optionally processes the delay-associated string, including at least one of the following operations: The delay-associated character string is processed based on a correlation between the delay-associated character string and an original character string, where the original character string is the actual character string in the video frame corresponding to the delay-associated character string. If multiple delay-associated character strings are identified in the video frame, the delay-associated character string corresponding to the video frame is deleted. If the delay-associated character string includes a network delay value and the network delay value is within a preset first value range, the delay-associated character string corresponding to the video frame is deleted. Based on the above optional technical solutions, the response status determination module 430 is optionally configured to: determine, for a single video frame, frame response information corresponding to the video frame based on the network delay information; and determine a network response status corresponding to the first application based on the frame response information corresponding to multiple video frames.Based on the above optional technical solutions, optionally, the network response status includes a response delay status; the apparatus further includes a first push bitrate reduction module; wherein the first push bitrate reduction module is configured to: after determining the network response status corresponding to the first application based on the network delay information, if the network response status is the response delay status, reduce the maximum push bitrate of the live broadcast room. Based on the above optional technical solutions, optionally, the second push bitrate reduction module is specifically configured to: determine the video definition corresponding to the live broadcast room, determine a bitrate range corresponding to the video definition, and reduce the maximum push bitrate of the live broadcast room within the bitrate range. Based on the above optional technical solutions, the apparatus optionally further includes a second push stream bitrate reduction module; wherein the second push stream bitrate reduction module is configured to: after reducing the maximum push stream bitrate of the live broadcast room within the bitrate range, re-determine the network response status corresponding to the first application; if the network response status is still the response delay state, reduce the video clarity of the live broadcast room, and adjust the maximum push stream bitrate of the live broadcast room within the bitrate range corresponding to the reduced video clarity. Based on the above optional technical solutions, the video stream acquisition module 410 is optionally configured to: determine a target encoding algorithm corresponding to the live broadcast room, and display the video stream in the live broadcast room based on the target encoding algorithm; wherein the target encoding algorithm is configured to reduce the maximum push stream bitrate of the live broadcast room based on the target encoding algorithm while maintaining the video clarity of the live broadcast room. Based on the above-mentioned optional technical solutions, the device optionally further includes a video definition matching module; wherein the video definition matching module is configured to, before presenting the video stream in the live broadcast room, determine a video definition that matches the live broadcast room through network speed testing. The network response device provided in the embodiments of the present disclosure can execute the network response method provided in any embodiment of the present disclosure, and possesses the corresponding functional modules and beneficial effects of the execution method. It is worth noting that the various units and modules included in the above-mentioned device are merely divided according to functional logic, but are not limited to the above divisions, as long as they can implement the corresponding functions. Furthermore, the specific names of the various functional units are merely for the purpose of distinguishing them from each other and are not intended to limit the scope of protection of the embodiments of the present disclosure. Figure 8 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure. Referring now to Figure 8, a schematic structural diagram of an electronic device (e.g., the terminal device or server in Figure 8) 500 suitable for implementing the embodiments of the present disclosure is shown.Terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG8 is merely an example and should not limit the functionality and scope of use of the disclosed embodiments. As shown in FIG8 , electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes based on programs stored in a read-only memory (ROM) 502 or programs loaded from a storage device 508 into a random access memory (RAM) 503. RAM 503 also stores various programs and data required for the operation of electronic device 500. Processing device 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to bus 504. Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touchscreen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; a storage device 508 including, for example, a magnetic tape, hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or wired to exchange data. Although FIG8 shows an electronic device 500 with various devices, it should be understood that not all of the devices shown are required to be implemented or present. More or fewer devices may be implemented or present alternatively. In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present 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 executing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network via communication device 509, or installed from storage device 508, or installed from ROM 502. When the computer program is executed by processing device 501, the aforementioned functions defined in the method of the embodiment of the present disclosure are performed. The names of the messages or information exchanged between the multiple devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of these messages or information.The electronic device provided in the embodiments of the present disclosure and the network response method provided in the above-mentioned embodiments are based on the same inventive concept. Technical details not fully described in this embodiment can be found in the above-mentioned embodiment. This embodiment has the same beneficial effects as the above-mentioned embodiments. The embodiments of the present disclosure provide a computer storage medium storing a computer program. When executed by a processor, the program implements the network response method provided in the above-mentioned embodiments. It should be noted that the computer-readable medium mentioned in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. For example, a computer-readable storage medium may be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media 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, a portable compact disk-read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in conjunction with an instruction execution system, apparatus, or device. Furthermore, in this disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wire, optical cable, and RF.
[0011] (radio frequency), etc., or any suitable combination thereof. In some embodiments, the client and server may communicate using any currently known or future developed network protocol, such as HTTP (Hypertext Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network. The computer-readable medium may be included in the electronic device or may exist separately, not incorporated into the electronic device. The computer-readable medium carries one or more programs. When executed by the electronic device, the one or more programs cause the electronic device to: obtain a video stream corresponding to a first application, and display the video stream in a live broadcast room of a second application; during the live broadcast, obtain at least one video frame from the video stream, and determine network delay information corresponding to the video frame based on the image content of the video frame; and determine a network response status corresponding to the first application based on the network delay information. The computer program code for performing the operations of the present disclosure can be written in one or more programming languages, or a combination thereof. Such programming languages include, but are not limited to, object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as C 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 a remote computer, the remote computer may be connected to the user computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using a private Internet service provider). The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operations of possible implementations of the systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, program segment, or portion of code, which contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks may occur in an order different from that noted in the accompanying drawings.For example, two blocks shown in succession may actually be executed substantially in parallel, or 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, as well as combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified functions or operations, or may be implemented using a combination of dedicated hardware and computer instructions. The units described in the embodiments of this disclosure may be implemented via software or hardware. The names of the units do not, in some cases, limit the units themselves. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses." The functions described above may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like. In the context of this disclosure, a machine-readable medium may 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 may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, 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, 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, compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. According to one or more embodiments of the present disclosure, [Example 1] provides a network response method, including: obtaining a video stream corresponding to a first application to display the video stream in a live broadcast room of a second application; during the live broadcast process, obtaining at least one video frame in the video stream, and determining network delay information corresponding to the video frame based on the picture content of the video frame; and determining a network response status corresponding to the first application based on the network delay information.According to one or more embodiments of the present disclosure, [Example 1] provides the method of Example 1, further including: Optionally, determining the network delay information corresponding to the video frame based on the picture content of the video frame includes: performing character detection on the picture content of the video frame to obtain a delay-associated string, and determining the network delay information corresponding to the video frame based on the delay-associated string. According to one or more embodiments of the present disclosure, [Example 3] provides the method of Example 1, further including: Optionally, determining the network delay information corresponding to the video frame based on the delay-associated string includes: processing the delay-associated character A to obtain a target-associated character B, and determining the network delay information corresponding to the video frame based on the target-associated character B. According to one or more embodiments of the present disclosure, [Example 4] provides the method of Example 1, further including: Optionally, processing the delay-associated string includes at least one of the following operations: processing the delay-associated character B based on a correlation between the delay-associated string and an original string, wherein the original string is an actual string corresponding to the delay-associated string in the video frame; when multiple delay-associated characters A are identified in the video frame, deleting the delay-associated string corresponding to the video frame; when the delay-associated string includes a network delay value, and the network delay value is within a preset value range, deleting the delay-associated character B corresponding to the video frame. According to one or more embodiments of the present disclosure, [Example 5] provides the method of Example 1, further including: Optionally, determining the network response status corresponding to the first application based on the network delay information includes: for a single video frame, determining frame response information corresponding to the video frame based on the network delay information; and determining the network response status corresponding to the first application based on the frame response information corresponding to multiple video frames. According to one or more embodiments of the present disclosure, [Example 6] provides the method of Example 1, further including: Optionally, the network response status includes a response delay status; after determining the network response status corresponding to the first application based on the network delay information, further including: if the network response status is the response delay status, reducing the maximum streaming bitrate of the live broadcast room. According to one or more embodiments of the present disclosure, [Example 7] provides the method of Example 1, further including: Optionally, reducing the streaming bitrate of the live broadcast room includes: determining the video definition corresponding to the live broadcast room, determining a bitrate range corresponding to the video definition, and reducing the maximum streaming bitrate of the live broadcast room within the bitrate range.According to one or more embodiments of the present disclosure, [Example 8] provides the method of Example 4, further including: Optionally, after reducing the maximum push stream bitrate of the live broadcast room within the bitrate range, further including: re-determining the network response status corresponding to the first application; if the network response status is still the response delay state, reducing the video clarity of the live broadcast room, and adjusting the maximum push stream bitrate of the live broadcast room within the bitrate range corresponding to the reduced video clarity. According to one or more embodiments of the present disclosure, [Example 9] provides the method of Example 4, further including: Optionally, displaying the video stream in the live broadcast room includes: determining a target encoding algorithm corresponding to the live broadcast room, so as to display the video stream in the live broadcast room based on the target encoding algorithm, wherein the target encoding algorithm is used to reduce the maximum push stream bitrate of the live broadcast room based on the target encoding algorithm while maintaining the video clarity of the live broadcast room unchanged. According to one or more embodiments of the present disclosure, [Example 10] provides the method of Example 1, further comprising: Optionally, before presenting the video stream in the live broadcast room, further comprising: Determining a video definition that matches the live broadcast room through network speed measurement. According to one or more embodiments of the present disclosure, [Example 11] provides a network response device, comprising: a video stream acquisition module for acquiring a video stream corresponding to a first application, for displaying the video stream in the live broadcast room of a second application; a network delay determination module for acquiring at least one video frame in the video stream during the live broadcast, and determining network delay information corresponding to the video frame based on the image content of the video frame; and a response status determination module for determining the network response status corresponding to the first application based on the network delay information. The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure herein is not limited to technical solutions formed by a specific combination of the above-mentioned technical features, but also encompasses other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the scope of the above-mentioned disclosure. For example, the above features may be interchanged with (but not limited to) technical features with similar functions disclosed in this disclosure to form a technical solution. Furthermore, while the operations are depicted in a specific order, this should not be understood as requiring that these operations be performed in the specific order shown or in a sequential order. In certain environments, multitasking and concurrent processing may be advantageous. Similarly, while the above discussion includes several specific implementation details, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of separate 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 in multiple embodiments, individually or in any suitable combination. Although the subject matter has been described using language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
Claims 1. A network response method, comprising: Acquire a video stream corresponding to the first application to display the video stream in a live broadcast room of the second application; During the live broadcast process, obtaining at least one video frame in the video stream, and determining network delay information corresponding to the video frame based on the picture content of the video frame; A network response status corresponding to the first application is determined based on the network delay information.
2. The network response method according to claim 1, wherein: The determining the network delay information corresponding to the video frame based on the picture content of the video frame includes: performing character detection on the picture content of the video frame to obtain a delay associated string, and determining the network delay information corresponding to the video frame based on the delay associated string.
3. The network response method according to claim 2, wherein: The method of determining the network delay information corresponding to the video frame based on the delay associated character string comprises: processing the delay associated character string to obtain a date associated character string, and determining the network delay information corresponding to the video frame based on the date associated character string.
4. The network response method according to claim 3, wherein: The processing of the delay-associated string includes at least one of the following operations: processing the delay-associated character based on the correlation between the delay-associated string and the original character string, wherein the original character is the actual character string corresponding to the delay-associated string in the video frame; in the case where multiple delay-associated strings are identified in the video frame, deleting the delay-associated string corresponding to the video frame; in the case where the delay-associated string includes a network delay value and the network delay value is within a preset first value range, deleting the delay-associated string corresponding to the video frame.
5. The network response method according to claim 1, wherein: The determining of the network response state corresponding to the first application based on the network delay information comprises: for a single video frame, determining frame response information corresponding to the video frame based on the network delay information; and determining the network response state corresponding to the first application based on the frame response information corresponding to a plurality of the video frames.
6. The network response method according to claim 1, wherein: The network response status includes a response delay status; After determining the network response state corresponding to the first application based on the network delay information, it also includes: when the network response state is the response delay state, reducing the maximum streaming bit rate of the live broadcast room.
7. The network response method according to claim 6, wherein: The reducing the maximum streaming bitrate of the live broadcast room includes: determining a video definition corresponding to the live broadcast room, determining a bitrate range corresponding to the video definition, and reducing the maximum streaming bitrate of the live broadcast room within the bitrate range.
8. The network response method according to claim 7, wherein: After lowering the maximum streaming bitrate of the live broadcast room within the bitrate range, the method further includes: re-determining the network response state corresponding to the first application; when the network response state is still the response delay state, lowering the video clarity of the live broadcast room, and adjusting the maximum streaming bitrate of the live broadcast room within the bitrate range corresponding to the lowered video clarity.
9. The network response method according to claim 1, wherein: The displaying of the video stream in the live broadcast room includes: determining a target encoding algorithm corresponding to the live broadcast room, and displaying the video stream in the live broadcast room based on the target encoding algorithm, wherein the target encoding algorithm is used to reduce the maximum streaming bitrate of the live broadcast room based on the target encoding algorithm while keeping the video clarity of the live broadcast room unchanged.
10. The network response method according to claim 1, wherein: Before displaying the video stream in the live broadcast room, the method further includes: determining a video definition matching the live broadcast room through network speed measurement.
11. A network response device, comprising: A video stream acquisition module, used to acquire a video stream corresponding to the first application, so as to display the video stream in the live broadcast room of the first application; A network delay determination module, used to obtain at least one video frame in the video stream during live broadcasting, and determine network delay information corresponding to the video frame based on the picture content of the video frame; A response status determining module is used to determine a network response status corresponding to the first application based on the network delay information.
12. An electronic device, comprising: one or more processors; A storage device, used 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 network response method as described in any one of claims 1-10.
13. A storage medium comprising computer executable instructions, wherein the computer executable instructions are used to execute the network response method according to any one of claims 1 to 10 when executed by a computer processor.
14. A computer program product, comprising a computer program, wherein the computer program implements the network response method according to any one of claims 1 to 10 when executed by a processor.
Citation Information
Patent Citations
Dynamic and static video stream image covering method
CN106911936A
Video playing method and device, terminal and storage medium
CN112470482A
Real-time information superposition method and device, electronic equipment and storage medium
CN114071228A
Live broadcast delay monitoring method and device, storage medium and program product
CN114339284A
Live broadcast interactive video partition intelligent control method and system based on cloud edge collaboration
CN116033189A