Content updating method and device, computer device, storage medium and product

CN116931798BActive Publication Date: 2026-10-20TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210363741.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-07
Publication Date
2026-10-20
Estimated Expiration
2042-04-07

AI Technical Summary

Technical Problem

通常情况下,滑块视图容器中包含的滑块数量根据所需要的显示内容数量确定,比如,需要显示5个内容,则需要对应在滑块视图容器中设置5个滑块,每个滑块对应显示一个内容,当内容数量增加或者减少时,需要对滑块视图容器中的滑块数量进行调整,该方案灵活性差

Benefits of technology

[0015]本申请实施例通过响应于针对当前媒体内容的第一切换操作,确定滑块视图容器中与第一切换操作对应的目标内容滑块,当前媒体内容为通过滑块视图容器中的当前内容滑块显示;通过目标内容滑块显示对应的目标媒体内容;根据目标媒体内容,确定滑块视图容器中与目标内容滑块相邻的关联内容滑块所需对应的预期媒体内容;将关联内容滑块当前对应的媒体内容更新为预期媒体内容,以便通过关联内容滑块显示预期媒体内容。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116931798B_ABST
    Figure CN116931798B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a content updating method and device, computer equipment, storage medium and product. The method comprises the following steps: in response to a first switching operation for current media content, determining a target content slider in a slider view container corresponding to the first switching operation, the current media content being displayed through a current content slider in the slider view container; displaying corresponding target media content through the target content slider; determining expected media content corresponding to an associated content slider adjacent to the target content slider in the slider view container according to the target media content; and updating media content currently corresponding to the associated content slider to the expected media content, so as to display the expected media content through the associated content slider. In the scheme, the same content slider can correspond to different media content. When the media content is updated, the updated media content can be displayed only by updating the media content of the content slider, thereby improving the flexibility of the content slider in displaying media content.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, specifically to a content update method, apparatus, computer equipment, storage medium, and product, wherein the storage medium is a computer-readable storage medium, and the product is a computer program product. Background Technology

[0002] The slider view container supports switching between multiple sliders. If the slider view container contains three sliders, you can switch from slider 1 to slider 2, and from slider 2 to slider 3. The content displayed by the sliders can be images, videos, or text. Typically, the number of sliders in the slider view container is determined by the amount of content to be displayed. For example, if you need to display five pieces of content, you need to set five sliders in the slider view container, with each slider displaying one piece of content. When the amount of content increases or decreases, the number of sliders in the slider view container needs to be adjusted, which is inflexible. Summary of the Invention

[0003] This application provides a content updating method, apparatus, computer device, storage medium, and product that can improve the flexibility of displaying media content in a slider view container.

[0004] This application provides a content update method, including: In response to a first switching operation for the current media content, a target content slider in the slider view container corresponding to the first switching operation is determined, wherein the current media content is displayed through the current content slider in the slider view container; The target media content is displayed by the target content slider; Based on the target media content, determine the expected media content required for the associated content slider adjacent to the target content slider in the slider view container; Update the media content currently corresponding to the associated content slider to the expected media content, so that the expected media content can be displayed through the associated content slider.

[0005] Accordingly, this application also provides a content updating device, including: A slider determination unit is configured to, in response to a first switching operation for the current media content, determine a target content slider in a slider view container that corresponds to the first switching operation, wherein the current media content is displayed through the current content slider in the slider view container; The display unit is used to display the corresponding target media content via the target content slider; The content determination unit is used to determine, based on the target media content, the expected media content required for the associated content slider adjacent to the target content slider in the slider view container; The content update unit is used to update the media content currently corresponding to the associated content slider to the expected media content, so that the expected media content can be displayed through the associated content slider.

[0006] In one embodiment, the display unit includes: The target content determination subunit is used to determine the target media content to be displayed based on the current media content and the first switching operation; The content hiding subunit is used to hide the media content currently corresponding to the target content slider if the media content currently corresponding to the target content slider does not match the target media content. The content display subunit is used to update the media content currently corresponding to the target content slider to the target media content when switching to the target content slider in response to the first switching operation, and to display the corresponding target media content through the target content slider.

[0007] In one embodiment, the hidden subunit includes: The display content determination module is used to determine the display content slider to be displayed during the switching process in response to the first switching operation based on the number of switching operations included in the first switching operation. The display slider determination module is used to determine, from the display content sliders, a target display content slider that does not match the currently corresponding media content with the required expected media content, wherein the target display slider includes a target content slider; The content hiding module is used to hide the media content currently corresponding to the target display content slider.

[0008] In one embodiment, the content update unit includes: The target content hiding subunit is used to hide the media content currently corresponding to the target associated content slider if the media content currently corresponding to the target associated content slider does not match the expected content to be corresponding to it. The target associated content slider is the associated content slider in the slider switching direction indicated by the first switching operation. The update subunit is configured to update the media content currently corresponding to the associated content slider containing the target associated content slider to the expected media content when switching to the target content slider in response to the first switching operation.

[0009] In one embodiment, the expected media content is included in a content set, and the content updating device further includes: An acquisition unit is used to acquire the content set and the current media content, wherein the content set contains multiple media contents; The current content slider determination subunit is used to render a preset number of content sliders in the slider view container, and determine the current content slider corresponding to the current media content from the content sliders according to a preset strategy; The current media content display unit is used to display the current media content via the current content slider.

[0010] In one embodiment, the current content slider determining subunit includes: The quantity acquisition module is used to acquire the quantity of media content contained in the content set; The first rendering module is used to render a preset number of content sliders in the slider view container if the number of contents is greater than or equal to a preset threshold. The second rendering module is used to render a content slider that matches the content quantity in the slider view container if the content quantity is less than a preset threshold.

