Resource Automatic Playback Method, Device, Electronic Device and Storage Medium

By responding to input operations on the page and selecting controls based on pre-configured playback strategies, the flexibility of resource automatic playback method is solved, and automatic playback in multiple scenarios is realized, improving the human-computer interactive experience.

CN114237433BActive Publication Date: 2025-07-25BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111547510.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-16
Publication Date
2025-07-25
Estimated Expiration
2041-12-16

AI Technical Summary

Technical Problem

The existing resource automatic playback methods lack flexibility and cannot be applied to multiple scenarios, resulting in limited autoplay function.

Method used

By responding to page input operations, determine the current playback control, and select the automatic playback control based on the pre-configured playback policy. Use the configuration parameters of the playback policy such as network type, weight, priority, position and stop conditions, etc. to filter out the controls that meet the conditions for automatic playback.

Benefits of technology

It realizes automatic playback that is flexible and adaptable in various page control layouts, enhances human-computer interaction capabilities, and improves the fun and efficiency of automatic playback.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114237433B_ABST
    Figure CN114237433B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a resource automatic playback method, device, electronic device and storage medium, belonging to the field of computer technology. The resource automatic playback method includes: in response to an input operation performed on a page, determining the playback control currently presented in the page; based on a pre-configured playback strategy, selecting at least one playback control from the determined playback controls; and starting the automatic playback of resources by the at least one playback control. The present disclosure can realize the automatic playback of various controls that conform to the playback strategy in various page control layouts, enhance the human-computer interaction capability, and is conducive to improving the fun of automatic playback and the experience of human-computer interaction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and particularly to a method, apparatus, electronic device, and storage medium for automatically playing resources. Background Art

[0002] Most applications (APPs) trigger resource playback through specific interactions of certain human-machine situations. Taking the scenario of video playback as an example, for instance, when the screen is swiped up and down, the video in the center of the screen will be automatically played when the swipe stops.

[0003] The existing method for automatically playing resources is implemented as follows: The APP actively reports to the backend the page lifecycle information such as the current page scrolling, the page appearing on the screen, the page leaving the screen, entering the APP, and exiting the APP, so as to notify the backend of the situation of the front-end lifecycle. The backend determines the video to be automatically played through an inherent algorithm.

[0004] For example, in a page with a single-column layout for video playback, only when the video is in the center of the screen can it be automatically played, and it cannot be automatically played in other situations.

[0005] The existing method for automatically playing resources lacks flexibility, resulting in the inability of the automatic playback function to be applicable to multiple scenarios. Summary of the Invention

[0006] This application provides a method, apparatus, electronic device, and storage medium for automatically playing resources, so as to at least solve the technical problem that the method for automatically playing resources in the related art lacks flexibility.

[0007] According to one aspect of the disclosed embodiments of the present application, a method for automatically playing resources is provided. The method includes:

[0008] Responding to an input operation performed on a page, determining a currently presented playback control in the page;

[0009] Based on a pre-configured playback policy, selecting at least one playback control from the determined playback controls;

[0010] Starting the automatic playback of resources by the at least one playback control.

[0011] The method further includes:

[0012] Responding to the loading of the page, obtaining the playback policy, where the playback policy is configured according to the layout of the playback controls on the page.

[0013] In a possible implementation manner, the step of selecting at least one playback control from the determined playback controls based on a pre-configured playback policy includes:

[0014] According to the input operation, filter out the playback controls currently presented in the page to obtain a first set of playback controls.

[0015] According to the configuration parameters of the playback policy, filter out the playback controls that meet the configuration parameters from the first set of controls to obtain the at least one playback control.

[0016] In a possible implementation manner, the pre-configured playback policy is configured as follows: corresponding playback policies are configured for different page playback control layouts respectively, and configuration parameters included in the playback policy are configured for the auto-play controls required in the page playback control layout respectively. The configuration parameters include one or any combination of the following:

[0017] The network type accessed when the playback control plays;

[0018] The configuration weight of the playback control;

[0019] The set priority of the playback control;

[0020] The set type of the playback control;

[0021] The set position of the playback control in the page and / or the priority corresponding to the set position;

[0022] The set condition for the playback control to stop playing;

[0023] The number of playback controls that can be played simultaneously.

[0024] In a possible implementation manner, the playback control layout of the page includes:

[0025] A first layout in which the playback controls in the page move up and down and the playback controls are arranged in two columns;

[0026] A second layout in which the playback controls in the page move up and down and the playback controls are arranged in a single column;

[0027] A third layout in which the playback controls in the page move left and right and the playback controls are arranged in a single column;

[0028] A fourth layout in which the playback controls in the page move left and right and the playback controls are arranged in two columns;

[0029] A fifth layout in which the playback controls in the page move up and down and the playback controls are accompanied by a single-column playback control moving left and right;

