Resource refreshing method and related apparatus
By detecting user switching operations on multiple media resources, determining whether refresh conditions are met, and displaying controls, the problem of unfriendly short video resource refresh in existing technologies is solved, and intelligent resource refresh operation is realized.
Patent Information
- Application Number
- PCT/CN2025/090116
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-06-24
- Filing Date
- 2025-04-21
- Publication Date
- 2026-01-02
AI Technical Summary
In existing technologies, short video resource refresh operations rely on implicit gesture operations familiar to users, resulting in an unfriendly and low level of intelligence, making it difficult to accurately and effectively trigger resource refresh.
By detecting user switching operations on multiple media resources played in succession, it determines whether the resource refresh conditions are met, and displays a resource refresh control on the resource playback interface to refresh the resource stream in response to user operations.
It reduces the difficulty of triggering media resource refreshes and improves the level of intelligence, enabling users to automatically refresh resources based on user interests without needing to understand implicit operation functions in advance.
Smart Images

Figure CN2025090116_02012026_PF_FP_ABST
Abstract
Description
A resource refreshing method and related device
[0001] The present application claims priority to the Chinese patent application No. 2024108231991, filed on June 24, 2024, and entitled "A resource refreshing method and related device", the whole content of which is incorporated herein by reference. TECHNICAL FIELD
[0002] The present application relates to the technical field of computer, and in particular, to a resource refreshing method and related device. BACKGROUND
[0003] As a resource for spreading Internet content, short video resources have gradually become an important carrier for many users to obtain information, obtain services, interact, and entertain. Many application programs currently have a short video playing function, supporting users to watch short video resources on the platform through the function.
[0004] When the background server of the application program recommends short video resources to the user, it usually recommends a batch of short video resources to the user in the form of a resource stream; correspondingly, the user can watch each short video resource in the batch of short video resources one by one by triggering a sliding operation in the resource playing interface. Referring to FIG. 1, which is a schematic diagram of a resource playing interface in the related art, when the user is not interested in the current batch of short video resources recommended, the user can trigger the background server to recommend a new batch of short video resources by clicking or double-clicking a specific label (such as the "recommended" label in the interface shown in FIG. 1) in the resource playing interface, or by clicking the top of the resource playing interface, to realize refreshing the short video resources.
[0005] However, the above-mentioned operation modes for triggering the refreshing of short video resources all belong to implicit operations, which require the user to be familiar with the functions actually corresponding to various gesture operations supported by the resource playing interface, and are not friendly to users who do not understand the related gesture operations, and it is difficult to accurately and effectively trigger the refreshing of short video resources. Moreover, the refreshing of short video resources is completely triggered manually by the user, and the intelligent degree is low. SUMMARY
[0006] The present application provides a resource refreshing method and related device, which can reduce the triggering difficulty of refreshing short video resources, and can improve the intelligent degree of refreshing short video resources.
[0007] The first aspect of the present application provides a resource refreshing method, executed by a computer device, the method comprising:
[0008] receiving resource switching operations triggered respectively by a plurality of original media resources continuously played in a resource playing interface; the plurality of original media resources belong to an original resource stream;
[0009] If the resource switching operations triggered respectively for the plurality of original media resources satisfy a resource refreshing condition, a resource refreshing control is displayed in the resource playing interface;
[0010] In response to a resource refreshing operation triggered through the resource refreshing control, an updated media resource is played in the resource playing interface; the updated media resource belongs to an updated resource stream, and the updated resource stream is different from the original resource stream.
[0011] The second aspect of the present application provides a resource refreshing device, the device comprising:
[0012] A receiving module is configured to receive resource switching operations triggered respectively for a plurality of original media resources played continuously in a resource playing interface; the plurality of original media resources belong to an original resource stream;
[0013] A display module is configured to display a resource refreshing control in the resource playing interface if the resource switching operations triggered respectively for the plurality of original media resources satisfy a resource refreshing condition;
[0014] A playing module is configured to play an updated media resource in the resource playing interface in response to a resource refreshing operation triggered through the resource refreshing control; the updated media resource belongs to an updated resource stream, and the updated resource stream is different from the original resource stream.
[0015] The third aspect of the present application provides a computer device, the device comprising a processor and a memory:
[0016] The memory is configured to store a computer program;
[0017] The processor is configured to execute steps of the resource refreshing method according to the computer program.
[0018] The fourth aspect of the present application provides a computer readable storage medium, the computer readable storage medium is configured to store a computer program, the computer program is configured to execute steps of the resource refreshing method according to the first aspect.
[0019] The fifth aspect of the present application provides a computer program product or a computer program, the computer program product or the computer program comprising 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 the processor executes the computer instructions, so that the computer device executes steps of the resource refreshing method according to the first aspect.
[0020] From the above technical solutions, it can be seen that the embodiments of the present application have the following advantages:
[0021] The embodiment of the present application provides a resource refreshing method, which innovatively provides a way of refreshing media resources through an explicit control. In the method, after a terminal device receives resource switching operations triggered by a user for a plurality of original media resources played continuously in a resource playing interface, the resource switching operations are judged. If the resource switching operations triggered by the user for the plurality of original media resources meet resource refreshing conditions, a resource refreshing control can be displayed in the resource playing interface. For example, if the terminal device detects that the user triggers a sliding operation in a short time for the plurality of original media resources played continuously, the resource refreshing control can be displayed in the resource playing interface. Then, the terminal device can refresh the media resources played in the resource playing interface in response to a resource refreshing operation triggered through the resource refreshing control, that is, refresh the original media resources played in the resource playing interface into updated media resources different from the original media resources, the updated media resources belonging to an updated resource stream, the updated resource stream being different from an original resource stream to which the plurality of original media resource streams belong. In this way, the user can trigger the updated media resources in the updated resource stream to refresh the media resources through the resource refreshing control displayed in the resource playing interface, without the user knowing the function corresponding to the implicit operation in advance, so that the difficulty of triggering the media resource refreshing is reduced. Meanwhile, the resource switching operations triggered by the user for the plurality of original media resources played continuously are detected through the method, so that whether the user is interested in the original resource stream currently played can be determined. In the case that the resource switching operations triggered by the user meet the resource refreshing conditions, it can be considered that the user is not interested in the media resources in the original resource stream currently played. At this time, the resource refreshing control is displayed to provide the user with the resource refreshing function, so that the intelligent degree of the media resource refreshing is improved. BRIEF DESCRIPTION OF DRAWINGS
[0022] FIG. 1 is a schematic diagram of a resource playing interface provided by the related art;
[0023] FIG. 2 is a schematic diagram of an application scenario of a resource refreshing method provided by the embodiment of the present application;
[0024] FIG. 3 is a flow diagram of a resource refreshing method provided by the embodiment of the present application;
[0025] FIG. 4 is a schematic diagram of a resource playing interface provided by the embodiment of the present application;
[0026] FIG. 5 is a schematic diagram of an interface for displaying a resource refreshing control provided by the embodiment of the present application;
[0027] FIG. 6 is a schematic diagram of an interface for displaying refreshing function prompt information provided by the embodiment of the present application;
[0028] FIG. 7 is a schematic diagram of an interface for canceling the display of refreshing function prompt information provided by the embodiment of the present application;
[0029] FIG. 8 is a structural schematic diagram of a resource refreshing apparatus provided by an embodiment of the present application;
[0030] FIG. 9 is a structural schematic diagram of a terminal device provided by an embodiment of the present application;
[0031] FIG. 10 is a structural schematic diagram of a server provided by an embodiment of the present application. DETAILED DESCRIPTION
[0032] The resource refreshing method provided by the embodiments of the present application can be executed by a computer device, which can be a terminal device or a server. The terminal device includes but is not limited to a mobile phone, a computer, a smart voice interaction device, a smart home appliance, a vehicle-mounted terminal, an aircraft, etc. The server can be a standalone physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server.
[0033] It should be noted that the information, data and signals involved in the embodiments of the present application are all authorized by the relevant objects or fully authorized by all parties, and the collection, use and processing of the relevant data comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0034] In order to facilitate the understanding of the resource refreshing method provided by the embodiments of the present application, the application scenario of the resource refreshing method will be exemplarily introduced below taking the terminal device as an example.
[0035] Referring to FIG. 2, FIG. 2 is a schematic diagram of an application scenario of a resource refreshing method provided by an embodiment of the present application. As shown in FIG. 2, the application scenario includes a terminal device 210, and the terminal device 210 can run a target application program having a media resource playing function.
[0036] When the user uses a media resource playing function in the target application through the terminal device 210, the terminal device 210 can display a resource playing interface of the media resource. The original media resource can be played in the resource playing interface, and the original media resource belongs to an original resource stream, that is, the original resource stream is acquired before the original media resource is played. The user can trigger a resource switching operation for each of a plurality of original media resources played in sequence in the resource playing interface, such as the upward sliding operation in the interface schematic diagram on the left in FIG. 2. After the terminal device 210 receives the resource switching operation triggered for each of the plurality of original media resources played in sequence, the terminal device 210 can determine the resource switching operation, and if the resource switching operation triggered for each of the plurality of original media resources played in sequence satisfies a resource refreshing condition, a resource refreshing control can be displayed in the resource playing interface. For example, when the terminal device 210 detects that the user triggers the upward sliding operation for each of the plurality of original media resources played in sequence within a short time, the resource refreshing control, such as the "refresh" control in the interface schematic diagram in the middle in FIG. 2, can be displayed in the resource playing interface.
[0037] Then, the terminal device 210 can refresh the media resource played in the resource playing interface in response to a resource refreshing operation triggered through the resource refreshing control, that is, refresh the original media resource played in the resource playing interface into an updated media resource different from the original media resource. It should be noted that the updated media resource belongs to an updated resource stream, and the updated resource stream is different from the original resource stream to which the original media resource belongs. As shown in the interface schematic diagram on the right in FIG. 2, the media resource played in the resource playing interface is refreshed from the media resource representing an airplane to the media resource representing a class.
[0038] In this way, the user can trigger the playing of the updated media resource in the updated resource stream through the resource refreshing control displayed in the resource playing interface, and realize refreshing the media resource without the user knowing the function corresponding to the implicit operation in advance, thereby reducing the difficulty of triggering the media resource refreshing. Meanwhile, by detecting the resource switching operation triggered by the user for the plurality of media resources played in sequence, it can be determined whether the user is interested in the original resource stream currently played. If the resource switching operation triggered by the user satisfies the resource refreshing condition, it can be considered that the user is not interested in the original media resource in the original resource stream currently played in sequence, and the resource refreshing control is displayed at this time, thereby providing the resource refreshing function for the user and improving the intelligent degree of the media resource refreshing.
[0039] It should be understood that the application scenario shown in FIG. 2 is only an example, and in actual application, the resource refreshing method provided in the embodiments of the present application can also be applied to other scenarios, and the application scenario of the resource refreshing method provided in the embodiments of the present application is not limited herein.
[0040] The resource refreshing method provided in the present application is described in detail below through method embodiments.
[0041] Referring to FIG. 3, FIG. 3 is a flowchart of the resource refreshing method provided in an embodiment of the present application. For ease of description, the following describes the resource refreshing method with the execution subject of the resource refreshing method being a terminal device as an example. As shown in FIG. 3, the resource refreshing method includes the following steps:
[0042] S301: receiving resource switching operations triggered respectively by a plurality of original media resources in a continuous playing manner in a resource playing interface; the plurality of original media resources belong to an original resource stream.
[0043] The resource playing interface refers to an interface for playing media resources. The media resources may, for example, be short video resources, which refer to media resources with a playing time shorter than a preset time length (e.g., 5 minutes, 10 minutes, etc.). The short video resources may be video resources composed of continuous video frames or image groups composed of at least one image. The short video resources played in the resource playing interface may be provided by a short video server. For example, a user may make and upload short video resources to a short video server, and then the short video server pushes the short video resources to other users. The short video resources may involve different fields, such as entertainment, education, lifestyle, beauty and fashion, games, emotions, and society, etc. The present application does not specifically limit the content, field, and composition of the short video resources. The media resources played in the resource playing interface may also be other types of resources, such as audio resources, picture resources, video resources, and text resources, etc. The present application does not limit the type of media resources played in the resource playing interface.
[0044] As an example, the resource playing interface may be displayed by the terminal device. Specifically, the resource playing interface may be displayed by an application program with a video playing function in the terminal device, or the resource playing interface may also be displayed by a small program with a video playing function in the terminal device. The present application does not specifically limit the application program displaying the resource playing interface in the terminal device.
[0045] The multiple original media resources can be continuously played in the resource playing interface. For example, multiple original short video resources can be continuously played in the resource playing interface. The original media resource refers to a media resource in an original resource stream. The original resource stream refers to a media resource stream pulled from a server in advance before the original media resource is played in the resource playing interface. As an example, the original media resource can be determined based on user interest and user information according to a preset short video resource acquisition mechanism. The terminal device pulls the original media resource from the server in response to a resource playing operation, and continuously plays the pulled original media resource in the resource playing interface.
[0046] It should be understood that the multiple original media resources continuously played in the resource playing interface can be continuously played in response to a resource switching operation triggered by the user, that is, the next original media resource is played after the user triggers the resource switching operation for the currently played original media resource. The multiple original media resources can also be continuously played autonomously, that is, the next original media resource is automatically played after the playing of one original media resource ends.
[0047] When the user triggers a resource switching operation for the multiple original media resources (such as multiple original short video resources) continuously played in the resource playing interface, the terminal device can receive the resource switching operation. The resource switching operation refers to an operation for switching the currently played media resource in the resource playing interface. The resource switching operation can be triggered in different forms, such as a sliding operation, a click operation, and the like. The sliding operation can be divided into left sliding, right sliding, up sliding, and down sliding, and the like. Of course, in actual application, the user can also trigger the resource switching operation in other ways, and the embodiments of the present application do not make any limitation on the triggering manner of the resource switching operation.
[0048] It should be noted that in the case that the slide operations triggered by the user for the plurality of original media resources respectively cannot constitute continuity, it is necessary to re-count whether the slide operations triggered by the user for the plurality of original media resources respectively meet continuity. Only after the user triggers the resource switching operation for the plurality of original media resources played in the resource playing interface in succession, the terminal device can continue to perform the subsequent steps. For example, the user triggers the slide operation for the first two original media resources in the original resource stream respectively, and no operation is triggered for the third original media resource in the original resource stream subsequently, which cannot constitute continuity. When the original media resources in the original resource stream are played in the resource playing interface, the target label (such as the "recommendation" label) is switched to another label (such as the "attention" label), and at this time, the original media resources played in the resource playing interface are also switched to the original media resources in the resource stream under the other label, which cannot constitute continuity. Or, when the original media resources are played in the resource playing interface, the user triggers other functions in the resource playing interface that are irrelevant to the original media resources, which also cannot constitute continuity, for example, the user exits the target application program or clicks to view personal information in the process of playing the original media resources in the resource playing interface. For this, the present application does not specifically limit the case that cannot constitute continuity.
[0049] As an example, after the user triggers the slide operation for the plurality of original media resources played in the resource playing interface in succession respectively, the terminal device can receive the slide operation triggered for the plurality of original media resources played in succession respectively, determine the degree of interest of the user for the plurality of original media resources, and then determine whether the plurality of slide operations meet the resource refreshing condition.
[0050] S302: If the resource switching operations triggered for the plurality of original media resources respectively meet the resource refreshing condition, display the resource refreshing control in the resource playing interface.
[0051] The resource refreshing condition is used to indicate a condition that needs to be met when refreshing the media resources in the original resource stream played in the resource playing interface to the media resources in the other resource stream. The resource refreshing condition can be a fixed judgment condition provided by the server, for example, n times of continuous fast sliding and the fast sliding time being within 3 seconds, or the resource refreshing condition can also be a dynamic judgment condition provided by the server, which is determined by the server according to different resource switching operations in different situations. As an example, the resource switching operation can be divided into normal switching operation and fast switching operation according to the timing of the resource switching operation triggered by the user, and correspondingly, the slide operation can be divided into normal slide operation and fast slide operation when the resource switching operation is a slide operation.
[0052] The resource refreshing control is a control for supporting refreshing the media resources in the original resource stream played in the resource playing interface to the media resources in other resource streams, so as to refresh the media resources played in the resource playing interface. As an example, the resource refreshing control can be located at the top, bottom, side, etc. of the resource playing interface, and the application does not specifically limit the display position of the resource refreshing control.
[0053] When the resource refreshing condition is met by the resource switching operations triggered for the multiple original media resources played in the resource playing interface in succession, a resource refreshing control can be displayed in the resource playing interface, as shown in FIG. 4, which is a schematic diagram of a resource playing interface provided by an embodiment of the application. The resource refreshing control is the "refresh" control in FIG. 4.
[0054] As an example, when the resource refreshing condition is that the original media resources are continuously swiped for 3 times, and the time of the triggered swiping operation is within 3 seconds after the original media resource is played, the user triggers the swiping operation within 3 seconds after the short video is played for the 3 short videos played in the resource playing interface in succession. The terminal device considers that the resource refreshing condition is met, and the resource refreshing control is displayed in the resource playing interface to prompt the user to refresh the video played in the current resource playing interface, and to refresh the media resources in the original resource stream to the media resources in other resource streams.
[0055] In a possible implementation, whether the resource switching operations triggered for the multiple original media resources respectively meet the resource refreshing condition can be determined in the following manner:
[0056] According to the playing order of the multiple original media resources, it is detected whether the resource switching operation triggered for each original media resource is a quick switching operation; the time length between the triggering time of the quick switching operation and the starting playing time of the original media resource is within a preset time length threshold.
[0057] If the resource switching operations triggered for the m original media resources played in succession are all quick switching operations, it is determined that the resource refreshing condition is met; m is a preset quick switching number threshold, and m is an integer greater than 1.
[0058] The playing order of the multiple original media resources is fixedly stored in the original resource stream, and when the first media resource in the original resource stream is played in the resource playing interface, the media resources played in the resource playing interface in a normal case can be determined, that is, the original resource stream includes the media resources arranged according to the playing order.
[0059] The quick switching operation refers to a quick resource switching operation determined based on a user triggering a resource switching operation. Specifically, the user triggering the resource switching operation refers to a triggering moment of the resource switching operation, and a time length between the triggering moment of the quick switching operation and a starting playing moment of the original media resource is within a preset time length threshold. For example, the preset time length threshold is 2 seconds. If the triggering moment of the user for the short video resource is the first second of starting playing of the short video resource, that is, the user triggers the resource switching operation within 2 seconds of starting playing of the short video resource, it is considered that the resource switching operation triggered by the user currently is the quick switching operation. When the user triggers the quick switching operation for the currently played short video resource belonging to the original resource stream, the short video server can consider that the user is not interested in the currently played short video resource belonging to the original resource.
[0060] The terminal device detects, according to a playing order of the plurality of original media resources, that is, according to a playing order of the plurality of original short video resources in the original resource stream, each original media resource belonging to the original resource stream, whether the resource switching operation triggered by the user for each original media resource belonging to the original resource stream is the quick switching operation.
[0061] If the resource switching operations triggered for the m original media resources played continuously all belong to the quick switching operation, the server can consider that the user is not interested in the m original media resources played continuously in the original resource stream, and it is determined that the resource switching operations triggered for the plurality of original media resources respectively satisfy the resource refreshing condition, and the resource refreshing control can be displayed in the resource playing interface. The m is a preset quick switching number threshold, used to indicate the limitation on the switching number in the resource refreshing condition, and the m is an integer greater than 1.
[0062] As an example, the resource refreshing condition such as the time length threshold and m corresponding to the quick switching operation can be issued by the server. For example, the related resource refreshing condition can also include a function switch (a switch whether to show related functions to the user), a display time length of the resource refreshing control, and a display time length of the refreshing function prompt information, and the like. It should be noted that when the user reopens the target application program with the media resource playing function each time, the latest resource refreshing condition can be reacquired from the server, so as to facilitate flexible adjustment of the resource refreshing condition.
[0063] As an example, when the m is preset as 4, if it is detected that the resource switching operations triggered by the user for the four original media resources belonging to the original resource stream played continuously respectively all belong to the quick switching operation, it is determined that the resource switching operations triggered for the original media resources respectively satisfy the resource refreshing condition, and the resource refreshing control can be displayed in the resource playing interface.
[0064] Thus, according to the playing order of the plurality of original media resources in the original resource stream, it is detected whether the resource switching operation triggered for each original media resource belongs to the fast switching operation, if it is detected that the resource switching operations triggered for the m original media resources played continuously all belong to the fast switching operation, it is determined that the resource refreshing condition is met, and the resource refreshing condition can be displayed in the resource playing interface. It can be seen that, by the above method, it can be quickly judged whether the resource switching operation triggered for the original media resources in the original resource stream meets the resource refreshing condition based on the fixed judgment condition issued by the server, so as to accurately determine the interest of the user for the original media resources in the original resource stream, and then the resource refreshing control is displayed accordingly.
[0065] In a possible implementation, whether the resource switching operations triggered for the plurality of original media resources respectively meet the resource refreshing condition can also be determined by the following method:
[0066] According to the playing order of the plurality of original media resources, it is detected whether the resource switching operation triggered for each original media resource belongs to the fast switching operation or the medium-speed switching operation; the time length between the triggering time of the fast switching operation and the starting playing time of the original media resource is within a first time length interval, the time length between the triggering time of the medium-speed switching operation and the starting playing time of the original media resource is within a second time length interval, and the maximum critical value of the first time length interval is less than or equal to the minimum critical value of the second time length interval;
[0067] If the resource switching operations triggered for the n original media resources played continuously all belong to the fast switching operation or the medium-speed switching operation, it is determined that the resource refreshing condition is met; n is an optimized switching number threshold, the optimized switching number threshold is determined according to at least one of the number of the detected fast switching operations or the number of the detected medium-speed switching operations, and n is an integer greater than 1.
[0068] The medium-speed switching operation refers to the medium-speed resource switching operation determined based on the timing when the user triggers the resource switching operation. Specifically, the time length between the triggering time of the fast switching operation and the starting playing time of the original media resource is within a first time length interval, the time length between the triggering time of the medium-speed switching operation and the starting playing time of the original media resource is within a second time length interval, and the maximum critical value of the first time length interval is less than or equal to the minimum critical value of the second time length interval. The first time length interval is used to indicate the judgment condition of the fast switching operation, and the second time length interval is used to indicate the judgment condition of the medium-speed switching operation.
[0069] For example, the first time interval is 0-3 seconds, the second time interval is 3-6 seconds, the maximum threshold value of the first time interval is 3 seconds, and is equal to the minimum threshold value of the second time interval. If the trigger time of the resource switching operation of the user for the short video resource is the second second of the start of the playing of the short video resource, that is, the user triggers the resource switching operation within 0-3 seconds of the start of the playing of the short video resource, it is considered that the resource switching operation triggered by the user currently is a fast switching operation; if the trigger time of the resource switching operation of the user for the short video resource is the fourth second of the start of the playing of the short video resource, that is, the user triggers the resource switching operation within 3-6 seconds of the start of the playing of the short video resource, it is considered that the resource switching operation triggered by the user currently is a medium-speed switching operation.
[0070] When the user triggers a fast switching operation for the currently played original media resource belonging to the original resource stream, the server can consider that the interest degree of the user for the currently played original media resource is extremely uninterested; when the user triggers a medium-speed switching operation for the currently played original media resource belonging to the original resource stream, the server can consider that the interest degree of the user for the currently played original media resource is medium uninterested.
[0071] The terminal device detects, according to the playing order of the plurality of original media resources, that is, according to the playing order of the plurality of short video resources in the original resource stream, each original media resource belonging to the original resource stream, whether the resource switching operation triggered by the user for each original media resource belongs to a fast switching operation or a medium-speed switching operation.
[0072] The resource switching operations triggered for the n original media resources played continuously all belong to the fast switching operation or the medium-speed switching operation, including but not limited to: the resource switching operations triggered for the n original media resources played continuously all belong to the fast switching operation, the resource switching operations triggered for the n original media resources played continuously all belong to the medium-speed switching operation, and part of the resource switching operations triggered for the n original media resources played continuously belong to the fast switching operation and the rest belong to the medium-speed switching operation. The above third case is exemplified. For example, n is 3, and the resource switching operations are triggered for the three original short video resources played continuously. There can be a case that the resource switching operation triggered for the first short video resource belongs to the fast switching operation, the resource switching operation triggered for the second short video resource belongs to the medium-speed switching operation, and the resource switching operation triggered for the third short video resource belongs to the medium-speed switching operation. The application does not limit the specific cases of the resource switching operations triggered for the n original media resources played continuously all belonging to the fast switching operation or the medium-speed switching operation.
[0073] n is an optimized switching number threshold, used to indicate the limit of switching number in the resource refreshing condition, n is an integer greater than 1, and the optimized switching number threshold is determined according to at least one of the number of detected fast switching operations or the number of detected medium switching operations. For example, in the case that the resource switching operations triggered for the n original media resources played continuously all belong to fast switching operations, the optimized switching number threshold can be determined according to the number of detected fast switching operations; in the case that the resource switching operations triggered for the n original media resources played continuously all belong to medium switching operations, the optimized switching number threshold can be determined according to the number of detected medium switching operations; in the case that the resource switching operations triggered for the n original media resources played continuously partly belong to fast switching operations and partly belong to medium switching operations, the optimized switching number threshold can be determined according to the number of detected medium switching operations and the number of detected fast switching operations.
[0074] In this way, the degree of interest of the user in the original media resources in the currently played original resource stream can be determined in combination with different resource switching operations triggered by the user, and the optimized switching number threshold can be further dynamically adjusted to flexibly adjust the display timing of the resource refreshing control according to the user's interest in the original resource stream.
[0075] In a possible implementation, the optimized switching number threshold can be determined in the following manner:
[0076] An initial switching number threshold is obtained.
[0077] When the number of detected medium switching operations exceeds a first number threshold, the initial switching number threshold is increased according to the number of detected medium switching operations.
[0078] When the number of detected fast switching operations exceeds a second number threshold, the initial switching number threshold is decreased according to the number of detected fast switching operations.
[0079] The optimized switching number threshold is obtained by at least one of increasing or decreasing the initial switching number threshold.
[0080] The initial switching number threshold is used to indicate the switching number threshold in the initial limit resource refreshing condition, and the initial switching number threshold can be obtained from the short video server.
[0081] The first number threshold is used to determine whether the number of medium-speed switching operations exceeds a first expected range. If the number exceeds the first expected range, it is considered that the user's interest in most media resources in the original resource stream is medium, and it is considered that the user's aversion to the original resource stream is medium. The display timing of the resource refresh control can be appropriately delayed.
[0082] The second number threshold is used to determine whether the number of fast switching operations exceeds a second expected range. If the number exceeds the second expected range, it is considered that the user's interest in most media resources in the original resource stream is extremely low, and it is considered that the user's aversion to the original resource stream is high. The display timing of the resource refresh control can be appropriately advanced.
[0083] The first number threshold and the second number threshold can be obtained from the server. For example, the first number threshold and the second number threshold are obtained at the same time as the initial switching number threshold. The specific value of the first number threshold can be the same as the specific value of the initial switching number threshold, or the same as the specific value of the second number threshold. Alternatively, the specific value of the initial switching number threshold can be the same as the specific value of the second number threshold. The application does not specifically limit the values of the first number threshold, the second number threshold, and the initial switching number threshold, and the timing of obtaining them.
[0084] When the number of detected medium-speed switching operations exceeds the first number threshold, the initial switching number threshold can be increased based on the number of detected medium-speed switching operations. For example, when the first number threshold is 4, the initial switching number threshold is 4, and the number of detected medium-speed switching operations is 5, the initial switching number threshold can be increased based on the number of detected medium-speed switching operations. For example, the difference between the number of medium-speed switching operations and the first number threshold can be calculated, and the difference is added to the initial switching number threshold, so that the initial switching number threshold is adjusted to 5. Alternatively, the initial switching number threshold can be adjusted based on the increase ratio issued by the server. For example, the difference between the number of medium-speed switching operations and the first number threshold can be calculated, and the difference is multiplied by 2 and added to the initial switching number threshold. The application does not specifically limit the processing mode of the increase processing.
[0085] When the number of detected fast handover operations exceeds the second threshold, the initial handover count threshold can be reduced based on the number of detected fast handover operations. For example, if the second threshold is 4 times, the initial handover count threshold is 4 times, and the number of detected fast handover operations is 5 times, the initial handover count threshold can be reduced based on the number of detected fast handover operations. For example, the difference between the number of fast handover operations and the second threshold can be calculated, and then the initial handover count threshold can be subtracted from the difference, thus adjusting the initial handover count threshold to 3 times. Alternatively, the initial handover count threshold can be adjusted based on a reduction ratio issued by the server. For example, the difference between the number of fast handover operations and the second threshold can be calculated, and then the initial handover count threshold can be subtracted from the value of the difference multiplied by 2. This application does not specifically limit the reduction processing method.
[0086] Finally, an optimized handover count threshold can be obtained by increasing or decreasing the initial handover count threshold. For example, if the terminal device only detects fast handover operations, and the number of fast handover operations exceeds the second threshold, the reduced initial handover count threshold can be used as the optimized handover count threshold. If the terminal device only detects medium-speed handover operations, and the number of medium-speed handover operations exceeds the first threshold, the increased initial handover count threshold can be used as the optimized handover count threshold. If the terminal device detects both fast and medium-speed handover operations, it can further determine whether the number of medium-speed handover operations exceeds the first threshold and whether the number of fast handover operations exceeds the second threshold. The initial handover count threshold can then be processed accordingly to obtain the optimized handover count threshold. For example, if the terminal device detects both fast and medium-speed handover operations, and the number of medium-speed handover operations exceeds the first threshold while the number of fast handover operations does not exceed the second threshold, then the initial handover count threshold is increased to become the optimized handover count threshold. If the number of medium-speed handover operations does not exceed the first threshold while the number of fast handover operations exceeds the second threshold, then the initial handover count threshold is decreased to become the optimized handover count threshold. If the number of medium-speed handover operations exceeds the first threshold and the number of fast handover operations exceeds the second threshold, then the initial handover count threshold is first decreased based on the number of medium-speed handover operations, and then increased based on the number of fast handover operations to obtain the optimized handover count threshold. Alternatively, the initial handover count threshold can be increased based on the number of fast handover operations, and then decreased based on the number of medium-speed handover operations to obtain the optimized handover count threshold.
[0087] Therefore, the above method provides a dynamic resource refresh condition. Based on the comparison results of the number of different resource switching operations with their respective threshold values, the initial switching threshold value can be processed accordingly. This allows for appropriate adjustment of the display timing of the resource refresh control, improving its intelligence and enhancing the user experience.
[0088] If the resource switching operations triggered for n consecutively played original media resources are all fast switching operations or medium-speed switching operations, then the resource switching operations triggered for multiple original media resources meet the resource refresh conditions, and the resource refresh control can be displayed in the resource playback interface.
[0089] It should be noted that the first time interval corresponding to the fast switching operation, the second time interval corresponding to the medium-speed switching operation, and the resource refresh conditions such as n can be issued by the server. Each time the user reopens the target application with media resource playback function, the latest resource refresh conditions can be obtained from the server, which facilitates flexible adjustment of the resource refresh conditions.
[0090] As an example, when the terminal device detects that the resource switching operation triggered for the original media resources in the original resource stream is a fast switching operation and / or a medium-speed switching operation, and n is 4, if the resource switching operation triggered for the 4 continuously played original media resources is a fast switching operation and / or a medium-speed switching operation, then it is determined that the resource switching operation triggered for the above-mentioned original media resources meets the resource refresh condition, and the resource refresh control can be displayed in the resource playback interface.
[0091] As can be seen, the above method can determine whether a resource switching operation triggered by the original media resources in the original resource stream is a resource refresh condition based on the dynamic judgment conditions issued by the server. This allows for flexible adjustment of the display timing of the resource refresh control, improving the intelligence of the resource refresh control and enhancing the user experience.
[0092] In one possible implementation, when it is determined that resource switching operations triggered for multiple original media resources respectively meet the resource refresh conditions, the display method of the resource refresh control in the resource playback interface may include:
[0093] Switch the display of the target label in the resource playback interface to a resource refresh control.
[0094] The target tag can be any tag displayed in the resource playback interface. For example, it can be the tag corresponding to the original media resource in the resource playback interface, indicating the tag category to which the original media resource in the original resource stream belongs, such as the "Recommended" tag, the "Friends" tag, and the "Following" tag.
[0095] As an example, the target label can be the "Recommended" label. Referring to the interface diagram in Figure 1, if it is determined that the resource switching operations triggered for multiple original media resources in the resource playback interface meet the resource refresh conditions, the "Recommended" label in the resource playback interface can be switched to display as a resource refresh control. Referring to the interface diagram in Figure 4.
[0096] In another possible implementation, when it is determined that the resource switching operations triggered for multiple original media resources respectively meet the resource refresh conditions, the display method of the resource refresh control in the resource playback interface may include:
[0097] Display a resource refresh control at the target location in the resource playback interface; the target location is any location in the resource playback interface where no functional control is deployed.
[0098] The target location refers to any position in the resource playback interface where no functional controls are deployed, i.e., a blank position in the resource playback interface. The target location is used to deploy resource refresh controls. When it is determined that resource switching operations triggered for multiple original media resources in the resource playback interface meet the resource refresh conditions, the resource refresh controls can be displayed at the target location in the resource playback interface. Refer to Figure 5, which is a schematic diagram of an interface for displaying resource refresh controls provided in an embodiment of this application. The target location can be determined by relevant parameters issued by the short video server.
[0099] Therefore, the above method provides two ways to display the resource refresh control. The resource refresh control can be switched to display the target label in the resource playback interface, or it can be displayed in a blank space in the resource playback interface, i.e., at the target position in the resource playback interface. This provides users with an intuitive resource refresh control, which helps users trigger the resource refresh operation through the resource refresh control displayed in the resource playback interface, thereby improving the user experience.
[0100] In one possible implementation, while displaying the resource refresh control in the resource playback interface, the resource refresh method provided in this application embodiment may further include:
[0101] The refresh function prompt message is displayed at the associated location of the resource refresh control; the refresh function prompt message is used to indicate that the media resource can be refreshed through the resource refresh control.
[0102] The associated position refers to the display position of the resource refresh control in the resource playback interface. For example, the associated position may include, but is not limited to, the bottom, top, and side of the resource refresh control. This application does not specifically limit the associated position of the resource refresh control.
[0103] The refresh function prompt message indicates that the media resources can be refreshed through the resource refresh control. In other words, the refresh function prompt message tells the user that the media resources played in the resource playback interface can be refreshed by using the resource refresh control, and the media resources that belong to the original resource stream can be refreshed to media resources that belong to other resource streams.
[0104] Referring to Figure 6, which is a schematic diagram of the interface for displaying refresh function prompts provided in an embodiment of this application, when the resource refresh control is switched by the target label, refresh function prompts, namely "tap to refresh recommended content", can be displayed below the resource refresh control.
[0105] Therefore, displaying refresh function prompts at the associated location of the resource refresh control helps users discover the resource refresh control in a timely manner and provides clear prompts, making it easier for users to refresh media resources through the resource refresh control and improving the user-friendliness of the operation.
[0106] S303: In response to a resource refresh operation triggered by the resource refresh control, play the updated media resource in the resource playback interface; the updated media resource belongs to the updated resource stream, which is different from the original resource stream.
[0107] The resource refresh operation refers to the operation triggered by the user through the resource refresh control, which is used to refresh the media resources in the original resource stream played in the resource playback interface to media resources in other resource streams.
[0108] It should be noted that the resource switching operation is used to trigger the switching of media resources within the same resource stream. For example, if the original resource stream includes three original media resources (such as A, B, and C), when the user triggers the resource switching operation through a swipe, the media resource played in the resource playback interface can switch from A to B, and then from B to C. The resource refresh operation, on the other hand, switches the currently playing resource stream. For example, if the original resource stream includes three original media resources (such as A, B, and C), and the updated resource stream includes three updated media resources (such as A, B, and C), when the user triggers the resource refresh operation through the resource refresh control, the resource stream played in the resource playback interface switches from the original resource stream to the updated resource stream. That is, the media resource played in the resource playback interface changes from any one of A, B, and C to any one of A, B, and C.
[0109] Updating media resources refers to media resources belonging to an updated resource stream. Updated media resources can be updated short video resources. The updated resource stream differs from the original resource stream; that is, at least one media resource in the updated resource stream differs from the original resource stream. More specifically, each short video resource in the updated resource stream can be different from the short video resources in the original resource stream. The updated resource stream can be a media resource stream fetched from the server after the original resource stream has been fetched, or it can be a media resource stream fetched from the server in real time after a resource refresh operation is triggered. This application does not specifically limit the content of the updated resource stream or the timing of its fetching.
[0110] As an example, when a user clicks the resource refresh control, a resource refresh operation is triggered. In response, the terminal device can play the updated media resource in the resource playback interface, that is, it can play the short video resource belonging to the updated resource stream. Of course, in practical applications, users can also trigger the resource refresh operation in other ways; this embodiment does not limit the triggering method of the resource refresh operation in any way.
[0111] In one possible implementation, the resource refresh method provided in this application embodiment may further include:
[0112] After playing the updated media resource in the resource playback interface in response to a resource refresh operation triggered by the resource refresh control, the resource refresh control is then disabled.
[0113] After the terminal device responds to the resource refresh operation triggered by the resource refresh control and plays the updated media resource in the updated resource stream in the resource playback interface, the resource refresh control can be automatically de-displayed in the resource playback interface. For example, the resource refresh control can be directly de-displayed after the short video resource in the updated resource stream starts playing in the resource playback interface; alternatively, the de-display timing of the resource refresh control can be determined according to the de-display time issued by the server. For example, if the server issues a de-display time of 3 seconds after the updated media resource starts playing, the resource refresh control will be de-displayed when the short video resource in the updated resource stream plays for 3 seconds. This application does not impose any limitations on the de-display time of the resource refresh control.
[0114] In another possible implementation, the resource refresh method provided in this application embodiment may further include:
[0115] If no resource refresh operation triggered by the resource refresh control is detected within the first display period corresponding to the resource refresh control, the resource refresh control will be canceled from display.
[0116] The first display period is used to indicate the duration for which the resource refresh control is displayed when no resource refresh operation is triggered by the resource refresh control. The first display period can be issued by the server. As an example, the first display period can be 0-20 seconds after the resource refresh control is displayed. If the terminal device does not detect a resource refresh operation triggered by the resource refresh control within 0-20 seconds after the resource refresh control is displayed, that is, if the terminal device does not detect a user click operation on the resource refresh control, the resource refresh control can be automatically de-displayed in the resource playback interface. Therefore, this application does not specifically limit the first display period when no resource refresh operation is triggered by the resource refresh control.
[0117] As can be seen, the above method provides a way to cancel the display of the resource refresh control. That is, when a resource refresh operation is triggered by the resource refresh control, the display time of the resource refresh control can be canceled, or when no resource refresh operation is triggered by the resource refresh control for a long time, the display time of the resource refresh control can be canceled, thereby improving the intelligence of the resource refresh control and enhancing the user experience.
[0118] In one possible implementation, canceling the display of the resource refresh control may include:
[0119] If the resource refresh control is obtained by switching the target label in the resource playback interface, then the resource refresh control will be switched back to the target label.
[0120] The target tag can be any displayed tag in the resource playback interface. For example, it can be the tag information corresponding to the updated media resource in the resource playback interface, that is, the tags corresponding to multiple updated media resources in the updated resource stream in the resource playback interface, indicating the tag category to which the updated media resource in the updated resource stream belongs, such as the "Recommended" tag, the "Friends" tag, and the "Following" tag. Furthermore, the target tag can be the same as or different from the tag corresponding to the original media resource. This application does not specifically limit the target tag in this regard.
[0121] If the resource refresh control is obtained by switching the target label in the resource playback interface, in response to the cancellation of the resource refresh control, the resource refresh control will be switched back to the target label, that is, the resource refresh control will no longer be displayed in the resource playback interface, and the target label will be displayed.
[0122] As an example, if the original media resource is labeled "Recommended," and the resource switching operations triggered for multiple original media resources in the resource playback interface meet the resource refresh conditions, the "Recommended" label in the resource playback interface can be switched to the "Refresh" resource refresh control, as shown in the interface diagram in Figure 4. Then, in response to the cancellation of the resource refresh control, the "Refresh" resource refresh control in the resource playback interface can be switched to the "Recommended" label, as shown in the interface diagram in Figure 1.
[0123] In another possible implementation, the way to cancel the display of the resource refresh control may include:
[0124] If the resource refresh control is added to the target location where no functional control is deployed in the resource playback interface, then the resource refresh control displayed at the target location will be canceled.
[0125] If the resource refresh control is newly displayed at a target location where no functional controls are deployed in the resource playback interface—for example, if it's newly displayed in a blank area of the resource playback interface—then it can be directly dedisplayed in the resource playback interface. As an example, if it's determined that resource switching operations triggered for multiple original media resources in the resource playback interface meet the resource refresh conditions, the "Refresh" resource refresh control can be displayed in a blank area of the resource playback interface, as shown in the interface diagram in Figure 5. In response to the dedisplay of the resource refresh control, it can be directly dedisplayed in the resource playback interface, as shown in the interface diagram in Figure 1.
[0126] Therefore, the above method provides a way to cancel the display of the resource refresh control. If the resource refresh control is obtained by switching the target label, it will be switched back to the target label. If the resource refresh control is newly added at the target position in the resource playback interface, it will be directly canceled in the resource playback interface. It is evident that while providing users with an intuitive resource refresh control, a corresponding cancellation method is also provided, forming a complete display process, improving the intelligence of the resource refresh control, and saving computing resources on the terminal device.
[0127] In one possible implementation, the resource refresh method provided in this application embodiment may further include:
[0128] If no resource refresh operation triggered by the resource refresh control is detected within the second display period corresponding to the refresh function prompt message, the refresh function prompt message will be canceled.
[0129] The second display period is used to indicate the duration for which the refresh function prompt message is displayed when a resource refresh operation is not triggered by the resource refresh control. The second display period can be issued by the server. As an example, the second display period can be 0-20 seconds after the refresh function prompt message is displayed. If the terminal device does not detect a resource refresh operation triggered by the resource refresh control within 0-20 seconds after the refresh function prompt message is displayed, that is, if the terminal device does not detect a user click operation on the resource refresh control, the refresh function prompt message can be automatically canceled in the resource playback interface.
[0130] In another possible implementation, the resource refresh method provided in this application embodiment may further include:
[0131] If a close operation triggered by the refresh function prompt message is detected, the refresh function prompt message will be hidden.
[0132] Referring to Figure 7, which is a schematic diagram of the interface for canceling the display of the refresh function prompt information according to an embodiment of this application, while displaying the refresh function prompt information in the resource playback interface, the refresh function prompt information also includes a function switch to control whether the refresh function prompt information is displayed. As an example, when the user slides the function switch in the refresh function prompt information to "off", a closing operation can be triggered. After the terminal device detects the closing operation triggered for the refresh function prompt information, it can directly cancel the display of the refresh function prompt information.
[0133] Additionally, the validity period of the refresh function prompt can be adjusted based on the parameters issued by the server. For example, the refresh function prompt can be displayed simultaneously when the resource refresh control is first displayed, but not when the resource refresh control is displayed subsequently; that is, the refresh function prompt is displayed only once. This application does not specifically limit the validity period of the refresh function prompt.
[0134] Therefore, the above method provides a way to cancel the display of refresh function prompts. The refresh function prompts can be canceled if no resource refresh operation triggered by the resource refresh control is detected during the second display period corresponding to the prompts. They can also be canceled if a close operation triggered by the refresh function prompts is detected. As can be seen, while providing users with intuitive prompts, a corresponding cancellation method is also provided, forming a complete display process. Furthermore, canceling the display of refresh function prompts can save computing resources on the terminal device.
[0135] The resource refresh method provided in this application innovatively proposes a way to refresh media resources through an explicit control. In this method, when the terminal device receives resource switching operations triggered by the user for multiple consecutively playing original media resources in the resource playback interface, it judges these resource switching operations. If the resource switching operations triggered for these multiple original media resources meet the resource refresh conditions, a resource refresh control can be displayed in the resource playback interface. For example, when the terminal device detects that the user has triggered a slide-away operation for multiple consecutively playing original media resources within a short period of time, a resource refresh control can be displayed in the resource playback interface. Then, the terminal device can respond to the resource refresh operation triggered by the resource refresh control and refresh the media resources played in the resource playback interface, that is, refresh the original media resources played in the resource playback interface to updated media resources different from the original media resources. This updated media resource belongs to an updated resource stream, which is different from the original resource stream to which the multiple original media resource streams belong. In this way, users can trigger the playback of updated media resources in the updated resource stream through the resource refresh control displayed in the resource playback interface, thereby refreshing the media resources without requiring users to know the function corresponding to the implicit operation in advance, reducing the difficulty of triggering media resource refresh. At the same time, by detecting the user's resource switching operation triggered by multiple consecutively played media resources using the above method, it can be determined whether the user is interested in the currently playing original resource stream. If the resource switching operation triggered by the user meets the resource refresh conditions, it can be assumed that the user is not interested in the media resources in the currently playing original resource stream. At this time, the resource refresh control is displayed to provide the user with the resource refresh function, improving the intelligence of media resource refresh.
[0136] In one possible implementation, the terminal device can request an updated resource stream from the backend server in real time in response to a resource refresh operation triggered by the user. In this case, the phrase "responding to a resource refresh operation triggered by the resource refresh control and playing the updated media resource in the resource playback interface" in S303 above can include:
[0137] In response to a resource refresh operation triggered by the resource refresh control, a resource refresh request is sent to the backend server; the resource refresh request includes resource information corresponding to multiple original media resources, as well as information on how the resource refresh operation was triggered;
[0138] Receive the updated resource stream from the backend server in response to the resource refresh request;
[0139] Play updated media resources from the updated resource stream in the resource playback interface.
[0140] A resource refresh request is used to request an updated resource stream for playback of updated media resources within that stream. The request includes resource information corresponding to multiple original media resources (i.e., media resources for which resource switching operations have been triggered), as well as information on the triggering method of the resource refresh operation (e.g., triggering the refresh operation via a resource refresh control). The resource information corresponding to the original media resources includes attribute information related to those resources. This information may include, for example, the creator of the original media resource, its tag type (e.g., comedy, lifestyle, food, and pets), and key objects within the original media resource (e.g., the most frequently appearing character). This application does not specifically limit the resource information corresponding to the original media resources.
[0141] The triggering method information for a resource refresh operation refers to the implementation method used to trigger the resource refresh operation. When a terminal device sends a resource refresh request to a backend server in response to a resource refresh operation triggered by a resource refresh control, the triggering method information for this resource refresh operation can be triggered by clicking the resource refresh control. However, when a resource refresh operation is triggered in other ways, the triggering method information for the resource refresh operation included in the resource refresh request will change accordingly. For example, a resource refresh operation can be triggered by double-clicking a target label. In this case, the triggering method information for the resource refresh operation in the resource refresh request sent by the terminal device to the backend server in response to this resource refresh operation can be triggered by double-clicking the target label. This application does not specifically limit other methods of triggering resource refresh operations.
[0142] Because the resource refresh request sent to the backend server includes information on the triggering method of the resource refresh operation, and this triggering method corresponds to different filtering methods for updated resource streams, the backend server can filter different updated resource streams based on these different triggering methods and send the corresponding updated resource streams to the terminal devices. For example, when the triggering method for the resource refresh operation is triggered by clicking the resource refresh control, the resource information corresponding to multiple original media resources can be used as filtering objects to determine the updated resource stream. For instance, using the tag types of multiple original media resources as filtering objects, media resources with tag types other than those of the original media resources can be identified as updated media resources in the updated resource stream. When the triggering method for the resource refresh operation is triggered by double-clicking the target tag, the resource information of some original media resources corresponding to multiple original media resources can be used as filtering objects to determine the updated resource stream. For instance, using the tag type of the first original media resource in the original resource stream as filtering objects, media resources with tag types other than those of the first original media resource can be identified as updated media resources in the updated resource stream.
[0143] When a terminal device responds to a resource refresh operation triggered by a resource refresh control, it can send a resource refresh request to the backend server. This allows the backend server to determine the updated resource stream based on the resource information corresponding to the multiple original media resources included in the resource refresh request, as well as the triggering method information of the resource refresh operation.
[0144] As an example, a backend server can determine the update resource flow in the following ways:
[0145] Based on the resource information corresponding to the multiple original media resources included in the resource refresh request, the resource filtering conditions are determined; the resource filtering conditions are used to indicate the first filtered resource information corresponding to the media resources to be filtered out.
[0146] Based on the resource filtering conditions and the resource information corresponding to the candidate media resources in the candidate resource library, multiple candidate media resources are selected from the candidate resource library as updated media resources; the difference between the resource information corresponding to the updated media resources and the first filtered resource information satisfies the first difference condition.
[0147] An update resource stream is formed by using multiple update media resources.
[0148] Resource filtering conditions refer to the filtering conditions used to determine when updating media resources. These conditions indicate the first filtering resource information corresponding to the media resources to be filtered out. The first filtering resource information refers to the resource information corresponding to the media resources to be filtered out. For example, the creator, tag type, and key objects of each original media resource whose resource switching operation is triggered can be used as the first filtering resource information. Furthermore, the first filtering resource information can be adjusted according to the triggering method of the resource refresh operation. For example, when the resource refresh operation is triggered by clicking a resource refresh control, the first filtering resource information may include the creator, tag type, and key objects of the original media resources; when the resource refresh operation is triggered by double-clicking a target tag, the first filtering resource information may include the tag type of the original media resources. This application does not specifically limit the content of the first filtering resource information.
[0149] In practice, resource filtering conditions can be determined based on the resource information corresponding to the multiple original media resources included in the resource refresh request. That is, the resource information corresponding to the multiple original media resources included in the resource refresh request is used as the first filtering resource information corresponding to each original media resource. The determined resource filtering conditions include the first filtering resource information corresponding to each of the multiple original media resources.
[0150] A candidate resource library refers to a database used to store candidate media resources. Candidate media resources refer to media resources provided by a server that are available for users to watch. The resource information corresponding to a candidate media resource is attribute information related to that candidate media resource. The resource information corresponding to a candidate media resource may include, for example, the creator of the candidate media resource, the tag type of the candidate media resource, and the key objects of the candidate media resource. In this regard, this application does not specifically limit the resource information corresponding to the candidate media resources.
[0151] Given the defined resource filtering conditions, multiple candidate media resources can be selected as updated media resources based on these conditions and the resource information corresponding to candidate media resources in the candidate resource library. The difference between the resource information of the updated media resources and the first filtered resource information satisfies a first difference condition. In other words, candidate media resources whose resource information satisfies the first difference condition can be selected from the candidate resource library and used as updated media resources. The first difference condition indicates a preset difference threshold between the resource information of the candidate media resources used as updated media resources and the first filtered resource information in the resource filtering conditions. This first difference condition can be provided by the backend server.
[0152] As an example, the resource information corresponding to the candidate media resource and the multiple first-filtered resource information can be converted into corresponding feature vectors, resulting in the feature vectors of the resource information corresponding to the candidate media resource and the feature vectors of the multiple first-filtered resource information. Then, the difference between the feature vectors of the resource information corresponding to the candidate media resource and the feature vectors of the multiple first-filtered resource information can be calculated using the Euclidean distance algorithm or the Manhattan distance algorithm. This application does not specifically limit the method for calculating the difference.
[0153] Finally, if the difference between the resource information corresponding to a candidate media resource and the multiple first filter resource information in the resource filtering conditions all meet the first difference condition, then the candidate media resource can be used as the updated media resource. Thus, multiple updated media resources selected from the candidate resource library can be used to form an updated resource stream.
[0154] Therefore, after determining the resource filtering conditions based on the resource information corresponding to multiple original media resources in the resource refresh request, candidate media resources that differ significantly from the original media resources can be selected as update media resources based on the resource filtering conditions and the resource information corresponding to candidate media resources in the candidate resource library. This allows multiple selected update media resources to form an update resource stream. It is evident that this method can provide users with update media resources that differ significantly from the original media resources, which to some extent helps increase user interest in update media resources and improves the user experience.
[0155] As an example, the above "determining resource filtering conditions based on resource information corresponding to multiple original media resources included in the resource refresh request" may include:
[0156] For each original media resource, based on the resource information corresponding to the original media resource, the first filtering resource information corresponding to the original media resource is determined, and an initial filtering intensity is configured for the first filtering resource information; based on the playback duration and operation information corresponding to the original media resource, the initial filtering intensity corresponding to the first filtering resource information is adjusted to obtain the target filtering intensity corresponding to the first filtering resource information; the target filtering intensity is used to determine the first difference condition corresponding to the first filtering resource information.
[0157] Based on the first filtering resource information corresponding to each of the multiple original media resources and their corresponding target filtering strength, the resource filtering conditions are determined.
[0158] The resource refresh request also includes playback duration and operation information corresponding to multiple original media resources. The operation information is used to indicate other operations triggered for the original media resources besides resource switching operations, such as liking or commenting operations triggered for the original media resources. This application does not specifically limit the operation information.
[0159] After determining the first filtering resource information corresponding to each original media resource based on the resource information in the resource refresh request, an initial filtering strength can be configured for each type of first filtering resource information. The initial filtering strength can be provided by the backend server and is used to indicate the initial strength for filtering updated media resources from the candidate resource library based on the first filtering resource information. For example, the initial filtering strength can be high.
[0160] Since the resource refresh request also includes the playback duration and operation information corresponding to each original media resource, these information can reflect the user's level of interest in that original media resource to some extent. For example, if the playback duration of the first original media resource in the original resource stream is 10 seconds, or if the user triggers a "like" operation on that original media resource, the terminal device can consider the user's level of interest in that original media resource to be moderate. Therefore, the terminal device can adjust the initial filtering intensity corresponding to each type of first-filter resource information based on the playback duration and operation information corresponding to each original media resource in the resource refresh request, to obtain the target filtering intensity corresponding to each type of first-filter resource information. The target filtering intensity refers to the filtering intensity obtained after adjusting the initial filtering intensity based on the playback duration and operation information in the resource refresh request. For example, if the initial filtering intensity is high, and it is detected that the playback duration of a certain original media resource is 10 seconds, or that the user triggers a "like" operation on that original media resource, the initial filtering intensity of the first-filter resource information corresponding to that original media resource can be adjusted to medium intensity, i.e., the target filtering intensity is medium intensity.
[0161] Meanwhile, the target filtering intensity is used to determine the first difference condition corresponding to the first filtered resource information. That is, the first difference condition corresponding to the first filtered resource information can be appropriately adjusted by the target filtering intensity. For example, if the target filtering intensity is medium, the preset difference threshold used as the first difference condition can be reduced. In this regard, this application does not specifically limit the target filtering intensity or the adjusted first difference condition.
[0162] Finally, the first filtered resource information corresponding to each original media resource in the resource refresh request and its corresponding target filtering strength can be used as the resource filtering condition of the original resource stream, so that the terminal device can select multiple updated media resources from the candidate resource library based on the resource filtering condition.
[0163] Therefore, when a resource refresh request includes playback duration and operation information corresponding to multiple original media resources, while determining each type of first-filter resource information based on the resource information corresponding to each original media resource in the resource refresh request, an initial filtering strength can be configured for each type of first-filter resource information. Then, based on the playback duration and operation information in the resource refresh request that reflect the user's interest in the original media resources, the initial filtering strength of each type of first-filter resource information can be adjusted to obtain the target filtering strength. Finally, resource filtering conditions can be determined based on the first-filter resource information and its corresponding target filtering strength. It is evident that the determination of resource filtering conditions also considers the impact of user-triggered operation information and playback duration related to the original media resources. Based on these impacts, the filtering strength of the resource filtering conditions can be appropriately adjusted, which helps to select more reasonable updated media resources, increase user interest in updated media resources, and thus improve the user experience.
[0164] Then, the terminal device can receive the updated resource stream from the backend server in response to the resource refresh request, and thus play the updated media resources in the updated resource stream in the resource playback interface.
[0165] Therefore, in response to a resource refresh operation triggered by the resource refresh control, the terminal device sends a resource refresh request to the backend server. The backend server then determines the updated resource stream based on the request and sends it back to the terminal device. Once the terminal device receives the updated resource stream from the backend server, it can play the updated media resources from the updated resource stream in the resource playback interface. As can be seen, this method allows for real-time requests for updated resource streams from the backend server. The backend server then filters the updated media resources based on the resource information of the original media resources triggered by the resource switch operation, assembling an updated resource stream. Since the updated media resources in the updated resource stream are ensured to have significant differences from the original media resources triggered by the resource switch operation, this helps increase user interest in the updated resource stream, thereby improving the user experience.
[0166] In another possible implementation, the terminal device can pre-fetch the updated resource stream before receiving the resource refresh operation, and then directly play the updated media resources in the updated resource stream after receiving the resource refresh operation. In this case, the resource refresh method provided in this application embodiment may further include:
[0167] During the process of playing media resources in the original resource stream through the resource playback interface, the updated resource stream is retrieved from the backend server and cached.
[0168] Correspondingly, the above-mentioned S303 "in response to a resource refresh operation triggered by a resource refresh control, playing updated media resources in the resource playback interface" may include:
[0169] In response to a resource refresh operation triggered by the resource refresh control, play the updated media resource from the cached updated resource stream in the resource playback interface.
[0170] During the process of playing media resources in the original resource stream through the resource playback interface, the updated resource stream can be retrieved from the backend server in advance and stored in the cache. This facilitates the rapid retrieval of the updated resource stream and the playback of the updated media resources in the updated resource stream, thereby improving the response speed to resource refresh operations.
[0171] As an example, a backend server can determine the update resource flow in the following ways:
[0172] Based on the resource information corresponding to each media resource included in the original resource stream, determine the second filter resource information;
[0173] Based on the resource information corresponding to the candidate media resources in the candidate resource library, select the candidate media resources whose corresponding resource information and the second filter resource information meet the second difference condition, and use them as the updated media resources.
[0174] An update resource stream is formed by using multiple selected update media resources.
[0175] The second filtering resource information refers to the resource information corresponding to the media resources to be filtered out. For example, the creator, tag type, and key objects of the media resources in the original resource stream can be used as the second filtering resource information. The second filtering resource information can be the same as or different from the first filtering resource information. The difference lies in that the second filtering resource information can be determined by the backend server after determining the original resource stream, based on the resource information corresponding to each media resource in the original resource stream. The first filtering resource information, on the other hand, needs to be determined after the user triggers a resource refresh operation through the resource refresh control, based on the resource information corresponding to each original media resource in the original resource stream that has been triggered by the resource switching operation. Therefore, this application embodiment does not specifically limit the first and second filtering resource information.
[0176] After the backend server determines the original resource stream, it can determine the second filtering information corresponding to each media resource based on the resource information corresponding to each media resource included in the original resource stream.
[0177] Then, based on the resource information corresponding to the candidate media resources in the candidate resource library, candidate media resources whose differences between their corresponding resource information and the second filtered resource information meet the second difference condition can be selected as updated media resources. In other words, candidate media resources whose differences between their corresponding resource information and multiple second filtered resource information all meet the second difference condition can be selected from the candidate resource library and used as updated media resources. The second difference condition can indicate a preset difference threshold between the resource information corresponding to the candidate media resource used as the updated media resource and the second filtered resource information. The second difference condition can be provided by the backend server. The first difference condition and the second difference condition can be the same or different. The difference lies in that the first difference condition can also change based on user-triggered operation information and playback duration of the original media resource, while the second difference condition is determined when no resource refresh operation is triggered through the resource refresh control. That is, the second difference condition is usually fixed. Therefore, this application embodiment does not specifically limit the first and second difference conditions.
[0178] As an example, the resource information corresponding to the candidate media resource and the multiple second-filtered resource information can be converted into corresponding feature vectors, resulting in the feature vectors of the resource information corresponding to the candidate media resource and the feature vectors of the multiple second-filtered resource information. Then, the difference between the feature vectors of the resource information corresponding to the candidate media resource and the feature vectors of the multiple second-filtered resource information can be calculated using the Euclidean distance algorithm or the Manhattan distance algorithm. This application does not specifically limit the method for calculating the difference.
[0179] Finally, if the difference between the resource information corresponding to the candidate media resource and the multiple second-filtered resource information satisfies the second difference condition, the candidate media resource can be used as the updated media resource. Thus, multiple candidate media resources selected from the candidate resource library can be used as updated media resources to form an updated resource stream through the above method.
[0180] Therefore, after determining the second filtering resource information based on the resource information corresponding to each media resource in the original resource stream, candidate media resources whose difference from the second filtering resource information meets the second difference condition can be selected from the candidate resource library as updated media resources. Thus, multiple updated media resources can be used to form an updated resource stream. It is evident that during the playback of the original media resources through the resource playback interface, candidate media resources that are significantly different from each media resource in the original resource stream can be pre-determined using the above method as updated media resources. On the one hand, this provides users with an updated resource stream that differs significantly from the original resource stream when they are not interested in it, thereby increasing user interest in the updated resource stream. On the other hand, determining the updated resource stream in this way before the user triggers a resource refresh operation helps to promptly provide the updated resource stream to the user after detecting that the user has triggered a resource refresh operation, avoiding waiting and improving resource provision efficiency.
[0181] As an example, when a user clicks the resource refresh control and triggers a resource refresh operation, the terminal device responds to the resource refresh operation by retrieving the updated resource stream from the cache, and then plays the updated media resources in the cached updated resource stream in the resource playback interface.
[0182] Therefore, during the playback of original media resources through the resource playback interface, the updated resource stream can be retrieved from the backend server in advance and cached. Subsequently, the terminal device can respond to the resource refresh operation triggered by the resource refresh control and play the updated media resources in the cached updated resource stream in the resource playback interface. This can reduce the time to retrieve the updated resource stream, reduce repeated network requests, and improve the response speed of the updated resource stream.
[0183] Based on the resource refresh method provided in the preceding embodiments, this application also provides a resource refresh device. The following description is in conjunction with FIG8, which is a structural schematic diagram of the resource refresh device 800 provided in an embodiment of this application. The device includes:
[0184] The receiving module 801 is used to receive resource switching operations triggered by multiple original media resources playing continuously in the resource playback interface; the multiple original media resources belong to the original resource stream.
[0185] Display module 802 is used to display a resource refresh control in the resource playback interface if the resource switching operation triggered for the multiple original media resources meets the resource refresh condition.
[0186] The playback module 803 is used to play updated media resources in the resource playback interface in response to a resource refresh operation triggered by the resource refresh control; the updated media resources belong to an updated resource stream, and the updated resource stream is different from the original resource stream.
[0187] Optionally, whether the resource switching operation triggered for each of the multiple original media resources meets the resource refresh condition is determined by the following unit:
[0188] The first detection unit is used to detect whether the resource switching operation triggered for each of the multiple original media resources is a fast switching operation according to the playback order of the original media resources; the duration between the triggering time of the fast switching operation and the start playback time of the original media resource is within a preset duration threshold.
[0189] The first determining unit is configured to determine that the resource refresh condition is met if all the resource switching operations triggered for m consecutively played original media resources belong to the fast switching operation; where m is a preset fast switching number threshold and m is an integer greater than 1.
[0190] Optionally, whether the resource switching operation triggered for each of the plurality of original media resources satisfies the resource refresh condition is determined by the following unit:
[0191] The second detection unit is used to detect, according to the playback order of the plurality of original media resources, whether the resource switching operation triggered for each of the original media resources is a fast switching operation or a medium-speed switching operation; the duration between the triggering time of the fast switching operation and the starting playback time of the original media resource is within a first duration interval, and the duration between the triggering time of the medium-speed switching operation and the starting playback time of the original media resource is within a second duration interval, wherein the maximum threshold value of the first duration interval is less than or equal to the minimum threshold value of the second duration interval;
[0192] The second determining unit is configured to determine that the resource refresh condition is met if all the resource switching operations triggered for n consecutively played original media resources belong to either the fast switching operation or the medium-speed switching operation; where n is an optimized switching count threshold, which is determined based on at least one of the detected number of fast switching operations or the number of medium-speed switching operations, and n is an integer greater than 1.
[0193] Optionally, the apparatus further includes the following unit for determining the optimized switching count threshold:
[0194] The acquisition unit is used to acquire the initial switching count threshold;
[0195] An increase processing unit is configured to increase the initial switching count threshold based on the number of detected medium-speed switching operations when the number of detected medium-speed switching operations exceeds the first count threshold.
[0196] A reduction processing unit is used to reduce the initial switching count threshold based on the number of detected fast switching operations when the number of detected fast switching operations exceeds the second threshold.
[0197] The third determining unit is used to obtain the optimized switching number threshold by performing at least one of the increasing or decreasing processes on the initial switching number threshold.
[0198] Optionally, the display module 802 is further configured to switch the display of the target label in the resource playback interface to the resource refresh control;
[0199] or,
[0200] The display module 802 is also used to display the resource refresh control at a target position in the resource playback interface; the target position is any position in the resource playback interface where no functional control is deployed.
[0201] Optionally, the device further includes:
[0202] The first display unit is used to display refresh function prompt information at the associated position corresponding to the resource refresh control; the refresh function prompt information is used to indicate that the media resource can be refreshed through the resource refresh control.
[0203] Optionally, the device further includes:
[0204] The first cancellation display unit is used to cancel the display of the resource refresh control after the updated media resource is played in the resource playback interface in response to the resource refresh operation triggered by the resource refresh control.
[0205] or,
[0206] The second cancellation display unit is used to cancel the display of the resource refresh control if no resource refresh operation triggered by the resource refresh control is detected during the first display period corresponding to the resource refresh control.
[0207] Optionally, the first or second cancel display unit includes:
[0208] The switching unit is used to switch the display of the resource refresh control back to the target label if the resource refresh control is obtained by switching the target label in the resource playback interface.
[0209] or,
[0210] The third cancellation display unit is used to cancel the display of the resource refresh control at the target location if the resource refresh control is newly displayed at the target location where no functional control is deployed in the resource playback interface.
[0211] Optionally, the device further includes:
[0212] The fourth cancellation display unit is used to cancel the display of the refresh function prompt information if no resource refresh operation triggered by the resource refresh control is detected within the second display period corresponding to the refresh function prompt information;
[0213] or,
[0214] The fifth cancellation display unit is used to cancel the display of the refresh function prompt information if a close operation triggered by the refresh function prompt information is detected.
[0215] Optionally, the playback module 803 includes:
[0216] The sending unit is configured to send a resource refresh request to the backend server in response to the resource refresh operation triggered by the resource refresh control; the resource refresh request includes resource information corresponding to the plurality of original media resources and the triggering method information of the resource refresh operation;
[0217] The receiving unit is configured to receive the updated resource stream fed back by the backend server in response to the resource refresh request;
[0218] The first playback unit is used to play the updated media resource in the updated resource stream in the resource playback interface.
[0219] Optionally, the apparatus further includes the following unit for determining the updated resource flow:
[0220] The fourth determining unit is used to determine resource filtering conditions based on the resource information corresponding to the plurality of original media resources included in the resource refresh request; the resource filtering conditions are used to indicate the first filtered resource information corresponding to the media resources to be filtered out.
[0221] The first selection unit is used to select multiple candidate media resources from the candidate resource library as multiple updated media resources based on the resource filtering conditions and the resource information corresponding to the candidate media resources in the candidate resource library; the difference between the resource information corresponding to the updated media resources and the first filtered resource information satisfies the first difference condition.
[0222] The first combination unit is used to compose the update resource stream using the plurality of update media resources.
[0223] Optionally, the resource refresh request may also include the playback duration and operation information corresponding to the plurality of original media resources, wherein the operation information is used to indicate other operations triggered for the original media resources besides the resource switching operation;
[0224] The fourth determining unit includes:
[0225] An adjustment unit is configured to, for each original media resource, determine the first filtering resource information corresponding to the original media resource based on the resource information corresponding to the original media resource, and configure an initial filtering intensity for the first filtering resource information; adjust the initial filtering intensity based on the playback duration and operation information corresponding to the original media resource to obtain a target filtering intensity corresponding to the first filtering resource information; the target filtering intensity is used to determine the first difference condition corresponding to the first filtering resource information.
[0226] The sixth determining unit is used to determine the resource filtering conditions based on the first filtered resource information corresponding to each of the plurality of original media resources and the corresponding target filtering intensity.
[0227] Optionally, the device further includes:
[0228] The fetching unit is used to fetch the updated resource stream from the backend server and cache the updated resource stream during the process of playing media resources in the original resource stream through the resource playback interface.
[0229] Correspondingly, the playback module 803 includes:
[0230] The second playback unit is configured to play the updated media resource in the cached updated resource stream in the resource playback interface in response to the resource refresh operation triggered by the resource refresh control.
[0231] Optionally, the apparatus further includes the following unit for determining the update resource flow in the background server:
[0232] The seventh determining unit is used to determine the second filtering resource information based on the resource information corresponding to each media resource included in the original resource stream.
[0233] The second selection unit is used to select candidate media resources whose difference between the corresponding resource information and the second filtered resource information meets the second difference condition, based on the resource information corresponding to the candidate media resources in the candidate resource library, and use them as updated media resources.
[0234] The second combining unit is used to compose the update resource stream using the selected plurality of update media resources.
[0235] This application also provides a computer device, which may specifically be a terminal device or a server. The terminal device and server provided in this application will be described below from the perspective of hardware implementation.
[0236] Referring to Figure 9, which is a schematic diagram of the terminal device provided in an embodiment of this application, for ease of explanation, only the parts related to the embodiment of this application are shown in Figure 9. For specific technical details not disclosed, please refer to the method section of the embodiment of this application. The terminal can be any terminal device including mobile phones, tablet computers, personal digital assistants (PDAs), point-of-sale (POS) terminals, in-vehicle computers, etc. Taking a computer as an example:
[0237] Figure 9 shows a block diagram of a portion of the structure of a computer associated with the terminal provided in the embodiments of this application. Referring to Figure 9, the computer includes: a radio frequency (RF) circuit 1210, a memory 1220, an input unit 1230 (including a touch panel 1231 and other input devices 1232), a display unit 1240 (including a display panel 1241), a sensor 1250, an audio circuit 1260 (connected to a speaker 1261 and a microphone 1262), a wireless fidelity (WiFi) module 1270, a processor 1280, and a power supply 1290, etc. Those skilled in the art will understand that the computer structure shown in Figure 9 does not constitute a limitation on the computer, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0238] The memory 1220 can be used to store software programs and modules. The processor 1280 executes various computer functions and data processing by running the software programs and modules stored in the memory 1220. The memory 1220 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application 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 (such as audio data, telephone directory, etc.). In addition, the memory 1220 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.
[0239] The processor 1280 is the control center of the computer, connecting various parts of the computer through various interfaces and lines. It performs various computer functions and processes data by running or executing software programs and / or modules stored in the memory 1220, and by calling data stored in the memory 1220. Optionally, the processor 1280 may include one or more processing units; preferably, the processor 1280 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may also not be integrated into the processor 1280.
[0240] In this embodiment, the processor 1280 included in the terminal is used to execute the steps in the resource refresh method described in the foregoing embodiments.
[0241] Referring to Figure 10, which is a schematic diagram of the structure of a server 1300 provided in an embodiment of this application, the server 1300 can vary considerably due to different configurations or performance. It may include one or more central processing units (CPUs) 1322 (e.g., one or more processors) and memory 1332, and one or more storage media 1330 (e.g., one or more mass storage devices) for storing application programs 1342 or data 1344. The memory 1332 and storage media 1330 may be temporary or persistent storage. The program stored in the storage media 1330 may include one or more modules (not shown in the figure), each module including a series of instruction operations on the server. Furthermore, the CPU 1322 may be configured to communicate with the storage media 1330 and execute the series of instruction operations in the storage media 1330 on the server 1300.
[0242] Server 1300 may also include one or more power supplies 1326, one or more wired or wireless network interfaces 1350, one or more input / output interfaces 1358, and / or one or more operating systems, such as Windows Server. TM Mac OS X TM Unix TM Linux TM FreeBSD TM etc.
[0243] The steps performed by the server in the above embodiments can be based on the server structure shown in Figure 10. The CPU 1322 is used to execute the steps in the resource refresh methods described in the foregoing embodiments.
[0244] This application also provides a computer-readable storage medium for storing a computer program that performs the steps in the resource refresh methods described in the foregoing embodiments.
[0245] This application also provides a computer program product or computer program that includes 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 steps of the resource refresh methods described in the foregoing embodiments.
[0246] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0247] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between apparatuses or units through some interfaces, and may be electrical, mechanical, or other forms.
[0248] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0249] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0250] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing computer programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0251] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0252] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A resource refresh method, executed by a computer device, the method comprising: Receive resource switching operations triggered by multiple original media resources playing continuously in the resource playback interface; the multiple original media resources belong to the original resource stream; If the resource switching operation triggered for the multiple original media resources meets the resource refresh condition, then the resource refresh control is displayed in the resource playback interface. In response to a resource refresh operation triggered by the resource refresh control, an updated media resource is played in the resource playback interface; the updated media resource belongs to an updated resource stream, which is different from the original resource stream.
2. The method according to claim 1, wherein, Whether the resource switching operation triggered by the multiple original media resources satisfies the resource refresh condition is determined in the following way: According to the playback order of the multiple original media resources, it is detected whether the resource switching operation triggered for each original media resource is a fast switching operation; the duration between the triggering time of the fast switching operation and the start playback time of the original media resource is within a preset duration threshold. If all the resource switching operations triggered for m consecutively played original media resources belong to the fast switching operation, then the resource refresh condition is satisfied; m is a preset fast switching number threshold, and m is an integer greater than 1.
3. The method according to claim 1, wherein, Whether the resource switching operation triggered by the multiple original media resources satisfies the resource refresh condition is determined in the following way: According to the playback order of the multiple original media resources, it is detected whether the resource switching operation triggered for each original media resource is a fast switching operation or a medium-speed switching operation; the duration between the triggering time of the fast switching operation and the starting playback time of the original media resource is within a first duration interval, and the duration between the triggering time of the medium-speed switching operation and the starting playback time of the original media resource is within a second duration interval, wherein the maximum threshold value of the first duration interval is less than or equal to the minimum threshold value of the second duration interval; If all resource switching operations triggered for n consecutively played original media resources belong to either the fast switching operation or the medium-speed switching operation, then the resource refresh condition is determined to be met; n is an optimized switching count threshold, which is determined based on at least one of the detected number of fast switching operations or the number of medium-speed switching operations, and n is an integer greater than 1.
4. The method according to claim 3, wherein, The optimized switching frequency threshold is determined in the following way: Get the initial switching count threshold; When the number of detected medium-speed switching operations exceeds the first threshold, the initial switching count threshold is increased based on the number of detected medium-speed switching operations. When the number of detected fast switching operations exceeds the second threshold, the initial switching count threshold is reduced based on the number of detected fast switching operations. The optimized switching count threshold is obtained by performing at least one of the increasing or decreasing processes on the initial switching count threshold.
5. The method according to any one of claims 1 to 4, wherein, The step of displaying a resource refresh control in the resource playback interface includes: Switch the display of the target label in the resource playback interface to the resource refresh control; or, The resource refresh control is displayed at the target location in the resource playback interface; the target location is any location in the resource playback interface where no functional control is deployed.
6. The method according to any one of claims 1 to 5, wherein, The method further includes: A refresh function prompt message is displayed at the associated location corresponding to the resource refresh control; the refresh function prompt message is used to indicate that the media resource can be refreshed through the resource refresh control.
7. The method according to any one of claims 1 to 6, wherein, The method further includes: After playing the updated media resource in the resource playback interface in response to the resource refresh operation triggered by the resource refresh control, the resource refresh control is de-displayed. or, If no resource refresh operation triggered by the resource refresh control is detected within the first display period corresponding to the resource refresh control, then the resource refresh control will be canceled from display.
8. The method according to claim 7, wherein, The process of canceling the display of the resource refresh control includes: If the resource refresh control is obtained by switching the target label in the resource playback interface, then the resource refresh control will be switched back to the target label; or, If the resource refresh control is newly displayed at a target location where no functional control is deployed in the resource playback interface, then the resource refresh control displayed at the target location will be canceled.
9. The method according to claim 6, wherein, The method further includes: If no resource refresh operation triggered by the resource refresh control is detected within the second display period corresponding to the refresh function prompt message, then the refresh function prompt message will be canceled. or, If a close operation triggered by the refresh function prompt message is detected, the refresh function prompt message will be canceled.
10. The method according to any one of claims 1 to 9, wherein, The step of playing updated media resources in the resource playback interface in response to a resource refresh operation triggered by the resource refresh control includes: In response to the resource refresh operation triggered by the resource refresh control, a resource refresh request is sent to the backend server; the resource refresh request includes resource information corresponding to the plurality of original media resources, and the triggering method information of the resource refresh operation; Receive the updated resource stream fed back by the backend server in response to the resource refresh request; Play the updated media resource in the updated resource stream in the resource playback interface.
11. The method according to claim 10, wherein, The backend server determines the updated resource stream in the following way: Based on the resource information corresponding to the plurality of original media resources included in the resource refresh request, resource filtering conditions are determined; the resource filtering conditions are used to indicate the first filtered resource information corresponding to the media resources to be filtered out. Based on the resource filtering conditions and the resource information corresponding to the candidate media resources in the candidate resource library, multiple candidate media resources are selected from the candidate resource library as multiple updated media resources; The difference between the resource information corresponding to the updated media resource and the first filtered resource information satisfies the first difference condition. The update resource stream is composed of the multiple update media resources.
12. The method according to claim 11, wherein, The resource refresh request also includes the playback duration and operation information corresponding to the multiple original media resources. The operation information is used to indicate other operations triggered for the original media resources besides the resource switching operation. The step of determining resource filtering conditions based on the resource information corresponding to the plurality of original media resources included in the resource refresh request includes: For each original media resource, the first filtering resource information corresponding to the original media resource is determined based on the resource information corresponding to the original media resource, and an initial filtering intensity is configured for the first filtering resource information; the initial filtering intensity is adjusted based on the playback duration and operation information corresponding to the original media resource to obtain the target filtering intensity corresponding to the first filtering resource information; the target filtering intensity is used to determine the first difference condition corresponding to the first filtering resource information. The resource filtering conditions are determined based on the first filtered resource information corresponding to each of the plurality of original media resources and their corresponding target filtering strength.
13. The method according to any one of claims 1 to 9, wherein, The method further includes: During the process of playing media resources in the original resource stream through the resource playback interface, the updated resource stream is retrieved from the backend server and cached. The step of playing updated media resources in the resource playback interface in response to a resource refresh operation triggered by the resource refresh control includes: In response to the resource refresh operation triggered by the resource refresh control, the updated media resource in the cached updated resource stream is played in the resource playback interface.
14. The method according to claim 13, wherein, The backend server determines the updated resource stream in the following way: Based on the resource information corresponding to each media resource included in the original resource stream, the second filtering resource information is determined; Based on the resource information corresponding to the candidate media resources in the candidate resource library, select the candidate media resources whose corresponding resource information and the second filtered resource information meet the second difference condition, and use them as updated media resources; The selected multiple updated media resources are used to form the updated resource stream.
15. A resource refresh device, wherein, The device includes: The receiving module is used to receive resource switching operations triggered by multiple original media resources playing continuously in the resource playback interface; the multiple original media resources belong to the original resource stream. The display module is used to display a resource refresh control in the resource playback interface if the resource switching operation triggered for the multiple original media resources meets the resource refresh condition. The playback module is used to respond to a resource refresh operation triggered by the resource refresh control and play updated media resources in the resource playback interface; the updated media resources belong to an updated resource stream, which is different from the original resource stream.
16. A computer device, wherein, The device includes a processor and a memory; The memory is used to store computer programs; The processor is configured to execute the resource refresh method according to any one of claims 1 to 14 according to the computer program.
17. A computer-readable storage medium, wherein, The computer-readable storage medium is used to store a computer program that, when executed by a computer device, implements the resource refresh method according to any one of claims 1 to 14.
18. A computer program product comprising a computer program, wherein, When the computer program is executed by the processor, it implements the resource refresh method according to any one of claims 1 to 14.
Citation Information
Patent Citations
Resource refreshing display method and device, equipment and storage medium
CN111581562A
Multimedia resource processing method and device, electronic equipment and storage medium
CN111736746A
Video processing method and device, equipment and storage medium
CN115022720A
Multimedia resource recommendation method and device, equipment and storage medium
CN115221343A
Multimedia resource interaction method and device, medium, electronic equipment and program product
CN118092716A