[0011] In one embodiment, the content updating device further includes: The receiving unit is configured to receive a second switching operation for the target media content; The loop unit is used to take the second switching operation as the first switching operation and the target media content as the current media content, and return to the execution of the step of determining the target content slider in the slider view container corresponding to the first switching operation until the target media content is the preset media content.

[0012] Accordingly, this application also provides a computer device including a memory and a processor; the memory stores a computer program, and the processor is used to run the computer program in the memory to execute any of the content update methods provided in this application.

[0013] Accordingly, embodiments of this application also provide a computer-readable storage medium for storing a computer program, which is loaded by a processor to execute any of the content update methods provided in embodiments of this application.

[0014] Accordingly, this application also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the content update methods provided in this application.

[0015] In this embodiment, in response to a first switching operation for the current media content, a target content slider corresponding to the first switching operation is determined in the slider view container, and the current media content is displayed through the current content slider in the slider view container; the corresponding target media content is displayed through the target content slider; based on the target media content, the expected media content corresponding to the associated content slider adjacent to the target content slider in the slider view container is determined; the media content currently corresponding to the associated content slider is updated to the expected media content so that the expected media content is displayed through the associated content slider.

[0016] This solution determines the expected media content required by the associated content slider by displaying the target media content in the target content slider, and updates the current media content of the associated content slider to the expected media content. This allows the same content slider to correspond to different media content. When the media content is updated, only the media content corresponding to the content slider needs to be updated to display the updated media content. There is no need to adjust the content corresponding to the content slider for the updated media content, nor is it necessary to add or delete content sliders, thereby improving the flexibility of displaying media content in the content slider in the slider view container. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a scenario diagram of the content update method provided in the embodiments of this application; Figure 2 This is a flowchart of the content update method provided in the embodiments of this application; Figure 3 This is another flowchart of the content update method provided in the embodiments of this application; Figure 4 This is a schematic diagram of the content slider switching provided in the embodiments of this application; Figure 5 This is another schematic diagram of content slider switching provided in an embodiment of this application; Figure 6 This is a schematic diagram of the content update device provided in an embodiment of this application; Figure 7 This is a schematic diagram of the structure of the computer device provided in the embodiments of this application. Detailed Implementation

[0019] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0020] This application provides a content update method, apparatus, computer device, and computer-readable storage medium. The content update apparatus can be integrated into a computer device, which may be a server or a terminal, etc.

[0021] The terminal may include mobile phones, wearable smart devices, tablets, laptops, personal computers (PCs), and in-vehicle computers, etc.

[0022] The server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

[0023] Taking computer devices as an example, such as Figure 1 As shown, in response to a first switching operation for the current media content, the terminal determines the target content slider in the slider view container corresponding to the first switching operation, and the current media content is displayed through the current content slider in the slider view container; the target media content is displayed through the target content slider; based on the target media content, the expected media content corresponding to the associated content slider adjacent to the target content slider in the slider view container is determined; the media content currently corresponding to the associated content slider is updated to the expected media content so that the expected media content is displayed through the associated content slider.

[0024] This solution determines the expected media content corresponding to the associated content slider by displaying the target media content in the target content slider, and updates the current media content of the associated content slider to the expected media content. This allows the same content slider to correspond to different media content. When the media content is updated, only the media content corresponding to the content slider needs to be updated to display the updated media content. There is no need to adjust the content corresponding to the content slider for the updated media content, nor is it necessary to add or delete content sliders, thus improving the flexibility of displaying media content in the content slider within the slider view container.

[0025] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the preferred order of the embodiments.

[0026] This embodiment will be described from the perspective of a content update device, which can be integrated into a computer device, such as a server or a terminal.

[0027] This application provides a content update method, such as... Figure 2 As shown, the specific process of this content update method can be as follows: 101. In response to a first switching operation for the current media content, determine the target content slider in the slider view container that corresponds to the first switching operation, and display the current media content through the current content slider in the slider view container.

[0028] The slider view container can be a program that supports swiping to switch displayed content. The slider container view can include a swiper, a touch-based content swiping plugin that enables switching effects such as touch-screen focus images, touch-screen tab switching, and touch-screen multi-image switching. The slider view container can contain multiple content sliders, each containing the media content to be displayed (such as images or videos). Responding to switching operations (such as swiping up or down or left or right on the terminal screen, or clicking on a switching control on the terminal), the content sliders switch to display different media content. The content slider switching process can be equipped with switching animations, such as ease-in animations, linear animations, and ease-out animations. Clients or web pages can use the slider view container to implement media content switching and display.

[0029] You can enable or disable looping for the content sliders in the content slider view. When looping is disabled, the content sliders at the beginning and end can only slide in the direction of the adjacent slider. When looping is enabled, the content sliders are essentially connected end-to-end. For example, assuming there are 5 sliders labeled 1 to 5, if looping is enabled, slider 1 can switch to slider 2, or switch to slider 5 in the other direction, and slider 5 can switch to slider 4 or slider 1. If looping is disabled, slider 1 can only switch to slider 2, and slider 5 can only switch to sliders 2 and 4.

[0030] The current content slider can be the content slider that is currently displayed, and the current media content can be the media content in the current content slider. The terminal displays the current media content through the current content slider.

[0031] The first switching operation can be used to indicate switching at least one content slider. For example, if the slider view container contains 5 content sliders and the current content slider is content slider A, the first switching operation can include switching content slider A to content slider B, and switching content slider A to content slider E, etc.