[0030] A sixth layout in which the playback controls in the page move left and right and the playback controls are accompanied by a single-column control moving up and down.

[0031] In a possible implementation, when there are more than two configuration parameters in the configuration parameters of the playback policy, the configuration parameters further include: a configuration combination obtained from the more than two configuration parameters according to a preset condition.

[0032] In a possible implementation, when the configuration combination satisfies the network type accessed during playback of the playback control and the set type of the playback control, and is sorted according to the configuration weight of the playback control,

[0033] The method of screening out playback controls that meet the configuration parameters from the first control set according to the configuration parameters included in the playback policy to obtain the at least one playback control includes:

[0034] Filtering out non-conforming playback controls from the first control set according to the network type accessed during playback of the playback control and the set type of the playback control,

[0035] Sorting the playback controls in the filtered first control set according to the configuration weight of the playback control,

[0036] Selecting preferred playback controls from the sorted playback controls to obtain the at least one playback control.

[0037] In a possible implementation, the determining of the currently presented playback control in the page in response to an input operation performed on the page includes:

[0038] Obtaining lifecycle information from the page;

[0039] Determining the currently presented playback control in the page according to the lifecycle information.

[0040] In a possible implementation, the obtaining of the lifecycle information from the page includes:

[0041] Listening for a sliding event that causes a change in the presentation area of the page,

[0042] wherein,

[0043] the sliding event at least includes: a sliding state parameter;

[0044] the sliding state parameter includes: one or any combination of a sliding speed, a sliding start state, a sliding stop state, and a sliding position.

[0045] In a possible implementation, it further includes:

[0046] When a sliding event is monitored,

[0047] If the window area of the playback control currently being played moves out of the screen and reaches a set area threshold, stop the current playback of the playback control currently being played.

[0048] According to one aspect of the disclosed embodiments of the present application, a resource automatic playback device is provided, and the device includes:

[0049] A first module configured to determine the playback control currently presented in the page in response to an input operation performed on the page;

[0050] A second module configured to select at least one playback control from the determined playback controls based on a pre-configured playback policy;

[0051] A third module configured to start the automatic playback of the resource by the at least one playback control.

[0052] As a possible implementation, it further includes:

[0053] A fourth module configured to obtain the playback policy in response to the loading of the page, where the playback policy is configured according to the playback control layout of the page.

[0054] As a possible implementation, the second module is further configured to

[0055] Filter out the playback controls currently presented in the page according to the input operation to obtain a first set of playback controls,

[0056] Filter out the playback controls that meet the configuration parameters from the first set of controls according to the configuration parameters of the playback policy to obtain a second set of playback controls,

[0057] Sort the playback controls in the second set of playback controls according to a set sorting policy,

[0058] Select the preferred playback controls from the sorted playback controls.

[0059] As a possible implementation, the pre-configured playback policy is configured in the following manner: corresponding playback policies are configured for different page playback control layouts, and configuration parameters included in the playback policy are configured for the automatic playback controls required in the page playback control layout, and the configuration parameters include one or any combination of the following:

[0060] The network type accessed by the playback control;

[0061] The configuration weight of the playback control;

[0062] The set priority of the playback control;

[0063] Setting types of the playback control

[0064] Set positions of the playback control in the page and / or priorities corresponding to the set positions

[0065] Set conditions for the playback control to stop playing

[0066] Number of simultaneously playable playback controls

[0067] As a possible implementation, the layout of the playback control on the page includes:

[0068] The first layout where the playback control moves up and down in the page and the playback controls are arranged in two columns

[0069] The second layout where the playback control moves up and down in the page and the playback controls are arranged in a single column

[0070] The third layout where the playback control moves left and right in the page and the playback controls are arranged in a single column

[0071] The fourth layout where the playback control moves left and right in the page and the playback controls are arranged in two columns

[0072] The fifth layout where the playback control moves up and down in the page and the playback control is accompanied by a single-column playback control that moves left and right

[0073] The sixth layout where the playback control moves left and right in the page and the playback control is accompanied by a single-column control that moves up and down

[0074] As a possible implementation, in the case where the configuration parameters of the playback strategy include more than two configuration parameters, the configuration parameters further include: configuration combinations obtained from the more than two configuration parameters according to preset conditions

[0075] As a possible implementation, the second module is configured to

[0076] In the case where the configuration combination is to satisfy the network type accessed during playback of the playback control and the setting type of the playback control, and is sorted according to the configuration weights of the playback control, filter out the non-conforming playback controls from the first control set according to the network type accessed during playback of the playback control and the setting type of the playback control

[0077] Sort the playback controls in the filtered first control set according to the configuration weights of the playback control

[0078] Select the preferred playback controls from the sorted playback controls to obtain the at least one playback control

