Display apparatus

The display apparatus uses a controller to analyze historical playback data and adjust initial stream selection based on user preferences and network conditions, addressing the challenge of user intervention for media stream selection and enhancing viewing experience.

WO2026234247A1PCT designated stage Publication Date: 2026-11-12V NETHERLANDS BV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/EP2026/063445
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2025-11-07
Filing Date
2026-05-08
Publication Date
2026-11-12

AI Technical Summary

Technical Problem

Existing display apparatuses struggle to select an initial media stream that accurately meets user requirements, necessitating user intervention for adjustments, which affects the viewing experience.

Method used

A display apparatus with a controller that analyzes historical playback records, determines weights based on playback parameters, and filters an initial stream based on download speed and display effects to match user preferences, ensuring a suitable bitrate and quality without user operation.

Benefits of technology

Enables automatic selection of an initial media stream that conforms to user needs, improving the viewing experience by adapting to network conditions and preferences during initial playback.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure EP2026063445_12112026_PF_FP_ABST
    Figure EP2026063445_12112026_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides a display apparatus and a media resource playback method. A controller of the display apparatus is configured to: start a target application in response to receiving a startup command for the target application; test a download speed of the target application; determine n historical playback records best matching a first playback parameter from historical playback records of the display apparatus; determine weights respectively corresponding to at least two display effects presented by the n historical playback records based on a second playback parameter; filter out a target initial stream from an initial stream set of the target media resource based on the download speed of the target application and the weights respectively corresponding to the at least two display effects; and control a display to display a media resource interface corresponding to the target initial stream.
Need to check novelty before this filing date? Find Prior Art

Description

VN0102P-WQ-0007DISPLAY APPARATUSCross-Reference to Related Applications

[0001] This application claims priorities to Chinese Patent Application No. 202510595501.7 filed on May 8, 2025, Chinese Patent Application No. 202511195939.2 filed on August 25, 2025, and Chinese Patent Application No.202511632797.1 filed on November 7, 2025, and the contents of which are hereby incorporated by reference in their entireties.Technical Field

[0002] The present application relates to the technical field of display, and particularly to a display apparatus.Background

[0003] A display apparatus is a terminal device capable of outputting a specific display image, and may include a smart television, a mobile terminal, a smart advertising screen, a projector, or the like. In general, the display apparatus can download a media resource via a server and play the media resource according to an operation from a user, to meet the user's viewing requirements.

[0004] The server can provide code streams at multiple bit rates. In an initial playback phase of a media resource, the display apparatus typically selects and downloads an initial stream of the media resource according to a preset strategy (e.g., a start-up speed priority strategy or a playback performance priority strategy), to play a picture corresponding to the initial stream in the initial playback phase of the media resource. If the preset strategy is the start-up speed priority strategy, the display apparatus selects an initial stream with a relatively low bit rate to avoid stuttering caused by transmission delay of a high-bit-rate code stream. If the preset strategy is the playback performance priority strategy, the display apparatus selects an initial stream with a relatively high bit rate to provide better picture quality.

[0005] However, the initial stream selected according to the preset strategy may not be adapted to the user's requirements, which necessitates a re -operation of the display apparatus by the user to enable the display apparatus to select a code stream that meets the user's requirements. Such an operation is cumbersome, affecting the user's viewing experience.Summary

[0006] To address the above-mentioned problems, embodiments of the present application provide a display apparatus and a media resource playback method, to determine an initial code stream adapted to user requirements.

[0007] In a first aspect, embodiments of the present application provide a display apparatus, including a display and a controller. The controller is coupled to the display and configured to:start a target application in response to receiving a startup command for the target application;test a download speed of the target application;determine n historical playback records best matching a first playback parameter from historical playback records of the display apparatus, where n is a preset positive integer, and the first playback parameter is used for reflecting a playback environment for playing the historical playback records;VN0102P-WQ-0007determine weights respectively corresponding to at least two display effects presented by the n historical playback records based on a second playback parameter, where the second playback parameter is used for reflecting a duration for which the historical playback records present the display effects;in response to receiving a playback command for a target media resource, filter out a target initial stream from an initial stream set of the target media resource based on the download speed of the target application and the weights respectively corresponding to the at least two display effects; andcontrol the display to display a media resource interface corresponding to the target initial stream.

[0008] Embodiments of the present application, by taking into account weights of various display effects, enable the selection of a target initial stream that conforms to user preferences and matches user requirements, making it possible to display, without user operation, an interface that meets user needs during an initial playback phase of media content, thus improving user viewing experience.

[0009] In another aspect of embodiments of the present application, the controller, configured to determine the weights respectively corresponding to the at least two display effects presented by the n historical playback records based on the second playback parameter, is configured to:in response to at least two second playback parameters being included, determine first weights respectively corresponding to the at least two second playback parameters based on importance levels of the at least two second playback parameters;determine numerical values of the at least two display effects respectively corresponding to each of the second playback parameters based on the display effects respectively presented by the n historical playback records;determine second weights of the at least two display effects respectively corresponding to each of the second playback parameters based on the numerical values of the at least two display effects respectively corresponding to each of the second playback parameters;determine the weights respectively corresponding to the at least two display effects presented by the n historical playback records based on the first weights respectively corresponding to the at least two second playback parameters and the second weights of the at least two display effects respectively corresponding to each of the second playback parameters.

[0010] Through this scheme, the controller can determine the weights respectively corresponding to the at least two display effects presented by the n historical playback records based on the at least two playback parameters.

[0011] In another aspect of embodiments of the present application, the controller configured to, in response to the at least two second playback parameters being included, determine the first weights respectively corresponding to the at least two second playback parameters based on the importance levels of the at least two second playback parameters, is configured to:assign first scores to respective second playback parameters based on the importance levels of the respective second playback parameters;calculate a ratio of the first scores of any two of the second playback parameters;VN0102P-WQ-0007determine the first weights corresponding to the respective second playback parameters by performing normalization calculation on the first scores and the ratio.

[0012] Through this scheme, the first weights respectively corresponding to the second playback parameters can be determined based on the importance levels of the second playback parameters.

[0013] In another aspect of embodiments of the present application, the controller, configured to determine the second weights of the at least two display effects respectively corresponding to each of the second playback parameters based on the numerical values of the at least two display effects respectively corresponding to each of the second playback parameters, is configured to:calculate a ratio of numerical values of any two display effects corresponding to a second target parameter, where the second target parameter is any one of the second playback parameters;determine the second weights of the display effects corresponding to the second target parameter by performing normalization calculation on the numerical values of the display effects corresponding to the second target parameter and the ratio.

[0014] Through this scheme, the second weights of the display effects respectively corresponding to each of the second playback parameters can be determined based on the numerical values of the display effects respectively corresponding to each of the second playback parameters.

[0015] In another aspect of embodiments of the present application, the controller, configured to filter out the target initial stream from the initial stream set of the target media resource based on the download speed of the target application and the weights respectively corresponding to the at least two display effects, is configured to: determine candidate initial streams from the initial stream set of the target media resource based on the download speed of the target application and a bandwidth of each initial stream in the initial stream set;filter out the target initial stream from the candidate initial streams based on display effects presented by the candidate initial streams and the weights respectively corresponding to the at least two display effects.

[0016] Through this scheme, candidate initial streams are first determined from an initial stream set, and then a target initial stream is selected from the candidate initial streams. Since, during the process of determining the candidate initial streams from the initial stream set, the scheme takes into account the download speed of the target application and the bandwidth of each initial stream in the initial stream set, the bitrate of the candidate initial streams can be adapted to the download speed, falling within a reasonable range under the network environment in which the display apparatus operates. Further, this enables the target initial stream selected from the candidate initial streams to not only conform to user preferences but also have its bitrate fall within a reasonable range under the current network environment.

[0017] In another aspect of embodiments of the present application, the controller, configured to determine the candidate initial streams from the initial stream set of the target media resource based on the download speed of the target application and the bandwidth of each initial stream in the initial stream set, is configured to:determine a first download speed interval based on the download speed of the target application and a first preset range allowing fluctuation of the download speed;VN0102P-WQ-0007search for a first initial stream with a bandwidth matching the first download speed interval from each initial stream in the initial stream set, where the first initial stream belongs to the candidate initial streams.

[0018] Through this scheme, the candidate initial streams can be determined based on whether the bandwidth of each initial stream in the initial stream set matches a first download speed interval corresponding to the download speed, so that the bitrate of the candidate initial streams falls within a reasonable range under the current network environment.

[0019] In another aspect of embodiments of the present application, the controller, configured to determine the candidate initial streams from the initial stream set of the target media resource based on the download speed of the target application and the bandwidth of each initial stream in the initial stream set, is configured to:determine a second download speed interval based on the download speed of the target application and a second preset range allowing fluctuation of the download speed;search for a second initial stream with a bandwidth matching the second download speed interval from each initial stream in the initial stream set;determine a second score for each of the historical playback records based on a type of the first playback parameter matching the n historical playback records;calculate a fifth score for each of the historical playback records based on the second score of each historical playback record and a third score corresponding to smoothness of the historical playback record and / or a fourth score corresponding to a resolution of the historical playback record;determine m historical playback records with the highest fifth scores from the n historical playback records, where m is a positive integer less than n;determine a bandwidth interval of the m historical playback records;search for a third initial stream with a bandwidth falling within the bandwidth interval of the m historical playback records from each initial stream in the initial stream set, where the second initial stream and the third initial stream belong to the candidate initial streams.

[0020] Through this scheme, a portion of candidate initial streams can be determined based on whether the bandwidth of each initial stream in the initial stream set matches a first download speed interval corresponding to the download speed, and to determine another portion of candidate initial streams based on a bandwidth interval of historical playback records, expanding the scope of candidate initial streams while ensuring that the bitrate of the candidate initial streams falls within a reasonable range under the current network environment.

[0021] In another aspect of embodiments of the present application, the controller, after controlling the display to display the media resource interface corresponding to the target initial stream, is further configured to:determine an amplification factor of the download speed based on a fragment size of the target initial stream, the download speed of the target initial stream, and a preset first correspondence, where the first correspondence is a correspondence among the fragment size, the download speed, and the amplification factor;determine a product of the download speed and the amplification factor as a corrected download speed; determine an adjusted gear for a code stream of the target media resource based on the corrected download speed and a buffer water level of the target media resource;VN0102P-WQ-0007obtain another code stream of the target media resource corresponding to the adjusted gear;control the display to display a media resource interface corresponding to the another code stream.

[0022] Through this scheme, the bitstream displayed on the display apparatus can be adjusted to achieve bandwidth adaptation during playback, and during the adjustment process, both the download speed and the buffer level are comprehensively taken into account, ensuring adjustment accuracy and effectively reducing playback experience fluctuations caused by bandwidth variations, thus providing a better media content viewing experience for the user.

[0023] In another aspect of embodiments of the present application, the controller, configured to determine the adjusted gear for the code stream of the target media resource based on the corrected download speed and the buffer water level of the target media resource, is configured to:determine a first gear corresponding to the corrected download speed based on the corrected download speed and a preset second correspondence, where the second correspondence is a correspondence between the corrected download speed and the first gear;determine a difference between the first gear and a second gear, where the second gear is a gear at which the display apparatus currently displays the target media resource;determine a to-be -changed gear for the buffer water level based on the buffer water level of the target media resource and a preset third correspondence, where the third correspondence is a correspondence between different buffer water level ranges and the to-be -changed gear;determine a sum of the difference and the to-be-changed gear as the adjusted gear.

[0024] Through this scheme, an adjusted bitrate level can be determined based on the corrected download speed and the buffer level of the target media resource.

[0025] In a second aspect, embodiments of the present application provide a media resource playback method, applied to the display apparatus according to the first aspect of embodiments of the present application, the method including:starting the target application in response to receiving the startup command for the target application; testing the download speed of the target application;determining the n historical playback records best matching the first playback parameter from the historical playback records of the display apparatus, where n is the preset positive integer, and the first playback parameter is used for reflecting the playback environment for playing the historical playback records;determining the weights respectively corresponding to the at least two display effects presented by the n historical playback records based on the second playback parameter, where the second playback parameter is used for reflecting the duration for which the historical playback records present the display effects;in response to receiving the playback command for the target media resource, filtering out the target initial stream from the initial stream set of the target media resource based on the download speed of the target application and the weights respectively corresponding to the at least two display effects; andcontrolling the display of the display apparatus to display the media resource interface corresponding to the target initial stream.VN0102P-WQ-0007

[0026] In embodiments of the present application, after starting a target application, a target initial stream of a media resource to be played may be determined through the above steps, and during the determination of the target initial stream, both the download speed of the target application and the weights of various display effects are comprehensively taken into account. By taking into account the download speed of the target application, it can be ensured that the bitrate of the target initial stream falls within a reasonable range under the network environment in which the display apparatus operates, and by taking into account the weights of various display effects, the target initial stream can be made to conform to user preferences and match user requirements, making it possible to display, without user operation, an interface that meets user needs during an initial playback phase of the media resource, thus improving user viewing experience.

[0027] Embodiments of the present application provide a display apparatus and a method for processing media data, which can solve the problem that redundant occupation of runtime memory by the display apparatus when processing media data affects running performance.

[0028] In a third aspect, the present application provides a display apparatus, including:a display; anda controller, including a media data reading module and an auto-demultiplexer module, where the autodemultiplexer module integrates a media format detector and a plurality of demultiplexers, and the autodemultiplexer module has a corresponding shared buffer;the controller being configured to:in response to a playback command for media data, read the media data through the media data reading module, and transmit the read media data to the auto-demultiplexer module;buffer the media data into the shared buffer through the auto-demultiplexer module;control the media format detector to read the media data from the shared buffer and detect a target media format corresponding to the media data through the auto-demultiplexer module;determine a corresponding target demultiplexer from the plurality of demultiplexers based on the target media format through the auto-demultiplexer module;control the target demultiplexer to read the media data from the shared buffer and parse metadata in the media data through the auto-demultiplexer module.

[0029] The technical scheme has following beneficial effects and advantages: by integrating a media format detector and a demultiplexer into an auto-demultiplexer module, a media data reading module and the autodemultiplexer module have a one-to-one correspondence. Therefore, based on this correspondence, after reading media data, the media data reading module can directly transmit the media data to the auto-demultiplexer module for parsing and processing without performing format detection. Since both the media format detector and the demultiplexer are integrated into the auto-demultiplexer module, both the media format detector and the demultiplexer can read media data from a shared buffer corresponding to the auto-demultiplexer module. Thus, during the processing of media data, by reducing the number of independent modules, fixed runtime memory occupied by the independent modules can be effectively reduced. Moreover, the media data needs to be read only once and only one copy of the media data needs to be cached, effectively reducing the usage of runtime memory.VN0102P-WQ-0007

[0030] In some embodiments of the present application, the controller, configured to control the media format detector to read the media data from the shared buffer and detect the target media format corresponding to the media data through the auto-demultiplexer module, is configured to:determine a target protocol corresponding to the media data based on the media data read;in a case where the target protocol is a designated protocol, determine a media format corresponding to the designated protocol as the target media format corresponding to the media data;in a case where the target protocol is not the designated protocol, compare the media data with all media formats supported by a playback engine one by one to determine the target media format corresponding to the media data.

[0031] The technical scheme has following beneficial effects and advantages: when detecting the media format of media data, the display apparatus may prioritize detecting whether a target protocol of the media data is a designated protocol, where the designated protocol has a corresponding media format. In this way, if the target protocol of the media data is the designated protocol, the target media format corresponding to the media data can be directly determined as the media format corresponding to the designated protocol, enabling rapid determination of the target media format of the media data. Furthermore, when the target protocol is not the designated protocol, the target media format of the media data can be ensured to be detected by comparing the media data with all media formats supported by a playback engine, ensuring that the media data can be effectively parsed.

[0032] In some embodiments of the present application, in the case where the target protocol is the designated protocol, the controller, configured to determine the corresponding target demultiplexer from the plurality of demultiplexers based on the target media format through the auto-demultiplexer module, is configured to:when the target protocol is a first-type protocol of the designated protocol, determine that the media data does not need to be parsed;when the target protocol is a second-type protocol of the designated protocol, determine the corresponding target demultiplexer from the plurality of demultiplexers based on the target media format.

[0033] The technical scheme has following beneficial effects and advantages: the designated protocol may be classified into two types. If the target protocol is the first-type protocol, the media data is not encapsulated and does not require parsing. Therefore, the display apparatus does not need to determine a target demultiplexer for parsing the media data, and can quickly proceed with subsequent processing of the media data. If the target protocol is the second-type protocol, the media data still needs to be parsed. Therefore, the display apparatus needs to further determine a target demultiplexer for parsing the media data.

[0034] In some embodiments of the present application, in the case where the target protocol is not the designated protocol, the controller, configured to compare the media data with all media formats supported by the playback engine one by one to determine the target media format corresponding to the media data, is configured to:obtain a media filename of the media data;preferentially compare the media data with the media format corresponding to a suffix of the media filename;VN0102P-WQ-0007in a case where the media format of the media data is not the media format corresponding to the suffix of the media filename, compare the media data with remaining media formats supported by the playback engine one by one to determine the target media format corresponding to the media data.

[0035] The technical scheme has following beneficial effects and advantages: the suffix of the media filename has a corresponding relationship with a media format. Therefore, when comparing the media data with all media formats supported by the playback engine, priority may be given to comparing the media data with the media format corresponding to the suffix of the media filename, so quickly detect the target media format corresponding to the media data. Furthermore, in a case where the media format of the media data is not the media format corresponding to the suffix of the media filename, the media data may also be compared with the remaining media formats supported by the playback engine, to ensure detection of the target media format of the media data, ensuring that the media data can be effectively parsed.

[0036] In some embodiments of the present application, in the case where the target protocol is not the designated protocol, the controller, configured to compare the media data with all media formats supported by the playback engine one by one to determine the target media format corresponding to the media data, is configured to:preferentially compare the media data with a designated media format among all media formats supported by the playback engine;in a case where the media format of the media data is not the designated media format, compare the media data with remaining media formats supported by the playback engine one by one to determine the target media format corresponding to the media data.

[0037] The technical scheme has following beneficial effects and advantages: the designated media format is a media format corresponding to the majority of media data, that is, there is a relatively high probability that the media data corresponds to the designated media format. Therefore, when comparing the media data with all media formats supported by a playback engine, priority may be given to comparing the media data with the designated media format to quickly detect the target media format corresponding to the media data. Furthermore, in a case where the media format of the media data is not the designated media format, the media data may also be compared with the remaining media formats supported by the playback engine, to ensure detection of the target media format of the media data, ensuring that the media data can be effectively parsed.

[0038] In some embodiments of the present application, the controller, configured to control the media format detector to compare the media data with each media format through the auto-demultiplexer module, is configured to:mark a media format that has been compared with the media data;compare the media data with an unmarked media format.

[0039] The technical scheme has following beneficial effects and advantages: when detecting the media format of media data, the display apparatus marks media formats that have already been compared, and compares the media data with unmarked media formats, to avoid repeated comparison with the same media format.VN0102P-WQ-0007

[0040] In some embodiments of the present application, the controller, configured to control the media format detector to compare the media data with each media format through the auto-demultiplexer module, is configured to:score a comparison result between the media data and the media format; where a score of the comparison result represents a degree of matching between the media data and the media format;determine the media format having a score greater than or equal to a score threshold as the target media format corresponding to the media data.

[0041] The technical scheme has following beneficial effects and advantages: the comparison result between the media data and the media format is scored to quantify the comparison result, enabling a more accurate assessment of whether the media data matches the media format currently being compared.

[0042] In some embodiments of the present application, the controller, configured to determine the corresponding target demultiplexer from the plurality of demultiplexers based on the target media format through the autodemultiplexer module, is configured to:obtain a media format supported by each demultiplexer;determine a demultiplexer that supports the target media format as the target demultiplexer.

[0043] The technical scheme has following beneficial effects and advantages: when determining a target demultiplexer, the display apparatus first obtains a media format supported by each demultiplexer, and then accurately determines a target demultiplexer that supports the target media format by comparing the target media format corresponding to the media data with the media format supported by each demultiplexer, ensuring that the media data can be effectively parsed.