[0032] For example, the current media content can be displayed through the current content slider in the slider view container. If the switching method of the content slider in the slider view container is set to up and down sliding, the user can switch the displayed media content by sliding up and down.

[0033] Optionally, the first switching operation can be a sliding operation. The number of content sliders to be switched is determined based on the sliding distance of the sliding operation. For example, a unit distance is preset to switch one content slider. The number of sliders to be switched is determined based on the ratio between the sliding distance of the first switching operation and the preset unit distance. The target content slider is determined based on the number of sliders to be switched.

[0034] Optionally, the first switching operation may also include multiple switching operations, each switching operation can switch a content slider, and the target content slider is determined according to the number of switching operations included in the first switching operation.

[0035] When opening a client or webpage, the slider view container of the client or webpage needs to be initialized, specifying the content slider to be displayed by the client or webpage and the media content corresponding to the content slider. That is, in one embodiment, the expected media content is contained in a content set. Before the step "in response to a first switching operation for the current media content, determine the target content slider in the slider view container corresponding to the first switching operation," the content update method provided in this application embodiment may further include: Retrieve the content collection and the current media content; the content collection contains multiple media content items. Render a preset number of content sliders in the slider view container, and determine the current content slider corresponding to the current media content from the content sliders according to a preset strategy; The current media content is displayed using the current content slider.

[0036] The content collection can contain multiple media contents, and there is a display order among the multiple media contents. Clients or web pages can respond to switching operations and the display order of media contents to display the corresponding media contents.

[0037] For example, it could involve obtaining a content set and then retrieving the current media content based on the display order of the media content in the content set. For instance, it could determine the media content that is displayed first in the display order as the current media content, or it could retrieve a pre-specified media content from the content set as the current media content.

[0038] The slider view container renders a preset number of content sliders to display media content from the content collection. The first content slider in this preset number is designated as the current content slider, and the current media content is then filled into it. For example, if the slider view container has three content sliders—content slider A, content slider B, and content slider C—displayed in the order ABC, then content slider A is the first content slider. Content slider C corresponds to the current media content. Content sliders B and C correspond to media content in the content collection that is displayed after the current media content in the order of display. For example, if the current media content is n, then content slider B corresponds to media content n+1, and content slider C corresponds to n+2.

[0039] Optionally, the content slider in the middle position (slider B) of a preset number of content sliders can be used as the current content slider. If the number of content sliders contained in the slider view container is even, one of the two content sliders in the middle position can be used as the current content slider.

[0040] Optionally, the current content slider can be determined based on the display order of the current media content. Taking a content set containing 7 media contents (1,2,3,4,5,6,7) and the display order of the 7 media contents from left to right, and a slider view container containing 5 content sliders (A,B,C,D,E) as an example: Assuming the current media content is n, the 5 content sliders will display 5 media contents (n-2,n-1,n,n+1,n+2) respectively. Therefore, the current content slider is the content slider that displays media content n, i.e., content slider C.

[0041] If n-2, n-1, n+1, or n+2 exceeds the media content in the content set, then media content is selected in the opposite direction of the excess. For example, if n-2 exceeds the excess, then media content n+3 is selected in the opposite direction. The five content sliders display five media contents (n-1, n, n+1, n+2, n+3) respectively. At this time, the current content slider is slider B.

[0042] If the number of media content items in the content collection is less than the number of sliders in the slider view container, then media content not in the content collection will be displayed as empty. For example, if the content collection contains 3 media items (1, 2, 3), and the slider view container contains 5 content sliders (A, B, C, D, E), and the 5 content sliders display media content (1, 2, 3, 4, 5) respectively, where media content 4 and media content 5 do not belong to the content collection, then the actual media content corresponding to the 5 content sliders is (1, 2, 3, empty, empty). Optionally, any 3 content sliders can be selected from the content sliders to display media content.

[0043] The current media content is displayed using the current content slider.

[0044] If the number of content sliders in the slider view container exceeds the number of media content items in the content collection, some content sliders will lack corresponding media content, leading to wasted resources. Furthermore, when switching to that content slider, the client or webpage will display a blank page, causing display errors. Therefore, the number of media content items in the content collection can be obtained. If the number of items is less than a preset number, then content sliders matching that number are rendered. For example, if the content collection contains 3 media items, then correspondingly, 3 content sliders are rendered in the slider view container to display the media content. In one embodiment, the step "rendering a preset number of content sliders in the slider view container" can specifically include: Get the number of media contents contained in the content collection; If the amount of content is greater than or equal to a preset threshold, then the content slider with the preset amount will be rendered in the slider view container. If the amount of content is less than a preset threshold, a content slider matching the amount of content will be rendered in the slider view container.

[0045] For example, it could specifically retrieve the number of media contents contained in the content collection. If the number of contents is greater than or equal to a preset threshold, then render a preset number of content sliders in the slider view container; if the number of contents is less than the preset threshold, then render a content slider in the slider view that is equivalent to the number of contents, so as to display the media contents in the content collection respectively.

[0046] 102. Display the corresponding target media content using the target content slider.

[0047] For example, in response to the first switching operation, the current content slider can be switched to the target content slider, and the corresponding target media content can be displayed through the target content slider.