[0079] As a possible implementation, the first module is configured to obtain the lifecycle information from the page; and determine the playback control currently presented in the page according to the lifecycle information.

[0080] As a possible implementation, the first module is configured to listen for a sliding event that causes a change in the rendering area of the page.

[0081] Wherein,

[0082] the sliding event at least includes: a sliding state parameter;

[0083] the sliding state parameter includes one or any combination of: a sliding speed, a sliding start state, a sliding stop state, and a sliding position.

[0084] As a possible implementation, the first module is configured to, when a sliding event is detected, if the window area of the currently playing playback control moves out of the screen by a set area threshold, stop the current playback of the currently playing playback control. According to another aspect of the disclosed embodiments of the present application, an electronic device is provided, including:

[0085] a processor;

[0086] a memory for storing executable instructions of the processor;

[0087] wherein, the processor is configured to execute the executable instructions to implement any of the resource automatic playback methods.

[0088] According to another aspect of the disclosed embodiments of the present application, a computer-readable storage medium is provided. When at least one instruction in the computer-readable storage medium is executed by a processor of an electronic device, the electronic device can implement the resource automatic playback method described in any of the above embodiments.

[0089] According to yet another aspect of the disclosed embodiments of the present application, a computer program product is provided, including a computer program that implements the resource automatic playback method when executed by a processor.

[0090] The technical solutions provided by the disclosed embodiments of the present application at least bring the following beneficial effects:

[0091] By using the configured playback strategy, it is possible to achieve automatic playback of various controls that conform to the playback strategy in various page control layouts, enhancing the human-computer interaction ability, facilitating improving the fun of automatic playback, and improving the human-computer interaction experience.

[0092] The adaptation of the playback strategy can improve the efficiency of accessing automatic playback, enabling the automatic playback scenario to be personalized and customized to adapt to various scenarios that may require automatic playback, with high flexibility. By selecting the playback strategy, the playback algorithm can be switched conveniently, allowing applications that require automatic playback technology to quickly and conveniently implement the automatic playback function.

[0093] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and do not limit the disclosure of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0094] The drawings herein are incorporated into the specification and form a part of this specification, showing embodiments consistent with the disclosure of the present application, and are used together with the specification to explain the principles of the disclosure of the present application, and do not constitute an improper limitation to the disclosure of the present application.

[0095] Figure 1a is a schematic flowchart of a resource automatic playback method shown according to an exemplary embodiment;

[0096] Figure 1b is another schematic flowchart of a resource automatic playback method shown according to an exemplary embodiment;

[0097] Figure 2 is yet another schematic diagram of an automatic playback method shown according to an exemplary embodiment;

[0098] Figure 3 is a schematic diagram of an automatic playback page shown according to an exemplary embodiment;

[0099] Figure 4 is a schematic diagram of an automatic playback adaptation method shown according to an exemplary embodiment;

[0100] Figure 5a is a schematic diagram of an automatic playback device shown according to an exemplary embodiment;

[0101] Figure 5b is another schematic diagram of an automatic playback device shown according to an exemplary embodiment;

[0102] Figure 6 is a schematic diagram of an automatic playback adaptation device shown according to an exemplary embodiment;

[0103] Figure 7 is a schematic diagram of an electronic device shown according to an exemplary embodiment. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0104] To enable those of ordinary skill in the art to better understand the technical solutions disclosed in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings.

[0105] It should be noted that the terms "first", "second", etc. in the specification, claims and the above-mentioned drawings disclosed in this application are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments disclosed in this application described here can be implemented in an order other than those illustrated or described here. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the disclosure of this application. On the contrary, they are only examples of devices and methods consistent with some aspects of the disclosure of this application as detailed in the appended claims.

[0106] See Figure 1a as shown Figure 1a is a schematic flowchart of a resource automatic playback method shown according to an exemplary embodiment. The method includes:

[0107] In response to an input operation performed on the page, determine the playback control currently presented on the page;

[0108] Based on a pre-configured playback policy, select at least one playback control from the determined playback controls;

[0109] Start the automatic playback of the resource by the at least one playback control.

[0110] This application can realize the automatic playback of various controls that conform to the playback policy in various page control layouts by using the playback policy configured in the playback component, enhancing the human-computer interaction ability.

[0111] To facilitate understanding of this application, the following is described in conjunction with specific embodiments.

[0112] In the following exemplary embodiments of this application, by listening to the lifecycle information of the page to obtain the input operation performed on the page, and using a configurable playback policy component, the videos for automatic playback that conform to the configured playback policy are screened out. See Figure 1b as shown Figure 1b is a schematic flowchart of a resource automatic playback method shown according to an exemplary embodiment. The method includes:

[0113] On the side of the automatic playback component,

[0114] Step 101, obtain the lifecycle information from the page,