[0044] In a fourth aspect, the present application further provides a method for processing media data, applied to a display apparatus, including:in response to a playback command for media data, reading the media data through a media data reading module, and transmitting the read media data to an auto-demultiplexer module;buffering the media data into a shared buffer through the auto-demultiplexer module;controlling a media format detector to read the media data from the shared buffer and detect a target media format corresponding to the media data through the auto-demultiplexer module;determining a corresponding target demultiplexer from a plurality of demultiplexers based on the target media format through the auto-demultiplexer module;controlling the target demultiplexer to read the media data from the shared buffer and parse metadata in the media data through the auto-demultiplexer module.

[0045] The technical scheme has following beneficial effects and advantages: by integrating a media format detector and a demultiplexer into an auto-demultiplexer module, a media data reading module and the autodemultiplexer module have a one-to-one correspondence. Therefore, based on this correspondence, after reading media data, the media data reading module can directly transmit the media data to the auto-demultiplexer module for parsing and processing without performing format detection. Since both the media format detector and the demultiplexer are integrated into the auto-demultiplexer module, both the media format detector and theVN0102P-WQ-0007demultiplexer can read media data from a shared buffer corresponding to the auto-demultiplexer module. Thus, during the processing of media data, by reducing the number of independent modules, fixed runtime memory occupied by the independent modules can be effectively reduced. Moreover, the media data needs to be read only once and only one copy of the media data needs to be cached, effectively reducing the usage of runtime memory.

[0046] In some embodiments of the present application, the controlling the media format detector to read the media data from the shared buffer and detect the target media format corresponding to the media data through the auto-demultiplexer module includes:determining a target protocol corresponding to the media data based on the media data read;in a case where the target protocol is a designated protocol, determining a media format corresponding to the designated protocol as the target media format corresponding to the media data;in a case where the target protocol is not the designated protocol, comparing the media data with all media formats supported by a playback engine one by one to determine the target media format corresponding to the media data.

[0047] The technical scheme has following beneficial effects and advantages: when detecting the media format of media data, the display apparatus may prioritize detecting whether a target protocol of the media data is a designated protocol, where the designated protocol has a corresponding media format. In this way, if the target protocol of the media data is the designated protocol, the target media format corresponding to the media data can be directly determined as the media format corresponding to the designated protocol, enabling rapid determination of the target media format of the media data. Furthermore, when the target protocol is not the designated protocol, the target media format of the media data can be ensured to be detected by comparing the media data with all media formats supported by a playback engine, ensuring that the media data can be effectively parsed.

[0048] The present application provides a display apparatus and a method for adjusting a playback speed of streaming media data, to solve the problem of frequent pauses and buffering during playback of streaming media data.

[0049] In a fifth aspect, embodiments of the present application provide a display apparatus, including:a display, configured to display a user interface; anda controller, configured to:in response to a playback command for streaming media data, send a request for obtaining the streaming media data to a streaming media server, and after obtaining the streaming media data, buffer the streaming media data into a buffer;read the streaming media data from the buffer, and play the streaming media data read at a first playback speed under a first resolution;calculate a first playable duration corresponding to the streaming media data unread in the buffer when played at the first playback speed under the first resolution;in response to monitoring that the first playable duration is lower than a first duration threshold, reduce the first playback speed to a second playback speed under the first resolution, and play the streaming media data read from the buffer at the second playback speed under the first resolution;VN0102P-WQ-0007monitor a second playable duration corresponding to the streaming media data unread in the buffer when played at the second playback speed under the first resolution;in response to monitoring that the second playable duration is greater than or equal to a second duration threshold, increase the second playback speed to the first playback speed, and play the streaming media data read from the buffer at the first playback speed under the first resolution; where the second duration threshold is greater than or equal to the first duration threshold.

[0050] The technical scheme has following beneficial effects and advantages: the method, without requiring resolution adjustment, can automatically adjust a playback speed according to a playable duration of streaming media data when a network is congested, reducing a consumption speed of the streaming media data, allowing the network congestion period to be passed without the user being aware of the change, and solving the problem of frequent pauses and buffering during playback of the streaming media data.

[0051] In some embodiments, after calculating the first playable duration corresponding to the streaming media data unread in the buffer when played at the first playback speed under the first resolution, the controller is further configured to:in a case where the first playable duration is lower than a third duration threshold, control a player corresponding to the streaming media data to enter a paused state; where the third duration threshold is less than the first duration threshold.

[0052] The technical scheme has following beneficial effects and advantages: by triggering the paused state, video playback is immediately stopped, and data in the buffer is no longer consumed, preventing continued playback when cached data is insufficient, which would otherwise lead to playback interruption or issues such as stuttering or corrupted frames.

[0053] In some embodiments, before reducing the first playback speed to the second playback speed under the first resolution, the controller is further configured to:set a total playable duration corresponding to the streaming media data for the buffer under the first resolution; the total playable duration is a duration corresponding to playing the streaming media data at the first playback speed when the buffer is full of the streaming media data;divide the buffer into a low water level, a middle water level, and a high water level, according to the total playable duration; the low water level corresponds to the third duration threshold; the middle water level corresponds to the first duration threshold; the high water level corresponds to the second duration threshold.

[0054] The technical scheme has following beneficial effects and advantages: through water level division and the setting of corresponding duration thresholds, the system can automatically adjust the download or playback strategy of streaming media data according to the amount of data in the buffer, avoiding playback stuttering caused by insufficient data in the buffer, as well as avoiding excessive occupation of system resources due to overdownloading of data.

[0055] In some embodiments, after reading the streaming media data from the buffer, and playing the streaming media data read at the first playback speed under the first resolution, the controller is further configured to:VN0102P-WQ-0007detect a fluctuation frequency of a network corresponding to the streaming media data under the first resolution is detected;in response to monitoring that the fluctuation frequency is higher than a frequency threshold, increase the first duration threshold and the second duration threshold synchronously under the first resolution

[0056] The technical scheme has following beneficial effects and advantages: increasing the first duration threshold and the second duration threshold synchronously can improve the stability of streaming media data playback. By increasing the first duration threshold and the second duration threshold, the system can adjust the playback speed only when cached data is more sufficient, gaining more time for data downloading and reducing the risk of playback interruption due to cache data exhaustion.

[0057] In some embodiments, before reading the streaming media data from the buffer, and playing the streaming media data read at the first playback speed under the first resolution, the controller is further configured to:in response to the playback command, read streaming media data packets corresponding to the streaming media data downloaded sequentially from a start address of the buffer;separate video encoded data and audio encoded data from the streaming media data packets; decode the video encoded data through a video decoder to obtain video frames decoded, and decode the audio encoded data through an audio decoder to obtain audio data decoded;sort the video frames decoded by timestamp and then send the video frames sorted to a rendering queue for frame synchronization rendering, and send the audio data decoded to an audio output device for waveform reconstruction.

[0058] The technical scheme has following beneficial effects and advantages: by sequentially reading downloaded data packets from the buffer, the problem of playback stuttering caused by network fluctuations or untimely data downloading can be avoided. The buffer stores a portion of data in advance, so that during playback, data can be continuously obtained locally, ensuring data continuity, making video and audio playback smoother.

[0059] In some embodiments, the controller, configured to calculate the first playable duration corresponding to the streaming media data unread in the buffer when played at the first playback speed under the first resolution, is configured to:obtain an unread data amount corresponding to streaming media data packets unread in the buffer under the first resolution;perform a division operation on the unread data amount and the first playback speed to obtain the first playable duration corresponding to the streaming media data under the first resolution.

[0060] The technical scheme has following beneficial effects and advantages: by calculating the playable duration, it is possible to intuitively know how long the currently cached streaming media data can support playback, and to prepare for data downloading or playback speed adjustment in advance based on this duration, which helps in evaluating the resource reserve status in the buffer.

[0061] In some embodiments, the controller, configured to reduce the first playback speed to the second playback speed under the first resolution, is configured to:obtain an initial frame rate corresponding to the first playback speed under the first resolution;VN0102P-WQ-0007calculate a target frame rate after reducing the first playback speed according to a preset amplitude; adjust a rendering interval of video frames according to the target frame rate under the first resolution, to obtain the second playback speed under the first resolution.

[0062] The technical scheme has following beneficial effects and advantages: under limited network bandwidth conditions, reducing the playback speed can effectively decrease the amount of data transmission. By calculating a target frame rate and adjusting the rendering interval, the system can maintain smooth video playback even under low bandwidth conditions, avoiding stuttering or pausing caused by untimely data transmission.

[0063] In some embodiments, the controller, configured to increase the second playback speed to the first playback speed under the first resolution, is configured to:in response to monitoring that the second playable duration reaches the second duration threshold, generate a playback speed restoration command;in response to the playback speed restoration command, reset a playback frame rate of video frames from the target frame rate to the initial frame rate under the first resolution, to increase the second playback speed to the first playback speed.

[0064] The technical scheme has following beneficial effects and advantages: when the playable duration reaches the second duration threshold, it indicates that there is sufficient data in the buffer to support playback at a normal speed. Restoring the playback speed at this time can prevent excessive accumulation of data in the buffer, which would otherwise occupy too much device storage space. At the same time, network bandwidth can be timely released, allowing the system to allocate resources to other tasks or perform more efficient data transmission, improving overall resource utilization efficiency.

[0065] In some embodiments, after obtaining the initial frame rate corresponding to the first playback speed under the first resolution, the controller is further configured to:calculate a ratio of the second playback speed to the first playback speed under the first resolution to obtain a stretching coefficient of the audio data;stretch the audio data decoded in a time domain under the first resolution according to the stretching coefficient.

[0066] The technical scheme has following beneficial effects and advantages: by calculating the stretching coefficient and performing time -domain stretching on the audio data, the playback duration of the audio can be matched with the adjusted video playback duration, maintaining audio-video synchronization and providing a normal audiovisual experience for the user.

[0067] In a sixth aspect, embodiments of the present application provide a method for adjusting a playback speed of streaming media data, including:in response to a playback command for streaming media data, sending a request for obtaining the streaming media data to a streaming media server, and after obtaining the streaming media data, buffering the streaming media data into a buffer;reading the streaming media data from the buffer, and playing the streaming media data read at a first playback speed under a first resolution;VN0102P-WQ-0007calculating a first playable duration corresponding to the streaming media data unread in the buffer when played at the first playback speed under the first resolution;in response to monitoring that the first playable duration is lower than a first duration threshold, reducing the first playback speed to a second playback speed under the first resolution, and playing the streaming media data read from the buffer at the second playback speed under the first resolution;monitoring a second playable duration corresponding to the streaming media data unread in the buffer when played at the second playback speed under the first resolution;in response to monitoring that the second playable duration is greater than or equal to a second duration threshold, increasing the second playback speed to the first playback speed, and playing the streaming media data read from the buffer at the first playback speed under the first resolution; where the second duration threshold is greater than or equal to the first duration threshold.

[0068] The technical scheme has following beneficial effects and advantages: the display apparatus can, when the network is congested, automatically adjust the playback speed according to the playable duration of the streaming media data, reducing the consumption speed of the streaming media data, allowing the network congestion period to be passed without the user being aware of the change, and solving the problem of frequent pauses and buffering during playback of the streaming media data.

[0069] From the above technical schemes, it can be seen that some embodiments of the present application provide a display apparatus and a method for adjusting a playback speed of streaming media data. In response to a playback command for streaming media data, a request for obtaining the streaming media data is sent to a streaming media server, and after the streaming media data is obtained, the streaming media data is buffered into a buffer. The streaming media data is read from the buffer, and the streaming media data read is played at a first playback speed under a first resolution. A first playable duration corresponding to the streaming media data unread in the buffer when played at the first playback speed under the first resolution is calculated. When it is detected that the first playable duration is lower than a first duration threshold, the first playback speed is reduced to a second playback speed under the first resolution, and the streaming media data read from the buffer is played at the second playback speed under the first resolution. A second playable duration corresponding to the streaming media data unread in the buffer when played at the second playback speed under the first resolution is monitored. When it is detected that the second playable duration is greater than or equal to a second duration threshold, the second playback speed is increased to the first playback speed, and the streaming media data read from the buffer is played at the first playback speed under the first resolution, where the second duration threshold is greater than or equal to the first duration threshold. The method, without requiring resolution adjustment, can automatically adjust the playback speed according to the playable duration of the streaming media data when the network is congested, reducing the consumption speed of the streaming media data, allowing the network congestion period to be passed without the user being aware of the change, and solving the problem of frequent pauses and buffering during playback of the streaming media data.VN0102P-WQ-0007Brief Description of Figures

[0070] In order to illustrate technical schemes in embodiments of the present disclosure more clearly, accompanying drawings that need to be used in describing embodiments will be introduced below briefly.Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and other accompanying drawings can also be obtained by those ordinary skilled in the art according to these accompanying drawings without creative labor.

[0071] FIG. 1 is a schematic diagram of an operation scenario between a display apparatus 200 and a control device 100 according to some embodiments;

[0072] FIG. 2 is a block diagram of hardware configuration of a display apparatus 200 according to some embodiments;

[0073] FIG. 3 is a schematic diagram of software configuration of a display apparatus according to some embodiments;

[0074] FIG. 4 is a schematic diagram of a media resource playback method according to some embodiments;

[0075] FIG. 5 is another schematic diagram of a media resource playback method according to some embodiments;

[0076] FIG. 6 is another schematic diagram of a media resource playback method according to some embodiments;

[0077] FIG. 7 is another schematic diagram of a media resource playback method according to some embodiments;

[0078] FIG. 8 is another schematic diagram of a media resource playback method according to some embodiments;

[0079] FIG. 9 is another schematic diagram of a media resource playback method according to some embodiments;

[0080] FIG. 10 is another schematic diagram of a media resource playback method according to some embodiments;

[0081] FIG. 11 is another schematic diagram of a media resource playback method according to some embodiments;

[0082] FIG. 12 is another schematic diagram of a media resource playback method according to some embodiments;

[0083] FIG. 13 is a schematic diagram illustrating an interaction between a display apparatus and a server according to some embodiments;

[0084] FIG. 14 is a schematic module diagram of a playback engine according to an embodiment of the present application;

[0085] FIG. 15 is a schematic module diagram of a playback engine configured in a display apparatus 200 according to an embodiment of the present application;

[0086] FIG. 16 is a flowchart of processing media data by a display apparatus 200 according to an embodiment of the present application;

[0087] FIG. 17 is a flowchart of detecting a media format by a display apparatus 200 according to an embodiment of the present application;

[0088] FIG. 18 is a flowchart of detecting a media format by a display apparatus 200 according to a media filename according to an embodiment of the present application;VN0102P-WQ-0007

[0089] FIG. 19 is a flowchart of detecting a media format by a display apparatus 200 according to a designated media format according to an embodiment of the present application;

[0090] FIG. 20 is a flowchart of comparing media formats by a display apparatus 200 according to an embodiment of the present application;

[0091] FIG. 21 is a flowchart of determining a target media format by a display apparatus 200 according to an embodiment of the present application;

[0092] FIG. 22 is a flowchart of determining a target demultiplexer by a display apparatus 200 according to an embodiment of the present application;

[0093] FIG. 23 is a schematic flowchart of a method for adjusting a playback speed of streaming media data according to some embodiments of the present application;

[0094] FIG. 24 is a schematic flowchart of reading streaming media data from a buffer and playing the streaming media data according to some embodiments of the present application;

[0095] FIG. 25 is a schematic scenario diagram of dividing a buffer into three water levels according to some embodiments of the present application;

[0096] FIG. 26 is a schematic diagram illustrating a comparison effect between a total playable duration and a playable duration according to some embodiments of the present application;

[0097] FIG. 27 is a schematic flowchart of calculating a playable duration according to some embodiments of the present application;

[0098] FIG. 28 is a schematic flowchart of reducing a playback speed by a preset amplitude to obtain a second playback speed according to some embodiments of the present application;

[0099] FIG. 29 is a schematic flowchart of restoring a second playback speed to a first playback speed according to some embodiments of the present application.Detailed Description

[0100] Embodiments will be described in detail below, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings represent the same or similar elements unless otherwise indicated. Implementations described in the following embodiments do not represent all implementations consistent with the present application. Rather, they are merely examples of systems and methods consistent with certain aspects of the present application as detailed in the claims.

[0101] It should be noted that the brief description of terms in the present application is merely for the convenience of understanding embodiments described below, and is not intended to limit embodiments of the present application. Unless otherwise stated, these terms should be understood in their ordinary and usual meanings.

[0102] Terms “first”, “second”, “third”, etc., in the specification and claims of the present application and the above-described drawings are used to distinguish between similar or identical objects or entities, and do not necessarily imply a specific order or sequence, unless otherwise noted. It should be understood that the terms so used are interchangeable under appropriate circumstances.VN0102P-WQ-0007

[0103] The terms “comprising” and “including” and any variations thereof are intended to cover but not exclude non-exclusive inclusion. For example, a product or device that includes a series of components is not necessarily limited to those components explicitly listed, but may include other components not explicitly listed or inherent to such product or device.

[0104] The term “module” refers to any known or later-developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware or / and software code that is capable of performing a function associated with that element.

[0105] In embodiments of the present application, a display apparatus generally refers to a device having image display and data processing capabilities. For example, the display apparatus includes, but is not limited to, a smart television, a mobile terminal, a computer, a monitor, an advertising screen, a wearable device, a virtual reality device, an augmented reality device, and the like.

[0106] In embodiments of the present application, a display apparatus generally refers to a device having image display and data processing capabilities. The display apparatus may have various implementation forms, for example, a television, a smart television, a laser projection device, a monitor, an electronic bulletin board, an electronic table, and the like. FIGS. 1 and 2 illustrate a specific implementation of the display apparatus of the present application.

[0107] FIG. 1 is a schematic diagram of an operation scenario between a display apparatus 200 and a control device 100 according to embodiments. As shown in FIG. 1, a user can operate the display apparatus 200 through a touch operation, voice, a smart device 300, or the control device 100. The control device 100 is configured to receive an operation command input from a user and convert the operation command into a control instruction recognizable and responsive to the display apparatus 200. For example, the control device 100 may be a remote controller, a stylus, a game controller, or the like.

[0108] In some embodiments, the control device 100 may be a remote controller, and communication between the remote controller and the display apparatus 200 includes infrared protocol communication or Bluetooth protocol communication, as well as other short-range communication modes, to control the display apparatus 200 via wireless or wired means. The user can input user commands through buttons, voice input, control panel input, or the like on the remote controller to control the display apparatus 200.

[0109] In some embodiments, the smart device 300 (e.g., a mobile terminal, a tablet computer, a computer, a laptop, etc.) may also be used to control the display apparatus 200. For example, the display apparatus 200 is controlled using an application running on the smart device 300.

[0110] The mobile terminal 300 may serve as a control device for performing human-computer interaction between the user and the display apparatus 200. The mobile terminal 300 may also serve as a communicating device for establishing a communication connection with the display apparatus 200 to perform data exchange. In some embodiments, the mobile terminal 300 and the display apparatus 200 may be installed with software applications and achieve connection and communication through a network communication protocol, to achieve one-to-one control operation and data communication. Audio and video content displayed on the mobile terminal 300 may also be transmitted to the display apparatus 200 to achieve a synchronous display function.VN0102P-WQ-0007

[0111] In some embodiments, the mobile terminal 300 or other electronic device may also simulate the function of the control device 100 by running an application for controlling the display apparatus 200.

[0112] In some embodiments, the display apparatus 200 may receive a user's control through touch or gesture without using the above-mentioned smart device or control device to receive commands.

[0113] In some embodiments, the display apparatus 200 may also be controlled in a manner other than through the control device 100 and the smart device 300. For example, the display apparatus 200 may directly receive a user's voice command control through a voice instruction acquisition module configured inside the display apparatus 200, or may receive a user's voice command control through a voice control device external to the display apparatus 200.

