Video playing permission processing method and device, equipment and medium
By adjusting the remaining valid time period of the lower permission level in the configured permission information, the problems of low efficiency of video permission management and large traffic loss in the prior art are solved, and efficient permission management is achieved.
Patent Information
- Application Number
- CN202410974005.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-11-22
AI Technical Summary
In the case where the user has configured video playback permissions, when reconfiguring the permission level, multiple permission level configuration requests may be triggered, resulting in low efficiency in video permission management and large traffic loss.
By obtaining the target user's video playback permission configuration update request, determining the first permission level and duration, querying configured permission information, adjusting the remaining valid time period of the lower permission level, avoiding regenerating configuration update requests, and realizing time adjustment and configuration solutions Coupling.
Improve the efficiency of video permission management, reduce the traffic loss of video permission management, and avoid the generation of multiple configuration requests.
Smart Images

Figure CN119011912A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of multimedia processing technology, and in particular to a method, device, equipment and medium for processing video playback permissions. Background Art
[0002] With the development of multimedia technology, the permission levels for video playback are becoming more and more diverse. The video services that can be provided under different permission levels are not exactly the same. The higher the permission level, the more types of video services that can be provided. The same user can configure multiple permission levels. Each permission level is configured with a corresponding valid time period according to the scenario. For example, for user A, he configured a permission level of 2 in January, and he has already configured a permission level of 1.
[0003] In the related art, when a user has configured a permission level, if a new permission level is requested to be configured again, then on the basis that the new permission level has an overlapping time with the configured permission level, multiple types of permission levels are implemented in parallel during the overlapping time, a new configuration request is generated for the lower permission level during the overlapping time, and the lower permission level with a duration of the overlapping time is reconfigured according to the new configuration request. For example, when user A requests to configure a level 3 permission level for one month on January 15, the level 3 permission level and the level 1 and 2 permission levels are implemented in parallel from January 15 to February 15, wherein, since the related video services of the lower permission level have been covered by the video services of the higher permission level when the higher permission level and the lower permission level are implemented in parallel, therefore, in order to compensate for the effective time of the level 1 permission level and the level 2 permission level, a configuration request for the level 1 permission level and a configuration request for the level 2 permission level are generated according to the parallel effective time.
[0004] However, in the above-mentioned permission level configuration method, if a new permission level is requested to be configured again when a permission level has already been configured, it may trigger one or even multiple permission level configuration requests, resulting in low efficiency of video permission management and large traffic loss. Summary of the invention
[0005] In order to solve the above technical problem or at least partially solve the above technical problem, the present disclosure provides a method, device, equipment and medium for processing video playback permissions.
[0006] The disclosed embodiment provides a method for processing video playback permissions, comprising the following steps: obtaining a configuration update request for a target user's video playback permissions, and determining a first permission level and a first permission duration corresponding to the configuration update request; obtaining configured permission information of the target user, wherein the configured permission information includes at least one configured permission level and a valid time period for each configured permission level; querying the configured permission information to determine whether there is a second permission level that is less than the first permission level in the at least one configured permission level; and when the second permission level exists, updating the remaining valid time period of the second permission level according to the first permission duration.
[0007] Optionally, when the first authority level includes a class of authority levels, the configuration update request includes a new request, and updating the remaining valid time period of the second authority level based on the first authority duration includes: postponing the remaining valid time period of the second authority level by the first authority duration.
[0008] Optionally, after postponing the remaining valid time period of the second permission level by the first permission duration, the method further includes: querying the configured permission information to determine whether there is a third permission level greater than the first permission level in at least one of the configured permission levels; when the third permission level does not exist, determining the end time of the first permission duration from the current time; and configuring the video playback permission level from the current time to the end time to be the first permission level.
[0009] Optionally, after querying the configured permission information and determining whether there is a second permission level that is lower than the first permission level among the at least one configured permission level, it also includes: when the second permission level does not exist, determining the expiration date of the at least one configured permission level; and configuring the first permission level according to the first permission duration, taking the expiration date as the starting time.
[0010] Optionally, the configuration update request includes a deletion request, and updating the remaining valid time period of the second permission level based on the first permission duration includes: determining the remaining duration corresponding to the first permission level; and advancing the remaining valid time period of the second permission level by the remaining duration.
[0011] Optionally, when the first permission level includes multiple types of permission levels, determining whether there is a second permission level that is lower than the first permission level in at least one of the configured permission levels includes: sorting the multiple types of first permission levels in descending order to generate a sorting result; determining whether there is a second permission level that is lower than the last first permission level in the sorting result in the at least one configured permission level; and updating the remaining valid time period of the second permission level according to the first permission duration includes: when there is a second permission level that is lower than the last first permission level in the sorting result, updating the remaining valid time period of the second permission level according to the sum of the first permission durations corresponding to multiple types of the first permission levels.
[0012] Optionally, after the updating of the remaining valid time period of the second permission level, it also includes: determining whether there is a fourth permission level in the at least one configured permission level that is greater than or equal to any one of the multiple first permission levels; when the fourth permission level does not exist, configuring multiple types of the first permission levels in sequence according to the corresponding first permission durations starting from the current time in accordance with the order from front to back in the sorting result; when the fourth permission level exists, determining whether the fourth permission level is greater than or equal to the first first permission level in the sorting result; if the fourth permission level is greater than or equal to the first first permission level, configuring multiple types of the first permission levels in sequence according to the corresponding first permission durations starting from the end time of the fourth permission level in accordance with the order from front to back in the sorting result; if the fourth permission level is not greater than the first first permission level, configuring multiple types of the first permission levels and the fourth permission level in sequence from high to low starting from the current time.
[0013] The disclosed embodiment also provides a device for processing video playback permissions, including: a first determination module, used to obtain a configuration update request for a target user's video playback permissions, and determine a first permission level and a first permission duration corresponding to the configuration update request; an acquisition module, used to obtain configured permission information of the target user, wherein the configured permission information includes at least one configured permission level and a valid time period for each configured permission level; a second determination module, used to query the configured permission information, and determine whether there is a second permission level that is smaller than the first permission level in the at least one configured permission level; and a permission processing module, used to update the remaining valid time period of the second permission level according to the first permission duration when the second permission level exists.
[0014] An embodiment of the present disclosure also provides an electronic device, which includes: a processor; a memory for storing executable instructions of the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement the video playback permission processing method provided by the embodiment of the present disclosure.
[0015] The embodiment of the present disclosure further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the method for processing video playback permissions provided by the embodiment of the present disclosure.
[0016] The above-mentioned technical scheme provided by the embodiment of the present disclosure queries the corresponding configured permission information based on the obtained configuration update request for the first permission level. If there is a second permission level lower than the first permission level in the configured permission information, the remaining valid time of the second permission level is adjusted without generating a new configuration update request for the second permission level. This realizes the decoupling of the time adjustment of the configured permission information and the generation of the configuration update request, improves the efficiency of video permission management, and reduces the traffic loss of video permission management.
[0017] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0020] Figure 1 A schematic diagram of a video permission level configuration scenario provided for related technologies;
[0021] Figure 2 A flowchart of a method for processing video playback permissions provided by an embodiment of the present disclosure;
[0022] Figure 3 A schematic diagram of a video permission level configuration scenario provided by an embodiment of the present disclosure;
[0023] Figure 4 A schematic diagram of another video permission level configuration scenario provided by an embodiment of the present disclosure;
[0024] Figure 5 A flowchart of another method for processing video playback permissions provided by an embodiment of the present disclosure; Figure 6 A schematic diagram of the structure of a device for processing video playback permissions provided by an embodiment of the present disclosure;
[0025] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0026] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0027] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0028] As mentioned above, if Figure 1 As shown, for user A, the effective permission level configured in January is level 2, and the configured permission level is level 1. Therefore, before 1.1-2.1, level 1 permission level and level 2 permission level are effective in parallel, and before 2.1-3.1, level 1 permission level is effective. If user A requests to configure level 3 permission level on 1.15, then before 1.15-2.15, level 1, level 2 permission levels and the corresponding level 3 permission level are effective in parallel. At this time, since the higher-level permission level covers the video service corresponding to the lower-level permission level, the effective duration corresponding to level 1 and level 2 permission levels is lost before 1.15-2.15. Therefore, a new configuration request for level 1 and level 2 permission levels of corresponding duration is generated, so that level 2 permission level is effective between 2.15-3.1, compensating for its effective duration before 1.15-2.15, and level 1 permission level is effective between 3.1-4.1, compensating for its lost effective duration before 1.1-43.1. Therefore, a request to configure level 3 permission level triggers the above-mentioned configuration requests for level 1 and level 2 permission levels, resulting in low efficiency of video permission management and large overall traffic loss.
[0029] In order to solve the above technical problems, the present disclosure proposes a method for processing video playback permissions, in which other configuration requests triggered when configuring video playback permissions are avoided, thereby improving the configuration efficiency of video playback permissions.
[0030] Figure 2The present invention provides a flowchart of a method for processing video playback permissions, which can be applied to electronic devices including a central processing unit, such as computers, mobile phones, tablet computers, televisions, servers, etc., without limitation. Figure 2 As shown, the method mainly includes the following steps:
[0031] Step 201: Obtain a configuration update request for a target user's video playback permission, and determine a first permission level and a first permission duration corresponding to the configuration update request.
[0032] Among them, the method of generating the configuration update request may vary according to different application scenarios. As a possible implementation method, the target user calls the configuration menu of the video playback permission on the interface of the video playback application. After detecting that the user triggers the corresponding configuration control in the configuration menu, a configuration update request is obtained.
[0033] As a possible implementation method, the target user triggers a call request for a certain video service in a video playback application. If the video service is a video service to which the target user does not have permission, a configuration notification message for video playback permission is generated. In response to obtaining the user's confirmation operation on the configuration notification message, a configuration update request for the target user's video playback permission is obtained.
[0034] Among them, the video services of the embodiments of the present disclosure include video playback service, video application login service, video forwarding service, video download service, barrage sending service, etc.
[0035] In one embodiment of the present disclosure, after obtaining a configuration update request for video playback permissions from a target user, a first permission level and a first permission duration corresponding to the configuration update request are determined, wherein the first permission level and the first permission duration corresponding to the configuration update request may be carried in the configuration update request; for example, if the target user enters the first permission level and the first permission duration on the configuration menu, the corresponding first permission level and the first permission duration may be directly extracted based on the configuration update request; wherein the first permission level and the first permission duration corresponding to the configuration update request may be obtained by sending an inquiry message to the target user in an inquiry manner, and obtaining the first permission level and the first permission duration, etc., which are fed back by the target user based on the inquiry message.
[0036] Step 202: Obtain configured permission information of the target user, wherein the configured permission information includes at least one configured permission level and a valid time period of each configured permission level.
[0037] It should be understood that in actual applications, the target user may have been configured with permission information, and the configured permission information includes at least one configured permission level and a valid time period for each configured permission level. Figure 3 The configured permission level may include a level 1 permission level, wherein the validity period of the level 1 permission level is 1.1-3.1.
[0038] Step 203: query the configured permission information to determine whether there is a second permission level that is lower than the first permission level in at least one configured permission level.
[0039] In one embodiment of the present disclosure, the configured permission information is queried to determine whether there is a second permission level that is lower than the first permission level in at least one configured permission level. That is, according to the video service policy, a higher permission level is given priority in providing video services after configuration. Therefore, it is first determined whether the first permission level to be configured belongs to a higher permission level.
[0040] Step 204: When the second permission level exists, update the remaining valid time period of the second permission level according to the first permission duration.
[0041] In one embodiment of the present disclosure, when the configured permission information includes a second permission level that is less than the first permission level, it indicates that the first permission level will provide video services in priority to the second permission level. Therefore, in this embodiment, the remaining effective time period of the second permission level is updated according to the first permission duration, that is, in this embodiment, the remaining effective time period of the second permission level is directly updated to achieve splicing of the first permission level and the corresponding first permission duration in the permission configuration information, rather than regenerating a configuration update request for the second permission level to compensate for the remaining effective time period of the first permission duration as in the related art. The efficiency of video permission management is greatly improved. Among them, the remaining effective time period after the update is the same as the remaining effective time period before the update, that is, this embodiment only updates the effective time point of the remaining effective time period, and does not update its effective duration.
[0042] In the actual execution process, the configuration update request may be a new request, that is, adding a new permission level to the target user, or the configuration update request may also be a deletion request, deleting an existing permission level in the configured permission information of the target user, which is described below with reference to the embodiments:
[0043] In some possible examples, when a configuration update request includes a new addition request:
[0044] Updating the remaining effective time period of the second permission level according to the first permission duration includes: postponing the remaining effective time of the second permission level by the first permission duration. If there are multiple second permission levels, the remaining effective time of the multiple second permission levels is uniformly postponed by the first permission duration. Thus, there is no need to generate multiple configuration update requests for multiple second permission levels, thereby improving the efficiency of video permission management.
[0045] Continue with Figure 3 Take the shown scenario as an example, where the second authority level is level 1 authority level, and the corresponding valid time period is 1.1-3.1. The first authority level currently obtained for the configuration update request is level 2, the current time is 2.1, and the corresponding first authority duration is one month. The remaining valid time period of level 1 authority level is 2.1-3.1. Therefore, the remaining valid time period is postponed to 3.1-4.1 according to the first authority duration.
[0046] In this embodiment, after the remaining valid time period of the second permission level is postponed to the first permission duration, the configured permission information is queried to determine whether there is a third permission level greater than the first permission level in at least one configured permission level. When there is no third permission level, the end time of the first permission duration from the current time is determined, and the video playback permission level from the current time to the end time is configured to be the first permission level. That is, for the target user, the first permission level is greater than all the permission levels that have been configured. Therefore, video services are preferentially provided through the first permission level.
[0047] Continue with the above Figure 3 Taking the scenario shown as an example, 2.1-3.1 can be used as the valid time period of the first permission level.
[0048] In one embodiment of the present disclosure, when there is no second permission level, the expiration time of at least one configured permission level is determined, and the first permission level is configured according to the first permission duration with the expiration time as the starting time. That is, when the first permission level requested to be configured is lower than all configured permission levels, the first permission level is directly configured after the last valid time point of the configured permission level.
[0049] Of course, in one embodiment of the present disclosure, when the configured permission information is queried and it is determined that there is a third permission level greater than the first permission level in at least one configured permission level, and the configured permission levels do not include the first permission level, then the end time Tm of the third permission level is determined (when there are multiple third permission levels, the end time Tm is the latest end time among the multiple third permission levels), and the first permission level with the first permission duration is configured with Tm as the starting time, and so on.
[0050] In one embodiment of the present disclosure, if the configured permission levels include the first permission level, the first permission level may be directly extended by the first permission duration.
[0051] Therefore, in the embodiments of the present disclosure, the effective time period of the first permission level can be flexibly configured based on the permission level of the configured permission information.
[0052] In some possible examples, when a configuration update request includes a delete request:
[0053] The remaining effective time period of the second permission level is updated according to the first permission duration, including:
[0054] The remaining duration corresponding to the first permission level is determined, and the remaining effective time period of the second permission level is advanced by the remaining duration. That is, in this embodiment, when the first permission level is deleted, there is no need to generate a new configuration update request for the remaining effective time period of the second permission level, and the remaining duration of the second permission level is directly advanced, which greatly reduces the traffic consumption of permission management.
[0055] For example, refer to Figure 4 The configured permission levels may include level 1 permission level and level 2 permission level, wherein the effective time period of level 2 permission level is 1.1-2.1, and the effective time period of level 1 permission level is 2.1-3.1. If the current time point is 1.15, the remaining time of level 2 permission level is 1.15-2.1. After obtaining the deletion request for level 2 permission, the remaining effective time period of level 1 permission level is advanced to 1.15-2.15.
[0056] It should be noted that different permission levels in the embodiments of the present disclosure correspond to different video service types. Generally, a higher permission level can authorize a higher type of video service than a lower permission level.
[0057] In one embodiment of the present disclosure, in response to obtaining a video service request of a target user, it is determined whether the video service request is executable according to the permission information configured by the target user. In this embodiment, the service permission level corresponding to the video service request can be determined. For example, the video service type corresponding to the video service request can be determined, and the preset correspondence relationship is queried according to the video service type to determine the corresponding service permission level. According to the configured permission information of the target user, the fifth permission level corresponding to the current time is determined, and it is determined whether the service permission level is less than the fifth permission level; wherein, when it is less than the fifth permission level, it is determined that the video service request is executable. In the case of not less than the fifth permission level, a permission level upgrade prompt information can be sent to the target user, wherein the prompt information may include the service permission level, etc., thereby, the target user can determine whether to send a configuration update request for the service permission level, etc. according to needs.
[0058] As mentioned in the above embodiments, in an embodiment of the present disclosure, only one configuration update request is generated for the configuration of a permission level. Therefore, in an embodiment of the present disclosure, the configuration update requests can also be counted and recorded, and then, resources can be acquired for related users based on the counted configuration update requests, thereby improving the accuracy of resource acquisition. The total acquired resources of related video applications can also be counted based on the configuration update requests, thereby improving the utilization rate of the configuration update requests.
[0059] In summary, the method for processing video playback permissions disclosed in the present invention queries the corresponding configured permission information based on the obtained configuration update request for the first permission level. When there is a second permission level lower than the first permission level in the configured permission information, the remaining valid time of the second permission level is adjusted without generating a new configuration update request for the second permission level. This achieves the decoupling of the time adjustment of the configured permission information and the generation of the configuration update request, improves the efficiency of video permission management, and reduces the traffic loss of video permission management.
[0060] Based on the above embodiment, when configuring the permission level, the first permission level may include one type of permission level, for example, only including the level 2 permission level, etc. However, in the actual execution process, multiple types of first permission levels may be configured in one configuration update request, for example, in addition to the level 2 permission level, it also includes the level 1 permission level and the level 3 permission level, etc. The following describes the configuration processing method for the permission level when the first permission level includes multiple types of permission levels with reference to the embodiment.
[0061] In one embodiment of the present disclosure, Figure 5 As shown, when the first permission level includes multiple types of permission levels, determining whether there is a second permission level smaller than the first permission level in at least one configured permission level includes:
[0062] Step 501: sort multiple types of first permission levels in descending order to generate a sorting result.
[0063] In this embodiment, multiple types of first permission levels are sorted in descending order to generate a sorting result, so as to facilitate subsequent permission configuration processing according to the sorting result.
[0064] Step 502: Determine whether there is a second permission level in at least one configured permission level that is lower than the last first permission level in the sorting result.
[0065] In this embodiment, the last first permission level in the sorting result is determined, the last first permission level is the lowest permission level among multiple types of first permission levels, and it is determined whether there is a second permission level lower than the last first permission level in the sorting result in at least one configured permission level.
[0066] For further information, please refer to Figure 5 , updating the remaining effective time period of the second permission level according to the first permission duration, including:
[0067] Step 503: Update the remaining valid time period of the second permission level according to the sum of the first permission durations corresponding to the multiple types of first permission levels.
[0068] When there is a second permission level that is smaller than the last first permission level in the sorting result, the remaining valid time period of the second permission level is updated according to the sum of the first permission durations corresponding to multiple types of first permission levels.
[0069] For example, if the configuration update request includes a new addition request, the remaining valid time period of the second permission level is extended according to the sum of the first permission durations;
[0070] For example, if the configuration update request includes a deletion request, the remaining valid time period of the second permission level is advanced according to the sum of the first permission durations.
[0071] In one embodiment of the present disclosure, if there is no second permission level that is lower than the last first permission level in the sorting result, multiple types of first permission levels are configured in sequence from front to back in the sorting result starting from the end time of the configured permission level.
[0072] In some possible embodiments, it is also determined whether there is a fourth permission level in at least one configured permission level that is greater than or equal to any one of the multiple first permission levels. When there is no fourth permission level, it indicates that the configured permission levels are all lower than the multiple first permission levels. Thus, according to the order from front to back in the sorting results, the multiple first permission levels are configured in sequence starting from the current time according to the corresponding first permission durations.
[0073] In some possible embodiments, if a fourth permission level exists, it is determined whether the fourth permission level is greater than or equal to the first permission level in the sorting result, that is, it is determined whether all the first permission levels are smaller than the fourth permission level; if the fourth permission level is greater than or equal to the first permission level, then according to the order from front to back in the sorting result, multiple types of first permission levels are configured in sequence according to the corresponding first permission duration starting from the end time of the fourth permission level.
[0074] In this example, if the fourth permission level is not greater than the first permission level, multiple types of the first permission levels and the fourth permission levels are sequentially configured in descending order of permission levels starting from the current time, wherein the configuration method of the fourth permission level may refer to the determination method of the second permission level described above. For example, when the configuration update request includes a new request, a first permission level greater than or equal to the fourth permission level is determined among multiple types of first permission levels, and the first permission level greater than or equal to the fourth permission level is configured in descending order of permission levels starting from the current time according to the corresponding first permission duration, and the sum of all first permission durations corresponding to the first permission levels greater than or equal to the fourth permission level is calculated, and the remaining effective time period of the fourth permission level is postponed according to the sum of the first permission durations, and then, starting from the end time of the fourth permission level, according to the corresponding first permission duration, in descending order of permission levels, the first permission levels less than the fourth permission level are sequentially configured, etc. When the configuration update request includes a deletion request, its configuration method may also refer to the configuration method of the permission level when a type of first permission level is included, and will not be repeated here.
[0075] In summary, the method for processing video playback permissions in the embodiments of the present invention can directly configure the corresponding permission level based on the level of the permission level compared with the configured permission level when the configuration update request simultaneously requests to configure multiple types of first permission levels, without triggering the generation of multiple configuration update requests, thereby improving the efficiency of video permission management and reducing the traffic loss of video permission management.
[0076] Corresponding to the aforementioned method for processing video playback permissions, the embodiment of the present disclosure further provides a device for processing video playback permissions. Figure 6 The structure diagram of a video playback permission processing device provided by an embodiment of the present disclosure is a schematic diagram. The device can be implemented by software and / or hardware and is applied to an electronic device including a central processing unit. The device includes: a first determination module 610, an acquisition module 620, a second determination module 630 and a permission processing module 640, wherein:
[0077] A first determination module 610 is used to obtain a configuration update request for the video playback permission of the target user, and determine a first permission level and a first permission duration corresponding to the configuration update request;
[0078] The acquisition module 620 is used to acquire the configured permission information of the target user, wherein the configured permission information includes at least one configured permission level and a valid time period of each configured permission level;
[0079] A second determination module 630 is used to query the configured permission information and determine whether there is a second permission level lower than the first permission level in at least one configured permission level;
[0080] The permission processing module 640 is used to update the remaining valid time period of the second permission level according to the first permission duration when the second permission level exists.
[0081] The above-mentioned device provided by the embodiment of the present disclosure can query the corresponding configured permission information based on the obtained configuration update request for the first permission level. When there is a second permission level lower than the first permission level in the configured permission information, the remaining effective time of the second permission level is adjusted without generating a new configuration update request for the second permission level, thereby realizing the decoupling of the time adjustment of the configured permission information and the generation of the configuration update request, improving the efficiency of video permission management and reducing the traffic loss of video permission management.
[0082] In some implementations, the permission processing module 640 is specifically configured to:
[0083] Extend the remaining effective time period of the second permission level by the length of the first permission level;
[0084] In some implementations, the permission processing module 640 is specifically configured to:
[0085] Querying the configured permission information to determine whether there is a third permission level greater than the first permission level in at least one configured permission level;
[0086] When the third permission level does not exist, determine the end time of the first permission duration from the current time;
[0087] Configure the video playback permission level from the current time to the end time to be the first permission level.
[0088] In some implementations, the permission processing module 540 is specifically configured to: determine the expiration time of at least one configured permission level when the second permission level does not exist;
[0089] The first permission level is configured according to the first permission duration, with the expiration time as the start time.
[0090] In some implementations, the permission processing module 540 is specifically configured to:
[0091] Determining a remaining time corresponding to the first permission level;
[0092] Advance the remaining effective time period of the second permission level by the remaining time.
[0093] In some implementations, the second determination module 630 is configured to sort the multiple types of first permission levels in descending order to generate a sorting result;
[0094] Determine whether there is a second permission level in at least one of the configured permission levels that is lower than the last first permission level in the sorting result.
[0095] In some implementations, the permission processing module 640 is specifically configured to:
[0096] When there is a second permission level that is smaller than the last first permission level in the sorting result, the remaining valid time period of the second permission level is updated according to the sum of the first permission durations corresponding to multiple types of first permission levels.
[0097] In some implementations, the permission processing module 640 is specifically configured to:
[0098] determining whether there is a fourth permission level in at least one of the configured permission levels that is greater than or equal to any first permission level in the plurality of first permission levels;
[0099] When the fourth permission level does not exist, multiple types of first permission levels are configured in sequence according to the order from front to back in the sorting result, starting from the current time and according to the corresponding first permission duration;
[0100] When there is a fourth authority level, determine whether the fourth authority level is greater than or equal to the first authority level in the sorting result,
[0101] If the fourth permission level is greater than or equal to the first permission level, then multiple types of first permission levels are configured in sequence according to the order from front to back in the sorting result, starting from the end time of the fourth permission level and according to the corresponding first permission duration.
[0102] If the fourth permission level is not greater than the first permission level, multiple types of first permission levels and fourth permission levels are configured in descending order of permission levels starting from the current time.
[0103] The video playback permission processing device provided in the embodiments of the present disclosure can execute the video playback permission processing method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0104] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described device embodiment can refer to the corresponding process in the method embodiment, and will not be repeated here.
[0105] An embodiment of the present disclosure provides an electronic device, which includes: a storage device on which a computer program is stored; and a processing device for executing the computer program in the storage device to implement the steps of any video playback permission processing method in the present disclosure.
[0106] Reference below Figure 7 , which shows a schematic diagram of the structure of an electronic device 700 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0107] like Figure 7 As shown, the electronic device 700 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0108] Typically, the following devices may be connected to the I / O interface 705: an input device 706 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 708 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 709. The communication device 709 may allow the electronic device 700 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 The electronic device 700 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0109] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 709, or installed from a storage device 708, or installed from a ROM 702. When the computer program is executed by the processing device 701, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0110] In addition to the above-mentioned methods and devices, the embodiments of the present disclosure may also be a computer program product, which includes computer program instructions, which, when executed by a processor, cause the processor to perform the image processing method provided by the embodiments of the present disclosure. The computer program product may be written in any combination of one or more programming languages to write program codes for performing the operations of the embodiments of the present disclosure, the programming languages including object-oriented programming languages such as Java, C++, etc., and also conventional procedural programming languages such as "C" language or similar programming languages. The program code may be executed entirely on a user computing device, partially on a user device, as an independent software package, partially on a user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0111] In addition, the embodiment of the present disclosure may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the method for processing video playback permissions provided by the embodiment of the present disclosure.
[0112] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0113] The embodiment of the present disclosure further provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the method for processing video playback permissions in the embodiment of the present disclosure.
[0114] It is understandable that before using the technical solutions disclosed in the various embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0115] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0116] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0117] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0118] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0119] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for processing video playback permissions, characterized in that: The following steps are involved: Obtaining a configuration update request for a target user's video playback permission, and determining a first permission level and a first permission duration corresponding to the configuration update request; Acquire configured permission information of the target user, wherein the configured permission information includes at least one configured permission level and a valid time period of each configured permission level; Querying the configured permission information to determine whether there is a second permission level that is lower than the first permission level in the at least one configured permission level; When the second permission level exists, the remaining valid time period of the second permission level is updated according to the first permission duration.
2. The method according to claim 1, characterized in that When the first permission level includes a class of permission levels, the configuration update request includes a new request, and the updating of the remaining valid time period of the second permission level according to the first permission duration includes: The remaining effective time period of the second permission level is extended by the first permission time period.
3. The method according to claim 2, characterized in that After extending the remaining effective time period of the second permission level by the first permission duration, the method further includes: Querying the configured permission information to determine whether there is a third permission level greater than the first permission level in the at least one configured permission level; When the third permission level does not exist, determining an end time of the first permission duration from the current time; The video playback permission level from the current time to the end time is configured as the first permission level.
4. The method according to claim 2, characterized in that After querying the configured permission information to determine whether there is a second permission level lower than the first permission level in the at least one configured permission level, the method further includes: When the second permission level does not exist, determining the expiration time of the at least one configured permission level; The first permission level is configured according to the first permission duration, with the expiration validity time being used as the start time.
5. The method according to claim 1, characterized in that The configuration update request includes a deletion request, and the updating of the remaining valid time period of the second permission level according to the first permission duration includes: Determining a remaining time corresponding to the first permission level; The remaining effective time period of the second authority level is advanced by the remaining time period.
6. The method according to any one of claims 1 to 5, characterized in that: When the first permission level includes multiple types of permission levels, determining whether there is a second permission level lower than the first permission level in the at least one configured permission level includes: Sorting the plurality of first permission levels in descending order to generate a sorting result; Determine whether there is a second permission level among the at least one configured permission level that is lower than the last first permission level in the sorting result; The updating of the remaining valid time period of the second permission level according to the first permission duration includes: When there is a second permission level that is smaller than the last first permission level in the sorting result, the remaining valid time period of the second permission level is updated according to the sum of the first permission durations corresponding to multiple types of the first permission levels.
7. The method according to claim 6, characterized in that After the updating of the remaining valid time period of the second permission level, the method further includes: determining whether there is a fourth permission level in the at least one configured permission level that is greater than or equal to any first permission level in the plurality of first permission levels; When the fourth authority level does not exist, multiple types of the first authority levels are sequentially configured according to the order from front to back in the sorting result, starting from the current time and according to the corresponding first authority durations; When the fourth authority level exists, determining whether the fourth authority level is greater than or equal to the first authority level in the sorting result, If the fourth permission level is greater than or equal to the first permission level, then, according to the order from front to back in the sorting result, multiple types of the first permission levels are sequentially configured starting from the end time of the fourth permission level according to the corresponding first permission duration, If the fourth authority level is not greater than the first authority level, multiple types of the first authority levels and the fourth authority levels are configured in order from high to low starting from the current time.
8. A device for processing video playback permissions, characterized in that: include: A first determination module, configured to obtain a configuration update request for a target user's video playback permission, and determine a first permission level and a first permission duration corresponding to the configuration update request; An acquisition module, configured to acquire the configured permission information of the target user, wherein the configured permission information includes at least one configured permission level and a valid time period of each configured permission level; A second determination module is used to query the configured permission information to determine whether there is a second permission level lower than the first permission level in the at least one configured permission level; The permission processing module is used to update the remaining valid time period of the second permission level according to the first permission duration when the second permission level exists.
9. An electronic device, characterized in that: The electronic device comprises: a storage device having a computer program stored thereon; A processing device is used to execute the computer program in the storage device to implement the steps of the method for processing video playback permissions described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is used to execute the method for processing video playback permissions as described in any one of claims 1 to 7.