[0115] Step 102, notify the lifecycle information to the playback policy component, so that the playback policy component filters out the control information of the resources that can be automatically played based on the playback policy according to the lifecycle information, where the playback policy is pre-configured according to the page playback control layout,

[0116] Step 103: Receive the control information filtered by the playback policy component, and interact with the corresponding playback control in the page based on the control information to start the resource playback of the corresponding playback control in the page.

[0117] On the side of the playback policy component,

[0118] Step 104: Receive the page lifecycle information from the automatic playback component;

[0119] Step 105: Based on the lifecycle information, filter out the control information of the controls that can automatically play resources according to the playback policy,

[0120] Step 106: Notify the filtered control information to the automatic playback component, so that the automatic playback component interacts with the corresponding playback control in the page based on the control information to start the playback of the corresponding playback control in the page.

[0121] Among them,

[0122] The playback policy is pre-configured according to the page control layout, and the configuration parameters of the page control layout are pre-configured according to the playback target, that is, corresponding playback policies are configured for different page playback control layouts, and the configuration parameters included in the playback policy are configured for the automatic playback controls required in the page playback control layout respectively.

[0123] The configuration parameters include one or any combination of the following:

[0124] The type of network accessed;

[0125] The configuration weight of the playback control;

[0126] The set priority of the playback control;

[0127] The set type of the playback control;

[0128] The set position of the playback control in the page and / or the priority corresponding to the set position;

[0129] The set condition for the playback control to stop playing;

[0130] The number of playback controls that can play simultaneously.

[0131] When there are two or more configuration parameters, the configuration parameters further include: the configuration combination obtained according to the preset conditions. The preset conditions can be set according to the playback target. For example, they can be logical operations such as AND, OR, NOT, or operations such as filtering.

[0132] The different page playback control layouts include:

[0133] The first layout where the playback control moves up and down on the page and the playback controls are arranged in two columns

[0134] The second layout where the playback control moves up and down on the page and the playback controls are arranged in a single column

[0135] The third layout where the playback control moves left and right on the page and the playback controls are arranged in a single column

[0136] The fourth layout where the playback control moves left and right on the page and the playback controls are arranged in two columns

[0137] The fifth layout where the playback control moves up and down on the page and the playback control is accompanied by a single-column playback control that moves left and right

[0138] The sixth layout where the playback control moves left and right on the page and the playback control is accompanied by a single-column control that moves up and down

[0139] It should be understood that the above configuration parameters and the playback control layout of the page are not limited to this, and can be specifically added, deleted, and modified according to the automatic playback of resources in different scenarios

[0140] The resource automatic playback method of the exemplary embodiment of the present application can implement the automatic playback of various controls that conform to the playback strategy in various page control layouts, enhancing the human-computer interaction ability, being beneficial to improving the interest of automatic playback, and improving the experience of human-computer interaction

[0141] In the following exemplary embodiments, a software for video automatic playback is used as an example for illustration. It should be understood that the automatic playback method of the present application is not limited to videos and can be applied to the automatic playback of any resource. For example, the automatic playback of voice, and the software can also be a platform running on the server side or an application program running on the backend

[0142] The software for video automatic playback includes: an automatic playback component and a playback strategy component; the automatic playback component is used to monitor the lifecycle information of the page, notify the monitored lifecycle information to the playback strategy component, the playback strategy component filters out the required lifecycle information, calculates the controls that can perform playback based on the filtered lifecycle information, and feeds back the control information corresponding to the controls that can perform playback to the automatic playback component. The automatic playback component interacts with the controls to start the playback of the controls

[0143] The playback strategy component filters through a playback algorithm. Different playback algorithms have different processing steps, and the playback algorithm can be configured personalized. The automatic playback component only needs to care about the finally filtered controls that perform playback

[0144] The playback strategy component can include more than one playback algorithm. Each playback algorithm can correspond to different page control layout scenarios to form different playback strategies. Taking the sliding video control as an example, it can include the double-column arrangement form of sliding the video up and down, the single-column arrangement form of sliding the video up and down on the page, the single-column arrangement form of sliding the video left and right on the page, and the arrangement form of sliding the control up and down on the page with a single-column video sliding left and right, etc.

[0145] Each playback algorithm has configurable specific configuration parameters to facilitate personalized configuration or on-demand configuration. The playback algorithm can also be replaced with a self-written algorithm. The algorithm and configuration parameters support being sent from the server to facilitate online adjustment at any time.

[0146] For the personalized configuration of the playback algorithm, its configuration parameters include but are not limited to:

[0147] The network type accessed during playback. For example, whether to play only in the Wi-Fi case;

[0148] The set type of the playback control. For example, whether it is a live broadcast type playback control;

[0149] The configuration weight of the playback control. For example, whether to ignore the configured weight;

[0150] The priority of the playback control. For example, setting different priorities for different playback controls;