[0048] Since the first switching operation can switch multiple content sliders, the media content corresponding to the target content slider may not be updated to the correct target media content in time. If the media content corresponding to the target content slider is displayed at this time, the displayed content will be incorrect. For example, suppose the content set contains 7 media contents (1,2,3,4,5,6,7), and the slider view container contains 5 content sliders (A,B,C,D,E). The media content currently corresponding to the 5 content sliders is (1,2,3,4,5). The current content slider is content slider D, and the current media content is media content 4. The first switching operation switches content slider D to content slider B. At this time, media content 7 should be displayed through content slider B. However, the media content corresponding to content slider B is 2. Therefore, when the media content corresponding to the target content slider is not the target media content, the media content needs to be updated so that the correct media content can be displayed. That is, in one embodiment, the step "display the corresponding target media content through the target content slider" includes: Based on the current media content and the first switching operation, determine the target media content to be displayed; If the media content currently corresponding to the target content slider does not match the target media content, then the media content currently corresponding to the target content slider will be hidden. When switching to the target content slider in response to the first switching operation, the media content currently corresponding to the target content slider is updated to the target media content, and the corresponding target media content is displayed through the target content slider.

[0049] Since the first switching operation can switch at least one content slider, which is equivalent to switching a corresponding number of media contents, the target media content to be displayed can be determined based on the current media content and the first switching operation. For example, if there are content sliders abcd, media content abcd, the current content slider is a, the current media content is a, and the first switching operation means switching 3 content sliders, which is equivalent to switching the media content 3 times. If the first switching operation needs to switch to the target content slider - content slider d, then the media content needs to be switched to the target media content - media content d.

[0050] Hiding the media content of the target content slider can be achieved by replacing the media content of the target content slider with the target media content during the switching process. Optionally, the media content can also be hidden using a preset image. Specifically, when the media content currently corresponding to the target content slider does not match the target media content, the target content can be covered with a preset image on top of the target media content, so that the content displayed by the target content slider is the preset image, which may contain text that is loading.

[0051] The first switching operation can switch at least one content slider. When the first switching operation includes multiple switching operations, during the process of switching to the target content slider, when passing through the intermediate content slider between the current content slider and the target content slider, the media content of the intermediate content slider may be inconsistent with the media content to be displayed. Therefore, it is also necessary to hide the media content of the intermediate content slider. That is, in one embodiment, the step "if the media content currently corresponding to the target content slider does not match the target media content, then hide the media content currently corresponding to the target content slider" may specifically include: Based on the number of switching operations included in the first switching operation, determine the display content slider that needs to be displayed during the switching process in response to the first switching operation; The target display slider is determined from the display content sliders to identify the target display content slider that does not match the current corresponding media content with the expected corresponding media content. Hide the media content currently corresponding to the target display content slider.

[0052] The content slider can include a target content slider and an intermediate content slider.

[0053] The expected media content refers to the media content that needs to be displayed.

[0054] For example, a media content update mechanism can be set up so that when the current media content is displayed, the media content of the k adjacent content sliders of the current content slider is updated, but the media content of other content sliders is not updated. Then, when switching m (m≤k) content sliders from the current content slider, the media content corresponding to the m content sliders is the expected media content. When switching n (n>k) content sliders from the current content slider, the media content corresponding to the k adjacent content sliders is the expected media content, and the media content corresponding to the k+1 to n adjacent content sliders is not the expected content. When the number of switching operations exceeds k, there will be content sliders whose media content is not the expected media content.

[0055] For example, if the content collection contains 7 media content items (1,2,3,4,5,6,7), and the slider view container contains 5 content sliders (A,B,C,D,E), and the current content slider is content slider C, corresponding to media content 3, then update the media content of the two content sliders to the left and the two content sliders to the right of content slider C. The 5 content sliders now correspond to media content (1,2,3,4,5). When the first toggle operation contains 4 toggle operations, the target content slider is content slider B, and the media content of content sliders D and E is the expected media content to be displayed. Content slider A should display media content 6, and content slider B should display media content 7.

[0056] Understandably, the first switching operation can also switch the content slider in the other direction. For example, the first switching operation includes 4 switching operations, which can switch to the target content slider: content slider D by switching from the current content slider C to content slider B to content slider A to content slider E to content slider D.

[0057] The number of switching operations included in the first switching operation is determined, which is the number of content sliders to be switched. Based on the number of switching operations, the display content sliders to be displayed are determined, and the target display content slider whose media content does not match the expected media content is identified. The media content of the target display content slider is then hidden.

[0058] 103. Based on the target media content, determine the expected media content required for the associated content sliders adjacent to the target content slider in the slider view container.

[0059] Among them, the associated content slider is the content slider in the slider view container that is adjacent to the target content slider. For example, the associated content slider can be k content sliders that are adjacent to the target content slider, where k≥1.

[0060] For example, the target media content can be displayed through a target content slider. When a switching operation is performed on the target content slider, the media content to be displayed in response to the switching operation is the expected media content required by the associated content slider.

[0061] The following example illustrates this: The content collection contains 7 media contents (1,2,3,4,5,6,7), and the slider view container contains 5 content sliders (A,B,C,D,E). The 5 content sliders currently correspond to media contents (1,2,3,4,5) respectively. The current content slider is content slider C, which corresponds to media content 3. When the content slider is updated from content slider C to content slider D, media content 4 is displayed. The associated content sliders are the two content sliders adjacent to the target content slider in each switching direction.

[0062] When switching from content slider D to content slider E, media content 5 should be displayed, which is the expected media content of content slider E; when switching from content slider D to content slider A, media content 6 should be displayed; when switching from content slider D to content slider C, media content 3 should be displayed; when switching from content slider D to content slider B, media content 2 should be displayed.

[0063] Then, the media content of the content sliders can be updated based on the expected media content required by the associated content sliders, resulting in media content (6, 2, 3, 4, 5) for the 5 content sliders.