[0114] In some embodiments, the display apparatus 200 also performs data communication with a server 400 via various communication modes. In this embodiment, the display apparatus 200 is allowed to establish communication connections via a local area network (LAN), a wireless local area network (WLAN), and other networks. The server 400 may provide various content and interactions to the display apparatus 200. The server 400 may be a single cluster or a plurality of clusters, and each cluster may include one or more types of servers.

[0115] The display apparatus 200 may provide broadcast receiving television functions and may additionally provide smart network television functions supported by a computer playback engine, including but not limited to Internet television, smart television, Internet Protocol Television (IPTV), and the like.

[0116] FIG. 2 is a block diagram of hardware configuration of a display apparatus 200 in FIG. 1 according to some embodiments of the present application.

[0117] As shown in FIG. 2, the display apparatus 200 includes at least one of a tuning demodulator 210, a communicating device 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user input interface 280.

[0118] In some embodiments, the controller includes a processor, a video processor, an audio processor, a graphics processor, a RAM, a ROM, and a first interface to an nthinterface for input / output.

[0119] The display 260 includes a display panel for presenting pictures and a driving assembly for driving image display, and is configured to receive an image signal output from the controller and display video content, image content, a menu control interface, and a user manipulation UI interface.

[0120] The display 260 may be a liquid crystal display, an OLED display, a projection display, or a projection device and a projection screen.

[0121] The communicating device 220 is a component for communicating with an external device or a server according to various communication protocol types. For example, the communicating device may include at least one of a Wi-Fi module, a Bluetooth module, a wired Ethernet module, other network communication protocol chips or near-field communication protocol chips, and an infrared receiver. The display apparatus 200 may establish transmission and reception of control signals and data signals with the external control device 100 or the server 400 through the communicating device 220. The display apparatus 200 may be provided with a plurality of communicating devices 220 depending on different communication modes supported by a playback engine. The communicating device 220 may enable the display apparatus 200 to establish a communication connection with anVN0102P-WQ-0007external device or the server 400 via wireless or wired connection. The wired connection may connect the display apparatus 200 with an external device through a data cable, an interface, or other components. The wireless connection may connect the display apparatus 200 with an external device through a wireless signal or a wireless network. The display apparatus 200 may directly establish a connection relationship with an external device, or may indirectly establish a connection relationship through a gateway, a router, a connection device, or the like.

[0122] The display apparatus 200 may be provided with a plurality of communicating devices 220 depending on different communication modes supported. For example, when the display apparatus 200 supports wireless network communication, the display apparatus 200 may be provided with a communicating device 220 including a Wi-Fi function. When the display apparatus 200 supports Bluetooth connection communication, the display apparatus 200 needs to be provided with a communicating device 220 including a Bluetooth function.

[0123] In some embodiments, the audio output interface 270 may be a local speaker of the display apparatus 200 or an external audio output device of the display apparatus 200. For the external audio output device of the display apparatus 200, the display apparatus 200 may also be provided with an external audio output terminal, and the audio output device may be connected to the display apparatus 200 through the external audio output terminal to output sound of the display apparatus 200.

[0124] The user input interface may be configured to receive a control signal from the control device 100 (e.g., an infrared remote controller, etc.) and receive a command input from a user.

[0125] The detector 230 is configured to obtain an external environment or a signal for interacting with the outside. For example, the detector 230 includes an optical receiver, a sensor for obtaining ambient light intensity; or the detector 230 includes an image collector, such as a camera, for obtaining an external environment scene, a user attribute, or a user interaction gesture; or the detector 230 includes a sound collector, such as a microphone, for receiving external sound.

[0126] In some embodiments, the display 260 includes a display function component for presenting a picture and a driving component for driving image display. The display 260 is configured to receive an image signal output from the controller 250 for display. For example, the display 260 may be configured to display video content, image content, a menu control interface, a user manipulation UI interface, and the like.

[0127] The external device interface 240 is configured to access an external device, and may include, but is not limited to, any one or more of the following interfaces: a High-Definition Multimedia Interface (HDMI), an analog or digital high-definition component input interface (component), a composite video input interface (CVBS), a USB input interface (USB), an RGB port, or the like. The external device interface 240 may also be a composite input / output interface formed by the above interfaces.

[0128] The tuning demodulator 210 receives broadcast television signals via wired or wireless reception, and demodulates audio and video signals, such as EPG data signals, from a plurality of wireless or wired broadcast television signals.

[0129] In some embodiments, the controller 250 and the tuning demodulator 210 may be located in different separate devices, i.e., the tuning demodulator 210 may also be in an external device of a main device where the controller 250 is located, such as an external set-top box.VN0102P-WQ-0007

[0130] The controller 250 controls an operation of the display apparatus and responds to user commands through various software control programs stored in the memory. The controller 250 controls the overall operation of the display apparatus 200. For example, in response to receiving a user command for selecting a UI object displayed on the display 260, the controller 250 may perform an operation related to the object selected by the user command.

[0131] In some embodiments, the controller includes at least one of a Central Processing Unit (CPU), a video processor, an audio processor, a Graphics Processing Unit (GPU), a Random Access Memory (RAM), a Read-Only Memory (ROM), a power processor, a first interface to an nthinterface for input / output, a communication bus (Bus), and the like.

[0132] The user may input a user command through a graphical user interface (GUI) displayed on the display 260, and the user input interface receives the user input command through the GUI. Alternatively, the user may input a user command by inputting a specific sound or gesture, and the user input interface receives the user input command by recognizing the sound or gesture through a sensor.

[0133] A "user interface" is a medium interface for interaction and information exchange between an application program or an operating system and a user, and converts an internal form of information into a form acceptable to the user. A common representation of a user interface is a Graphical User Interface (GUI), which refers to a user interface related to computer operations displayed in a graphical manner. The user interface may be an interface element such as an icon, a window, a control, etc., displayed on a display screen of an electronic device. The control may include visual interface elements such as an icon, a button, a menu, a tab, a text box, a dialog box, a status bar, a navigation bar, a widget, and the like.

[0134] To perform user interaction, in some embodiments, the display apparatus 200 may run an operating system. The operating system is a computer program for managing and controlling hardware resources and software resources in the display apparatus 200. The operating system may control the display apparatus to provide a user interface. For example, the operating system may directly control the display apparatus to provide a user interface, or may provide a user interface by running an application program. The operating system also allows a user to interact with the display apparatus 200.

[0135] The operating system may be a native operating system based on a specific operating platform, a third-party operating system deeply customized based on a specific operating platform, or an independent operating system specially developed for the display apparatus 200.

[0136] The operating system may be divided into different modules or layers according to functions implemented. For example, as shown in FIG. 3, in some embodiments, the system is divided into three layers, which are, from top to bottom, an application layer, a middleware layer, and a hardware layer.

[0137] In some embodiments, the application layer is configured to provide services and interfaces for application programs so that the display apparatus 200 can run application programs and interact with a user based on the application programs. At least one application program may be run in the application layer, and these application programs may be a window program, a system setting program, a clock program, or the like that comes with the operating system, or may be application programs developed by third-party developers. In specific implementation, application packages in the application layer are not limited to the above examples.VN0102P-WQ-0007

[0138] The framework layer provides an Application Programming Interface (API) and a programming framework for application programs. The application framework layer includes some predefined functions. The application framework layer is equivalent to a processing center that determines actions to be taken by application programs in the application layer. An application program can access resources in the system and obtain services of the system during execution through the API interface.

[0139] As shown in FIG. 3, FIG. 3 is a schematic diagram of software configuration of a display apparatus according to some embodiments of the present application. In some embodiments, the system of the display apparatus may be divided into three layers, which are, from top to bottom, an application layer, a middleware layer, and a hardware layer.

[0140] The application layer mainly includes common applications on a television and an application framework. The common applications are mainly applications developed based on a browser, for example, HTML5 APPs, and native applications (Native APPs).

[0141] The application framework is a complete program model, having all basic functions required by standard application software, such as file access, data exchange, etc., as well as use interfaces (toolbars, status bars, menus, dialog boxes) for these functions.

[0142] Native APPs can support online or offline operations, message pushing, or local resource access.

[0143] The middleware layer includes various middleware such as various television protocols, multimedia protocols, and system components. The middleware can use basic services (functions) provided by system software to connect various parts of an application system on a network or different applications, to achieve resource sharing and function sharing.

[0144] The hardware layer mainly includes a HAL interface, hardware, and drivers. The HAL interface is a unified interface for all television chips, and specific logic is implemented by each chip. The drivers mainly include: an audio driver, a display driver, a Bluetooth driver, a camera driver, a Wi-Fi driver, a USB driver, an HDMI driver, a sensor driver (e.g., a fingerprint sensor, a temperature sensor, a pressure sensor, etc.), and a power driver.

[0145] It should be noted that the above example is merely a simple division of operating system functions and does not limit the specific operating system form of the display apparatus 200 in embodiments of the present application. Depending on factors such as the functions of the display apparatus and the type of the operating system, the number of layers and specific layer types included in the operating system may be in other forms.

[0146] A display apparatus is generally installed with a playback application. The playback application can, in response to a user's selection operation on a media resource, request a code stream of the media resource from a server, and play the media resource based on the code stream obtained, to meet the user's viewing requirements. The target application in the following embodiments is a kind of playback application.

[0147] In addition, to improve the user's experience of watching a media resource, for the same media resource, a server can often provide a plurality of forms of code streams, and different forms of code streams correspond to different display effects. For example, when playing some code streams, an interface of the display apparatus can display subtitles; when playing some code streams, the display apparatus can play audio effects (e.g., DolbyVN0102P-WQ-0007Audio); and when playing some code streams, the interface of the display apparatus can display video effects (e.g., Dolby Vision). Of course, some code streams may simultaneously include at least two of the above display effects, such as simultaneously displaying subtitles and video effects.

[0148] In view of this situation, currently, the display apparatus typically adopts following steps when displaying a media resource.

[0149] First, after receiving a display command for a target media resource, the display apparatus selects an initial stream from a plurality of code streams provided by a server according to a preset strategy (e.g., a start-up speed priority strategy or a playback performance priority strategy), and downloads the initial stream from the server.

[0150] If the preset strategy is the start-up speed priority strategy, the display apparatus selects an initial stream with a relatively low bit rate to avoid stuttering caused by transmission delay of a high-bit-rate code stream. If the preset strategy is the playback performance priority strategy, the display apparatus selects an initial stream with a relatively high bit rate to provide better picture quality.

[0151] Then, the display apparatus controls the display to display a corresponding media resource interface according to the initial stream downloaded, for viewing by the user.

[0152] In addition, if the user is not satisfied with the display effect of the media resource, the user may operate the display apparatus again. In this case, the display apparatus may download another code stream from the server according to the operation received again, so that a media resource interface corresponding to the other code stream can be displayed during subsequent playback.

[0153] For example, if the display apparatus applies the start-up speed priority strategy and the initial stream selected only includes the display effect of subtitles, but the user also wishes to display video effects while watching, the user may operate the display apparatus again. Based on the user's operation, the display apparatus requests a code stream including subtitles and video effects from the server, and can play the code stream during subsequent playback, so that the display displays a media resource interface including subtitles and video effects, to meet the user's requirements.

[0154] However, this approach causes the initial stream to be not adapted to the user's requirements. After playing the media resource, the user needs to operate the display apparatus again to enable the display apparatus to select and play a code stream that meets the user's requirements. The operation is relatively cumbersome, reducing the user's viewing experience.

[0155] To address this problem, an embodiment of the present application provides a display apparatus. The display apparatus includes a display and a controller. The display is configured to display a media resource interface. The controller is coupled to the display. Referring to FIG. 4, the controller may be configured to perform following operations.

[0156] Step S100: Start a target application in response to receiving a startup command for the target application.

[0157] The target application is a playback application supporting audio and video playback, through which playback of a media resource can be achieved.

[0158] Step S200: Test a download speed of the target application.VN0102P-WQ-0007

[0159] In this step, the controller may select a test source for speed measurement according to information such as a service coverage area of the target application and / or a streaming media protocol used by the target application, and perform one or more speed measurements using the test source to obtain the download speed. If a plurality of speed measurements are performed in this step, the download speed of the target application is an average value of speeds obtained from respective speed measurements.

[0160] In addition, if a plurality of speed measurements are performed, the number of speed measurements may be preset. In this case, the operation of speed measurements may be terminated after a preset number of speed measurements is completed. Alternatively, if a playback command for a target media resource is received before the preset number of speed measurements is completed, the current speed measurement may be terminated, and the download speed of the target application may be determined based on previously completed speed measurements. That is, the download speed of the target application is not tested during playback of the media resource, to prevent the speed measurement process from affecting the smoothness of media resource playback and thus affecting the user's viewing experience.

[0161] Step S300: Determine n historical playback records best matching a first playback parameter from historical playback records of the display apparatus, where n is a preset positive integer.

[0162] In this step, the display apparatus may access a storage space of the historical playback records to download each historical playback record, and then determine the n historical playback records best matching the first playback parameter from the historical playback records downloaded. The storage space may be provided in the display apparatus, or may be provided in the cloud, which is not limited in the present application.

[0163] The first playback parameter is used for reflecting a playback environment for playing the historical playback records. In some embodiments, the first playback parameter may include at least one of an application name, a playback time period, or a bandwidth interval.

[0164] The application name is a name of the target application, which can reflect a software environment for playing the historical playback records. The playback time period is a time period in which a moment of receiving the startup command for the target application falls, which can reflect a time environment for playing the historical playback records.

[0165] The bandwidth interval can reflect a network environment for playing the historical playback records. When a code stream of a media resource to be played is downloaded at the download speed of the target application determined in the previous step, stuttering during the playback of the media resource is often less likely to occur. Therefore, the bandwidth interval may be determined based on the download speed of the target application obtained in the previous step. Feasibly, a correspondence between download speeds and bandwidth intervals may be preset, and then the bandwidth interval may be determined based on the correspondence. In an example of the correspondence, if a download speed of 12.5 MB / s is set to correspond to a bandwidth interval of 80M-120M, then if the download speed of the target application is determined to be 12.5 MB / s through the previous step, the corresponding bandwidth interval may be 80M-120M.

[0166] In addition, n is generally a positive integer greater than 1. In some embodiments, n is 10. Of course, n may also be other values, which is not limited in the present application.VN0102P-WQ-0007

[0167] Since the first playback parameter may include one or more parameters, in some embodiments, the n historical playback records best matching the first playback parameter may be determined through following operations.

[0168] Step 1: The first playback parameter is divided into different parameter sets, and each parameter set includes at least one first playback parameter.

[0169] Exemplarily, a first parameter set may be set to include three playback parameters: the application name, the playback time period, and the bandwidth interval; a second parameter set may include two playback parameters: the application name and the playback time period; and a third parameter set may include two playback parameters: the application name and the bandwidth interval.

[0170] Step 2: Priority levels of the parameter sets are determined based on a type of the first playback parameter in each parameter set.

[0171] Feasibly, priority values may be pre-assigned to each parameter set, and a higher priority value indicates a higher priority level of the parameter set, so that the priority levels of the parameter sets are reflected by the priority values. For example, the first parameter set may be assigned a priority value of 0.9, the second parameter set may be assigned a priority value of 0.7, and the third parameter set may be assigned a priority value of 0.5. Then, the first parameter set has the highest priority level, and the third parameter set has the lowest priority level.

[0172] Alternatively, in another example, priority relationships among the parameter sets may be preset. For example, the first parameter set may be set to have a higher priority level than the second parameter set, and the second parameter set may have a higher priority level than the third parameter set.

[0173] Step 3: In descending order of priority levels, historical playback records matching first playback parameters included in the parameter sets are sequentially searched for, until n historical playback records are found.

[0174] Referring to FIG. 5, this operation may be implemented through following steps.

[0175] Step S310: Select a parameter set with the highest priority level according to the priority levels of the parameter sets.

[0176] Step S320: Search the historical playback records of the display apparatus for historical playback records matching the parameter set selected.

[0177] Step S330: Determine whether the number of historical playback records found is sufficient, i.e., determine whether the number of historical playback records found reaches n. If not, perform step S340; if yes, perform step S350.

[0178] Step S340: Select another parameter set, where the priority level of the parameter set newly selected is next only to the priority level of the parameter set previously selected, and then return to step S320.

[0179] Step S350: Collect the n historical playback records matched.

[0180] Exemplarily, in a case where the first parameter set has a priority value of 0.9, the second parameter set has a priority value of 0.7, and the third parameter set has a priority value of 0.5, historical playback records matching the first parameter set are searched for first. If the number of historical playback records matching the first parameter set is less than n, then historical playback records matching the second parameter set are furtherVN0102P-WQ-0007searched for. If the total number of historical playback records matching the first parameter set and the second parameter set is still less than n, then historical playback records matching the third parameter set are searched for, until n historical playback records are found.

[0181] The display apparatus may include a large number of historical playback records, especially as the usage time of the display apparatus increases, the number of historical playback records may be even larger. In this step, based on the first playback parameter reflecting the playback environment for playing the historical playback records, n historical playback records can be determined from the large number of historical playback records. Since these n historical playback records have the highest degree of matching with the first playback parameter, the playback environment of these n historical playback records is highly similar to the current media resource playback environment. Therefore, determining the user's preference for display effects through these n historical playback records has high accuracy.

[0182] In addition, in some embodiments, the operation of the controller determining the n historical playback records best matching the first playback parameter from the historical playback records of the display apparatus may include a following operation.

[0183] Whether the number of times of testing the download speed of the target application has reached a preset number is determined. If the number of times of testing the download speed of the target application has reached the preset number, the n historical playback records best matching the first playback parameter are determined from the historical playback records of the display apparatus.

[0184] In this embodiment, the number of times of testing the download speed of the target application may be preset. After the number of times of testing the download speed of the target application reaches the preset number, speed measurement is stopped, and the n historical playback records best matching the first playback parameter are determined.

[0185] Through this operation, a plurality of speed measurements of the download speed of the target application can be performed, to ensure the accuracy of determining the download speed of the target application.

[0186] Alternatively, in other embodiments, this operation may include a following operation.

[0187] The n historical playback records best matching the first playback parameter are determined from the historical playback records of the display apparatus in response to receiving a playback command for a target media resource.

[0188] In this embodiment, before receiving the playback command for the target media resource, one or more speed measurements of the download speed of the target application may be performed. After receiving the playback command for the target media resource, even if speed measurement is not completed (e.g., the number of speed measurements is preset but has not reached the preset number), the n historical playback records are determined. Thus, it is not necessary to wait for the completion of speed measurement, and the n historical playback records can be determined as soon as possible, further enabling the target initial stream to be determined as soon as possible and improving the user's viewing experience.

[0189] Further, in this embodiment, if the playback command for the target media resource is received, even if the number of speed measurements has not reached the preset number, the download speed of the targetVN0102P-WQ-0007application is generally no longer tested, to prevent the speed measurement process from affecting the playback of the media resource.

[0190] Step S400: Determine weights respectively corresponding to at least two display effects presented by the n historical playback records based on a second playback parameter.

[0191] In some embodiments, during playback of a media resource, display effects such as subtitles, audio effects, and video effects may be presented. The audio effects may include Dolby Audio, digital theater systems (DTS) audio, sound retrieval system (SRS) audio, and the like. The video effects may include Dolby Vision, hybrid loggamma (HLG) video, motion estimation and motion compensation (MEMC) video, and the like. One historical playback record may present one or more display effects, and the n historical playback records present at least two display effects. For example, one historical playback record may present Dolby Audio, another historical playback record may present SRS audio, and other historical playback records may present Dolby Audio and subtitles, etc.

[0192] The second playback parameter is used for reflecting a duration for which the historical playback records present the display effects. In some embodiments, the second playback parameter may include at least one of a playback duration, a maximum holding duration, and a number of switching times.

[0193] Display effects may be adjusted for a historical playback record during playback. For example, if a historical playback record has a duration of 10 minutes and subtitles are not displayed in the first three minutes, but the user wishes to view subtitles, the user may operate the display apparatus while watching the historical playback record. The display apparatus may switch the code stream according to a user operation received, so that the historical playback record displays subtitles in the subsequent period. In this case, the playback duration during which the historical playback record displays subtitles is 7 minutes.