[0151] The set position of the playback control on the page and / or the priority corresponding to the set position. For example, the control whose distance from the set position on the screen is less than the set distance threshold has a set priority (such as the controls in the middle of the screen, and / or at the top, and / or near the bottom are given priority to play);

[0152] The set condition for the playback control to stop playing. For example, when the proportion of the playback control not on the screen reaches the set proportion threshold, stop playing;

[0153] The number of playback controls that can be played simultaneously.

[0154] Among them, the distance threshold, proportion threshold, and playback priority can all be set according to requirements.

[0155] The auto-play component obtains the input operation status parameters of the current page by listening. Taking the input operation as a swipe operation as an example, it obtains the swipe status parameters of the current page by listening. The swipe status parameters include, but are not limited to, one or any combination of the starting state of the swipe, the swipe speed, the stopping state of the swipe, and the position of the swipe. For example, when swiping up and down, swiping left and right, and nested swiping in a control (such as the overall page swipes up and down, and the middle control swipes left and right), the start of the swipe, the deceleration of the swipe, the stop of the swipe, the swipe speed, and the specific position reached by the swipe can be obtained. It can also obtain the entry and exit of the page by listening, monitor whether the App enters the front end or the back end, monitor whether a window control on the current page is clicked, monitor changes in the network status, and a series of events that may cause changes in the auto-play state.

[0156] See Figure 2 as shown Figure 2 is a schematic diagram of an auto-play method shown according to an exemplary embodiment. It includes the following steps:

[0157] Step 201, the auto-play component listens to the input operation events of the page,

[0158] Step 202, after the auto-play component listens to the input operation event, it notifies the listened input operation event to the play policy component,

[0159] Taking the swipe operation as an example, when the auto-play component listens to the start of the page swipe, it notifies the swipe status parameters of the current page obtained by listening to the play policy component, so that the play policy component checks whether the playing control being played has moved out of the screen. For example, when the set window size is moved out of the screen, it is determined that the playing control has moved out of the screen. If the playing control has moved out of the screen, the playback of the playing control is stopped;

[0160] Step 203, after the input operation event listened by the play policy component stops, for example, after the page swipe stops, according to the listening data from the auto-play component, it filters out the control information corresponding to all visible (presented) and playable playing controls on the current screen to obtain a first control set;

[0161] Step 204, according to the configuration parameters of the play policy, it further filters from the first control set to filter out the control information corresponding to the playing controls that meet the configuration parameters to obtain a second control set;

[0162] As an example, the configuration parameters include whether to play under WiFi conditions, whether it is a set type control (for example, a live type control), and the configuration weight of the play control. The configuration combination is: play under WiFi conditions and meet the set control type, and sort according to the configuration weight of the play control. Then, according to the play condition and control type in the configuration parameters, the control information corresponding to the play control that does not match the configuration parameters is filtered out from the first control set, thereby filtering out the control information corresponding to the play control that matches the configuration parameters.

[0163] Step 205, sorting the playback controls corresponding to the control information in the second control set according to the configuration weights of the playback controls, wherein the weights may be pre-configured, and if the weights are equal or empty, the controls are sorted according to their distances from the center of the screen.

[0164] To facilitate code writing, it is usually sorted in descending order to select the controls with the highest ranking. For example, the controls are sorted from large to small according to the weight, and / or sorted from near to far according to the distance between the controls and the center of the screen. In this way, the larger the weight, the higher the ranking, and the closer the distance to the center of the screen, the higher the ranking.

[0165] Step 206, after sorting the playback controls corresponding to the control information in the second control set, according to the number of configured simultaneously playable playback controls, select the control information of the priority playback controls from the sorted second control set in turn according to the number, and notify the automatic playback component.

[0166] Step 207: The automatic play component interacts with the play control corresponding to the control information according to the notified control information, and starts the play of the play control.

[0167] In this exemplary embodiment, acquiring life cycle information by monitoring is beneficial to reducing the frequency and amount of sending life cycle information and improving the interaction efficiency between the automatic play component and the play strategy component.

[0168] See also Figure 3 As shown, Figure 3 The figure is a schematic diagram of automatic playback according to an exemplary embodiment.

[0169] In the figure, if the playback strategy is the live broadcast control type, then after the double-column playback controls stop sliding up and down, the playback controls with live broadcast will be automatically played to display the live broadcast content.

[0170] See also Figure 4 As shown, Figure 4It is a schematic diagram of an automatic playback adaptation method shown according to an exemplary embodiment. On the platform side, for example, a certain business client of a computer or a server, calls a software development kit (SBK), runs an application program in the software development kit, selects a playback strategy according to requirements, and configures configuration parameters in the playback strategy. Among them, different playback strategies correspond to different page playback control layouts, and different playback strategies can be selected according to the page playback control layout. The same playback strategy can correspond to different configuration parameters, and configuration parameters can be selected according to the playback design.