[0064] 104. Update the media content currently corresponding to the associated content slider to the expected media content so that the expected media content can be displayed through the associated content slider.

[0065] For example, the media content of the content slider can be updated based on the expected media content required by the associated content slider.

[0066] Optionally, a switching animation can be set when the content slider changes. The media content corresponding to the associated content slider can be updated during the switching animation or after the switching animation ends.

[0067] Since the media content corresponding to the associated content slider of the target content slider may not be the expected media content it requires, in order to prevent the user from inputting a switching operation during the process of switching to the target content slider, causing the media content displayed through the associated content slider to be incorrect, the media content of the associated content slider can be hidden during the process of switching to the target content slider. That is, in one embodiment, the step "update the media content currently corresponding to the associated content slider to the expected media content" includes: If the media content currently corresponding to the target associated content slider does not match the expected content, the media content currently corresponding to the target associated content slider will be hidden. The target associated content slider is the associated content slider in the slider switching direction indicated by the first switching operation. When switching to the target content slider in response to the first switching operation, the media content currently corresponding to the associated content slider containing the target associated content slider will be updated to the expected media content.

[0068] The target related content slider can be a related content slider of the target content slider in the slider switching direction. For example, if the first switching direction is to slide the slider downwards, then the target related content slider is at least one related content slider of the target content slider in the downward direction.

[0069] For example, if the media content corresponding to the target associated content slider does not match the expected content, then the media content corresponding to the target associated content slider can be hidden.

[0070] When switching to the target content slider in response to the first switching operation, the media content currently corresponding to the associated content slider will be updated to the expected media content.

[0071] After displaying the target media content via the target content slider and updating the media content corresponding to the associated content slider, upon receiving a switching operation, the method can respond to the switching operation based on the updated media content. Specifically, the content update method provided in this application embodiment may further include: Receive a second switching operation for the target media content; The second switching operation is used as the first switching operation, and the target media content is used as the current media content. The process returns to the target content slider in the execution confirmation slider view container corresponding to the first switching operation until the target media content is the preset media content.

[0072] For example, the target media content can be displayed through a target content slider. When a second switching operation is received for the target media content, the second switching operation is treated as the first switching operation, and steps 101-104 are executed until the target media content is the specified media content, or the target media content is the first or last media content in the content set.

[0073] As can be seen from the above, in response to a first switching operation for the current media content, this embodiment of the application determines the target content slider in the slider view container corresponding to the first switching operation, and the current media content is displayed through the current content slider in the slider view container; the corresponding target media content is displayed through the target content slider; based on the target media content, the expected media content required by the associated content slider adjacent to the target content slider in the slider view container is determined; the media content currently corresponding to the associated content slider is updated to the expected media content so that the expected media content is displayed through the associated content slider.

[0074] This solution determines the expected media content required by the associated content slider by displaying the target media content in the target content slider, and updates the current media content of the associated content slider to the expected media content. This allows the same content slider to correspond to different media content. When the media content is updated, only the media content corresponding to the content slider needs to be updated to display the updated media content. There is no need to adjust the content corresponding to the content slider for the updated media content, nor is it necessary to add or delete content sliders, thereby improving the flexibility of displaying media content in the content slider in the slider view container.

[0075] Based on the above embodiments, the following examples will provide further detailed explanations.

[0076] This embodiment will be described from the perspective of a content update device, using a content set as a content list, with the content update device specifically integrated into a terminal as an example. This application provides a content update method, such as... Figure 3 As shown, the specific process of this content update method can be as follows: 201. The terminal obtains a content list. If the number of media contents in the content list is greater than a preset threshold, the terminal renders a preset number of content sliders in the slider view container.

[0077] For example, the terminal can obtain a content list from the server. If the number of media contents in the content list is greater than a preset threshold, a preset number of content sliders will be rendered in the slider view container, and a loop will be started. The preset number can be a pre-set value, such as 5. To describe this solution more clearly, the following explanation will use a preset number of 5.

[0078] The media content in the content list has a corresponding display order, which can be the identifier or index of the media content. The corresponding media content can be determined based on the display order.

[0079] If the switching direction of the content slider is set to switch up and down, the preset number of content sliders contained in the slider view container can be as shown in the figure.

[0080] If the number of contents is less than a preset threshold, a content slider equivalent to the number of contents will be rendered in the slider view to display the media content in the content collection separately, and the loop will be turned off.

[0081] 202. In response to the first switching operation for the current media content, the terminal determines the target content slider in the slider view container that corresponds to the first switching operation.

[0082] For example, the first switching operation may also include multiple switching operations, each of which can switch a content slider. The target content slider is determined based on the number of switching operations included in the first switching operation.

[0083] For example, a slider view container such as Figure 4 As shown, the current content slider is slider C. If the first switching operation is the user swiping down once on the terminal screen, the target content slider is slider D; if the first switching operation is the user swiping up once on the terminal screen, the target content slider is slider B; if the first switching operation is the user swiping down twice on the terminal screen, the target content slider is slider E; if the first switching operation is the user swiping down three times on the terminal screen, the target content slider is slider A.

[0084] 203. The terminal determines the target media content to be displayed based on the current media content and the first switching operation.

[0085] Since the first switching operation can switch at least one content slider, which is equivalent to switching a corresponding number of media contents, the target media content to be displayed can be determined based on the current media content and the first switching operation. For example, if there are content sliders abcd, media content abcd, the current content slider is a, the current media content is a, and the first switching operation means switching 3 content sliders, which is equivalent to switching the media content 3 times. If the first switching operation needs to switch to the target content slider - content slider d, then the media content needs to be switched to the target media content - media content d.

