Content marking state determination method and device, equipment, storage medium and product
By preloading the content identifier of multimedia content into the status buffer when the application is started, the performance problems caused by frequent database queries in high concurrency scenarios are solved, and more efficient marking status query is achieved.
Patent Information
- Application Number
- CN202411798289.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-09
- Publication Date
- 2025-03-18
AI Technical Summary
In high concurrency scenarios, frequent database queries lead to slow database response, increasing database burden, resulting in page load delays and lags, and poor performance.
When the application starts, the content identifier of the marked multimedia content is preloaded into the status buffer, so that when it is necessary to query the marked status, you can directly query from the status buffer to reduce interaction with the database.
By reducing the number of database queries, the efficiency of tag status query of multimedia content is improved, the burden on the database is reduced, and the page response speed is improved.
Smart Images

Figure CN119646242A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, equipment, storage medium and product for determining a content marking status. Background Art
[0002] With the popularity of digital music services, users' demand for personalized music experience is growing. The song collection function has become one of the key features to improve user experience. Users can quickly access and manage their music library by collecting their favorite songs. In order to achieve this function, the application needs to be able to accurately determine whether a song has been collected by the user.
[0003] In the related art, the application determines whether the song has been collected by the user by directly reading the unique identifier of the song from the database. Specifically, when the user requests to view the collection status of a song, the application queries the collection table in the database and determines the collection status by matching the user identifier and the song identifier.
[0004] However, the above method relies on directly querying the database. In high-concurrency scenarios, frequent database queries can easily lead to slow database responses, increasing the database burden and easily causing page loading delays and freezes, resulting in poor performance. Summary of the invention
[0005] The embodiments of the present application provide a method, device, equipment, storage medium and product for determining content marking status, which can improve the efficiency of determining whether multimedia content is marked in an application. The technical solution is as follows.
[0006] In one aspect, a method for determining a content marking state is provided, the method comprising:
[0007] In response to the first application being started, loading a content identifier corresponding to at least one marked multimedia content into a state buffer, wherein the content identifier is used to uniquely identify the multimedia content;
[0008] In response to receiving a status query request, searching the status buffer for a first content identifier corresponding to the first multimedia content, wherein the status query request is used to request to determine a marking status corresponding to the first multimedia content;
[0009] In response to the first content identification being included in the status buffer, it is determined that the first multimedia content is marked in the first application.
[0010] In another aspect, a device for determining a content marking state is provided, the device comprising:
[0011] A loading module, configured to load a content identifier corresponding to at least one marked multimedia content into a state buffer in response to the first application being started, wherein the content identifier is used to uniquely identify the multimedia content;
[0012] a query module, configured to search the state buffer for a first content identifier corresponding to the first multimedia content in response to receiving a state query request, wherein the state query request is used to request to determine a marking state corresponding to the first multimedia content;
[0013] The determination module is configured to determine, in response to the state buffer including the first content identifier, that the first multimedia content is marked in the first application.
[0014] In some embodiments, the loading module is further used to:
[0015] In response to the first application being started, reading content identifiers corresponding to a plurality of multimedia contents marked in a database;
[0016] For a first account logged in in the first application, a content identifier corresponding to the first account among a plurality of content identifiers is loaded into the state buffer.
[0017] In some embodiments, the loading module is further used to:
[0018] Acquire a loading priority corresponding to each of the at least one multimedia content, where the loading priority is used to indicate a probability that a mark state of the multimedia content is queried;
[0019] The content identifier corresponding to the at least one multimedia content is loaded into the status buffer in the order of the loading priority from high to low.
[0020] In some embodiments, the loading module is further used to:
[0021] Acquire at least one of home page recommended content and candidate playback content, wherein the home page recommended content is multimedia content recommended by the program home page of the first application, and the candidate playback content is multimedia content in a play list of the first application;
[0022] The loading priorities respectively corresponding to the at least one multimedia content are obtained according to at least one of the home page recommended content and the candidate playback content, wherein the loading priorities respectively corresponding to the home page recommended content and the candidate playback content are higher than other multimedia content in the at least one multimedia content.
[0023] In some embodiments, the loading module is further used to:
[0024] Determine, based on the operation data of the first account in a historical time period, a loading tendency of the first account, the loading tendency being used to indicate a probability of the first account triggering a status query request for a specified type of multimedia content after the first application is started; wherein, when the operation data indicates that the first account triggers the homepage recommended content more times than the candidate playback content in the historical time period, determine that the loading tendency indicates that the homepage recommended content is loaded before the candidate playback content; when the operation data indicates that the first account triggers the homepage recommended content less times than the candidate playback content in the historical time period, determine that the loading tendency indicates that the candidate playback content is loaded before the homepage recommended content;
[0025] Determining the loading priorities respectively corresponding to the homepage recommended content and the candidate playback content based on the loading tendency;
[0026] Among them, when the loading tendency indicates that the home page recommended content is loaded before the candidate playback content, it is determined that the loading priority corresponding to the home page recommended content is higher than the candidate playback content; when the loading tendency indicates that the candidate playback content is loaded before the home page recommended content, it is determined that the loading priority corresponding to the candidate playback content is higher than the home page recommended content.
[0027] In some embodiments, the loading module is further used to:
[0028] Obtaining display priorities respectively corresponding to a plurality of homepage recommended contents in the program homepage, the display priorities being used to indicate a probability of the homepage recommended contents receiving a trigger operation in the program homepage, the display priorities being determined based on at least one display parameter of display positions, display orders, and display area sizes of the plurality of homepage recommended contents in the program homepage;
[0029] The loading priorities respectively corresponding to the plurality of home page contents are determined according to the display priority, and the loading priority is positively correlated with the display priority.
[0030] In some embodiments, the query module is further used to:
[0031] In a case where the status buffer meets the loading requirement, in response to receiving the status query request, searching the status buffer for the first content identifier corresponding to the first multimedia content;
[0032] In a case where the status buffer does not meet the loading requirement, in response to receiving the status query request, searching the database for the first content identifier corresponding to the first multimedia content;
[0033] The loading requirement is used to indicate the loading progress of the content identifier in the status buffer.
[0034] In some embodiments, the loading requirement includes at least one of the following:
[0035] The content identifier has been loaded; or,
[0036] The loading duration of the status buffer reaches a first preset duration corresponding to the first multimedia content, and the first preset duration is determined based on a loading priority corresponding to the first multimedia content.
[0037] In some embodiments, the apparatus further comprises a processing module for:
[0038] In response to receiving a state change operation for second multimedia content, updating a mark state of the second multimedia content;
[0039] Based on the updated marking state, the content identification in the state buffer is updated.
[0040] In some embodiments, the processing module is further configured to:
[0041] When the updated marking state indicates that the second multimedia content is marked, updating the second content identifier corresponding to the second multimedia content into the state buffer;
[0042] In a case where the updated marking state indicates that the second media content is unmarked, the second content identifier corresponding to the second multimedia content is deleted from the state buffer.
[0043] On the other hand, a computer device is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement a method for determining a content marking status as described in any of the above-mentioned embodiments of the present application.
[0044] On the other hand, a computer-readable storage medium is provided, wherein at least one instruction, at least one program, a code set or an instruction set is stored in the storage medium, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement a method for determining a content marking status as described in any of the above-mentioned embodiments of the present application.
[0045] On the other hand, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method for determining the content marking state described in any of the above embodiments.
[0046] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0047] After the application is started, the content identifier of the marked multimedia content is preloaded and loaded into the status buffer, so that when it is necessary to determine the marking status of the multimedia content, the corresponding content identifier can be directly queried from the status buffer, and the marking status can be determined according to the storage status of the content identifier in the status buffer. There is no need to directly interact with the database after receiving the status query request and wait for the database query data, which reduces the database query burden and improves the query efficiency of the marking status of the multimedia content. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0049] Figure 1 is a schematic diagram of a computer system provided by an exemplary embodiment of the present application;
[0050] Figure 2 is a flow chart of a method for determining a content marking status provided by an exemplary embodiment of the present application;
[0051] Figure 3 This is a schematic diagram of a song collection query process provided by an exemplary embodiment of the present application;
[0052] Figure 4 is a flow chart of a method for loading a content identifier provided by an exemplary embodiment of the present application;
[0053] Figure 5 It is a schematic diagram of a method for determining the loading priority of home page recommended content provided by an exemplary embodiment of the present application;
[0054] Figure 6 is a structural block diagram of a device for determining a content marking state provided by an exemplary embodiment of the present application;
[0055] Figure 7 It is a structural block diagram of a terminal provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0056] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0057] It should be understood that although the terms first, second, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first parameter may also be referred to as the second parameter, and similarly, the second parameter may also be referred to as the first parameter. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0058] With the popularity of digital music services, users' demand for personalized music experience is growing, among which the song collection function has become one of the key features to improve user experience. Users can quickly access and manage their own music library by collecting their favorite songs. In order to achieve this function, the application needs to be able to accurately determine whether a song has been collected by the user. In some embodiments, the application determines whether the song has been collected by the user by directly reading the unique identifier of the song from the database. Specifically, when a user requests to view the collection status of a song, the application queries the collection table in the database and determines the collection status by matching the user identifier and the song identifier. However, due to the reliance on direct database query, in high concurrency scenarios, frequent database queries are likely to cause slow database response, increase database burden, damage the database, block database threads, etc. On the other hand, when the main thread is used for reading, it is necessary to wait for the database operation to complete, which will cause the page to freeze, while when the asynchronous thread is used for reading, the user interface needs to be updated to reflect the latest data status, which is likely to cause the interface elements to flicker or jump. In addition, direct database query increases the input / output rate of the disk and consumes the disk life.
[0059] The method for determining the content marking status provided in the embodiment of the present application is to preload the content identifier of the marked multimedia content after the application is started, and load the content identifier of the marked content into the status buffer, so that when it is necessary to determine the marking status of the multimedia content, the corresponding content identifier can be directly queried from the status buffer, and the marking status can be determined according to the storage status of the content identifier in the status buffer, without directly interacting with the database to wait for database query data after receiving the status query request. When the main thread is used for reading, the efficiency of reading data from the cache is higher than the efficiency of reading data from the database, so the response speed of the main thread is improved, the page jamming problem is improved, and the marking status query efficiency of the multimedia content is improved. And for a single user, it is only necessary to execute the database query when the program is started, and there is no need to re-execute the database query based on each status query request, which reduces the database query burden. In addition, by preloading the relevant identifier into the status buffer, the input / output rate of the disk can be reduced and the service life of the disk can be extended.
[0060] First, the computer system of this application is introduced. Please refer to Figure 1 , which shows a schematic diagram of a computer system provided by an exemplary embodiment of the present application, the computer system includes: a terminal 10 and a server 20, and the terminal 10 and the server 20 are connected via a network.
[0061] The terminal 10 has a first application installed therein, and the server 20 is a background server corresponding to the first application, and is used to provide background services for the terminal 10 running the first application.
[0062] The first application may be any application with a multimedia content marking function, such as multimedia playback software, social application, online shopping software, virtual game program, etc., and this embodiment of the present application is not limited to this.
[0063] In some embodiments, the user can mark the multimedia content in the first application. When the user logs in to the first application again through any terminal, the first application needs to obtain the marking status of the multimedia content to ensure data consistency.
[0064] Illustratively, a database is deployed in the server 20 for recording the marking status of multiple multimedia contents in the first application. When the first application in the terminal 10 is started, the terminal 10 can obtain the marking status of the multimedia contents from the server 20 .
[0065] In response to the first application being started, the terminal 10 loads a content identifier corresponding to at least one multimedia content being marked into a status buffer, where the content identifier is used to uniquely identify the multimedia content; in response to receiving a status query request, the terminal searches the status buffer for a first content identifier corresponding to the first multimedia content, where the status query request is used to request determination of a marking status corresponding to the first multimedia content; in response to the status buffer including the first content identifier, it is determined that the first multimedia content is marked in the first application.
[0066] The above-mentioned terminal is optional. The terminal can be a desktop computer, a laptop computer, a mobile phone, a tablet computer, an e-book reader, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player, a smart TV, a smart car, and other forms of terminal devices, which are not limited to the embodiments of the present application.
[0067] It is worth noting that the above-mentioned servers can be independent physical servers, or they can be server clusters or distributed systems composed of multiple physical servers. They can also be cloud servers that provide basic cloud computing services such as cloud services, cloud security, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), as well as big data and artificial intelligence platforms.
[0068] Among them, cloud technology refers to a hosting technology that unifies hardware, software, network and other resources within a wide area network or local area network to achieve data computing, storage, processing and sharing.
[0069] In some embodiments, the above server can also be implemented as a node in a blockchain system.
[0070] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant regions. For example, the operation data and account information involved in this application are all obtained with full authorization.
[0071] To further explain, before collecting relevant data of users (for example, account information, historical operation data, and real-time operation data involved in this application) and during the process of collecting relevant data of users, this application can display a prompt interface, pop-up window, or output voice prompt information. The prompt interface, pop-up window, or voice prompt information is used to prompt the user that its relevant data is currently being collected, so that this application only starts to execute the relevant steps of obtaining relevant data of users after obtaining the confirmation operation issued by the user to the prompt interface or pop-up window, otherwise (that is, when the confirmation operation issued by the user to the prompt interface or pop-up window is not obtained), the relevant steps of obtaining relevant data of users are terminated, that is, the relevant data of users are not obtained. In other words, all user data collected by this application are collected with the consent and authorization of the user, and the collection, use, and processing of relevant user data need to comply with the relevant laws, regulations, and standards of the relevant regions.
[0072] For illustration, please refer to Figure 2 , which shows a flowchart of a method for determining a content marking state provided by an exemplary embodiment of the present application. The method can be executed by a terminal, or by a server, or by both a terminal and a server. The present application embodiment takes the method executed by a terminal as an example for explanation. Figure 2 As shown, the method comprises the following steps:
[0073] Step 210: In response to the first application being started, loading a content identifier corresponding to at least one marked multimedia content into a status buffer.
[0074] Content identifiers are used to uniquely identify multimedia content.
[0075] The first application may be any application with a multimedia content marking function, such as multimedia playback software, social application, online shopping software, virtual game program, etc., and this embodiment of the present application is not limited to this.
[0076] In some embodiments, the user can mark the multimedia content in the first application. When the user logs in to the first application again through any terminal, the first application needs to obtain the marking status of the multimedia content to ensure data consistency.
[0077] In the embodiment of the present application, taking the first account logged in in the first application as an example, for the terminal where the first application logged in with the first account is located, in response to the first application being started, a content identifier corresponding to at least one multimedia content marked by the first account is loaded into the status buffer.
[0078] Optionally, the multimedia content includes but is not limited to audio content, image content, text content, video content, and other content in any media form.
[0079] Ways to mark multimedia content include, but are not limited to, liking, collecting, browsing, and any other way of changing the marking status of multimedia content by interacting with the multimedia content.
[0080] The state buffer is a storage space constructed locally in the terminal, and is used to store content identifiers corresponding to multimedia contents marked by the first account.
[0081] For example, taking the collection of songs in the song playing software as an example, the collected songs will be displayed with a collection mark. During the operation of the song playing software, it is necessary to determine the collection status of the songs for the first account so as to accurately display the corresponding collection mark. In response to the song playing software being started, the song identifier corresponding to the song collected by the first account is loaded into the status buffer.
[0082] Taking the like of graphic content in a social platform as an example, the liked graphic content will be displayed with a like mark. During the operation of the social platform, it is necessary to determine the like status of the graphic content for the first account so as to accurately display the corresponding like mark. In response to the start of the social platform, the content mark corresponding to the graphic content liked by the first account is loaded into the status buffer.
[0083] Taking the purchase of items in an online shopping software as an example, the items added to the shopping cart may be displayed with a corresponding purchase prompt mark. During the operation of the online shopping software, it is necessary to determine the purchase status of the items for the first account so as to accurately display the corresponding purchase prompt mark. In response to the shopping software being started, the item identifier corresponding to the item added to the shopping cart by the first account is loaded into the status buffer.
[0084] Taking the example of adding an electronic book to a virtual bookshelf in an electronic reading program, the electronic book added to the virtual bookshelf may be displayed with an added prompt mark. During the operation of the electronic reading program, it is necessary to determine the added status of the electronic book for the first account, so as to accurately display the corresponding added prompt mark. In response to the electronic reading program being started, the book identifier corresponding to the electronic book added to the virtual bookshelf by the first account is loaded into the status buffer.
[0085] It is worth noting that the above-mentioned applications, multimedia content, marking methods, etc. are merely illustrative examples and are not limited to the embodiments of the present application.
[0086] In some embodiments, the first application corresponds to a database, which is a background database corresponding to the first application. The first application may correspond to multiple accounts. The database stores content identifiers corresponding to multiple multimedia contents marked by multiple accounts in the first application. During the process of the terminal running the first application, the content identifier corresponding to at least one multimedia content marked by the first account can be queried from the database based on the first account that logs in to the first application in the terminal.
[0087] Illustratively, in response to the first application being started, content identifiers corresponding to a plurality of multimedia contents marked in a database are read; and for a first account logged in to the first application, a content identifier corresponding to the first account among the plurality of content identifiers is loaded into a status buffer.
[0088] Taking song playing software as an example, the database may store a collection list corresponding to the song playing software, which includes the correspondence between the account and the content identifier of the marked multimedia content. By querying the corresponding content identifier based on the account, the multimedia content marked by the account can be determined.
[0089] The method provided in the embodiment of the present application realizes preloading of the marked content identifier by loading the marked content identifier from the database into the status buffer when the application is started, and can execute database query according to the startup state of the application, without having to execute database query for each status query request, thereby reducing the number of database queries for the marking status of multimedia content, improving the database query efficiency, and reducing the database query burden. After completing the preloading, the marking status can be queried according to the status buffer according to the status query request, thereby improving the status query efficiency of the multimedia content.
[0090] Step 220: In response to receiving the status query request, searching the status buffer for a first content identifier corresponding to the first multimedia content.
[0091] The status query request is used to request to determine the marking status corresponding to the first multimedia content.
[0092] The status query request is generated based on a query requirement for the marked status of the first multimedia content. Optionally, the status query request may be automatically generated by the first application or may be generated based on a user operation, which is not limited in this embodiment of the present application.
[0093] For example, taking the collection of songs in a song playing software as an example, when the song playing software displays the song form and song details, it will display the collection mark corresponding to the song to indicate the collection status of the song.
[0094] Taking the example of a status query request automatically generated by a song playing software, the program homepage after the song playing software is started may include recommended songs and detailed information of the recommended songs, such as the collection status of the recommended songs, etc. The song playing software can automatically generate a status query request after startup to query the collection status of the recommended songs.
[0095] Taking the status query request generated based on user operation as an example, a recommended playlist may be displayed in the default interface of the software. Since it contains multiple recommended songs, only the song titles may be displayed, and detailed information such as the collection status of the recommended songs may not be displayed. In response to receiving a click operation from the first account on the recommended song, a status query request is generated to query the collection status of the recommended song; or, when the user triggers the collection list, it is necessary to query the song items collected by the user. In response to receiving the trigger operation from the first account on the collection list, a status query request is generated to query all songs marked by the first account; or, when the user searches for a specified song in the software, it is necessary to obtain the collection status of the song. In response to receiving a search operation from the first account on the first song, a status query request is generated to query whether the first song is collected by the first account.
[0096] It is worth noting that the above-mentioned method of generating the status query request is only an illustrative example and is not limited to this in the embodiments of the present application.
[0097] In some embodiments, since the status query request may be generated when the status buffer is not completely loaded, in order to prevent the status query error from being marked due to the incomplete loading of the status buffer, the first content identifier may be searched from the database or the status buffer according to the loading status of the status buffer. Schematically, step 220 includes the following two situations:
[0098] The first method is to search the state buffer for a first content identifier corresponding to the first multimedia content in response to receiving a state query request when the state buffer meets the loading requirement;
[0099] The second method is to search for a first content identifier corresponding to the first multimedia content from a database in response to receiving a status query request when the status buffer does not meet the loading requirement.
[0100] The loading request is used to indicate the loading progress of the content identifier in the status buffer.
[0101] Optionally, the loading requirement includes at least one of the following: the content identifier is loaded; or the loading duration of the status buffer reaches a first preset duration corresponding to the first multimedia content, and the first preset duration is determined based on the loading priority corresponding to the first multimedia content.
[0102] The completion of loading the content identifiers means that all the content identifiers marked by the first account in the database have been loaded into the status buffer.
[0103] Illustratively, taking the loading requirement including completion of content identification loading as an example, when a status query request is received, if the status buffer has been loaded, the first content identification corresponding to the first multimedia content is queried from the status buffer; if the status buffer has not been loaded, the first content identification corresponding to the first multimedia content is queried from the database.
[0104] Among them, a counter can be set to record the number of times the status buffer loads the content identifier, and whether the content identifier has been loaded can be determined based on the number of loading times. When the content identifier of the multimedia content marked by the first account is read from the database, the total number of content identifiers to be loaded can be counted. When the number of content identifiers that have been loaded indicated by the recorded number of loading times is equal to the total number, it is determined that the status buffer has completed loading the content identifier and meets the loading requirements.
[0105] It is worth noting that the above-mentioned method for determining whether the content identifier has been loaded is only an illustrative example and is not limited to this in the embodiments of the present application.
[0106] The loading duration of the status buffer reaches the first preset duration corresponding to the first multimedia content, which is used to indicate that when the first multimedia content is marked by the first account, the first content identifier has been loaded in the status buffer when the loading duration reaches the first preset duration.
[0107] The first preset duration is determined based on a loading priority corresponding to the first multimedia content, and the loading priority is used to indicate a loading order in which the first content identifier is loaded into the status buffer.
[0108] The loading duration of the status buffer may be recorded by setting a timer, and when the loading duration reaches a first preset duration, it is determined that the status buffer meets the loading requirement.
[0109] Illustratively, taking the example that the loading requirement includes the loading duration of the status buffer reaching the first preset duration corresponding to the first multimedia content, assuming that the loading priority corresponding to the first multimedia content is used to indicate that the first content identifier is preferentially loaded into the status buffer when the first multimedia content is marked by the first account, and the corresponding first preset duration is 1 second; in response to receiving a status query request, the loading duration of the status buffer reaches 1 second, it is determined that the status buffer has completed the loading of the first content identifier, and the first content identifier is queried from the status buffer; in response to receiving a status query request, the loading duration of the status buffer does not reach 1 second, it is determined that the status buffer has not yet completed the loading of the first content identifier, even if the first multimedia content is marked by the first account, the first content identifier cannot be found in the current status buffer, and the first content identifier is queried from the database.
[0110] The method provided in the embodiment of the present application can ensure that the first content identifier is queried from the status buffer when the status buffer is fully loaded, reduce database queries, and improve query efficiency by querying the first content identifier from the database or the status buffer based on the status query request according to the compliance of the status buffer with the loading requirements. When the assembly station buffer is not fully loaded, the first content identifier is queried from the server to ensure that the marking status of the first multimedia content can be determined based on the first content identifier, thereby improving the accuracy of the query.
[0111] The method provided by the embodiment of the present application indicates the loading progress of the status buffer through the loading requirement. When the loading requirement includes that the content identifier is loaded, it can ensure that the status query request for any multimedia content can accurately query the content identifier from the database or the status buffer to determine the marking status, thereby improving the query accuracy of the multimedia content marking status; when the loading requirement includes that the loading duration reaches a preset duration determined based on the loading priority, it can accurately reflect the loading progress of the content identifier corresponding to the specific multimedia content, thereby reading the first content identifier from the database or the status buffer according to the loading progress of the specific content identifier, without waiting for the status buffer to be completely loaded, thereby improving the query efficiency.
[0112] Step 230: In response to the first content identifier being included in the status buffer, determine that the first multimedia content is marked in the first application.
[0113] After the content identifier marked by the first account is loaded into the status buffer, the marking status of the multimedia content can be determined according to the content identifier in the status buffer.
[0114] When the status buffer includes the first content identifier, it is determined that the first multimedia content is marked by the first account in the first application; when the status buffer does not include the first content identifier, it is determined that the first multimedia content is not marked by the first account in the first application.
[0115] In some embodiments, when the marking status of the multimedia content changes, the status buffer needs to be updated synchronously.
[0116] Illustratively, in response to receiving a state change operation for the second multimedia content, the marking state of the second multimedia content is updated; and based on the updated marking state, at least one content identifier in the state buffer is updated.
[0117] The second multimedia content is any multimedia content in the first application, wherein the second multimedia content may include the first multimedia content or may not include the first multimedia content, which is not limited in the embodiment of the present application.
[0118] When the updated marking state indicates that the second multimedia content is marked, the second content identifier corresponding to the second multimedia content is updated to the status buffer; when the updated marking state indicates that the second multimedia content is unmarked, the second content identifier corresponding to the second multimedia content is deleted from the status buffer.
[0119] When a change occurs in the status buffer, a full status query request can be automatically triggered in real time to re-query the marking status of multiple multimedia contents in the first application; or the marking status of the first multimedia content corresponding to the status query request can be re-queried after waiting for receiving the status query request again. This embodiment of the present application is not limited to this.
[0120] In some embodiments, the first application supports the first account to log in to multiple terminal devices at the same time. The marking operation of the first account on different terminal devices may cause inconsistent marking status of the first multimedia content. In this case, the marking status needs to be synchronized from the database.
[0121] Optionally, multiple terminal devices respectively correspond to device priorities. Within the same preset time period, the marking status of the first account for the first multimedia content is synchronized according to the marking status and / or marking operation in the terminal device with the highest device priority; or, the update time of the marking status in multiple terminal devices is obtained, and the marking status of the first account for the first multimedia content in multiple terminal devices is synchronized according to the marking status in the terminal device with the most recent update time.
[0122] Taking the example that a plurality of terminal devices respectively correspond to device priorities, the database stores the content identifier of the multimedia content marked by the first account according to the marking state in the terminal device with the highest device priority.
[0123] Taking the update time as an example, the database stores the content identifier of the multimedia content marked by the first account according to the marking state in the terminal device at the most recent update time.
[0124] Optionally, multiple terminal devices can synchronize the mark status from the database according to a preset time period, or the database can send a change signal to multiple terminal devices after a change occurs, and multiple terminal devices can synchronize the mark status from the database based on the change signal, etc. The embodiments of the present application are not limited to this.
[0125] Illustratively, taking video playback software as an example, in a home scenario, family members may use a shared account to log in to the video playback software on multiple terminal devices. The video playback software may need to synchronize the shared account's favorite movie lists from the database. To prevent favorites conflicts between multiple terminal devices, family members can set device priorities for multiple terminal devices. For example, set the TV in the living room as the terminal device with the highest device priority. When the shared account favorites video A based on the TV in the living room and cancels the favorite video A based on the mobile phone during the same period of time, video A is determined to be favorited according to the device priority.
[0126] It is worth noting that the above-mentioned multi-terminal login mark status synchronization method is only an illustrative example and is not limited to this in the embodiments of the present application.
[0127] For example, take the collection of songs in the music player software as an example, please refer to Figure 3 , Figure 3 This is a schematic diagram of a song collection query process provided by an exemplary embodiment of the present application. Figure 3 As shown, in the song collection query process 300, after the application is started, all the unique identifiers of the favorite songs are loaded and saved in the status buffer. When determining whether the song has been collected, first determine whether it has been loaded. If so, query from the status buffer, if not, query from the database. When the collection status changes, including adding collections, canceling collections, synchronizing collections, etc., the status buffer is changed according to the changes.
[0128] In summary, the method provided in the embodiment of the present application preloads the content identifier of the marked multimedia content after the application is started, and loads the content identifier of the marked content into the status buffer, so that when it is necessary to determine the marking status of the multimedia content, the corresponding content identifier can be directly queried from the status buffer, and the marking status can be determined according to the storage status of the content identifier in the status buffer. There is no need to directly interact with the database after receiving the status query request and wait for the database query data, which reduces the database query burden and improves the marking status query efficiency of the multimedia content.
[0129] In some embodiments, at least one multimedia content marked by the first account corresponds to a loading priority, and when loading the content identifier, the content identifier can be loaded according to the order indicated by the loading priority. Figure 4 , which shows a flowchart of a method for loading a content identifier provided by an exemplary embodiment of the present application. The method can be executed by a terminal, or by a server, or by both a terminal and a server. The present application embodiment takes the method executed by a terminal as an example for explanation. Figure 4 As shown, the method comprises the following steps:
[0130] Step 410: Obtain a loading priority corresponding to at least one multimedia content.
[0131] The loading priority is used to indicate the probability of a marked state of multimedia content being queried.
[0132] In some embodiments, the loading priority may be determined according to the display level or interaction level of the multimedia content in the first application. The probability of the mark status of the multimedia content that is preferentially displayed or interacted with in the first application being queried is usually higher.
[0133] For example, the probability of the marked status of multimedia content such as the recommended content on the homepage of the program and the candidate play content in the playlist being queried is usually higher than that of other multimedia content.
[0134] In some embodiments, at least one of the home page recommended content and the candidate playback content is obtained, where the home page recommended content is the multimedia content recommended on the program home page in the first application, and the candidate playback content is the multimedia content in the play list in the first application; based on at least one of the home page recommended content and the candidate playback content, the loading priorities corresponding to multiple multimedia contents are obtained.
[0135] The loading priorities of the home page recommended content and the candidate playback content are higher than other multimedia content in the at least one multimedia content.
[0136] Optionally, the above-mentioned homepage recommended content can be uniformly pushed by the background of the first application, or can be dynamically pushed according to the historical data of the first account, which is not limited in this embodiment of the present application.
[0137] The candidate playback content may be preset in the first application, or may be set by the first account within a historical time period, which is not limited in this embodiment of the present application.
[0138] Since the recommended content on the homepage of the program and the candidate playback content in the playlist are usually easily triggered to query the marking status, the content identifiers corresponding to the homepage recommended content and the candidate playback content can be loaded into the status buffer first by setting a loading priority higher than that of other multimedia content, thereby ensuring that when querying the marking status of the homepage recommended content and the candidate playback content, the corresponding content identifier can be queried from the status buffer, reducing database queries and improving query efficiency.
[0139] In some embodiments, the loading priorities of the home page recommended content and the candidate playback content may be set separately according to the user's loading tendency.
[0140] Illustratively, based on the operation data of the first account within a historical time period, the loading tendency of the first account is determined, and the loading tendency is used to indicate the probability of the first account triggering a status query request for a specified type of multimedia content after the first application is started; based on the loading tendency, the homepage recommended content and the loading priorities corresponding to the candidate playback content are determined.
[0141] Among them, when the operation data indicates that the first account has triggered the homepage recommended content more times than the candidate playback content in the historical time period, it is determined that the loading tendency indicates that the homepage recommended content is loaded first compared with the candidate playback content; when the operation data indicates that the first account has triggered the homepage recommended content less times than the candidate playback content was triggered previously in the historical time period, it is determined that the loading tendency indicates that the candidate playback content is loaded first compared with the homepage recommendation.
[0142] When the loading tendency indicates that the home page recommended content is loaded before the candidate playback content, it is determined that the loading priority corresponding to the home page recommended content is higher than the candidate playback content; when the loading tendency indicates that the candidate playback content is loaded before the home page recommendation, it is determined that the loading priority corresponding to the candidate playback content is higher than the home page recommended content.
[0143] The method provided in the embodiment of the present application can, when the user is accustomed to preferentially triggering the home page recommended content, preferentially load the content identifier corresponding to the home page recommended content to improve the efficiency of marking status query for the home page recommended content; when the user is accustomed to preferentially triggering the candidate playback content, preferentially load the content identifier corresponding to the candidate playback content to improve the efficiency of marking status query for the candidate playback content.
[0144] In some embodiments, loading priorities may be set for different home page recommended contents.
[0145] Illustratively, the display priority of multiple home page recommended contents in the program home page is obtained, the display priority is used to indicate the probability of the home page recommended contents receiving a trigger operation in the program home page, and the display priority is determined based on at least one display parameter of the display position, display order, and display area size of the multiple home page recommended contents in the program home page; the loading priorities corresponding to the multiple home page contents are determined according to the display priority, and the loading priority is positively correlated with the display priority.
[0146] When determining the display priority, a weighted score may be performed based on at least one display parameter of the home page recommended content, including display position, display order, and display area size in the program home page. The higher the score, the higher the display priority.
[0147] Among them, the closer the display position is to the focus position of the program homepage, the higher the score; the earlier the display order, the higher the score; the larger the display area size, the higher the score.
[0148] Illustratively, the closer the display position in the program homepage is to the focus position of the program homepage, the earlier the display order is, and the larger the display area size is, the higher the display priority of the homepage recommended content. Correspondingly, the higher the loading priority is, when loading the content identifier marked by the first account, the content identifier corresponding to the homepage recommended content is loaded first.
[0149] Optionally, the loading priority is also related to the display detail of the recommended content on the home page. When the display detail of the recommended content on the home page is high, for example, the marking status needs to be directly displayed when the recommended content on the home page of the program is displayed, then the probability of the marking status of the recommended content on the home page being queried is determined to be 100%, and the corresponding loading priority is set to the highest.
[0150] For example, take the song player software as an example, please refer to Figure 5 , Figure 5 FIG. 1 is a schematic diagram of a method for determining the loading priority of home page recommended content provided by an exemplary embodiment of the present application. Figure 5As shown, the program homepage 500 of the song playing software includes songs 501 to 503 that are recommended in a carousel at the focus position. When a certain recommended song is rotated, it is necessary to display the collection status of the recommended song through different effects of the collection icon, and display songs 501 to 503 in the carousel order; below the focus position, there are recommended song lists A and B, wherein the display area of recommended song list A is larger than that of recommended song list B, and recommended song lists A and B respectively include multiple recommended songs. For the multiple recommended songs in the above program homepage 500, the loading priority determined according to the display position, display order, and display area size is in the order from high to low: song 501, song 502, song 503, multiple recommended songs in song list A, and multiple recommended songs in song list B.
[0151] It is worth noting that the above-mentioned method of determining the loading priority is only an illustrative example and is not limited to this in the embodiments of the present application.
[0152] The method provided in the embodiment of the present application determines the loading priority according to the display priority of the home page recommended content in the program home page, so that the loading priority can more accurately indicate the probability of the marked status of the home page recommended content being queried, thereby accurately and preferentially loading the content identifier of the home page recommended content with a higher probability of being queried with the marked status, thereby improving query efficiency.
[0153] Step 420: Load the content identifier corresponding to at least one multimedia content into the status buffer in order of loading priority from high to low.
[0154] Specifically, the content identifiers of multimedia contents and loading priorities can be associated and stored in a database, multimedia contents with the same loading priority can be clustered and stored in the database according to the loading priority, and when reading, the content identifiers of multimedia contents with higher loading priorities can be read preferentially and loaded into the status buffer.
[0155] Since the recommended content on the homepage of the program and the candidate playback content in the playlist are usually easy to trigger the query mark status first, the content identifiers corresponding to the homepage recommended content and the candidate playback content are loaded into the status buffer first, thereby ensuring that when querying the mark status of the homepage recommended content and the candidate playback content, the corresponding content identifier can be queried from the status buffer, reducing database queries and improving query efficiency.
[0156] To sum up, the method provided in the embodiment of the present application, by loading at least one content identifier corresponding to at least one multimedia content into the status buffer in order of loading priority from high to low, can preferentially load the content identifier of the multimedia content whose marking status is more likely to be queried into the status buffer, and can ensure to the greatest extent that when a status query request is received, the content identifier loaded in the status buffer can indicate the marking status of the multimedia content currently required to be queried, thereby improving the accuracy of determining the marking status according to the content identifier in the status buffer when a status query request is received.
[0157] Figure 6 is a structural block diagram of a device for determining a content marking state provided by an exemplary embodiment of the present application, such as Figure 6 As shown, the device includes the following parts:
[0158] A loading module 610, configured to load at least one content identifier corresponding to the marked multimedia content into a status buffer in response to the first application being started, wherein the content identifier is used to uniquely identify the multimedia content;
[0159] A query module 620, configured to search the state buffer for a first content identifier corresponding to the first multimedia content in response to receiving a state query request, wherein the state query request is used to request to determine a mark state corresponding to the first multimedia content;
[0160] The determination module 630 is configured to determine, in response to the state buffer including the first content identifier, that the first multimedia content is marked in the first application.
[0161] In some embodiments, the loading module 610 is further used to:
[0162] In response to the first application being started, reading content identifiers corresponding to a plurality of multimedia contents marked in a database;
[0163] For a first account logged in in the first application, a content identifier corresponding to the first account among a plurality of content identifiers is loaded into the state buffer.
[0164] In some embodiments, the loading module 610 is further used to:
[0165] Acquire a loading priority corresponding to each of the at least one multimedia content, where the loading priority is used to indicate a probability that a mark state of the multimedia content is queried;
[0166] The content identifier corresponding to the at least one multimedia content is loaded into the status buffer in the order of the loading priority from high to low.
[0167] In some embodiments, the loading module 610 is further used to:
[0168] Acquire at least one of home page recommended content and candidate playback content, wherein the home page recommended content is multimedia content recommended by the program home page of the first application, and the candidate playback content is multimedia content in a play list of the first application;
[0169] The loading priorities respectively corresponding to the at least one multimedia content are obtained according to at least one of the home page recommended content and the candidate playback content, wherein the loading priorities respectively corresponding to the home page recommended content and the candidate playback content are higher than other multimedia content in the at least one multimedia content.
[0170] In some embodiments, the loading module 610 is further used to:
[0171] Determine, based on the operation data of the first account in a historical time period, a loading tendency of the first account, the loading tendency being used to indicate a probability of the first account triggering a status query request for a specified type of multimedia content after the first application is started; wherein, when the operation data indicates that the first account triggers the homepage recommended content more times than the candidate playback content in the historical time period, determine that the loading tendency indicates that the homepage recommended content is loaded before the candidate playback content; when the operation data indicates that the first account triggers the homepage recommended content less times than the candidate playback content in the historical time period, determine that the loading tendency indicates that the candidate playback content is loaded before the homepage recommended content;
[0172] Determining the loading priorities respectively corresponding to the homepage recommended content and the candidate playback content based on the loading tendency;
[0173] Among them, when the loading tendency indicates that the home page recommended content is loaded before the candidate playback content, it is determined that the loading priority corresponding to the home page recommended content is higher than the candidate playback content; when the loading tendency indicates that the candidate playback content is loaded before the home page recommended content, it is determined that the loading priority corresponding to the candidate playback content is higher than the home page recommended content.
[0174] In some embodiments, the loading module 610 is further used to:
[0175] Obtaining display priorities respectively corresponding to a plurality of homepage recommended contents in the program homepage, the display priorities being used to indicate a probability of the homepage recommended contents receiving a trigger operation in the program homepage, the display priorities being determined based on at least one display parameter of display positions, display orders, and display area sizes of the plurality of homepage recommended contents in the program homepage;
[0176] The loading priorities respectively corresponding to the plurality of home page contents are determined according to the display priority, and the loading priority is positively correlated with the display priority.
[0177] In some embodiments, the query module 620 is further configured to:
[0178] In a case where the status buffer meets the loading requirement, in response to receiving the status query request, searching the status buffer for the first content identifier corresponding to the first multimedia content;
[0179] In a case where the status buffer does not meet the loading requirement, in response to receiving the status query request, searching the database for the first content identifier corresponding to the first multimedia content;
[0180] The loading requirement is used to indicate the loading progress of the content identifier in the status buffer.
[0181] In some embodiments, the loading requirement includes at least one of the following:
[0182] The content identifier has been loaded; or,
[0183] The loading duration of the status buffer reaches a first preset duration corresponding to the first multimedia content, and the first preset duration is determined based on a loading priority corresponding to the first multimedia content.
[0184] In some embodiments, the apparatus further comprises a processing module 640 for:
[0185] In response to receiving a state change operation for second multimedia content, updating a mark state of the second multimedia content;
[0186] Based on the updated marking state, the content identification in the state buffer is updated.
[0187] In some embodiments, the processing module 640 is further configured to:
[0188] When the updated marking state indicates that the second multimedia content is marked, updating the second content identifier corresponding to the second multimedia content into the state buffer;
[0189] In a case where the updated marking state indicates that the second media content is unmarked, the second content identifier corresponding to the second multimedia content is deleted from the state buffer.
[0190] In summary, the device provided by the embodiment of the present application preloads the content identifier of the marked multimedia content after the application is started, and loads the content identifier of the marked content into the status buffer, so that when it is necessary to determine the marking status of the multimedia content, the corresponding content identifier can be directly queried from the status buffer, and the marking status can be determined according to the storage status of the content identifier in the status buffer. There is no need to directly interact with the database after receiving the status query request and wait for the database query data, which reduces the database query burden and improves the marking status query efficiency of the multimedia content.
[0191] It should be noted that the device for determining the content marking status provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0192] Figure 7 The structure block diagram of a terminal 700 provided by an exemplary embodiment of the present application is shown. The terminal 700 may be: a smart phone, a tablet computer, an MP3 player, an MP4 player, a notebook computer or a desktop computer. The terminal 700 may also be called a user equipment, a portable terminal, a laptop terminal, a desktop terminal or other names.
[0193] Typically, the terminal 700 includes a processor 701 and a memory 702 .
[0194] The processor 701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 701 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 701 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 701 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 701 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0195] The memory 702 may include one or more computer-readable storage media, which may be non-transitory. The memory 702 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 702 is used to store at least one instruction, which is used to be executed by the processor 701 to implement the method for determining the content marking state provided in the method embodiment of the present application.
[0196] In some embodiments, the terminal 700 further includes other components 703, which can be understood by those skilled in the art. Figure 7 The structure shown in the figure does not constitute a limitation on the terminal 700, and the terminal 700 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.
[0197] The embodiment of the present application also provides a computer device, which can be implemented as follows: Figure 1 The computer device includes a processor and a memory, wherein at least one instruction, at least one program, code set or instruction set is stored in the memory, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the content marking status determination method provided by the above-mentioned method embodiments.
[0198] An embodiment of the present application also provides a computer-readable storage medium, on which is stored at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the content marking status determination method provided by the above-mentioned method embodiments.
[0199] The embodiments of the present application also provide a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the content marking state determination method provided by the above-mentioned method embodiments.
[0200] Optionally, the computer readable storage medium may include: Read Only Memory (ROM), Random Access Memory (RAM), Solid State Drives (SSD) or optical disks, etc. Among them, the random access memory may include resistance random access memory (ReRAM) and dynamic random access memory (DRAM). The serial numbers of the above embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.
[0201] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0202] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for determining a content marking state, characterized in that: The method comprises: In response to the first application being started, loading a content identifier corresponding to at least one marked multimedia content into a state buffer, wherein the content identifier is used to uniquely identify the multimedia content; In response to receiving a status query request, searching the status buffer for a first content identifier corresponding to the first multimedia content, wherein the status query request is used to request to determine a marking status corresponding to the first multimedia content; In response to the first content identification being included in the status buffer, it is determined that the first multimedia content is marked in the first application.
2. The method according to claim 1, characterized in that The step of loading the content identifier corresponding to the at least one marked multimedia content into the status buffer in response to the first application being started includes: In response to the first application being started, reading content identifiers corresponding to a plurality of multimedia contents marked in a database; For a first account logged in in the first application, a content identifier corresponding to the first account among a plurality of content identifiers is loaded into the state buffer.
3. The method according to claim 2, characterized in that The step of loading the content identifier corresponding to the first account from among the plurality of content identifiers into the status buffer comprises: Acquire a loading priority corresponding to each of the at least one multimedia content, where the loading priority is used to indicate a probability that a mark state of the multimedia content is queried; The content identifier corresponding to the at least one multimedia content is loaded into the status buffer in the order of the loading priority from high to low.
4. The method according to claim 3, characterized in that: The obtaining the loading priority corresponding to the at least one multimedia content includes: Acquire at least one of home page recommended content and candidate playback content, wherein the home page recommended content is multimedia content recommended by the program home page of the first application, and the candidate playback content is multimedia content in a play list of the first application; The loading priorities respectively corresponding to the at least one multimedia content are obtained according to at least one of the home page recommended content and the candidate playback content, wherein the loading priorities respectively corresponding to the home page recommended content and the candidate playback content are higher than other multimedia content in the at least one multimedia content.
5. The method according to claim 4, characterized in that The method further comprises: Determine, based on the operation data of the first account in a historical time period, a loading tendency of the first account, the loading tendency being used to indicate a probability of the first account triggering a status query request for a specified type of multimedia content after the first application is started; wherein, when the operation data indicates that the first account triggers the homepage recommended content more times than the candidate playback content in the historical time period, determine that the loading tendency indicates that the homepage recommended content is loaded before the candidate playback content; when the operation data indicates that the first account triggers the homepage recommended content less times than the candidate playback content in the historical time period, determine that the loading tendency indicates that the candidate playback content is loaded before the homepage recommended content; Determining the loading priorities respectively corresponding to the homepage recommended content and the candidate playback content based on the loading tendency; Among them, when the loading tendency indicates that the home page recommended content is loaded before the candidate playback content, it is determined that the loading priority corresponding to the home page recommended content is higher than the candidate playback content; when the loading tendency indicates that the candidate playback content is loaded before the home page recommended content, it is determined that the loading priority corresponding to the candidate playback content is higher than the home page recommended content.
6. The method according to claim 4, characterized in that The method further comprises: Obtaining display priorities respectively corresponding to a plurality of homepage recommended contents in the program homepage, the display priorities being used to indicate a probability of the homepage recommended contents receiving a trigger operation in the program homepage, the display priorities being determined based on at least one display parameter of display positions, display orders, and display area sizes of the plurality of homepage recommended contents in the program homepage; The loading priorities respectively corresponding to the plurality of home page contents are determined according to the display priority, and the loading priority is positively correlated with the display priority.
7. The method according to claim 2, characterized in that The step of reading, in response to receiving the status query request, a first content identifier corresponding to the first multimedia content from the status buffer comprises: In a case where the status buffer meets the loading requirement, in response to receiving the status query request, searching the status buffer for the first content identifier corresponding to the first multimedia content; In a case where the status buffer does not meet the loading requirement, in response to receiving the status query request, searching the database for the first content identifier corresponding to the first multimedia content; The loading requirement is used to indicate the loading progress of the content identifier in the status buffer.
8. The method according to claim 7, characterized in that The loading requirement includes at least one of the following: The content identifier has been loaded; or, The loading duration of the status buffer reaches a first preset duration corresponding to the first multimedia content, and the first preset duration is determined based on a loading priority corresponding to the first multimedia content.
9. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: In response to receiving a state change operation for second multimedia content, updating a mark state of the second multimedia content; Based on the updated marking state, the content identification in the state buffer is updated.
10. The method according to claim 9, characterized in that The updating of the content identifier in the status buffer based on the updated marking state includes: When the updated marking state indicates that the second multimedia content is marked, updating the second content identifier corresponding to the second multimedia content into the state buffer; In a case where the updated marking state indicates that the second multimedia content is unmarked, the second content identifier corresponding to the second multimedia content is deleted from the state buffer.
11. A device for determining a content marking state, characterized in that: The device comprises: A loading module, configured to load a content identifier corresponding to at least one marked multimedia content into a state buffer in response to the first application being started, wherein the content identifier is used to uniquely identify the multimedia content; a query module, configured to search the state buffer for a first content identifier corresponding to the first multimedia content in response to receiving a state query request, wherein the state query request is used to request to determine a marking state corresponding to the first multimedia content; The determination module is configured to determine, in response to the state buffer including the first content identifier, that the first multimedia content is marked in the first application.
12. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the method for determining the content marking status according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The storage medium stores at least one computer program, and the at least one computer program is loaded and executed by a processor to implement the method for determining a content marking status according to any one of claims 1 to 10.
14. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the method for determining the content marking status according to any one of claims 1 to 10.