[0171] The automatic playback adaptation method of this exemplary embodiment is conducive to the rapid construction of the automatic playback function, greatly shortening the development cycle; it can be adapted to various automatic playback design scenarios and page control layout scenarios on the mobile side; the playback strategy can be configured at any time, facilitating flexible adjustment.

[0172] See Figure 5a as shown Figure 5a It is a schematic diagram of an automatic playback device shown according to an exemplary embodiment. The device 40 includes:

[0173] A first module 41, configured to determine the playback control currently presented in the page in response to an input operation performed on the page;

[0174] A second module 42, configured to select at least one playback control from the determined playback controls based on a pre-configured playback strategy;

[0175] A third module 43, configured to start the automatic playback of resources by the at least one playback control.

[0176] It further includes:

[0177] A fourth module 44, configured to obtain the playback strategy in response to the loading of the page, where the playback strategy is configured according to the page playback control layout.

[0178] As an example, the second module 42 is configured to screen out the playback controls currently presented in the page according to the input operation to obtain a first set of playback controls, screen out the playback controls that meet the configuration parameters from the first set of controls according to the configuration parameters of the playback strategy to obtain a second set of playback controls, sort the playback controls in the second set of playback controls according to a set sorting strategy, and select the preferred playback controls from the sorted playback controls, where the sorting strategy can be sorting according to the configuration weight of the playback controls.

[0179] As an example, the first module 41 is configured to obtain the lifecycle information from the page; and determine the playback control currently presented in the page according to the lifecycle information.

[0180] As an example, the first module 41 is configured to listen for a sliding event that causes a change in the rendering area of the page,

[0181] wherein,

[0182] the sliding event at least includes: a sliding state parameter;

[0183] the sliding state parameter includes one or any combination of: a sliding speed, a sliding start state, a sliding stop state, and a sliding position.

[0184] As an example, when the first module 41 listens for a sliding event, if the window area of the currently playing playback control moves out of the screen by a set area threshold, the current playback of the currently playing playback control is stopped.

[0185] See Figure 5b shown in Figure 5b is another schematic diagram of an automatic playback device shown according to an exemplary embodiment. The automatic playback device 50 includes:

[0186] An automatic playback component 51, configured to obtain the lifecycle information from the page, notify the lifecycle information to the playback policy component, so that the playback policy component filters out the control information of the resources that can be automatically played based on the playback policy according to the lifecycle information, wherein the playback policy is pre-configured according to the page control layout, receive the control information filtered by the playback policy component, and interact with the corresponding playback control in the page based on the control information to start the playback of the corresponding playback control in the page;

[0187] A playback policy component 52, configured to receive the page lifecycle information from the automatic playback component; filter out the control information of the resources that can be automatically played based on the playback policy according to the lifecycle information, wherein the playback policy is pre-configured according to the page control layout,

[0188] notify the filtered control information to the automatic playback component, so that the automatic playback component interacts with the corresponding playback control in the page based on the control information to start the playback of the corresponding playback control in the page.

[0189] The automatic playback component 51 includes:

[0190] The monitoring module 511 is configured to monitor events that cause changes in the auto-play state, and notify the monitored events to the play policy component;

[0191] The control interaction module 512 is configured to receive the control information filtered by the play policy component, and interact with the corresponding play control in the page based on the control information to start the play of the corresponding play control in the page.

[0192] The play policy component 52 includes:

[0193] The filtering module 521 is configured to, in the case of monitoring an event that causes a change in the auto-play state, filter out the control information of all visible and playable controls in the current page according to the event to obtain a first control set, and filter out the control information corresponding to the play controls that meet the configuration parameters from the first control set according to the configuration parameters of the play policy to obtain a second control set, sort the play controls corresponding to the control information in the second control set according to a set sorting policy, select the control information of the preferred play control from the sorted play controls, and send it to the control interaction module.

[0194] See Figure 6 as shown Figure 6 FIG. 60 is a schematic diagram of an auto-play adaptation device according to an exemplary embodiment. The auto-play adaptation device 60 includes:

[0195] The configuration module 61 is configured to perform play policy configuration, where the play policy is configured according to the page control layout.

[0196] The configuration module 61 includes:

[0197] The first configuration sub-module 611 is configured to configure the play policy according to the page control layout,

[0198] The second configuration sub-module 612 is configured to configure the configuration parameters of the play policy according to the play design.

[0199] See Figure 7 as shown Figure 7 FIG. 35 is a schematic diagram of an electronic device according to an exemplary embodiment. The electronic device includes a processor; a memory for storing executable instructions of the processor;

[0200] wherein, the processor is configured to execute the executable instructions to implement any of the methods for automatically playing resources, or implement the adaptation method for automatically playing resources.