[0086] 204. The terminal determines the display content slider to be displayed during the switching process in response to the first switching operation based on the number of switching operations included in the first switching operation.

[0087] For example, the specific method could be based on the number of switching operations included in the first switching operation, where the number of switching operations is the number of content sliders to be switched, and then the display content sliders to be displayed could be determined based on the number of switching operations.

[0088] If the first switching operation count contains only one switching operation, then the displayed content slider is the target content slider.

[0089] 205. The terminal determines the target display content slider from the display content slider that does not match the expected media content, and hides the media content currently corresponding to the target display content slider.

[0090] For example, a media content update mechanism can be set up so that when the current media content is displayed, the media content of the two adjacent content sliders in each sliding direction of the current content slider is updated, but the media content of other content sliders is not updated. Then, when switching from the current content slider to m (m≤2) content sliders, the media content corresponding to the m content sliders is the expected media content. When switching from the current content slider to n (n>2) content sliders, the media content corresponding to the two adjacent content sliders in each sliding direction is the expected media content, but the media content corresponding to the 3 to n adjacent content sliders is not the expected content. Therefore, when the number of switching operations exceeds k, there will be content sliders whose media content is not the expected media content.

[0091] The terminal determines that the media content in the target display content slider does not match the expected media content, and hides the media content in the target display content slider.

[0092] For example, the terminal displays media content 4 via content slider 4. When the user swipes down three times consecutively on the terminal screen, the terminal responds by switching the content slider as shown in the diagram below. Figure 5As shown, during the first switch, content slider 4 slides off the terminal screen, and content slider 5 slides onto the terminal screen. The content corresponding to content slider 5 is media content 5, and the media content corresponding to content slider 1 is the expected media content 6. The terminal does not need to perform any operation. During the second switch, content slider 5 slides off the terminal screen, and content slider 1 slides onto the terminal screen. The media content of the next content slider—content slider 2—is media content 2, while the expected media content of content slider 2 is media content 7. Therefore, media content 2 is immediately hidden. During the third switch, content slider 2 slides off the terminal screen, and content slider 3 slides onto the terminal screen. The media content of the next content slider—content slider 3—is media content 3, while the expected media content of content slider 3 is media content 8. Therefore, media content 8 is immediately hidden. During the first, second, and third switches, the switching animation is continuous. After the switching animation of the third switch ends, the terminal displays the media content through content slider 3.

[0093] 206. When switching to the target content slider in response to the first switching operation, update the media content currently corresponding to the associated content slider to the expected media content.

[0094] For example, a media content update mechanism can be set up so that when the current media content is displayed, the media content of the two adjacent content sliders in each sliding direction of the current content slider is updated.

[0095] When switching to the target content slider, the media content currently corresponding to the associated content slider will be updated to the expected media content.

[0096] Optionally, if the media content corresponding to the target content slider is not the target media content, the media content of the target content slider is updated to the target media content; if the media content corresponding to the target content slider is the target media content, it is displayed directly without updating.

[0097] In the example of step 205, the media content corresponding to the target content slider and the target associated content slider is updated to the target media content, and the media content corresponding to the content slider is (6,7,8,9,5).

[0098] 207. Display the corresponding target media content using the target content slider.

[0099] As can be seen from the above, in this embodiment of the application, the terminal obtains a content list. If the number of media contents contained in the content list is greater than a preset threshold, the terminal renders a preset number of content sliders in the slider view container. In response to a first switching operation for the current media content, the terminal determines the target content slider in the slider view container corresponding to the first switching operation. Based on the current media content and the first switching operation, the terminal determines the target media content to be displayed. Based on the number of switching operations included in the first switching operation, the terminal determines the display content slider to be displayed during the switching process in response to the first switching operation. The terminal identifies a target display content slider from the display content sliders whose current corresponding media content does not match the expected media content, and hides the media content currently corresponding to the target display content slider. When switching to the target content slider in response to the first switching operation, the terminal updates the media content currently corresponding to the associated content slider to the expected media content. The terminal then displays the corresponding target media content through the target content slider.

[0100] This solution determines the expected media content required by the associated content slider by displaying the target media content in the target content slider, and updates the current media content of the associated content slider to the expected media content. This allows the same content slider to correspond to different media content. When the media content is updated, only the media content corresponding to the content slider needs to be updated to display the updated media content. There is no need to adjust the content corresponding to the content slider for the updated media content, nor is it necessary to add or delete content sliders, thereby improving the flexibility of displaying media content in the content slider in the slider view container.

[0101] To facilitate better implementation of the content update method provided in the embodiments of this application, a content update apparatus is also provided in one embodiment. The meanings of the terms used are the same as in the content update method described above, and specific implementation details can be found in the description of the method embodiments.

[0102] This content update device can be integrated into computer devices, such as... Figure 6 As shown, the content updating device may include: a slider determining unit 301, a display unit 302, a content determining unit 303, and a content updating unit 304, as detailed below: (1) Slider determination unit, used to determine the target content slider in the slider view container corresponding to the first switching operation in response to the first switching operation for the current media content, wherein the current media content is displayed through the current content slider in the slider view container.

[0103] (2) Display unit, used to display the corresponding target media content through the target content slider.

[0104] In one embodiment, the display unit may include a target content determination subunit, a content hiding subunit, and a content display subunit, specifically: The target content determination subunit is used to determine the target media content to be displayed based on the current media content and the first switching operation; The content hiding subunit is used to hide the media content currently corresponding to the target content slider if the media content does not match the target media content. The content display subunit is used to update the media content currently corresponding to the target content slider to the target media content when switching to the target content slider in response to the first switching operation, and to display the corresponding target media content through the target content slider.