[0194] Display effects may be adjusted many times for a historical playback record during playback, so that the historical playback record displays different display effects in different time periods. The maximum holding duration for a certain display effect presented by the historical playback record refers to the duration of the longest time period during which the historical playback record maintains the display effect. Moreover, each time the display effect is switched to another display effect, the number of switching times corresponding to presentation of the display effect by the historical playback record is incremented by one. For example, if a historical playback record has a duration of 10 minutes, presenting Dolby Audio in the first three minutes, presenting only subtitles (without Dolby Audio) from the third minute to the fourth minute, and presenting Dolby Audio (without subtitles) from the fourth minute to the end of the historical playback record, then the maximum holding duration for the display effect of Dolby Audio presented by the historical playback record is 6 minutes (i.e., the duration from the fourth minute to the end of the historical playback record), and the maximum holding duration for the display effect of subtitles is 1 minute (i.e., the duration from the third minute to the fourth minute). Correspondingly, the historical playback record switches from the display effect of Dolby Audio to subtitles at the third minute, and switches from the display effect of subtitles to Dolby Audio at the fourth minute. Thus, the number of switching times for the display effect of Dolby Audio presented by the historical playback record is 1, and the number of switching times for the display effect of subtitles is also 1.VN0102P-WQ-0007

[0195] In this step, the weights respectively corresponding to the at least two display effects presented by the n historical playback records can be determined based on the second playback parameter. The higher the weight corresponding to a certain display effect, the more the user prefers that display effect while watching the media resource. That is, the weight can reflect the user's preference when watching the media resource.

[0196] Step S500: In response to receiving a playback command for a target media resource, filter out a target initial stream from an initial stream set of the target media resource based on the download speed of the target application and the weights respectively corresponding to the at least two display effects.

[0197] After receiving the playback command for the target media resource, the display apparatus may transmit request information for the target media resource to a server. After receiving the request information, the server feeds back related information of the target media resource to the display apparatus. The related information includes information of various code streams of the target media resource that the server can provide. Exemplarily, the server may return a media manifest file (i.e., a manifest file) of the target media resource to the display apparatus, and the manifest file records the related information of the target media resource.

[0198] The display apparatus may determine the initial stream set of the target media resource based on the related information, and filter out the target initial stream from the initial stream set based on the download speed of the target application and the weights respectively corresponding to the display effects.

[0199] Step S600: Control the display to display a media resource interface corresponding to the target initial stream.

[0200] After determining the target initial stream, the controller of the display apparatus may download the target initial stream from the server and return the downloaded target initial stream to the display of the display apparatus. After obtaining the target initial stream, the display displays the media resource interface corresponding to the target initial stream for viewing by the user.

[0201] Embodiments of the present application provide a display apparatus. A controller of the display apparatus may start a target application after receiving a startup command for a target application, and test a download speed of the target application; then determine n historical playback records best matching a first playback parameter from historical playback records of the display apparatus; then determine weights respectively corresponding to at least two display effects presented by the n historical playback records based on a second playback parameter; then filter out a target initial stream from an initial stream set of a target media resource based on the download speed of the target application and the weights respectively corresponding to the at least two display effects; and then control a display of the display apparatus to display a media resource interface corresponding to the target initial stream.

[0202] In embodiments of the present application, after starting the target application, the target initial stream of the target media resource can be determined through the above steps. In the process of determining the target initial stream, the download speed of the target application and the weights of the display effects are comprehensively considered. By considering the download speed of the target application, it can be ensured that a bit rate of the target initial stream is within a reasonable range under a network environment in which the display apparatus is located. By considering the weights of the display effects, the target initial stream can be made toVN0102P-WQ-0007conform to user preferences and be adapted to user requirements. Thus, without requiring user operation, an interface adapted to the user's requirements can be displayed in an initial playback phase of the media resource, improving the user's viewing experience.

[0203] Step S400 provides an operation in which the controller determines the weights respectively corresponding to the at least two display effects presented by the n historical playback records based on the second playback parameter. In some embodiments, referring to FIG. 6, this operation may be implemented as follows.

[0204] Step S410: In a case where at least two second playback parameters are included, determine first weights respectively corresponding to the at least two second playback parameters based on importance levels of the at least two second playback parameters.

[0205] Step S420: Determine numerical values of the display effects presented by the n historical playback records respectively corresponding to each of the second playback parameters based on the display effects respectively presented by the n historical playback records.

[0206] If one of the display effects presented by the n historical playback records is set as a target feature, and one of the second playback parameters is set as a target parameter, then the numerical value of the target feature presented by the n historical playback records corresponding to the target parameter is a sum of values of the target parameter corresponding to the target feature presented by each of the n historical playback records.

[0207] Exemplarily, the display effects include subtitles, and the second playback parameters include a playback duration, a number of switching times, and a maximum holding duration. In this step, the playback duration during which subtitles are presented in each of the n historical playback records may be determined, and then a sum of the playback durations during which subtitles are presented in the historical playback records is used as a numerical value of the playback duration corresponding to the subtitles presented by the n historical playback records.Correspondingly, a sum of the numbers of switching times for presenting subtitles in the n historical playback records is used as a numerical value of the number of switching times corresponding to the subtitles presented by the n historical playback records. In addition, a sum of the maximum holding durations for presenting subtitles in the n historical playback records is used as a numerical value of the maximum holding duration corresponding to the subtitles presented by the n historical playback records.

[0208] Step S430: Determine second weights of the at least two display effects respectively corresponding to each of the second playback parameters based on the numerical values of the at least two display effects respectively corresponding to each of the second playback parameters.

[0209] Step S440: Determine the weights respectively corresponding to the at least two display effects presented by the n historical playback records based on the first weights respectively corresponding to the at least two second playback parameters and the second weights of the at least two display effects respectively corresponding to each of the second playback parameters.

[0210] Through this embodiment, the weight corresponding to each display effect can be determined according to the importance level of each second playback parameter and the values of the display effects presented by the n historical playback records respectively corresponding to each second playback parameter.VN0102P-WQ-0007

[0211] Referring to FIG. 7, in some embodiments, when at least two second playback parameters are included, the operation of the controller determining the first weights respectively corresponding to respective second playback parameters based on the importance levels of the respective second playback parameters may be implemented as follows.

[0212] Step S411: Assign first scores to respective second playback parameters based on the importance levels of the respective second playback parameters.

[0213] In this step, generally, a higher importance level corresponds to a lower assigned first score. Exemplarily, if the second playback parameters include a playback duration, a number of switching times, and a maximum holding duration, and the importance level of the playback duration is higher than that of the number of switching times, and the importance level of the number of switching times is higher than that of the maximum holding duration, then the first score assigned to the playback duration may be 1, the first score assigned to the number of switching times may be 3, and the first score assigned to the maximum holding duration may be 5.

[0214] Step S412: Calculate a ratio of the first scores of any two second playback parameters.

[0215] Step S413: Determine the first weights corresponding to the respective second playback parameters by performing normalization calculation on the first scores and the ratio.

[0216] Exemplarily, since the first score of the playback duration is 1, the first score of the number of switching times is 3, and the first score of the maximum holding duration is 5, correspondingly, the ratio of the first scores of the playback duration to the number of switching times is 1 / 3, the ratio of the first scores of the playback duration to the maximum holding duration is 1 / 5, and the ratio of the first scores of the maximum holding duration to the number of switching times is 5 / 3. Then, the following Table 1 can be obtained:Table 1

[0217] In this case, the first weight of the playback duration can be obtained by the following normalization calculation formula:First weight of playback duration = -. = = 0.6520 Formula (1).-J -X1X-+ —x—xlVN0102P-WQ-0007

[0218] The first weight of the number of switching times can be obtained by the following normalization calculation formula:First weight of the number of switching times = 7I / 3XIX5 / 3 2176 Formula (2).

[0219] The first weight of the maximum holding duration can be obtained by the following normalization calculation formula:>First weight of the maximum holding duration = 71 / 5x3 / 5xVi > Q 13Q4 Formula (3).

[0220] Through the operations of this embodiment, the first weight of each second playback parameter can be determined.

[0221] Referring to FIG. 8, in some embodiments, the operation of the controller determining the second weights of the at least two display effects respectively corresponding to each of the second playback parameters based on the numerical values of the at least two display effects respectively corresponding to each of the second playback parameters may be implemented as follows.

[0222] Step S431: Calculate a ratio of numerical values of any two display effects corresponding to a second target parameter, where the second target parameter is any one of the second playback parameters.

[0223] Step S432: Determine the second weights of the display effects corresponding to the second target parameter by performing normalization calculation on the numerical values of the display effects corresponding to the second target parameter and the ratio.

[0224] In this embodiment, any one second playback parameter may be selected as the second target parameter. Then, according to the operations of step S431 and step S432, the second weight of the display effect corresponding to the second target parameter is determined. Then, another second playback parameter is selected as the second target parameter, and the operations of step S431 and step S432 are repeated to determine the second weight of the display effect corresponding to the newly selected second target parameter, and so on, until the second weights of the display effect corresponding to all second playback parameters are determined.

[0225] Exemplarily, the playback duration is selected as the second target parameter. The display effects presented by the n historical playback records include three types: subtitles, Dolby Audio, and Dolby Vision. The sum of playback durations during which subtitles are presented in the n historical playback records is a minutes, the sum of playback durations during which Dolby Audio is presented is b minutes, and the sum of playback durations during which Dolby Vision is presented is c minutes. Then, it can be determined that the ratio of the numerical value of the parameter of playback duration corresponding to subtitles to that corresponding to Dolby Audio is a / b, the ratio of the numerical value of the parameter of playback duration corresponding to subtitles to that corresponding to Dolby Vision is a / c, the ratio of the numerical value of the parameter of playback duration corresponding to Dolby Audio to that corresponding to subtitles is b / a, the ratio of the numerical value of the parameter of playback duration corresponding to Dolby Vision to that corresponding to subtitles is c / a, the ratio of the numerical value of the parameter of playback duration corresponding to Dolby Vision to that corresponding toVN0102P-WQ-0007Dolby Audio is c / b, and the ratio of the numerical value of the parameter of playback duration corresponding to Dolby Audio to that corresponding to Dolby Vision is b / c. Based on this, the following Table 2 can be obtained:Table 2

[0226] In this case, the second weight of each display effect corresponding to the playback duration can be obtained through normalization calculation.