[0201] In an exemplary embodiment, a computer-readable storage medium including at least one instruction is also provided, such as a memory including at least one instruction. The at least one instruction can be executed by a processor in a computer device to complete the method of automatically playing resources in the above embodiment, or implement the adaptation method for automatically playing resources.

[0202] Optionally, the computer-readable storage medium may be a non-transitory computer-readable storage medium. For example, the non-transitory computer-readable storage medium may include a ROM (Read-Only Memory), a RAM (Random-Access Memory), a CD-ROM (Compact Disc Read-Only Memory), magnetic tapes, floppy disks, and optical data storage devices, etc.

[0203] In an exemplary embodiment, a computer program product including one or more instructions is also provided. The one or more instructions can be executed by a processor of a computer device to complete the method of automatically playing resources in the above various embodiments, or implement the adaptation method for automatically playing resources.

[0204] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include known common knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.

[0205] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.

Claims

1. A method for automatic resource playback, characterized in that, The method includes: The auto-play component responds to an input operation performed on the current page with a playback control layout, obtains lifecycle information from the current page, and notifies the obtained lifecycle information to the playback policy component, so that the playback policy component determines the currently presented playback controls in the current page based on the lifecycle information and a pre-configurable playback policy; The auto-play component selects at least two playback controls from the determined playback controls; The auto-play component interacts with the selected playback controls to initiate the auto-play of the resources corresponding to the selected playback controls, so that the resources corresponding to the selected playback controls are auto-played simultaneously on the current page until the window area of the currently playing playback control in the current page moves out of the screen to reach a set area threshold; Wherein, The auto-play component selects at least two playback controls from the determined playback controls, including: The auto-play component notifies the obtained lifecycle information to the playback policy component, so that: The playback policy component filters out the currently presented playback controls in the current page according to the input operation to obtain a first set of playback controls, According to the configuration parameters included in the playback policy, filters out the playback controls that meet the configuration parameters from the first set of controls to obtain the at least two playback controls; The playback policy is configured by the business client on the platform side. Different playback policies correspond to different page playback control layouts, and the same playback policy corresponds to different configuration parameters.

2. The resource automatic playback method according to claim 1, wherein The method further includes: The auto-play component notifies the obtained lifecycle information to the playback policy component, so that the playback policy component obtains the playback policy in response to the loading of the current page, wherein the playback policy is determined according to the playback control layout of the current page.

3. The resource automatic playback method according to claim 1, wherein The pre-configured playback policy is configured in the following manner: corresponding playback policies are configured for different page playback control layouts respectively, and configuration parameters included in the playback policy are configured for the auto-play controls required in the page playback control layout respectively.

4. The resource automatic playback method according to claim 3, characterized in that The configuration parameters include one or any combination of the following: The network type accessed when the playback control plays; The configuration weight of the playback control; The set priority of the playback control; The set type of the playback control; The set position of the playback control in the current page and / or the priority corresponding to the set position; The set condition for the playback control to stop playing; The number of simultaneously playable playback controls.

5. The resource automatic playback method according to claim 4, wherein The different page playback control layouts include: A first layout in which the playback controls in the page move up and down and the playback controls are arranged in two columns; A second layout in which the playback controls in the page move up and down and the playback controls are arranged in a single column; A third layout in which the playback controls in the page move left and right and the playback controls are arranged in a single column; A fourth layout in which the playback controls in the page move left and right and the playback controls are arranged in two columns; A fifth layout in which the playback controls in the page move up and down and the playback controls are accompanied by a single column of playback controls moving left and right; A sixth layout in which the playback controls in the page move left and right and the playback controls are accompanied by a single column of controls moving up and down.

6. The resource automatic playback method according to claim 4, characterized in that, In a case where the configuration parameters of the playback policy include more than two configuration parameters, the configuration parameters further include: a configuration combination obtained from the more than two configuration parameters according to a preset condition.

7. The resource automatic playback method according to claim 6, wherein In a case where the configuration combination satisfies the network type accessed during playback of the playback control and the set type of the playback control, and is sorted according to the configuration weight of the playback control, The screening of the playback controls that meet the configuration parameters from the first control set according to the configuration parameters included in the playback policy to obtain the at least two playback controls includes: Filtering out the playback controls that do not conform from the first control set according to the network type accessed during playback of the playback control and the set type of the playback control, Sorting the playback controls in the filtered first control set according to the configuration weight of the playback control, Selecting the preferred playback controls from the sorted playback controls to obtain the at least two playback controls.

8. The resource automatic playback method according to claim 1, wherein The obtaining of the lifecycle information from the current page includes: Listening for a sliding event that causes a change in the rendering area of the current page, wherein, the sliding event at least includes: a sliding state parameter; the sliding state parameter includes: one or any combination of a sliding speed, a sliding start state, a sliding stop state, and a sliding position.