[0105] In one embodiment, the hidden subunit may include a display content determination module, a display slider determination module, and a content hiding module, specifically: The display content determination module is used to determine the display content slider to be displayed during the switching process in response to the first switching operation based on the number of switching operations included in the first switching operation. The display slider determination module is used to determine the target display content slider from the display content slider where the current corresponding media content does not match the expected corresponding media content. The target display slider includes the target content slider. The content hiding module is used to hide the media content currently corresponding to the target display content slider.

[0106] (3) Content determination unit, used to determine the expected media content required for the associated content slider adjacent to the target content slider in the slider view container based on the target media content.

[0107] (4) Content update unit, used to update the media content currently corresponding to the associated content slider to the expected media content, so that the expected media content can be displayed through the associated content slider.

[0108] In one embodiment, the content update unit may include a target content hiding subunit and an update subunit, specifically: The target content hiding subunit is used to hide the media content currently corresponding to the target associated content slider if the media content currently corresponding to the target associated content slider does not match the expected content to be corresponding to it. The target associated content slider is the associated content slider in the slider switching direction indicated by the first switching operation. The update subunit is used to update the media content currently corresponding to the associated content slider containing the target associated content slider to the expected media content when switching to the target content slider in response to the first switching operation.

[0109] In one embodiment, the expected media content is included in a content set, and the content updating device may further include an acquisition unit, a current content slider determination subunit, and a current media content display unit, specifically: The acquisition unit is used to acquire a content collection and the current media content. The content collection contains multiple media content items. The current content slider determination sub-unit is used to render a preset number of content sliders in the slider view container, and determine the current content slider corresponding to the current media content from the content sliders according to a preset strategy; The current media content display unit is used to display the current media content via the current content slider.

[0110] In one embodiment, the current content slider determination subunit may include a quantity acquisition module, a first rendering module, and a second rendering module, specifically: The quantity acquisition module is used to obtain the quantity of media content contained in the content collection; The first rendering module is used to render a preset number of content sliders in the slider view container if the number of content is greater than or equal to a preset threshold. The second rendering module is used to render a content slider that matches the content quantity in the slider view container if the content quantity is less than a preset threshold.

[0111] In one embodiment, the content updating apparatus may further include a receiving unit and a looping unit, specifically: The receiving unit is used to receive a second switching operation for the target media content; The loop unit is used to take the second switching operation as the first switching operation, and the target media content as the current media content. It then returns to the target content slider in the execution confirmation slider view container corresponding to the first switching operation until the target media content is the preset media content.

[0112] As can be seen from the above, the content update device in this embodiment responds to the first switching operation for the current media content by having the slider determination unit 301 determine the target content slider in the slider view container corresponding to the first switching operation, and the current media content is displayed through the current content slider in the slider view container; the display unit 302 displays the corresponding target media content through the target content slider; the content determination unit 303 determines the expected media content required by the associated content slider adjacent to the target content slider in the slider view container according to the target media content; finally, the content update unit 304 updates the media content currently corresponding to the associated content slider to the expected media content so that the expected media content can be displayed through the associated content slider.

[0113] This solution determines the expected media content required by the associated content slider by displaying the target media content in the target content slider, and updates the current media content of the associated content slider to the expected media content. This allows the same content slider to correspond to different media content. When the media content is updated, only the media content corresponding to the content slider needs to be updated to display the updated media content. There is no need to adjust the content corresponding to the content slider for the updated media content, nor is it necessary to add or delete content sliders, thereby improving the flexibility of displaying media content in the content slider in the slider view container.

[0114] This application also provides a computer device, which can be a terminal or a server, such as... Figure 7 As shown, it illustrates a structural schematic diagram of the computer device involved in the embodiments of this application, specifically: The computer device may include components such as a processor 1001 with one or more processing cores, a memory 1002 with one or more computer-readable storage media, a power supply 1003, and an input unit 1004. Those skilled in the art will understand that... Figure 7 The computer device structure shown does not constitute a limitation on the computer device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein: The processor 1001 is the control center of the computer device. It connects various parts of the computer device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 1002, and by calling data stored in the memory 1002, it performs various functions of the computer device and processes data, thereby performing overall detection of the computer device. Optionally, the processor 1001 may include one or more processing cores; preferably, the processor 1001 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and computer programs, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 1001.

[0115] The memory 1002 can be used to store software programs and modules. The processor 1001 executes various functional applications and data processing by running the software programs and modules stored in the memory 1002. The memory 1002 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, computer programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 1002 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 1002 may also include a memory controller to provide the processor 1001 with access to the memory 1002.

[0116] The computer equipment also includes a power supply 1003 that supplies power to the various components. Preferably, the power supply 1003 can be logically connected to the processor 1001 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 1003 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0117] The computer device may also include an input unit 1004, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0118] Although not shown, the computer device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 1001 in the computer device loads the executable files corresponding to the processes of one or more computer programs into the memory 1002 according to the following instructions, and the processor 1001 runs the computer programs stored in the memory 1002 to realize various functions, as follows: In response to a first switching operation for the current media content, a target content slider corresponding to the first switching operation is determined in the slider view container, and the current media content is displayed through the current content slider in the slider view container; The target media content is displayed by using the target content slider; Based on the target media content, determine the expected media content required for the associated content slider adjacent to the target content slider in the slider view container; Update the media content currently corresponding to the associated content slider to the expected media content, so that the expected media content can be displayed through the associated content slider.