[0227] The second weight of the display effect of Dolby Audio can be obtained by the following normalization calculation formula:• 1 m-x n i*3c a / x3 l. c a b a,...Second weight of Dolby Audio= -J 1 X - b X - b ( U 1 X - b X - b + -y - c X 1 X - c + Formula (4).

[0228] The second weight of the display effect of Dolby Vision can be obtained by the following normalization calculation formula:• 1 n r- •3b. a,,3. c a 3 b a 3 b cSecond weight of Dolby Vision = - X 1 X - ( 1 X - X - + - X 1 X -+ - X - X 1) Formula (5).c c d b b -y c c ya a

[0229] The second weight of the display effect of subtitles can be obtained by the following normalization calculation formula:, - 13b c., '3 I. c a 3 b a 3 b c.Second weight of subtitles = l-X - X l ( 1 X -X -+ - X 1 X - + - X - X 1xa a b b c c a a ) Formula (6).

[0230] In some embodiments, the step of the controller determining the weights respectively corresponding to the at least two display effects presented by the n historical playback records based on the first weights respectively corresponding to the at least two second playback parameters and the second weights of the at least two display effects respectively corresponding to each of the second playback parameters may be implemented as follows.

[0231] The first weights corresponding to respective second playback parameters are used as weighting coefficients to perform a weighted accumulation calculation on the second weights of the display effect respectively corresponding to the respective second playback parameters, and a calculation result is the weight corresponding to the display effect.

[0232] Exemplarily, it is assumed that the first weight corresponding to the parameter of playback duration is 0.648, the first weight corresponding to the parameter of number of switching times is 0.230, and the first weight corresponding to the parameter of maximum holding duration is 0.122. In addition, the second weights of the display effect of Dolby Audio corresponding to playback duration, number of switching times, and maximum holding duration are 0.276, 0.333, and 0.2, respectively; the second weights of the display effect of Dolby Vision corresponding to playback duration, number of switching times, and maximum holding duration are 0.147, 0.333,VN0102P-WQ-0007and 0.4, respectively; and the second weights of the display effect of subtitles corresponding to playback duration, number of switching times, and maximum holding duration are 0.577, 0.333, and 0.4, respectively. Then, the following Table 3 can be obtained:Table 3

[0233] In this example, the weight corresponding to each display effect can be calculated by the following formula.

[0234] The weight of the display effect of Dolby Audio can be determined by the following formula:Weight of Dolby Audio=0.648x0.276+0.230x0.333+0.122x0.2=0.280 Formula (7).

[0235] The weight of the display effect of Dolby Vision can be determined by the following formula:Weight of Dolby Vision=0.648x0.147+0.230x0.333+0.122x0.4=0.221 Formula (8).

[0236] The weight of the display effect of subtitles can be determined by the following formula:Weight of subtitles= 0.648x0.577+0.230x0.333+0.122x0.4=0.499 Formula (9).

[0237] In the above embodiments, scenarios including at least two second playback parameters are described. In some scenarios, only one second playback parameter may be included. For such a scenario, in some embodiments, following steps may be adopted to determine the weights corresponding to the display effects presented by the n historical playback records.

[0238] Step 1: In a case where only one second playback parameter is included, determine numerical values of the display effects presented by the n historical playback records corresponding to the second playback parameter.

[0239] Step 2: Determine second weights of respective display effects corresponding to the second playback parameter based on the numerical values of the display effects corresponding to the second playback parameter, where the second weight is the weight corresponding to the display effect.

[0240] In this step, a ratio of the numerical values of any two display effects corresponding to the second playback parameter may be calculated. Then, normalization calculation is performed on the numerical values of the respective display effects corresponding to the one second playback parameter and the ratio. A result of the normalization calculation is the second weight of the display effect corresponding to the second playback parameter.

[0241] Through the above embodiments, the weight corresponding to each display effect can be determined when only one second playback parameter is included.VN0102P-WQ-0007

[0242] In some embodiments, referring to FIG. 9, the controller may filter out the target initial stream from the initial stream set of the target media resource based on the download speed of the target application and the weights respectively corresponding to at least two display effects as follows.

[0243] Step S510: Determine candidate initial streams from the initial stream set of the target media resource based on the download speed of the target application and a bandwidth of each initial stream in the initial stream set.

[0244] The initial stream set of the target media resource generally includes a plurality of initial streams. This step filters out the initial stream set based on the download speed of the target application and the bandwidth of each initial stream in the initial stream set to determine candidate initial streams therein. When filtering out the candidate initial streams, an initial stream that causes less stuttering when the media resource is played based on the download speed of the target application is generally used as a candidate initial stream.

[0245] Through this step, it can be ensured that a bit rate of the candidate initial stream is adapted to the download speed, and the bit rate of the candidate initial stream is within a reasonable range under a network environment in which the display apparatus is located.

[0246] Step S520: Filter out the target initial stream from the candidate initial streams based on display effects presented by the candidate initial streams and the weights respectively corresponding to the at least two display effects.

[0247] In this step, when filtering out the target initial stream from the candidate initial streams, the weights corresponding to the display effects are considered. The weights can reflect the user's preferences for each display effect. Therefore, the target initial stream filtered can conform to the user's preferences and be adapted to the user's requirements.

[0248] Further, in some embodiments, before performing step S510, the controller may further perform the following operation.

[0249] Filter out initial streams not supported for playback by a playback configuration of the display apparatus from the initial stream set.

[0250] In a feasible design, the initial stream set may be filtered based on at least one of the following parameters corresponding to the playback configuration: resolution, Codec support range, special audio effect, encryption type, language, subtitle and audio support type, etc.

[0251] Exemplarily, if the parameter for filtering the initial stream set includes resolution, this step filters out initial streams with too high a resolution that the display apparatus does not support playback. Codec is an algorithm or tool for compressing (encoding) and decompressing (decoding) audio and video data. The Codec support range refers to types and technical parameters of video and audio codecs that the display apparatus can support. If the parameter for filtering the initial stream set includes the Codec support range, this step filters out initial streams corresponding to compression or decompression algorithms or tools that the display apparatus does not support. If the parameter for filtering the initial stream set includes special audio effect, this step filters out initial streams that include the special audio effect that the display apparatus does not support playback. If the parameter for filtering the initial stream set includes an encryption type, this step filters out initial streams with anVN0102P-WQ-0007encryption type that the playback configuration of the display apparatus does not support playback. If the parameter for filtering the initial stream set includes a language, this step filters out initial streams corresponding to a language that the playback configuration of the display apparatus does not support playback. If the parameter for filtering the initial stream set includes subtitles, this step filters out initial streams corresponding to subtitles that the playback configuration of the display apparatus does not support display. If the parameter for filtering the initial stream set includes an audio support type, this step filters out initial streams corresponding to an audio support type that the playback configuration of the display apparatus does not support playback.

[0252] Through the above steps, the initial stream set can be filtered based on the playback configuration of the display apparatus, to ensure that the target initial stream selected from the candidate initial streams can be played by the display apparatus, improving the user's viewing experience.

[0253] In some embodiments, the operation of the controller determining the candidate initial streams from the initial stream set of the target media resource based on the download speed of the target application and the bandwidth of each initial stream in the initial stream set may be implemented through following steps.

[0254] Step 1: Determine a first download speed interval based on the download speed of the target application and a first preset range allowing fluctuation of the download speed.

[0255] Exemplarily, if the download speed of the target application is 12.5 MB / s and the first preset range allowing fluctuation of the download speed is 1 MB / s, then the first download speed interval is [11.5 MB / s, 13.5 MB / s].

[0256] Step 2: Search for a first initial stream with a bandwidth matching the first download speed interval from each initial stream in the initial stream set, where the first initial stream belongs to the candidate initial streams.

[0257] In this step, the bandwidth matching the first download speed interval means that when the download speed of the target application is within the first download speed interval, the display apparatus experiences less stuttering during playback of the code stream corresponding to the bandwidth through the target application.

[0258] The download speed of the target application is determined based on speed measurement of the target application. However, compared with the network environment during the speed measurement process, the network environment during media resource playback may fluctuate. Accordingly, in embodiments of the present application, the first download speed interval may be determined based on a first preset range, and candidate initial streams are selected from the initial stream set based on a first download interval, so that the bandwidth of the candidate initial stream is adapted to the first download speed interval. Correspondingly, the bandwidth of the target initial stream can be adapted to the first download speed interval, reducing stuttering during playback of the target initial stream and improving the user's viewing experience.

[0259] In other embodiments, referring to FIG. 10, the operation of the controller determining the candidate initial streams from the initial stream set of the target media resource based on the download speed of the target application and the bandwidth of each initial stream in the initial stream set may be implemented through following steps.

[0260] Step S511: Determine a second download speed interval based on the download speed of the target application and a second preset range allowing fluctuation of the download speed.VN0102P-WQ-0007

[0261] The second preset range may be the same as or different from the first preset range, which is not limited in embodiments of the present application.

[0262] Step S512: Search for a second initial stream with a bandwidth matching the second download interval from each initial stream in the initial stream set.

[0263] Step S513: Determine a second score for each of the historical playback records based on a type of the first playback parameter matching the n historical playback records.

[0264] In embodiments of the present application, a correspondence between the type of the first playback parameter included in a historical playback record and the second score may be preset, and then the second score of each historical playback record is determined based on the correspondence.

[0265] Exemplarily, if first playback parameter matching a certain historical playback includes an application name, a playback time period, and a bandwidth interval, the second score of the historical playback record may be set to 0.9. If the first playback parameter matching the certain historical playback includes the application name and the playback time period, the second score of the historical playback record may be set to 0.7. If the first playback parameter matching the certain historical playback includes the application name and the bandwidth interval, the second score of the historical playback record may be set to 0.5.

[0266] Step S514: Calculate a fifth score for each of the historical playback records respectively based on the second score of each historical playback record and a third score corresponding to smoothness of the historical playback record and / or a fourth score corresponding to a resolution of the historical playback record.

[0267] Smoothness and resolution during media resource playback are important factors affecting the user's viewing experience. Therefore, in embodiments of the present application, when calculating the fifth score of each historical playback record, the smoothness and / or resolution of the historical playback record during playback are also considered.

[0268] In a feasible design, this step may calculate the fifth score of each historical playback record by the following formula:Fifth score = Second score x (Third score + Fourth score ) / 2 Formula (10).

[0269] When calculating the fifth score of each historical playback record by Formula (10), if the fifth score is calculated based on both the third score and the fourth score, it may be set that the third score is 0.5 when the smoothness of the historical playback record meets a first preset threshold, and the third score is 0 when the smoothness of the historical playback record is lower than the first preset threshold. In addition, it may be set that the fourth score is 0.5 when the resolution of the historical playback record meets a second preset threshold, and the fourth score is 0 when the resolution of the historical playback record is lower than the second preset threshold.

[0270] In addition, if the fifth score of each historical playback record is calculated only based on the second score and the third score, the fourth score in Formula (10) may be set to 0. If the fifth score of each historical playback record is calculated only based on the second score and the fourth score, the third score in Formula (10) may be set to 0.

[0271] To clarify this calculation method, an example of calculating the fifth score is provided, and for this example, the following Table 4 is provided:VN0102P-WQ-0007Table 4

[0272] Referring to Table 4, in this example, the first playback parameter matching the first historical playback record includes: an application name, a playback time period, and a bandwidth interval. The second score of this historical playback record is 0.9. Moreover, both the smoothness and the resolution of this historical playback record are higher than corresponding preset thresholds, meeting the user's viewing requirements. Therefore, both the third score and the fourth score of this historical playback record are 0.5. In this case, based on Formula (10), the fifth score of this historical playback record can be calculated to be 0.45. Correspondingly, the first playback parameter matching the second historical playback record includes: an application name and a playback time period. The second score of this historical playback record is 0.7. Moreover, both the third score and the fourth score of this historical playback record are 0.5. In this case, based on Formula (10), the fifth score of this historical playback record can be calculated to be 0.35. The first playback parameter matching the third historical playback record includes: an application name and a bandwidth interval. The second score of this historical playback record is 0.5. Moreover, both the third score and the fourth score of this historical playback record are 0.5. In this case, based on Formula (10), the fifth score of this historical playback record can be calculated to be 0.25.

[0273] Step S515: Determine m historical playback records with the highest fifth scores from the n historical playback records, where m is a positive integer less than n.

[0274] Exemplarily, when n is 10, m may be 5. Of course, m may also be other values, which is not limited in the present application.

[0275] Step S516: Determine a bandwidth interval of the m historical playback records.

[0276] The bandwidth interval of the m historical playback records is a union of bandwidth intervals of the m historical playback records. Exemplarily, if m is 5, and the bandwidth intervals of five historical playback records are 2M-4M, 2M-4M, 2M-4M, 1M-2M, and 1M-2M, respectively, then the bandwidth interval of the m historical playback records is 1M-4M.VN0102P-WQ-0007

[0277] Step S517: Search for a third initial stream with a bandwidth falling within the bandwidth interval of the m historical playback records from each initial stream in the initial stream set, where the second initial stream and the third initial stream belong to the candidate initial streams.

[0278] In this embodiment, based on the type of the first playback parameter matching the historical playback records and the smoothness and / or resolution of the historical playback records, m historical playback records are selected from the n historical playback records. In this case, the m historical playback records not only conform to the user's preferences for watching media resources to a certain extent, but also have smoothness and / or resolution that can meet the user's viewing requirements. Correspondingly, the third initial stream determined based on the m historical playback records also generally conforms to the user's preferences for watching media resources, and its smoothness and / or resolution can also meet the user's viewing requirements. Therefore, the candidate initial streams determined in this embodiment include not only the second initial stream determined based on the download speed of the target application, but also the third initial stream determined based on the m historical playback records.

[0279] After determining the candidate initial streams, the controller may filter out the target initial stream from the candidate initial streams. If there is only one candidate initial stream, the candidate initial stream may be determined as the target initial stream.

[0280] In addition, if the candidate initial streams include at least two streams, in some embodiments, the operation of the controller filtering out the target initial stream from the candidate initial streams based on the display effects presented by the candidate initial streams and the weights respectively corresponding to the at least two display effects may include following steps.

[0281] First, determine weights corresponding to the display effects presented by respective candidate initial streams based on the weights respectively corresponding to the at least two display effects. Then, perform a weighted accumulation operation on the weights corresponding to the display effects presented by the respective candidate initial streams to determine a final score corresponding to each candidate initial stream. Finally, determine the candidate initial stream with the highest final score as the target initial stream.

[0282] In this step, when performing the weighted accumulation operation, weighting coefficients corresponding to respective display effects may be the same, for example, all being 1, or weighting coefficients corresponding to different display effects may be different, which is not limited in the present application.

[0283] Exemplarily, the candidate initial streams include a first initial stream, a second initial stream, and a third initial stream. The first initial stream displays a display effect of Dolby Audio, the second initial stream displays display effects of Dolby Audio and subtitles, and the third initial stream displays display effects of Dolby Vision and subtitles. The weight of Dolby Audio is 0.282, the weight of subtitles is 0.489, and the weight of Dolby Vision is 0.229, and the weighting coefficient corresponding to each display effect is 1. Then, the final score of the first initial stream is 0.282, the final score of the second initial stream is 0.771 (0.282+0.489), and the final score of the third initial stream is 0.718 (0.229+0.489). Therefore, the second initial stream has the highest final score. When watching the media resource, the user prefers to watch a media resource whose display effects include Dolby Audio and subtitles, and thus the second initial stream can be determined as the target initial stream.VN0102P-WQ-0007

[0284] The final score of each candidate initial stream can reflect the user's preference degree for the display effects presented by the candidate initial stream. A higher final score indicates a higher preference degree of the user for the display effects presented by the candidate initial stream. Therefore, using the candidate initial stream with the highest final score as the target initial stream can meet the user's preference requirements for watching the media resource.

[0285] In some embodiments, referring to FIG. 11, after controlling the display to display the media resource interface corresponding to the target initial stream, the controller is further configured to perform following operations.

[0286] Step S700: Determine an amplification factor of the download speed based on a fragment size of the target initial stream, the download speed of the target initial stream, and a preset first correspondence.

[0287] The first correspondence is a correspondence among the fragment size, the download speed, and the amplification factor.

[0288] Generally, a manifest file records related information of each code stream of the target media resource that a server can provide. The related information may include a fragment size of each code stream. Therefore, in this step, the controller may determine the fragment size of the target initial stream by querying the manifest file.

[0289] In addition, after determining the target initial stream, the controller downloads the target initial stream so that the target initial stream downloaded can be transmitted to the display, causing the display to display the media resource interface corresponding to the target initial stream. During the process of downloading the target initial stream, the controller can determine the download speed of the target initial stream.

[0290] Step S800: Determine a product of the download speed and the amplification factor as a corrected download speed.

[0291] In an example of the present application, the first correspondence may be represented as the following Table 5:Table 5

[0292] Referring to Table 5, in this example, the first correspondence indicates that when the fragment size of the target initial stream is 0-1M and the download speed of the target initial stream is 100 Kbps, the corresponding amplification factor is 2.5, and accordingly, the corrected download speed is 250 Kbps (i.e., 100 Kbps x 2.5). When the fragment size of the target initial stream is 1-3M and the download speed of the target initial stream isVN0102P-WQ-0007100 Kbps, the corresponding amplification factor is 1.8, and accordingly, the corrected download speed is 180 Kbps (i.e., 100 Kbps x 1.8). When the fragment size of the target initial stream is above 100M and the download speed of the target initial stream is 3 Mbps, the corresponding amplification factor is 1, and accordingly, the corrected download speed is 3 Mbps (i.e., 3 Mbps x 1).

[0293] Of course, the first correspondence shown in Table 5 is merely an example, and the first correspondence may also be in other forms, which is not limited in the present application.

[0294] Step S900: Determine an adjusted gear for a code stream of the target media resource based on the corrected download speed and a buffer water level of the target media resource.

[0295] The bandwidths and resolution of media resources at different gears are generally different. Accordingly, this leads to different display effects for media resources at different gears.

[0296] A manifest file generally includes related information of a plurality of code streams of the target media resource that the server can provide. The related information may include a gear of each code stream, and may also include information such as bandwidth and resolution of each code stream.

[0297] In an example, part of the related information of code streams included in a manifest file of a certain media resource may be as shown in Table 6 below:Table 6

[0298] Referring to Table 6, the manifest file indicates that the code streams of the media resource include three gears. The code stream of gear 3 has a bandwidth of 2,699,968 and a resolution of 1280*720. The code stream of gear 2 has a bandwidth of 1,099,968 and a resolution of 1024*576. The code stream of gear 1 has a bandwidth of 600,000 and a resolution of 640*360.

[0299] In this step, based on the corrected download speed and the buffer water level of the target media resource, the gear at which the display apparatus displays the target media resource may be adjusted. For example, in the example shown in Table 6, if the current gear is 3, based on the corrected download speed and the buffer water level of the target media resource, it may be determined that the adjusted gear remains 3, or it may be determined that the adjusted gear is 2 or 1, i.e., the gear needs to be adjusted downward.

[0300] Step S1000: Obtain another code stream of the target media resource corresponding to the adjusted gear.

[0301] Step SI 100: Control the display to display a media resource interface corresponding to the another code stream.

[0302] After determining the adjusted gear, the controller may send corresponding request information to the server, where the request information is used for requesting the other code stream of the target media resource corresponding to the adjusted gear. After receiving the request information, the server provides the corresponding code stream for the controller to download, so that the controller obtains the other code stream of the target mediaVN0102P-WQ-0007resource corresponding to the adjusted gear. Then, the controller may transmit the other code stream to the display, so that the display displays the media resource interface corresponding to the other code stream.

[0303] In an example, part of the related information of the code streams included in the manifest file of the target media resource is shown in Table 6. After determining that gear 3 needs to be adjusted down to gear 2, the controller requests the code stream corresponding to gear 2 from the server. Correspondingly, before adjusting the gear, the display displays a media resource interface with a resolution of 1280*720; after adjusting the gear, the display displays a media resource interface with a resolution of 1024*576.

[0304] Through this embodiment, the code stream displayed by the display apparatus can be adjusted, achieving bandwidth adaptation during playback. Moreover, during the adjustment process, the download speed and the buffer water level are comprehensively considered, to ensure the accuracy of the adjustment, effectively reducing playback experience fluctuations caused by bandwidth fluctuations, and thus providing a better media resource viewing experience for the user.

[0305] In the above embodiment, the operation of adjusting the gear after the controller selects the target initial stream is provided. Further, after adjusting the gear, the gear adjustment operation may be continued based on the fragment size, download speed, and buffer water level of the currently playing code stream, to continuously reduce playback experience fluctuations.

[0306] In some embodiments, referring to FIG. 12, the operation of the controller determining the adjusted gear for the code stream of the target media resource based on the corrected download speed and the buffer water level of the target media resource may be implemented through following steps.

[0307] Step S910: Determine a first gear corresponding to the corrected download speed based on the corrected download speed and a preset second correspondence.

[0308] The second correspondence is a correspondence between the corrected download speed and the first gear.

[0309] Step S920: Determine a difference between the first gear and a second gear.

[0310] The second gear is a gear at which the display apparatus currently displays the target media resource.

[0311] In an example, the difference may be as shown in Table 7:Table 7

[0312] Table 7 shows that when the first gear is 7 and the second gear is 5, the difference between the first gear and the second gear is 2; when the first gear is 5 and the second gear is 5, the difference between the first gear andVN0102P-WQ-0007the second gear is 0; and when the first gear is 3 and the second gear is 5, the difference between the first gear and the second gear is -2.

[0313] Step S930: Determine a to-be -changed gear of the buffer water level based on the buffer water level of the target media resource and a preset third correspondence, where the third correspondence is a correspondence between different buffer water level ranges and the to-be -changed gear.

[0314] In an example, the third correspondence may be as shown in Table 8:Table 8

[0315] Referring to Table 8, in this example, the third correspondence indicates that if the buffer water level range is greater than 8 seconds, the to-be-changed gear is 2; if the buffer water level range is from 5 seconds to 8 seconds, the to-be -changed gear is 1; if the buffer water level range is from 3 seconds to 5 seconds, the to-be-changed gear is 0; and if the buffer water level range is from 0 seconds to 3 seconds, the to-be -changed gear is -1.

[0316] Of course, the third correspondence shown in Table 8 is merely an example, and the third correspondence may also be in other forms, which is not limited in the present application.

[0317] Step S940: Determine a sum of the difference and the to-be-changed gear as the adjusted gear.

[0318] Exemplarily, if the first gear is 7, the second gear is 5, the difference between the first gear and the second gear is 2, and the to-be-changed gear is 2, then the adjusted gear is 4.

[0319] Through this embodiment, the adjusted gear can be determined based on the corrected download speed and the buffer water level of the target media resource.

[0320] In some embodiments, after filtering out the target initial stream from the initial stream set of the target media resource based on the download speed of the target application and the weight corresponding to the display effect, the controller may further perform following operations.

[0321] During the process of displaying the target media resource through the target initial stream, a display parameter of the target media resource is collected, where the display parameter includes at least one of a first playback parameter, a second playback parameter, a fragment size, smoothness or resolution of the target media resource.

[0322] The display parameter is transmitted to a storage space of the target media resource.

[0323] The storage space of the target media resource may be provided in the display apparatus or in the cloud, which is not limited in the present application.

[0324] Through this embodiment, the display parameter of the target media resource can be stored, facilitating determination of a target initial stream based on the display parameter when the user needs to watch a media resource again later.VN0102P-WQ-0007

[0325] Through the various embodiments according to the present application, a target initial stream conforming to user preferences can be determined. In addition, during the process of determining the target initial stream, the display apparatus may interact with a server. To clarify the interaction process, another embodiment is provided below.

[0326] Referring to FIG. 13, this embodiment includes following steps.

[0327] Step S131: A display apparatus starts a target application in response to receiving a startup command for the target application.

[0328] Step S132: The display apparatus transmits first request information for requesting a test source to a server.

[0329] Step S133: The server determines a test source meeting requirements of the display apparatus based on the first request information for requesting the test source.

[0330] Exemplarily, the first request information may include a service coverage area of the target application and / or a streaming media protocol used by the target application, so that the server determines the corresponding test source according to the service coverage area of the target application and / or the streaming media protocol used by the target application.

[0331] Step S134: The server transmits the test source to the display apparatus.

[0332] Step S135: The display apparatus tests a download speed of the target application based on the test source.

[0333] After the number of times the display apparatus tests the download speed reaches a preset number, or after the display apparatus receives a playback operation for a target media resource, the display apparatus stops testing the download speed of the target application, and uses an average value of speeds obtained from respective tests as the download speed of the target application.

[0334] Step S136: The display apparatus determines n historical playback records best matching a first playback parameter from its own historical playback records.

[0335] Exemplarily, the first playback parameter may include at least one of an application name, a playback time period, or a bandwidth interval.

[0336] In a feasible design, the display apparatus may determine the n historical playback records after the number of times of testing the download speed reaches a preset number. Alternatively, in another feasible design, if the number of times the display apparatus tests the download speed has not reached the preset number when a playback operation for the target media resource is received, the display apparatus stops testing the download speed and performs the operation of determining the n historical playback records.

[0337] For specific operations of the display apparatus determining the n historical playback records, reference may be made to the above embodiments, and details are not repeated herein.

[0338] In addition, if the historical playback records of the display apparatus are stored in the cloud, the display apparatus may access the cloud to obtain the display records, and then determine the n historical playback records therefrom.

[0339] Step S137: The display apparatus determines weights respectively corresponding to at least two display effects presented by the n historical playback records based on a second playback parameter.VN0102P-WQ-0007

[0340] Exemplarily, the second playback parameter may include at least one of a playback duration, a number of switching times, or a maximum holding duration.

[0341] For specific operations of the display apparatus determining the weights, reference may be made to the above embodiments, and details are not repeated herein.

[0342] Step S138: The display apparatus receives a playback command for the target media resource.

[0343] Step S139: The display apparatus transmits second request information for requesting related information of the target media resource to the server.

[0344] In an actual media resource playback scenario, there is no strict chronological order among Step SI 36, Step SI 37, Step SI 38, and Step SI 39. For example, if the playback operation for the target media resource is received while the display apparatus is testing the download speed of the target application, Step SI 36 or Step S137 may be performed simultaneously with Step S138, or Step S138 may be performed first, followed by Step S136 or Step S137, or Step S136, Step S137, and Step S138 may be performed sequentially after Step S138, which is not limited in the present application.

[0345] Step S140: After receiving the second request information, the server determines related information of the target media resource corresponding to the second request information.

[0346] Step S141: The server transmits the related information of the target media resource to the display apparatus.

[0347] The related information includes each code stream of the target media resource that the server can provide. In a feasible design, the related information of the target media resource is recorded in a manifest file, and the server transmits the manifest file to the display apparatus.

[0348] Step S142: After receiving the related information of the target media resource, the display apparatus determines an initial stream set of the target media resource according to the related information.

[0349] Step S143: The display apparatus filters out a target initial stream from the initial stream set of the target media resource based on the download speed of the target application and the weights respectively corresponding to the at least two display effects.

[0350] Step S144: The display apparatus transmits third request information for requesting the target initial stream to the server.

[0351] Step S145: The server determines the target initial stream corresponding to the third request information.

[0352] Step S146: The server transmits the target initial stream to the display apparatus.

[0353] Step S147: The display apparatus displays a media resource interface corresponding to the target initial stream through a display, to meet the user's viewing requirements.

[0354] Through the operations of this embodiment, the display apparatus can determine a target initial stream conforming to user preferences, to adapt to user requirements and improve the user's viewing experience.

[0355] Further, after determining the target initial stream, the following steps may also be included.

[0356] The display apparatus determines an amplification factor of the download speed based on a fragment size of the target initial stream, the download speed of the target initial stream, and a preset first correspondence.VN0102P-WQ-0007

[0357] The first correspondence is a correspondence among the fragment size, the download speed, and the amplification factor.

[0358] The display apparatus determines a product of the download speed and the amplification factor as a corrected download speed, and determines an adjusted gear for a code stream of the target media resource based on the corrected download speed and a buffer water level of the target media resource.

[0359] For specific operations of the display apparatus determining the adjusted gear, reference may be made to the above embodiments, and details are not repeated herein.

[0360] The display apparatus transmits fourth request information for requesting another code stream of the target media resource corresponding to the adjusted gear to the server.

[0361] The server determines the other code stream corresponding to the fourth request information, and then transmits the other code stream corresponding to the fourth request information to the display apparatus.

[0362] The display apparatus displays a media resource interface corresponding to the other code stream through the display.

[0363] Through the above operations, bandwidth adaptation during playback can be achieved, effectively reducing playback experience fluctuations caused by bandwidth fluctuations, and providing a better media resource viewing experience for the user.

[0364] With reference to the foregoing embodiments, some other embodiments of the present application further provide a media resource playback method. The method may be applied to the display apparatus disclosed in the above embodiments of the present application. Through this method, when the display apparatus supports playing a media resource by a target application, a target initial stream played by the target application can conform to user preferences, adapt to user requirements, and improve the user's viewing experience.

[0365] The method may include following steps.

[0366] Step 1: Start a target application in response to receiving a startup command for the target application.

[0367] Step 2: Test a download speed of the target application.

[0368] Step 3: Determine n historical playback records best matching a first playback parameter from historical playback records of the display apparatus, where n is a preset positive integer, and the first playback parameter is used for reflecting a playback environment for playing the historical playback records.

[0369] Step 4: Determine weights respectively corresponding to at least two display effects presented by the n historical playback records based on a second playback parameter, where the second playback parameter is used for reflecting a duration for which the historical playback records present the display effects.

[0370] Step 5: In response to receiving a playback command for a target media resource, filter out a target initial stream from an initial stream set of the target media resource based on the download speed of the target application and the weights respectively corresponding to the at least two display effects.

[0371] Step 6: Control a display of the display apparatus to display a media resource interface corresponding to the target initial stream.

[0372] Through the method of this embodiment, the display apparatus can determine a target initial stream conforming to user preferences, to adapt to user requirements and improve the user's viewing experience.VN0102P-WQ-0007

[0373] When playing media data, a display apparatus needs to perform corresponding processing on the media data. Generally, after reading the media data, the display apparatus performs format detection on the media data to determine a media format corresponding to the media data. The display apparatus transmits the media data to a media data parsing module corresponding to the media format, to parse metadata in the media data through the media data parsing module. During the process of parsing the media data, format detection needs to be performed on the media data again to determine the media format corresponding to the media data. Then, the display apparatus determines a corresponding demultiplexer based on the media data determined, and uses the demultiplexer to parse the metadata of the media data.

[0374] During the process of processing the media data, the display apparatus needs to repeatedly read the media data multiple times and repeatedly buffer the media data, which causes redundant occupation of operating memory, affecting the operating performance of the display apparatus.

[0375] The display apparatus 200 plays the media data through a playback engine. When playing the media data through the playback engine, the display apparatus 200 needs to perform corresponding processing on the media data.

[0376] In some embodiments, reference may be made to a schematic module diagram of a playback engine shown in FIG. 14. The playback engine includes a media data reading module 41 and media data parsing modules 42-1 to 42-n. Different media data parsing modules correspond to parsing media data of different media formats. Thus, the media data reading module 41 forms a one-to-n correspondence with the media data parsing modules 42-1 to 42-n. Based on this correspondence, after reading the media data, the media data reading module 41 first needs to detect the media format of the media data, and then transmit the media data to the corresponding media data parsing module for parsing according to the media format detected. Accordingly, the playback engine includes a first media format detection module 43, and the first media format detection module 43 has a corresponding buffer 431. The media data reading module 41 first transmits the media data read to the buffer 431 corresponding to the first media format detection module 43 for buffering. The first media format detection module 43 reads the media data from the buffer 431 and performs media format detection on the media data. After the first media format detection module 43 detects a target media format corresponding to the media data, the playback engine transmits the media data, according to the target media format, to a target media data parsing module that supports the target media format, and the target media data parsing module parses the media data.

[0377] The media data parsing module includes a second media format detection module and a plurality of demultiplexers. For example, the media data parsing module 42-1 includes a second media format detection module 42-1-1. When parsing the media data, the media data parsing module needs to perform format negotiation on the media data, i.e., detect whether upstream and downstream plugins match, and this part is implemented by the second media format detection module. The second media format detection module has a corresponding buffer. For example, the second media format detection module 42-1-1 has a corresponding buffer 42-1-1-1. The second media format detection module rereads a portion of the media data from the media data, buffers the portion of the media data in the buffer, and when performing format detection on the media format, reads the media data buffered from the buffer and performs format detection. After the second media format detection module detectsVN0102P-WQ-0007the target media format corresponding to the media data, the playback engine determines, according to the target media format, a target demultiplexer for parsing the media data, and controls the target demultiplexer to start to parse the media data. However, since the second media format detection module and the demultiplexer are independent modules, the demultiplexer cannot read data from the buffer corresponding to the second media format detection module. Based on this, after being started, the target demultiplexer rereads the media data from the beginning of the source and parses the metadata in the media data.

[0378] Based on the above processing process of the media data, it can be known that the display apparatus 200 repeatedly reads the media data multiple times by the media data reading module 41, the second media format detection module and the target demultiplexer in the target media data parsing module, and needs to buffer the media data in both the buffer 431 corresponding to the first multimedia format detection module 43 and the buffer corresponding to the target second media format detection module. Moreover, each module is an independent module, and the independent module occupies fixed operating memory (e.g., variables, instruction sets, dynamically allocated memory, etc.) during operation. In summary, the playback engine shown in FIG. 14 causes redundant occupation of operating memory, affecting the operating performance of the display apparatus 200.

[0379] In some embodiments, FIG. 15 is a schematic module diagram of a playback engine configured in a display apparatus 200 according to an embodiment of the present application. As shown in FIG. 15, the playback engine includes a media data reading module 51 and an auto-demultiplexer (Demux_auto) module 52. The media data reading module 51 and the auto-demultiplexer module 52 have a one-to-one correspondence. The autodemultiplexer module 52 integrates a media format detector 521 and demultiplexers 521-1 to 521-n. The autodemultiplexer module 52 has a corresponding buffer, i.e., a shared buffer 53.

[0380] Based on the one-to-one correspondence between the media data reading module 51 and the autodemultiplexer module 52, after reading the media data, the media data reading module 51 can directly transmit the media data to the auto-demultiplexer module 52 for parsing processing without considering the media format of the media data. Since the media format detector 521 and the demultiplexers 521-1 to 521-n are all components of the auto-demultiplexer module 52 and are essentially the same module, the media format detector 521 and the demultiplexers 521-1 to 521-n can all read data from the shared buffer 53. Moreover, in the playback engine shown in FIG. 15, the number of independent modules arranged therein is greatly reduced, effectively reducing the overall fixed operating memory occupied by the independent modules during operation.

[0381] The process of processing media data based on the playback engine shown in FIG. 15 is described in detail below.

[0382] FIG. 16 is a flowchart of processing media data by a display apparatus 200 according to an embodiment of the present application, and the specific steps are as follows:

[0383] Step S601: In response to a playback command for media data, read the media data through a media data reading module, and transmit the media data read to an auto-demultiplexer module.

[0384] The playback command for the media data is used for instructing playback of the corresponding media data.VN0102P-WQ-0007

[0385] In some embodiments, the playback command for the media data may be a power-on command, which instructs playback of media data played by default at power-on.

[0386] In other embodiments, the playback command for the media data may be a channel switching command, which instructs playback of media data after a channel switch.

[0387] In still other embodiments, the playback command for the media data may be a selection command for a media resource, which instructs playback of media data corresponding to the media resource selected.

[0388] In yet other embodiments, the playback command for the media data may be a media resource playback command automatically triggered by a system or an application, which instructs playback of media data of a temporarily inserted media resource, such as an interstitial advertisement, news, etc.

[0389] The display apparatus 200 plays the corresponding media data through the playback engine in response to the playback command for the media data.

[0390] The display apparatus 200 reads the corresponding media data through the media data reading module 51. In some embodiments, the media data reading module 51 may read the media data locally, for example, from a hard disk, a USB flash drive, etc. The media data reading module 51 may also read the media data from a network.

[0391] Based on the one-to-one correspondence between the media data reading module 51 and the autodemultiplexer module 52, the media data reading module 51 can directly transmit the media data read to the autodemultiplexer module 52 for subsequent format detection by the auto-demultiplexer module 52, without immediately performing media format detection after reading the media data, achieving an effect of delayed format detection and also reducing one format detection process and a corresponding media data buffering process.

[0392] Step S602: Buffer the media data into a shared buffer through the auto-demultiplexer module.

[0393] The auto-demultiplexer module 52 directly buffers the media data into the shared buffer 53. Thus, the media format detector 521 and the demultiplexers 521-1 to 521 -n integrated in the same auto-demultiplexer module 52 can all read the media data buffered from the shared buffer 53, achieving sharing of the media data.

[0394] Step S603: Control the media format detector to read the media data from the shared buffer and detect a target media format corresponding to the media data through the auto-demultiplexer module.

[0395] In some embodiments, after monitoring / detecting that there is media data buffered in the shared buffer 53, the auto-demultiplexer module 52 may read the media data from the shared buffer 53 and perform format detection on the media data.

[0396] In other embodiments, after monitoring / detecting that the media data buffered in the shared buffer 53 has reached a specified data amount, the auto-demultiplexer module 52 may read the media data from the shared buffer 53 and perform format detection on the media data. The specified data amount is a data amount that can satisfy format detection, for example, 10 kB.

[0397] Each media format has its fixed file header format. Performing format detection on the media data means comparing the media data with media formats to detect which file header format feature the media data conforms to, to determine which media format the media data corresponds to.VN0102P-WQ-0007

[0398] The playback engine generally supports multiple, even hundreds of, media formats. When performing format detection on media data, it is necessary to filter out a media format corresponding to the media data from all media formats supported by the playback engine.

[0399] In some embodiments, the media format detector 521 is configured with a detection sorting algorithm. The detection sorting algorithm is used for controlling the media format detector 521 to preferentially compare the media data with media formats having higher detection efficiency and higher matching success rate. If the media data matches these media formats, the overall detection efficiency of the media format can be effectively improved. If the media data does not match these media formats, the media data can be further matched with the remaining media formats one by one to ensure that the media format corresponding to the media data can be detected.

[0400] The process of detecting the media format by the media format detector 521 is described in detail below.

[0401] FIG. 17 is a flowchart of detecting a media format by a display apparatus 200 according to an embodiment of the present application, and the specific steps are as follows:

[0402] Step S701: Determine a target protocol corresponding to the media data based on the media data read.

[0403] After reading the media data from the shared buffer 53, the display apparatus 200 may preferentially compare the media data with a media format having higher detection efficiency. The media format detector 521 first determines a protocol corresponding to the media data (i.e., the target protocol), and preferentially compares the target protocol with a designated protocol to detect a target media format corresponding to the media data.

[0404] The designated protocol is a protocol having a corresponding media format. That is, if the media data corresponds to the designated protocol, the media format corresponding to the media data can be directly determined without further comparing features of the media data with a file header format, effectively improving the detection efficiency of the media format.

[0405] In some embodiments, the designated protocol is a protocol corresponding to a designated scenario. The designated scenario has a corresponding media format.

[0406] In one example, the HTTP Live Streaming (HLS) protocol is a streaming media advertisement scenario, and the media format corresponding to the advertisement scenario is the mp4 format.

[0407] In another example, the Dynamic Adaptive Streaming over HTTP (DASH) protocol and the Microsoft Smooth Streaming (MSS) protocol are streaming media scenarios, and the media format corresponding to the streaming media scenarios is the fmp4 format.

[0408] It can be understood that the designated scenarios are not limited to the above two scenarios, and the protocols corresponding to the designated scenarios are not limited to the above examples.

[0409] In other embodiments, the designated protocol is a protocol corresponding to a designated application. The designated application has a corresponding media format.

[0410] Step S702: In a case where the target protocol is the designated protocol, determine the media format corresponding to the designated protocol as the target media format corresponding to the media data.

[0411] By comparing the target protocol with the designated protocol, when determining that the target protocol is the designated protocol, the media format detector 521 can directly determine the media format corresponding to the designated protocol as the target media format corresponding to the media data.VN0102P-WQ-0007

[0412] Step S703: In a case where the target protocol is not the designated protocol, compare the media data with all media formats supported by the playback engine one by one to determine the target media format corresponding to the media data.

[0413] By comparing the target protocol with the designated protocol, when determining that the target protocol is not the designated protocol, the media format detector 521 needs to further perform format detection on the media data, i.e., needs to continue comparing the media data with all media formats supported by the playback engine, to determine the target media format corresponding to the media data.

[0414] When detecting the media format of the media data, the display apparatus 200 may preferentially detect whether the target protocol of the media data is a designated protocol, and the designated protocol has a corresponding media format. Thus, if the target protocol of the media data is a designated protocol, it can be directly determined that the target media format corresponding to the media data is the media format corresponding to the designated protocol, quickly determining the target media format of the media data. Moreover, when the target protocol is not a designated protocol, the media data can be compared with all media formats supported by the playback engine to ensure that the target media format of the media data is detected, ensuring that the media data can be effectively parsed.

[0415] When determining that the target protocol is not a designated protocol, the media format detector 521 may continue to perform format detection on the media data according to a priority order. The media format detector 521 may preferentially compare the media data with a media format having a higher matching success rate to detect the target media format corresponding to the media data.

[0416] In some embodiments, the media format having a higher matching success rate may be a media format corresponding to a suffix of a filename of the media data.

[0417] FIG. 18 is a flowchart of detecting a media format by a display apparatus 200 according to a media filename according to an embodiment of the present application, and the specific steps are as follows.

[0418] Step S801: Obtain a media filename of the media data.

[0419] The suffix of the media filename has a correspondence with a media format and can generally represent the media format corresponding to the media data. Therefore, the media format detector 521 may preferentially compare the media data with the media format corresponding to the suffix to improve the accuracy of media format detection, avoiding the problem that a changed suffix cannot correspond to the media format of the media data due to a user changing the suffix of the media filename.

[0420] To compare the media data with the media format corresponding to the suffix of the media filename, the media format detector 521 first obtains the media filename.

[0421] Step S802: Preferentially compare the media data with the media format corresponding to the suffix of the media filename.

[0422] The media format detector 521 preferentially compares the media data with the media format corresponding to the suffix of the media filename. The media format detector 521 determines a to-be -detected media format corresponding to the suffix of the media filename, determines a format feature of a file header of theVN0102P-WQ-0007to-be -detected media format, and compares the media data with the format feature of the file header of the to-be-detected media format to determine whether the media data corresponds to the to-be-detected media format.

[0423] Step S803: In a case where the media format of the media data is not the media format corresponding to the suffix of the media filename, compare the media data with remaining media formats supported by the playback engine one by one to determine the target media format corresponding to the media data.

[0424] When determining that the media data matches the format feature of the file header of the to-be -detected media format, the media format detector 521 may determine that the media format corresponding to the suffix of the media filename is the target media format corresponding to the media data.

[0425] When determining that the media data does not match the format feature of the file header of the to-be-detected media format, the media format detector 521 needs to further perform format detection on the media data, i.e., needs to continue comparing the media data with the remaining media formats supported by the playback engine, to determine the target media format corresponding to the media data.

[0426] The suffix of the media filename has a correspondence with the media format. Therefore, when comparing the media data with all media formats supported by the playback engine, the media data may be preferentially compared with the media format corresponding to the suffix of the media filename to quickly detect the target media format corresponding to the media data. Moreover, when the media format of the media data is not the media format corresponding to the suffix of the media filename, the media data may be compared with the remaining media formats supported by the playback engine to ensure that the target media format of the media data is detected, ensuring that the media data can be effectively parsed.

[0427] In some embodiments, the media format having a higher matching success rate may be a designated media format, and the designated media format is a media format with a higher occurrence probability. In an example, the designated media format may include a Motion Picture Experts Group (MPEG) Transport Stream (TS) format, an MKV format, and an mp4 format. Of course, the designated media format is not limited to the above media formats.

[0428] FIG. 19 is a flowchart of detecting a media format by a display apparatus 200 according to a designated media format according to an embodiment of the present application, and the specific steps are as follows.

[0429] Step S901: Preferentially compare the media data with a designated media format among all media formats supported by a playback engine.

[0430] The media format detector 521 preferentially compares the media data with a format feature of a file header corresponding to the designated media format to determine whether the media data corresponds to the designated media format.

[0431] Step S902: In a case where the media format of the media data is not the designated media format, compare the media data with remaining media formats supported by the playback engine one by one to determine the target media format corresponding to the media data.

[0432] When determining that the media data matches the format feature of the file header of the designated media format, the media format detector 521 may determine that the designated media format is the target media format corresponding to the media data.VN0102P-WQ-0007

[0433] When determining that the media data does not match the format feature of the file header of the designated media format, the media format detector 521 needs to further perform format detection on the media data, i.e., needs to continue comparing the media data with the remaining media formats supported by the playback engine, to determine the target media format corresponding to the media data.

[0434] The designated media format is a media format corresponding to most media data, i.e., the media data has a high probability of corresponding to the designated media format. Therefore, when comparing the media data with all media formats supported by the playback engine, the media data may be preferentially compared with the designated media format to quickly detect the target media format corresponding to the media data. Moreover, when the media format of the media data is not the designated media format, the media data may be compared with the remaining media formats supported by the playback engine to ensure that the target media format of the media data is detected, ensuring that the media data can be effectively parsed.

[0435] Of course, the order in which the media format detector 521 preferentially detects media formats may be adjusted according to design requirements. For example, the media data is preferentially compared with a media format having a higher matching success rate, then the target protocol of the media data is compared with a designated protocol, and finally the media data is compared with the remaining media formats supported by the playback engine.

[0436] FIG. 20 is a flowchart of comparing media formats by a display apparatus 200 according to an embodiment of the present application, and the specific steps are as follows.

[0437] Step SI 001: Mark a media format that has been compared with the media data.

[0438] When performing format detection on the media data, the media format detector 521 marks the media format that has been compared. The mark is used for distinguishing a compared media format from an uncompared media format.

[0439] Step S1002: Compare the media data with an unmarked media format.

[0440] The media format detector 521 compares the media data with an unmarked media format, to avoid repeatedly comparing the media data with the same media format.

[0441] FIG. 21 is a flowchart of determining a target media format by a display apparatus 200 according to an embodiment of the present application, and the specific steps are as follows.

[0442] Step S 1101: Score a comparison result between the media data and a media format.

[0443] A score of the comparison result represents a degree of matching between the media data and the media format. That is, the higher the degree of matching between the media data and the media format, the higher the score; conversely, the lower the degree of matching between the media data and the media format, the lower the score.

[0444] Step SI 102: Determine a media format having a score greater than or equal to a score threshold as the target media format corresponding to the media data.

[0445] When performing format detection on the media data, as long as the score is greater than or equal to the score threshold, the media format detector 521 stops continuing to compare the media data with the remainingVN0102P-WQ-0007media formats, and determines the media format having the score greater than or equal to the score threshold as the target media format.

[0446] By scoring the comparison result between the media data and the media format, the comparison result is quantified, to more accurately measure whether the media data matches the currently compared media format.

[0447] Step S604: Determine a corresponding target demultiplexer from the plurality of demultiplexers based on the target media format through the auto-demultiplexer module.

[0448] In a case where the target protocol corresponding to the media data is a designated protocol, the media data may be parsed and processed based on different protocol types corresponding to the target protocol.

[0449] In some embodiments, the designated protocol may be classified into a first-type protocol and a second-type protocol.

[0450] If the target protocol is the first-type protocol of the designated protocol, it may be determined that the media data does not need to be parsed. If the target protocol is the second-type protocol of designated protocol, the corresponding target demultiplexer is determined from the plurality of demultiplexers based on the target media format.

[0451] If the target protocol is the first-type protocol, the media data is not encapsulated and does not need to be parsed. Therefore, the display apparatus does not need to determine a target demultiplexer for parsing the media data, and can quickly perform subsequent processing on the media data. In an example, media data corresponding to some designated applications is not encapsulated. Therefore, the designated protocol corresponding to this part of designated applications is the first-type protocol. If the target protocol corresponding to the media data is this designated protocol, it may be determined that a target demultiplexer does not need to be determined, and the media data does not need to be parsed.

[0452] If the target protocol is the second-type protocol, the media data still needs to be parsed. Therefore, the display apparatus 200 needs to further determine a target demultiplexer for parsing the media data. In an example, for another part of designated applications in which media data is encapsulated among the designated applications, designated protocols having corresponding media formats belong to the second-type protocol. If the target protocol corresponding to the media data is the designated protocol corresponding to the another part of designated applications, or is a designated protocol that itself has a corresponding media format, it is still necessary to determine a target demultiplexer to parse the media data through the target demultiplexer.

[0453] FIG. 22 is a flowchart of determining a target demultiplexer by a display apparatus 200 according to an embodiment of the present application, and the specific steps are as follows:

[0454] Step SI 201: Obtain a media format supported by each demultiplexer.

[0455] Before determining the target demultiplexer, the playback engine first obtains the media format supported by each demultiplexer.

[0456] In an example, the playback engine may pre -configure configuration information of each demultiplexer. The configuration information includes a name or identifier of each demultiplexer and the media format supported by the demultiplexer. The playback engine may obtain the media format supported by each demultiplexer based on the configuration information.VN0102P-WQ-0007

[0457] Step S1202: Determine a demultiplexer that supports the target media format as the target demultiplexer.

[0458] The media format detector 521 filters out a demultiplexer that can support the target media format, i.e., the target demultiplexer, based on the media format supported by each demultiplexer.

[0459] Step S605: Control the target demultiplexer to read the media data from the shared buffer and parse metadata in the media data through the auto-demultiplexer module.

[0460] The playback engine controls starting of the target demultiplexer. After being started, the target demultiplexer can read the media data buffered from the shared buffer 53 without rereading the media data. After reading the media data, the target demultiplexer can parse the metadata in the media data.

[0461] When determining the target demultiplexer, the display apparatus 200 first obtains the media format supported by each demultiplexer, and then accurately determines the target demultiplexer that supports the target media format by comparing the target media format corresponding to the media data with the media format supported by each demultiplexer, to ensure that the media data can be effectively parsed.

[0462] In some embodiments, after parsing the metadata in the media data, the display apparatus 200 may continue to decode the media data and play the media data decoded.

[0463] The display apparatus 200 is a smart device capable of presenting a user interface and supporting user interaction. Taking a smart television as an example, a smart television is a television product based on Internet application technology, having an open operating system and a chip, an open application platform, and bidirectional human-computer interaction capabilities, integrating functions such as audio, video, entertainment, and data, to meet users' diverse and personalized needs.

[0464] Streaming media data playback has become an indispensable part of home entertainment. Users can easily access and watch various online video contents, including movies, TV series, variety shows, and live broadcasts, through display apparatuses such as smart televisions. This convenient way of watching can enrich users' leisure time and meet diverse entertainment needs. However, the quality of streaming media data playback depends on the stability of the network environment, and network congestion and slow download speeds can both affect the playback effect of streaming media.

[0465] To cope with the impact of changing network conditions on streaming media data playback, in related art, streaming media applications adopt a technical scheme of dynamically adjusting resolution. This technology can automatically adjust the resolution of a video according to a real-time monitored network speed, to ensure a relatively smooth playback experience under different network bandwidths. When network conditions are good, the application provides high-definition video quality; when network congestion or a decrease in download speed is detected, the video resolution is automatically reduced, reducing the amount of data transmission, to maintain playback continuity. If network conditions continue to deteriorate, and even after the resolution has been reduced to a minimum, the playback requirements still cannot be met, the system adopts a strategy of pausing playback and buffering, and then resumes playback after network conditions improve.

[0466] Although the technical scheme of dynamically adjusting resolution can alleviate the impact of network congestion on streaming media data playback to a certain extent, there are still significant deficiencies in practical applications. Particularly during peak hours of network congestion, even if the resolution has been reduced to aVN0102P-WQ-0007minimum, the network speed may still fail to meet the most basic playback requirements, causing frequent pauses and buffering during streaming media data playback, interrupting the user's viewing process and affecting the user's viewing experience.

[0467] Based on the above scenario, to solve the problem of frequent pauses and buffering during streaming media data playback, some embodiments of the present application provide a method for adjusting a playback speed of streaming media data. The method can, without adjusting resolution, automatically adjust the playback speed according to a playable duration of the streaming media data during network congestion, reduce the consumption speed of the streaming media data, get through the network congestion period without the user being aware of the change, avoid adjusting resolution, and solve the problem of frequent pauses and buffering during streaming media data playback.

[0468] To facilitate understanding of the technical schemes in some embodiments of the present application, various steps are described in detail below with reference to some specific embodiments and the accompanying drawings. FIG. 23 is a schematic flowchart of a method for adjusting a playback speed of streaming media data according to some embodiments of the present application. As shown in FIG. 23, in some embodiments, the method may include following steps.

[0469] Step S 1: In response to a playback command for streaming media data, send a request for obtaining the streaming media data to a streaming media server, and after obtaining the streaming media data, buffer the streaming media data into a buffer.

[0470] When a user initiates a playback command for streaming media data, the system immediately responds to the command and sends a request for obtaining data to the streaming media server. The request includes identification information of the streaming media data requested, such as a video ID or an audio track number. After receiving the request, the streaming media server searches for corresponding streaming media data according to content of the request and transmits the streaming media data to a user device over a network. After receiving the streaming media data, the user device first stores the streaming media data in a preset buffer for subsequent reading and playback. By promptly responding to the playback command and buffering the streaming media data, the system can quickly start the playback process after the user initiates the playback request, reducing user waiting time and improving user experience. At the same time, the provision of the buffer also facilitates subsequent data reading and playback control. After step S 1 is completed, the following step S2 may be performed.

[0471] Step S2: Read the streaming media data from the buffer, and play the streaming media data read at a first playback speed under a first resolution.

[0472] In some embodiments, the system sequentially reads the streaming media data buffered from the buffer, and decodes and plays the data according to a preset first resolution and a first playback speed. The first resolution generally refers to an original resolution of the streaming media data or a currently set resolution, while the first playback speed defaults to an original playback speed of the streaming media data, such as 30 frames per second (fps).

[0473] FIG. 24 is a schematic flowchart of reading streaming media data from a buffer and playing the streaming media data according to some embodiments of the present application. As shown in FIG. 24, reading and playingVN0102P-WQ-0007the streaming media data may be implemented as follows. In response to the playback command, first, streaming media data packets corresponding to the streaming media data downloaded are sequentially read from a start address of the buffer. Then, video encoded data and audio encoded data are separated from the streaming media data packets. The video encoded data is decoded through a video decoder to obtain video frames decoded, and the audio encoded data is decoded through an audio decoder to obtain audio data decoded. The video frames decoded are sorted by timestamp and then sent to a rendering queue for frame synchronization rendering, and the audio data decoded is sent to an audio output device for waveform reconstruction, to complete playback of the streaming media data.

[0474] Exemplarily, when a system receives the playback command from the user, the system starts from a start position (start address) of the buffer and sequentially reads the streaming media data packets corresponding to the streaming media data already downloaded. The buffer can temporarily store the streaming media data downloaded, facilitating subsequent rapid reading and processing. During transmission and storage, streaming media data generally encodes video and audio information and packs the video and audio information together. During playback, the video and audio information needs to be extracted separately for individual processing. Therefore, the next step is data separation, i.e., separating the video encoded data and the audio encoded data contained in the streaming media data packets read. For video decoding, a video decoder can be used to decode the video encoded data separated, restore the encoded video data into intuitively displayable image frames, i.e., obtain video frames decoded. Meanwhile, for audio decoding, an audio decoder can be used to decode the audio encoded data, convert the audio information encoded into raw audio data recognizable by an audio device, i.e., obtain audio data decoded. After video and audio separation is completed, video rendering and audio output are performed. For video rendering, the video frames decoded are sorted according to respective timestamps of the video frames decoded, and after sorting, the video frames sorted are sent to a rendering queue. In the rendering queue, frame synchronization rendering operations are performed to ensure that the video frames are displayed in the correct temporal order and rhythm, to present a smooth video picture. For audio output, the audio data decoded is transmitted to an audio output device (such as a speaker, etc.). The audio output device performs waveform reconstruction on the data, converts a digital audio signal into an analog audio signal, and finally produce sound, complete audio playback. Thus, by sequentially reading data packets downloaded from the buffer, the problem of playback stuttering caused by network fluctuations or untimely data download can be avoided. The buffer stores some data in advance, ensuring that data can be continuously obtained locally during playback, guaranteeing data continuity, and thus making video and audio playback smoother. After step S2 is completed, the following step S3 may be performed.

[0475] Step S3: Calculate a first playable duration corresponding to the streaming media data unread in the buffer when played at the first playback speed under the first resolution.

[0476] In some embodiments, the system may monitor in real time the amount of remaining streaming media data in the buffer, and calculate, according to the first resolution and the first playback speed, the duration for which the remaining streaming media data can sustain when fully played, i.e., the first playable duration. By calculating the first playable duration, the system can understand in advance the remaining situation of data in the buffer,VN0102P-WQ-0007providing a basis for subsequent playback control strategies. For example, when the first playable duration approaches or falls below a certain threshold, the system may take corresponding measures to avoid playback interruption.

[0477] In some embodiments, the system may set a total playable duration corresponding to the streaming media data for the buffer under the first resolution. The total playable duration is a duration corresponding to playing the streaming media data at the first playback speed when the buffer is full of the streaming media data. The buffer is divided into a low water level, a middle water level, and a high water level according to the total playable duration. The low water level corresponds to a third duration threshold. The middle water level corresponds to a first duration threshold. The high water level corresponds to a second duration threshold.

[0478] Exemplarily, FIG. 25 is a schematic scenario diagram of dividing a buffer into three water levels according to some embodiments of the present application. As shown in FIG. 25, for the streaming media data in the buffer, a total playable duration is set. The total playable duration represents the total length of time for which the streaming media data stored in the buffer can be continuously played at a normal playback speed when the buffer is full. Assuming the total playable duration is 100 seconds, the buffer can be understood as a bucket capable of holding 100 seconds of video data. According to the set total playable duration, the buffer is divided into three different water levels, namely a low water level, a middle water level, and a high water level, to facilitate more refined management and monitoring of the data amount in the buffer. The correspondence between water levels and duration thresholds may be that the low water level corresponds to the third duration threshold. When the playable duration in the buffer reaches or falls below the third duration threshold, it means that the data amount in the buffer is at a low level, possibly facing a situation of insufficient data soon, and measures (such as accelerating the download speed) need to be taken to supplement data, or reduce the playback speed. The middle water level corresponds to the first duration threshold. When the playable duration is at the first duration threshold, the data amount in the buffer is in a relatively moderate state, neither occupying too many resources due to excessive data nor affecting playback smoothness due to too little data. The high water level corresponds to the second duration threshold. When the playable duration reaches or exceeds the second duration threshold, it indicates that the data amount in the buffer is relatively sufficient. At this time, the data download speed can be appropriately reduced, or the playback speed of the streaming media data can be adjusted to avoid unnecessary resource waste. Thus, through the division of water levels and the setting of corresponding duration thresholds, the system can automatically adjust the download or playback strategy of the streaming media data according to the data amount in the buffer. That is, each water level corresponds to a different playable duration threshold, used to trigger different playback control strategies, avoiding playback stuttering caused by insufficient data in the buffer, and avoiding occupying too many system resources due to excessive data download.

[0479] In some embodiments, the system may continuously monitor the accumulation amount of the streaming media data in the buffer, and calculate the playable duration corresponding to the streaming media data according to the current playback speed. It should be noted that the aforementioned total playable duration refers to the maximum total duration that can be played, while the playable duration of the streaming media data is such that as the streaming media data in the buffer is downloaded and played, the capacity in the buffer is constantly changing.VN0102P-WQ-0007The current capacity and the current playback speed can determine the playable duration, as shown in the comparison in FIG. 26.

[0480] In some embodiments, calculating the first playable duration corresponding to the streaming media data unread in the buffer when played at the first playback speed under the first resolution may be implemented as follows. First, under the first resolution, an unread data amount corresponding to streaming media data packets unread in the buffer is obtained. A division operation is performed on the unread data amount and the first playback speed to obtain the first playable duration corresponding to the streaming media data under the first resolution.

[0481] Exemplarily, FIG. 27 is a schematic flowchart of calculating a playable duration according to some embodiments of the present application. As shown in FIG. 27, the system first queries a buffer and counts a total amount of data contained in streaming media data packets that have been downloaded, i.e., a downloaded data amount (unread). After obtaining the downloaded data amount, the system performs a division operation on the data amount and a current playback speed. The playback speed is generally expressed as a bitrate, with a unit of bits per second (bps), which describes the amount of streaming media data played per unit time. By dividing the downloaded data amount (which needs to be converted to the same unit as the playback speed, such as bits) by the playback speed, a length of time for which the downloaded data can be continuously played at the current playback speed, i.e., the playable duration, can be obtained. Thus, by calculating the playable duration, it is possible to intuitively grasp how long the currently buffered streaming media data can support playback, and prepare for data download or playback speed adjustment in advance based on this duration, which helps to evaluate the resource reserve situation in the buffer. For example, the system can predict the risk of network congestion in advance and take preventive measures, such as reducing the playback speed, when necessary to avoid playback interruption, to improve playback continuity and stability. After step S3 is completed, the following step S4 may be performed.

[0482] Step S4: When it is monitored that the first playable duration is lower than a first duration threshold, reduce the first playback speed to a second playback speed under the first resolution, and play the streaming media data read from the buffer at the second playback speed under the first resolution.

[0483] In some embodiments, the system may continuously monitor the first playable duration, and when the first playable duration falls below a preset first duration threshold (e.g., a playable duration corresponding to a middle water level), the playback speed from the first playback speed is automatically reduced to the second playback speed (e.g., reduce by 5%). This process is implemented by adjusting an output frame rate of a decoder while keeping the resolution unchanged. Thus, in a case of network congestion or insufficient data download speed, reducing the playback speed can effectively reduce the data consumption rate, to extend the playable duration of the data in the buffer. Meanwhile, since the change in playback speed is within a user-perceptible threshold (e.g., 5%), the user may not notice a significant change.

[0484] In some embodiments, when the system monitors that the playable duration of the streaming media data in the buffer is lower than a preset first duration threshold (e.g., a duration corresponding to a Middle water level), the system automatically triggers a playback speed adjustment mechanism to reduce the current playback speed byVN0102P-WQ-0007a preset amplitude (e.g., 5%). The speed adjusted is the second playback speed, which is used for subsequent video playback.

[0485] FIG. 28 is a schematic flowchart of reducing a playback speed by a preset amplitude to obtain a second playback speed according to some embodiments of the present application. As shown in FIG. 28, in some embodiments, obtaining the second playback speed may be implemented as follows. First, an initial frame rate corresponding to the first playback speed under the first resolution is obtained. Then, a target frame rate after reducing the first playback speed is calculated according to a preset amplitude. Under the first resolution, a rendering interval of video frames is adjusted according to the target frame rate to obtain the second playback speed under the first resolution.

[0486] Exemplarily, the system first obtains an initial frame rate corresponding to the current playback speed. The frame rate refers to the number of image frames displayed per second. At a normal standard playback speed, a video is played at its originally set frame rate, and this frame rate matching the initial playback speed is the initial frame rate. For example, for a video encoded at 30 frames per second (fps), when being played at a normal l. Ox speed, the initial frame rate is 30 fps. If the change in video playback speed is within 5%, most people may not notice the change. Therefore, when setting the preset amplitude, the amplitude may be set to 5%. According to the preset amplitude, the system can calculate the target frame rate corresponding to the playback speed reduced. The preset amplitude is a parameter for controlling the adjustment range of the playback speed, determining the proportion by which the playback speed is reduced. For example, if the preset amplitude is 0.5 and the original video is 30 fps, the target frame rate may be a value reduced by 5%, i.e., target frame rate = 30 - 30 * 5% = 28.5 fps, ultimately reducing the playback speed to 28.5 fps. According to the target frame rate calculated, the system adjusts the rendering interval of video frames. The rendering interval is the time interval between two adjacent video frames during the rendering process. When the target frame rate decreases, it means that the number of frames to be displayed per second decreases, so the rendering interval may be correspondingly extended. For example, if the initial rendering interval is 1 / 30 second (corresponding to 30 fps) and the target frame rate is 24 fps, the new rendering interval is 1 / 24 second. By adjusting the rendering interval, the video is played at the new frame rate, to achieve adjustment of the second playback speed. Thus, in a case of limited network bandwidth, reducing the playback speed can effectively reduce the amount of data transmission. By calculating the target frame rate and adjusting the rendering interval, the system can maintain smooth video playback even under lower bandwidth, avoiding stuttering or pauses caused by untimely data transmission.

[0487] In some embodiments, after adjusting the video speed in the above manner, to match the audio with the video playback speed adjusted, time -domain stretching processing needs to be performed on the audio data.Therefore, after the step of obtaining the initial frame rate corresponding to the playback speed, the following steps may also be performed. A ratio of the second playback speed to the playback speed under the first resolution is calculated to obtain a stretching coefficient of the audio data. Then, under the first resolution, the audio data decoded is stretched in the time domain according to the stretching coefficient.

[0488] Exemplarily, the second playback speed is a playback rate adjusted according to actual requirements. By calculating the ratio of the second playback speed to the playback speed, the stretching coefficient of the audioVN0102P-WQ-0007data can be obtained. For example, if the playback speed is l. Ox speed and the second playback speed is 0.8x speed, then the stretching coefficient = second playback speed / playback speed = 0.8 / 1.0 = 0.8. This stretching coefficient reflects the degree to which the audio data needs to be stretched or compressed in the time dimension. The time domain refers to the variation of a signal over time. Time -domain stretching of audio data is to change the length of the audio signal on the time axis without changing frequency components of the audio signal. The audio data decoded is a discrete signal represented by a series of sampling points. When performing time -domain stretching on the audio data according to the stretching coefficient calculated, if the stretching coefficient is less than 1 (e.g., 0.8 in the above example), it means that the audio signal needs to be lengthened in time, i.e., the duration of the audio signal needs to be increased. There are various specific implementation methods. For example, an interpolation algorithm may be used to insert new sampling points between adjacent sampling points, so that the total number of sampling points of the audio signal increases, to lengthen the audio duration. Thus, by calculating the stretching coefficient and performing time-domain stretching on the audio data, the playback duration of the audio can be matched with the video playback duration adjusted, maintaining audio-video synchronization and providing the user with a normal audiovisual experience. After step S4 is completed, the following step S5 may be performed.

[0489] Step S5: Monitor a second playable duration corresponding to the streaming media data unread in the buffer when played at the second playback speed under the first resolution.

[0490] After the playback speed is reduced to the second playback speed, the system continues to monitor the amount of remaining streaming media data in the buffer, and recalculates, according to the first resolution and the second playback speed, the duration for which the remaining streaming media data can sustain when fully played, i.e., the second playable duration. By monitoring the second playable duration, the system can understand in real time the remaining situation of the data in the buffer after reducing the playback speed, which helps the system determine when to restore the original playback speed, to maximize the utilization of network resources while ensuring playback smoothness. After step S5 is completed, the following step S6 may be performed.

[0491] Step S6: When it is monitored that the second playable duration is greater than or equal to a second duration threshold, increase the second playback speed to the first playback speed, and play the streaming media data read from the buffer at the first playback speed under the first resolution; where the second duration threshold is greater than or equal to the first duration threshold.

[0492] In some embodiments, the system continuously monitors the second playable duration, and when the second playable duration is greater than or equal to the preset second duration threshold (e.g., a playable duration corresponding to a high water level, and the second duration threshold is generally greater than or equal to the first duration threshold), automatically restores the playback speed from the second playback speed to the first playback speed. Thus, when network conditions improve or the data amount in the buffer is sufficient, by restoring the original playback speed, the system can ensure that the user again obtains the best viewing or listening experience. Meanwhile, since the second duration threshold is set to be greater than or equal to the first duration threshold, the system can adjust the playback speed more flexibly under the premise of ensuring playback smoothness, to adapt to different network environments and user requirements.VN0102P-WQ-0007

[0493] FIG. 29 is a schematic flowchart of restoring a second playback speed to a first playback speed according to some embodiments of the present application. As shown in FIG. 29, restoring the second playback speed to the first playback speed may be implemented as follows. When it is monitored that the playable duration reaches the second duration threshold, a playback speed restoration command is generated. In response to the playback speed restoration command, under the first resolution, a playback frame rate of video frames is reset from a target frame rate to an initial frame rate, to restore the second playback speed to the first playback speed.

[0494] Exemplarily, the playable duration reflects the reserve situation of data in the buffer and is an important indicator for measuring playback continuity. The second duration threshold is a preset time value used as a criterion for triggering a playback speed restoration operation. When the playable duration monitored reaches or exceeds the second duration threshold, it indicates that the data reserve in the buffer is relatively sufficient, and conditions for restoring the original playback speed are met. When it is monitored that the playable duration reaches the second duration threshold, the system automatically generates a playback speed restoration command. The playback speed restoration command is a control signal, and its function is to notify the system to execute related operations for playback speed restoration, adjusting the current playback state back to the initial normal playback state. After the system responds to the playback speed restoration command, it resets the playback frame rate of the video frames from the current target frame rate to the initial frame rate. This operation is implemented by adjusting the rendering interval of the video frames, because the frame rate is inversely proportional to the rendering interval. When the frame rate is reset from the target frame rate to the initial frame rate, the rendering interval is correspondingly adjusted back to a value corresponding to the initial frame rate, causing the video to be played at the initial frame rate. By resetting the playback frame rate to the initial frame rate, the second playback speed is finally restored to the first playback speed. Thus, when the playable duration reaches the second duration threshold, it indicates that there is sufficient data in the buffer to support playback at a normal speed. Restoring the playback speed at this time can avoid excessive accumulation of data in the buffer, occupying too much device storage space. At the same time, the network bandwidth can also be released in a timely manner, allowing the system to allocate resources to other tasks or perform more efficient data transmission, improving the utilization efficiency of overall resources. In addition, through a reasonable playback speed restoration mechanism, the system can avoid various problems that may be caused by being in an abnormal playback state (such as low-speed playback) for a long time, such as memory leaks, buffer overflows, etc. After restoring the playback speed, the system can return to a normal operating mode, and the collaborative work between various modules becomes more stable, improving the stability and reliability of the entire streaming media playback system.

[0495] In some embodiments, when the playable duration is lower than a third duration threshold, the system may control a player corresponding to the streaming media data to enter a paused state, where the third duration threshold is less than the first duration threshold.

[0496] Exemplarily, the third duration threshold is a preset time value used as a criterion for triggering the player to enter the paused state. When the playable duration monitored is lower than the third duration threshold, it indicates that the reserve amount of streaming media data in the buffer is relatively small. When the system monitors that the playable duration is lower than the third duration threshold, the system issues a control commandVN0102P-WQ-0007to cause the player corresponding to the streaming media data to enter the paused state. Thus, by triggering the paused state, video playback stops immediately, and data in the buffer is no longer consumed, which can prevent continued playback when the buffered data is insufficient, avoiding playback interruption or problems such as stuttering or distorted images.

[0497] In some embodiments, after the system reads the streaming media data from the buffer and plays the read streaming media data at the first playback speed under the first resolution, the following steps may also be performed. A fluctuation frequency of a network corresponding to the streaming media data under the first resolution is detected. When it is detected that the fluctuation frequency is higher than a frequency threshold, the first duration threshold and the second duration threshold are synchronously increased under the first resolution.

[0498] Exemplarily, the system may detect the network fluctuation frequency by periodically collecting network performance indicators (such as bandwidth, latency, etc.) and performing statistical analysis. When the network fluctuation frequency detected exceeds a frequency threshold, it indicates that the network is in an unstable state, which may have a significant impact on streaming media playback. For example, the frequency threshold is set to 5 bandwidth changes per minute. If the actually detected number of bandwidth changes per minute exceeds 5, it is determined that the network fluctuation frequency is higher than the frequency threshold, and it is determined that the network fluctuates relatively frequently. When the network fluctuation frequency is higher than the frequency threshold, the system simultaneously increases the first duration threshold and the second duration threshold. For example, if the original first duration threshold is 10 seconds and the second duration threshold is 30 seconds, when the network fluctuates frequently, the first duration threshold and the second duration threshold are increased to 15 seconds and 35 seconds respectively, to adapt to the unstable network environment and leave more buffer space for the accumulation and consumption of data buffered. In a case of frequent network fluctuations, if the first duration threshold and the second duration threshold remain unchanged, the playback speed may frequently switch between reduction and restoration. For example, the playable duration may just fall below the first duration threshold, triggering a playback speed reduction, and soon reach the second duration threshold due to data download, triggering playback speed restoration, and so on. By increasing the first duration threshold and the second duration threshold, such frequent adjustments can be reduced, making the playback speed more stable and avoiding giving the user an abrupt viewing experience. Therefore, synchronously increasing the first duration threshold and the second duration threshold can improve the stability of streaming media data playback. At the same time, an unstable network can easily cause data buffered to be consumed too quickly, and when the playable duration is too low, playback interruption may occur. By increasing the first duration threshold and the second duration threshold, the system may adjust the playback speed only when the data buffered is more sufficient, buying more time for data download, reducing the risk of playback interruption caused by exhaustion of buffered data.

[0499] From the above technical schemes, it can be seen that some embodiments of the present application provide a method for adjusting a playback speed of streaming media data. The method includes: in response to a playback command for streaming media data, sending a request for obtaining the streaming media data to a streaming media server, and after obtaining the streaming media data, buffering the streaming media data into aVN0102P-WQ-0007buffer; reading the streaming media data from the buffer, and playing the streaming media data read at a first playback speed under a first resolution; calculating a first playable duration corresponding to the streaming media data unread in the buffer when played at the first playback speed under the first resolution; when it is monitored that the first playable duration is lower than a first duration threshold, reducing the first playback speed to a second playback speed under the first resolution, and playing the streaming media data read from the buffer at the second playback speed under the first resolution; monitoring a second playable duration corresponding to the streaming media data unread in the buffer when played at the second playback speed under the first resolution; when it is monitored that the second playable duration is greater than or equal to a second duration threshold, increasing the second playback speed to the first playback speed, and playing the streaming media data read from the buffer at the first playback speed under the first resolution; where the second duration threshold is greater than or equal to the first duration threshold. The method can, without adjusting resolution, automatically adjust the playback speed according to the playable duration of the streaming media data during network congestion, reduce the consumption speed of the streaming media data, get through the network congestion period without the user being aware of the change, and solve the problem of frequent pauses and buffering during streaming media data playback.

[0500] Some embodiments of the present application further provide a display apparatus 200. The display apparatus 200 includes a display 260 and a controller 250. The display 260 is configured to display a user interface. The controller 250, by executing specific computer-executable instructions, causes the display apparatus 200 to perform the method for adjusting a playback speed of streaming media data. When executing the above method, the display apparatus 200 may include the following content.

[0501] In response to a playback command for streaming media data, send a request for obtaining the streaming media data to a streaming media server, and after obtaining the streaming media data, buffer the streaming media data into a buffer.

[0502] Read the streaming media data from the buffer, and play the streaming media data read at a first playback speed under a first resolution.

[0503] Calculate a first playable duration corresponding to the streaming media data unread in the buffer when played at the first playback speed under the first resolution.

[0504] When it is monitored that the first playable duration is lower than a first duration threshold, reduce the first playback speed to a second playback speed under the first resolution, and play the streaming media data read from the buffer at the second playback speed under the first resolution.

[0505] Monitor a second playable duration corresponding to the streaming media data unread in the buffer when played at the second playback speed under the first resolution.

[0506] When it is monitored that the second playable duration is greater than or equal to a second duration threshold, increase the second playback speed to the first playback speed, and play the streaming media data read from the buffer at the first playback speed under the first resolution; where the second duration threshold is greater than or equal to the first duration threshold.

[0507] From the above technical schemes, it can be seen that the above embodiments provide a display apparatus. The display apparatus can, during network congestion, automatically adjust the playback speed according to theVN0102P-WQ-0007playable duration of the streaming media data, reduce the consumption speed of the streaming media data, get through the network congestion period without the user being aware of the change, and solve the problem of frequent pauses and buffering during streaming media data playback.

[0508] For identical or similar parts between various embodiments in this specification, reference may be made to each other, and details are not repeated herein.

[0509] A person skilled in the art can clearly understand that the techniques in embodiments of the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical schemes in embodiments of the present application, essentially or the part contributing to the related art, can be embodied in the form of a software product. The computer software product may be stored in a storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of the present application.

[0510] Finally, it should be noted that the above embodiments are intended only to illustrate the technical schemes of the present application, and not to limit them. Although the present application has been described in detail with reference to the foregoing embodiments, a person of ordinary skill in the art should understand that they may still modify the technical schemes described in the foregoing embodiments, or make equivalent substitutions to some or all of the technical features thereof. However, these modifications or substitutions do not cause the essence of the corresponding technical schemes to depart from the scope of the technical schemes of the embodiments of the present application.

[0511] For ease of explanation, the foregoing description has been provided with reference to specific embodiments. However, the discussion in the above embodiments is not intended to be exhaustive or to limit the embodiments to the precise forms disclosed above. Various modifications and variations are possible in light of the above teachings. The embodiments are chosen and described in order to better explain the substance of the present disclosure, enabling those skilled in the art to make better use of the embodiments.

Claims

VN0102P-WQ-0007What is claimed is:

1. A display apparatus, comprising:a display; anda controller, coupled to the display and configured to:start a target application in response to receiving a startup command for the target application;test a download speed of the target application;determine n historical playback records best matching a first playback parameter from historical playback records of the display apparatus, wherein n is a preset positive integer, and the first playback parameter is used for reflecting a playback environment for playing the historical playback records;determine weights respectively corresponding to at least two display effects presented by the n historical playback records based on a second playback parameter, wherein the second playback parameter is used for reflecting a duration for which the historical playback records present the display effects;in response to receiving a playback command for a target media resource, filter out a target initial stream from an initial stream set of the target media resource based on the download speed of the target application and the weights respectively corresponding to the at least two display effects; andcontrol the display to display a media resource interface corresponding to the target initial stream.

2. The display apparatus according to claim 1, wherein the controller, configured to determine the weights respectively corresponding to the at least two display effects presented by the n historical playback records based on the second playback parameter, is configured to:in response to at least two second playback parameters being comprised, determine first weights respectively corresponding to the at least two second playback parameters based on importance levels of the at least two second playback parameters;determine numerical values of the at least two display effects respectively corresponding to each of the second playback parameters based on the display effects respectively presented by the n historical playback records;determine second weights of the at least two display effects respectively corresponding to each of the second playback parameters based on the numerical values of the at least two display effects respectively corresponding to each of the second playback parameters;determine the weights respectively corresponding to the at least two display effects presented by the n historical playback records based on the first weights respectively corresponding to the at least two second playback parameters and the second weights of the at least two display effects respectively corresponding to each of the second playback parameters.

3. The display apparatus according to claim 2, wherein the controller configured to, in response to the at least two second playback parameters being comprised, determine the first weights respectively corresponding to the at least two second playback parameters based on the importance levels of the at least two second playback parameters, is configured to:VN0102P-WQ-0007assign first scores to respective second playback parameters based on the importance levels of the respective second playback parameters;calculate a ratio of the first scores of any two of the second playback parameters;determine the first weights corresponding to the respective second playback parameters by performing normalization calculation on the first scores and the ratio.

4. The display apparatus according to claim 2, wherein the controller, configured to determine the second weights of the at least two display effects respectively corresponding to each of the second playback parameters based on the numerical values of the at least two display effects respectively corresponding to each of the second playback parameters, is configured to:calculate a ratio of numerical values of any two display effects corresponding to a second target parameter, wherein the second target parameter is any one of the second playback parameters;determine the second weights of the display effects corresponding to the second target parameter by performing normalization calculation on the numerical values of the display effects corresponding to the second target parameter and the ratio.

5. The display apparatus according to claim 1, wherein the controller, configured to filter out the target initial stream from the initial stream set of the target media resource based on the download speed of the target application and the weights respectively corresponding to the at least two display effects, is configured to:determine candidate initial streams from the initial stream set of the target media resource based on the download speed of the target application and a bandwidth of each initial stream in the initial stream set;filter out the target initial stream from the candidate initial streams based on display effects presented by the candidate initial streams and the weights respectively corresponding to the at least two display effects.

6. The display apparatus according to claim 5, wherein the controller, configured to determine the candidate initial streams from the initial stream set of the target media resource based on the download speed of the target application and the bandwidth of each initial stream in the initial stream set, is configured to:determine a first download speed interval based on the download speed of the target application and a first preset range allowing fluctuation of the download speed;search for a first initial stream with a bandwidth matching the first download speed interval from each initial stream in the initial stream set, wherein the first initial stream belongs to the candidate initial streams.

7. The display apparatus according to claim 5, wherein the controller, configured to determine the candidate initial streams from the initial stream set of the target media resource based on the download speed of the target application and the bandwidth of each initial stream in the initial stream set, is configured to:determine a second download speed interval based on the download speed of the target application and a second preset range allowing fluctuation of the download speed;search for a second initial stream with a bandwidth matching the second download speed interval from each initial stream in the initial stream set;determine a second score for each of the historical playback records based on a type of the first playback parameter matching the n historical playback records;VN0102P-WQ-0007calculate a fifth score for each of the historical playback records based on the second score of each historical playback record and a third score corresponding to smoothness of the historical playback record and / or a fourth score corresponding to a resolution of the historical playback record;determine m historical playback records with the highest fifth scores from the n historical playback records, wherein m is a positive integer less than n;determine a bandwidth interval of the m historical playback records;search for a third initial stream with a bandwidth falling within the bandwidth interval of the m historical playback records from each initial stream in the initial stream set, wherein the second initial stream and the third initial stream belong to the candidate initial streams.

8. The display apparatus according to claim 1, wherein the controller, after controlling the display to display the media resource interface corresponding to the target initial stream, is further configured to:determine an amplification factor of the download speed based on a fragment size of the target initial stream, the download speed of the target initial stream, and a preset first correspondence, wherein the first correspondence is a correspondence among the fragment size, the download speed, and the amplification factor;determine a product of the download speed and the amplification factor as a corrected download speed; determine an adjusted gear for a code stream of the target media resource based on the corrected download speed and a buffer water level of the target media resource;obtain another code stream of the target media resource corresponding to the adjusted gear;control the display to display a media resource interface corresponding to the another code stream.

9. The display apparatus according to claim 8, wherein the controller, configured to determine the adjusted gear for the code stream of the target media resource based on the corrected download speed and the buffer water level of the target media resource, is configured to:determine a first gear corresponding to the corrected download speed based on the corrected download speed and a preset second correspondence, wherein the second correspondence is a correspondence between the corrected download speed and the first gear;determine a difference between the first gear and a second gear, wherein the second gear is a gear at which the display apparatus currently displays the target media resource;determine a to-be -changed gear for the buffer water level based on the buffer water level of the target media resource and a preset third correspondence, wherein the third correspondence is a correspondence between different buffer water level ranges and the to-be -changed gear;determine a sum of the difference and the to-be-changed gear as the adjusted gear.

10. A media resource playback method, applied to the display apparatus according to any one of claims 1-9, the method comprising:starting the target application in response to receiving the startup command for the target application; testing the download speed of the target application;VN0102P-WQ-0007determining the n historical playback records best matching the first playback parameter from the historical playback records of the display apparatus, wherein n is the preset positive integer, and the first playback parameter is used for reflecting the playback environment for playing the historical playback records;determining the weights respectively corresponding to the at least two display effects presented by the n historical playback records based on the second playback parameter, wherein the second playback parameter is used for reflecting the duration for which the historical playback records present the display effects;in response to receiving the playback command for the target media resource, filtering out the target initial stream from the initial stream set of the target media resource based on the download speed of the target application and the weights respectively corresponding to the at least two display effects; andcontrolling the display of the display apparatus to display the media resource interface corresponding to the target initial stream.

11. The method according to claim 10, wherein the determining the weights respectively corresponding to the at least two display effects presented by the n historical playback records based on the second playback parameter, comprises:in response to at least two second playback parameters being comprised, determining first weights respectively corresponding to the at least two second playback parameters based on importance levels of the at least two second playback parameters;determining numerical values of the at least two display effects respectively corresponding to each of the second playback parameters based on the display effects respectively presented by the n historical playback records;determining second weights of the at least two display effects respectively corresponding to each of the second playback parameters based on the numerical values of the at least two display effects respectively corresponding to each of the second playback parameters;determining the weights respectively corresponding to the at least two display effects presented by the n historical playback records based on the first weights respectively corresponding to the at least two second playback parameters and the second weights of the at least two display effects respectively corresponding to each of the second playback parameters.

12. The method according to claim 11, wherein in response to the at least two second playback parameters being comprised, the determining the first weights respectively corresponding to the at least two second playback parameters based on the importance levels of the at least two second playback parameters, comprises:assigning first scores to respective second playback parameters based on the importance levels of the respective second playback parameters;calculating a ratio of the first scores of any two of the second playback parameters;determining the first weights corresponding to the respective second playback parameters by performing normalization calculation on the first scores and the ratio.

13. The method according to claim 11, wherein the determining the second weights of the at least two display effects respectively corresponding to each of the second playback parameters based on the numericalVN0102P-WQ-0007values of the at least two display effects respectively corresponding to each of the second playback parameters, comprises:calculating a ratio of numerical values of any two display effects corresponding to a second target parameter, wherein the second target parameter is any one of the second playback parameters;determining the second weights of the display effects corresponding to the second target parameter by performing normalization calculation on the numerical values of the display effects corresponding to the second target parameter and the ratio.

14. The method according to claim 10, wherein the filtering out the target initial stream from the initial stream set of the target media resource based on the download speed of the target application and the weights respectively corresponding to the at least two display effects, comprises:determining candidate initial streams from the initial stream set of the target media resource based on the download speed of the target application and a bandwidth of each initial stream in the initial stream set;filtering out the target initial stream from the candidate initial streams based on display effects presented by the candidate initial streams and the weights respectively corresponding to the at least two display effects.

15. The method according to claim 14, wherein the determining the candidate initial streams from the initial stream set of the target media resource based on the download speed of the target application and the bandwidth of each initial stream in the initial stream set, comprises:determining a first download speed interval based on the download speed of the target application and a first preset range allowing fluctuation of the download speed;searching for a first initial stream with a bandwidth matching the first download speed interval from each initial stream in the initial stream set, wherein the first initial stream belongs to the candidate initial streams.

16. The method according to claim 14, wherein the determining the candidate initial streams from the initial stream set of the target media resource based on the download speed of the target application and the bandwidth of each initial stream in the initial stream set, comprises:determining a second download speed interval based on the download speed of the target application and a second preset range allowing fluctuation of the download speed;searching for a second initial stream with a bandwidth matching the second download speed interval from each initial stream in the initial stream set;determining a second score for each of the historical playback records based on a type of the first playback parameter matching the n historical playback records;calculating a fifth score for each of the historical playback records based on the second score of each historical playback record and a third score corresponding to smoothness of the historical playback record and / or a fourth score corresponding to a resolution of the historical playback record;determining m historical playback records with the highest fifth scores from the n historical playback records, wherein m is a positive integer less than n;determining a bandwidth interval of the m historical playback records;VN0102P-WQ-0007searching for a third initial stream with a bandwidth falling within the bandwidth interval of the m historical playback records from each initial stream in the initial stream set, wherein the second initial stream and the third initial stream belong to the candidate initial streams.

17. The method according to claim 10, wherein after controlling the display to display the media resource interface corresponding to the target initial stream, the method further comprises:determining an amplification factor of the download speed based on a fragment size of the target initial stream, the download speed of the target initial stream, and a preset first correspondence, wherein the first correspondence is a correspondence among the fragment size, the download speed, and the amplification factor;determining a product of the download speed and the amplification factor as a corrected download speed; determining an adjusted gear for a code stream of the target media resource based on the corrected download speed and a buffer water level of the target media resource;obtaining another code stream of the target media resource corresponding to the adjusted gear; controlling the display to display a media resource interface corresponding to the another code stream.

18. The method according to claim 17, wherein the determining the adjusted gear for the code stream of the target media resource based on the corrected download speed and the buffer water level of the target media resource, comprises:determining a first gear corresponding to the corrected download speed based on the corrected download speed and a preset second correspondence, wherein the second correspondence is a correspondence between the corrected download speed and the first gear;determining a difference between the first gear and a second gear, wherein the second gear is a gear at which the display apparatus currently displays the target media resource;determining a to-be-changed gear for the buffer water level based on the buffer water level of the target media resource and a preset third correspondence, wherein the third correspondence is a correspondence between different buffer water level ranges and the to-be -changed gear;determining a sum of the difference and the to-be -changed gear as the adjusted gear.