9. The resource automatic playback method according to claim 8, wherein The method further includes: In a case where a sliding event is detected, if the window area of the currently playing playback control moves out of the screen by a set area threshold, then stop the current playback of the currently playing playback control.

10. An automatic resource playback device, characterized in that, The device includes: A first module, configured to obtain lifecycle information from the current page when an automatic playback component responds to an input operation performed on the current page having a playback control layout, and notify the obtained lifecycle information to a playback policy component, so that the playback policy component determines the currently presented playback control in the current page according to the lifecycle information and based on a pre-configurable playback policy; A second module, configured to select at least two playback controls from the determined playback controls by the automatic playback component; A third module, configured to interact with the selected playback controls by the automatic playback component, start the automatic playback of the resources by the selected playback controls, so that the resources corresponding to the selected playback controls are automatically played simultaneously on the current page until the window area of the currently playing playback control in the current page moves out of the screen by a set area threshold; wherein, the second module is configured to notify the obtained lifecycle information to the playback policy component by the automatic playback component, so that: the playback policy component screens out the currently presented playback control in the current page according to the input operation to obtain a first playback control set, screens out the playback controls that meet the configuration parameters from the first control set according to the configuration parameters of the playback policy to obtain the at least two playback controls; The playback policy is configured by a business client on the platform side, different playback policies correspond to different page playback control layouts, and the same playback policy corresponds to different configuration parameters.

11. The resource automatic playback device according to claim 10, wherein Further includes: The fourth module is configured to enable the automatic playback component to notify the obtained lifecycle information to the playback policy component, so that the playback policy component, in response to the loading of the current page, obtains the playback policy, where the playback policy is configured according to the layout of the playback controls on the current page.

12. The resource automatic playback device according to claim 10, wherein The pre-configured playback policy is configured in the following manner: corresponding playback policies are configured for different page playback control layouts, and configuration parameters included in the playback policy are configured for the automatic playback controls required in the page playback control layout.

13. The resource automatic playback device according to claim 12, characterized in that, The configuration parameters include one or any combination of the following: The network type accessed by the playback control; The configuration weight of the playback control; The set priority of the playback control; The set type of the playback control; The set position of the playback control on the current page and / or the priority corresponding to the set position; The set condition for the playback control to stop playing; The number of playback controls that can be played simultaneously.

14. The resource automatic playback device according to claim 13, wherein The different page playback control layouts include: The first layout in which the playback controls on the page move up and down and the playback controls are arranged in two columns; The second layout in which the playback controls on the page move up and down and the playback controls are arranged in a single column; The third layout in which the playback controls on the page move left and right and the playback controls are arranged in a single column; The fourth layout in which the playback controls on the page move left and right and the playback controls are arranged in two columns; The fifth layout in which the playback controls on the page move up and down and the playback controls are accompanied by a single-column playback control that moves left and right; The sixth layout in which the playback controls on the page move left and right and the playback controls are accompanied by a single-column control that moves up and down.

15. The resource automatic playback device according to claim 13, characterized in that, In the case where the configuration parameters of the playback policy include more than two configuration parameters, the configuration parameters further include: a configuration combination obtained from more than two configuration parameters according to a preset condition.

16. The resource automatic playback device according to claim 15, characterized in that, The second module is configured to, in the case where the configuration combination satisfies the network type accessed when the playback control plays and the set type of the playback control and is sorted according to the configuration weight of the playback control, filter out the non-conforming playback controls from the first control set according to the network type accessed when the playback control plays and the set type of the playback control, sort the playback controls in the filtered first control set according to the configuration weight of the playback control, select the preferred playback controls from the sorted playback controls to obtain the at least two playback controls.

17. The resource automatic playback device according to claim 10, wherein The first module is configured to listen for a sliding event that causes a change in the rendering area of the current page, where, the sliding event at least includes: a sliding state parameter; the sliding state parameter includes one or any combination of: sliding speed, sliding start state, sliding stop state, and sliding position.

18. The resource automatic playback device according to claim 17, wherein The first module is configured to, when a sliding event is detected, if the window area of the currently playing playback control moves out of the screen by a set area threshold, stop the current playback of the currently playing playback control.

19. An electronic device, characterized in that, Includes: A processor; A memory for storing executable instructions of the processor; Wherein, the processor is configured to execute the executable instructions to implement the resource automatic playback method as described in any one of claims 1 to 9.

20. A computer-readable storage medium, characterized in that, When at least one instruction in the computer-readable storage medium is executed by a processor of an electronic device, the electronic device is enabled to implement the resource automatic playback method as described in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Video preview method and device, electronic equipment and computer readable storage medium

    CN109640188A

  • Media information playing method, device and equipment and computer readable storage medium

    CN112543365A