[0119] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0120] As can be seen from the above, the computer device in this application embodiment can, in response to a first switching operation for the current media content, determine the target content slider in the slider view container corresponding to the first switching operation, and the current media content is displayed through the current content slider in the slider view container; display the corresponding target media content through the target content slider; determine the expected media content required by the associated content slider adjacent to the target content slider in the slider view container according to the target media content; update the media content currently corresponding to the associated content slider to the expected media content, so as to display the expected media content through the associated content slider.

[0121] This solution determines the expected media content required by the associated content slider by displaying the target media content in the target content slider, and updates the current media content of the associated content slider to the expected media content. This allows the same content slider to correspond to different media content. When the media content is updated, only the media content corresponding to the content slider needs to be updated to display the updated media content. There is no need to adjust the content corresponding to the content slider for the updated media content, nor is it necessary to add or delete content sliders, thereby improving the flexibility of displaying media content in the content slider in the slider view container.

[0122] According to one aspect of this application, a computer program product is provided, comprising a computer program containing computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations of the above embodiments.

[0123] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by a computer program, or by a computer program controlling related hardware. The computer program can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0124] Therefore, embodiments of this application provide a computer-readable storage medium storing a computer program that can be loaded by a processor to execute any of the content update methods provided in embodiments of this application.

[0125] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0126] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0127] Since the computer program stored in the computer-readable storage medium can execute any of the content update methods provided in the embodiments of this application, the beneficial effects that any of the content update methods provided in the embodiments of this application can achieve can be realized, as detailed in the preceding embodiments, and will not be repeated here.

[0128] The foregoing has provided a detailed description of a content update method, apparatus, computer device, and computer-readable storage medium provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A content updating method, characterized in that, include: In response to a first switching operation for the current media content, a target content slider corresponding to the first switching operation is determined in the slider view container, wherein the current media content is displayed through the current content slider in the slider view container, and the target content slider is determined based on the number of switching operations of the first switching operation; The target media content is displayed by the target content slider; Based on the target media content, determine the expected media content required for the associated content slider adjacent to the target content slider in the slider view container; The media content currently corresponding to the associated content slider is updated to the expected media content, so that when responding to a new switching operation, the expected media content is displayed through the associated content slider during the switching process.

2. The method according to claim 1, characterized in that, The step of displaying the corresponding target media content via the target content slider includes: Based on the current media content and the first switching operation, determine the target media content to be displayed; If the media content currently corresponding to the target content slider does not match the target media content, then the media content currently corresponding to the target content slider will be hidden. When switching to the target content slider in response to the first switching operation, the media content currently corresponding to the target content slider is updated to the target media content, and the corresponding target media content is displayed through the target content slider.

3. The method according to claim 2, characterized in that, If the media content currently corresponding to the target content slider does not match the target media content, then hiding the media content currently corresponding to the target content slider includes: Based on the number of switching operations included in the first switching operation, determine the display content slider to be displayed during the switching process in response to the first switching operation; From the display content sliders, determine the target display content slider that does not match the currently corresponding media content with the required corresponding expected media content, wherein the target display slider includes the target content slider; Hide the media content currently corresponding to the target display content slider.

4. The method according to claim 2, characterized in that, The step of updating the media content currently corresponding to the associated content slider to the expected media content includes: If the media content currently corresponding to the target associated content slider does not match the expected content, the media content currently corresponding to the target associated content slider is hidden. The target associated content slider is the associated content slider in the slider switching direction indicated by the first switching operation. When switching to the target content slider in response to the first switching operation, the media content currently corresponding to the associated content slider containing the target associated content slider will be updated to the expected media content.

5. The method according to claim 1, characterized in that, The expected media content is contained in a content collection. Before determining the target content slider in the slider view container corresponding to the first switching operation in response to the first switching operation for the current media content, the method further includes: Obtain the content set and the current media content, wherein the content set contains multiple media content items; A preset number of content sliders are rendered in the slider view container, and the current content slider corresponding to the current media content is determined from the content sliders according to a preset strategy; The current media content is displayed via the current content slider.

6. The method according to claim 5, characterized in that, The step of rendering a preset number of content sliders in the slider view container includes: Obtain the number of media contents contained in the content set; If the number of contents is greater than or equal to a preset threshold, then a preset number of content sliders are rendered in the slider view container; If the amount of content is less than a preset threshold, then a content slider matching the amount of content is rendered in the slider view container.

7. The method according to any one of claims 1-6, characterized in that, After updating the media content corresponding to the associated content slider to the expected media content, the method further includes: Receive a second switching operation for the target media content; The second switching operation is used as the first switching operation, and the target media content is used as the current media content. The process returns to determining the target content slider in the slider view container corresponding to the first switching operation until the target media content is the preset media content.

8. A content updating device, characterized in that, include: A slider determination unit is used to determine a target content slider in a slider view container corresponding to the first switching operation in response to a first switching operation for the current media content. The current media content is displayed through the current content slider in the slider view container, and the target content slider is determined based on the number of switching operations of the first switching operation. The display unit is used to display the corresponding target media content via the target content slider; The content determination unit is used to determine, based on the target media content, the expected media content required for the associated content slider adjacent to the target content slider in the slider view container; The content update unit is used to update the media content currently corresponding to the associated content slider to the expected media content, so that when responding to a new switching operation, the expected media content is displayed through the associated content slider during the switching process.

9. A computer device, characterized in that, It includes a memory and a processor; the memory stores a computer program, and the processor is used to run the computer program in the memory to perform the content update method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium is used to store a computer program, which is loaded by a processor to perform the content update method according to any one of claims 1 to 7.

11. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the content update method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Data matching method and device

    CN110096201A