Video playing control method and related product
By obtaining video tags and playback records, combining time ranges and account conditions, and dynamically adjusting video playback permissions, the problem of low video playback control accuracy in existing technologies is solved, precise control of different types of videos is achieved, and the risk of long-term viewing is reduced.
Patent Information
- Application Number
- CN202511029457.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-25
- Publication Date
- 2025-10-10
AI Technical Summary
Existing video playback control methods have low accuracy and cannot effectively reduce problems such as vision loss and lack of concentration caused by watching videos for a long time.
By obtaining the tags and playback history of the video to be played, combined with the time range and account conditions, the video playback permissions are dynamically adjusted to achieve precise control of different types of videos.
Improves the accuracy of video playback control, reduces viewing time of specific types of videos, and reduces the risk of vision loss and inattention.
Smart Images

Figure CN120769115A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of video processing, and in particular to a video playing control method and related products. BACKGROUND
[0002] With the popularity of intelligent devices, the time and frequency of touching electronic screens have greatly increased. Long-time watching of videos played in video playing software in intelligent devices can cause problems such as vision decline, inattention, and addiction to electronic products. At present, the commonly used control means is usually to limit the time of playing videos by video playing software, so as to achieve the purpose of reducing the time of watching videos. However, the precision of controlling video playing by this method is low.
[0003] Therefore, a feasible solution is urgently needed to improve the precision of video playing control. SUMMARY
[0004] The present application provides a video playing control method and related products, wherein the related products include a video playing control device, an electronic device, a computer readable storage medium, and a computer program product.
[0005] In a first aspect, a video playing control method is provided. The method includes:
[0006] obtaining a to-be-played video, a first condition, and a playing record, wherein the to-be-played video includes a first label, the first condition includes a condition of playing a first type of video through a first account, the first type of video is a video containing the first label, and the playing record includes a record of playing the first type of video through the first account;
[0007] determining a permission of playing the to-be-played video through the first account according to the playing record and the first condition.
[0008] According to any one of the embodiments of the present application, the first condition is a condition of playing the first type of video through the first account within a first time range.
[0009] The determining of the permission of playing the to-be-played video through the first account according to the playing record and the first condition includes:
[0010] obtaining a current time;
[0011] determining the permission of playing the to-be-played video through the first account according to the playing record and the first condition in a case where the current time is within the first time range.
[0012] According to any one of the embodiments of the present application, the obtaining of the first condition includes:
[0013] obtaining a second condition and a third condition, the second condition being a condition of playing the first type of video through the first account in a second time range, the third condition being a condition of playing the first type of video through the first account in a third time range, an intersection of the second time range and the third time range being the first time range;
[0014] determining the first condition according to the second condition and the third condition.
[0015] With reference to any one of the preceding embodiments, the method further comprises:
[0016] determining a fourth time range in the second time range that has no intersection with the first time range;
[0017] determining, when the current time is in the fourth time range, a permission of playing the to-be-played video through the first account according to the playing record and the second condition.
[0018] With reference to any one of the preceding embodiments, the second condition comprises that a number of playing the first type of video through the first account is less than a first number, the third condition comprises that the number of playing the first type of video through the first account is less than a second number, and the first condition comprises that the number of playing the first type of video through the first account is less than a third number, the third number being a maximum value of the first number and the second number.
[0019] With reference to any one of the preceding embodiments, the second time range comprises weekdays, the third time range comprises holidays, and the first time range comprises weekdays during the holidays.
[0020] With reference to any one of the preceding embodiments, the second condition comprises that the number of playing the first type of video through the first account is less than the first number.
[0021] obtaining a third condition, comprising:
[0022] obtaining an increase coefficient;
[0023] adjusting the first number according to the increase coefficient to obtain the second number, the second number being positively correlated with the increase coefficient and the first number;
[0024] determining the third condition according to the second number, the third condition comprising that the number of playing the first type of video through the first account is less than the second number.
[0025] With reference to any one of the preceding embodiments, the method further comprises:
[0026] acquire a continuous playing duration, the playing duration being a continuous duration of playing the first type of video;
[0027] in a case where the continuous playing duration is greater than or equal to a third duration, send a first reminder, the first reminder being used to remind to pause playing the to-be-played video.
[0028] With any of the embodiments of the present application, the determining, according to the playing record and the first condition, of the permission of playing the to-be-played video by the first account includes:
[0029] in a case where it is determined, based on the playing record, that the first account satisfies the first condition, determining that the permission is a playing permission, the playing permission being used to indicate playing the to-be-played video by the first account.
[0030] With any of the embodiments of the present application, the first condition includes one or more of the following: a number of playing the first type of video by the first account is less than a fourth number, playing the first type of video by the first account within a first time period, and a duration of playing the first type of video by the first account is less than a first duration.
[0031] With any of the embodiments of the present application, acquiring a first condition includes:
[0032] acquiring first identity information and to-be-verified information stored in the first account;
[0033] in a case where the to-be-verified information matches the first identity information, acquiring a condition of playing the first type of video by the first account within the first time range as the first condition.
[0034] With any of the embodiments of the present application, the to-be-played video further includes a second label, and the first condition includes a first priority.
[0035] the determining, according to the playing record and the first condition, of the permission of playing the to-be-played video by the first account includes:
[0036] acquiring a fourth condition, the fourth condition being a condition of playing a second type of video by the first account, the second type of video being a video including the second label, and the fourth condition including a second priority;
[0037] in a case where the first priority of the first condition is higher than the second priority of the fourth condition, determining, according to the playing record and the first condition, the permission of playing the to-be-played video by the first account.
[0038] In combination with any of the embodiments of the present application, in a case where the first priority is equal to the second priority, the method further includes:
[0039] determining a relevance of the to-be-played video to the first label, to obtain a first relevance;
[0040] determining a relevance of the to-be-played video to the second label, to obtain a second relevance;
[0041] determining a maximum value of the first relevance and the second relevance, to obtain a third relevance;
[0042] determining a condition corresponding to the third relevance from the first condition and the fourth condition, to obtain a fifth condition;
[0043] determining, according to the play record and the fifth condition, a permission of playing the to-be-played video by the first account.
[0044] In a second aspect, a video play control apparatus is provided, and the video play control apparatus includes:
[0045] an obtaining unit, configured to obtain a to-be-played video, a first condition and a play record, the to-be-played video including a first label, the first condition including a condition of playing a first type of video by a first account, the first type of video being a video containing the first label, and the play record including a record of playing the first type of video by the first account;
[0046] a determining unit, configured to determine, according to the play record and the first condition, a permission of playing the to-be-played video by the first account.
[0047] In combination with any of the embodiments of the present application, the first condition is a condition of playing the first type of video by the first account within a first time range;
[0048] The determining unit is specifically configured to:
[0049] obtain a current time;
[0050] in a case where the current time is within the first time range, determine, according to the play record and the first condition, the permission of playing the to-be-played video by the first account.
[0051] In combination with any of the embodiments of the present application, the obtaining unit is specifically configured to:
[0052] obtaining a second condition and a third condition, the second condition being a condition of playing the first type of video through the first account in a second time range, the third condition being a condition of playing the first type of video through the first account in a third time range, an intersection of the second time range and the third time range being the first time range;
[0053] determining the first condition according to the second condition and the third condition.
[0054] With reference to any one of the embodiments of the present application, the determination unit is further configured to:
[0055] determining a fourth time range in the second time range that has no intersection with the first time range;
[0056] determining, in a case where the current time is in the fourth time range, a permission of playing the to-be-played video through the first account according to the playing record and the second condition.
[0057] With reference to any one of the embodiments of the present application, the second condition includes that a number of playing the first type of video through the first account is less than a first number, the third condition includes that the number of playing the first type of video through the first account is less than a second number, and the first condition includes that the number of playing the first type of video through the first account is less than a third number, the third number being a maximum value of the first number and the second number.
[0058] With reference to any one of the embodiments of the present application, the second time range includes weekdays, the third time range includes holidays, and the first time range includes weekdays during the holidays.
[0059] With reference to any one of the embodiments of the present application, the second condition includes that the number of playing the first type of video through the first account is less than the first number.
[0060] The obtaining unit is specifically configured to:
[0061] obtaining an increase coefficient;
[0062] adjusting the first number according to the increase coefficient to obtain the second number, the second number being positively correlated with the increase coefficient and the first number;
[0063] determining the third condition according to the second number, the third condition including that the number of playing the first type of video through the first account is less than the second number.
[0064] With reference to any one of the embodiments of the present application, the video playing control apparatus further includes a sending unit configured to:
[0065] obtaining a continuous playing duration, the playing duration being a continuous duration of playing the first type of video;
[0066] in a case where the continuous playing duration is greater than or equal to a third duration, sending a first reminder, the first reminder being used to remind to pause playing the to-be-played video.
[0067] With any of the embodiments of the present application, the above-mentioned determining unit is specifically configured to:
[0068] in a case where it is determined based on the playing record that the first account satisfies the first condition, determining that the permission is a playing permission, the playing permission being used to indicate playing the to-be-played video through the first account.
[0069] With any of the embodiments of the present application, the first condition comprises one or more of the following: a number of playing the first type of video through the first account is less than a fourth number, playing the first type of video through the first account within a first time period, and a duration of playing the first type of video through the first account is less than a first duration.
[0070] With any of the embodiments of the present application, the above-mentioned obtaining unit is specifically configured to:
[0071] obtaining first identity information and to-be-verified information stored in the first account;
[0072] in a case where the to-be-verified information matches the first identity information, obtaining a condition of playing the first type of video through the first account within the first time range as the first condition.
[0073] With any of the embodiments of the present application, the to-be-played video further comprises a second label, and the first condition comprises a first priority.
[0074] The above-mentioned determining unit is specifically configured to:
[0075] obtaining a fourth condition, the fourth condition being a condition of playing a second type of video through the first account, the second type of video being a video comprising the second label, and the fourth condition comprising a second priority;
[0076] in a case where the first priority of the first condition is higher than the second priority of the fourth condition, determining a permission of playing the to-be-played video through the first account according to the playing record and the first condition.
[0077] With any of the embodiments of the present application, the above-mentioned determining unit is further configured to:
[0078] determining a relevance of the to-be-played video to the first label to obtain a first relevance.
[0079] determine a second relevance degree of the to-be-played video and the second tag;
[0080] determine a maximum value of the first relevance degree and the second relevance degree, to obtain a third relevance degree;
[0081] determine a condition corresponding to the third relevance degree from the first condition and the fourth condition, to obtain a fifth condition;
[0082] determine, according to the playing record and the fifth condition, a permission of playing the to-be-played video by the first account.
[0083] In a third aspect, an electronic device is provided, including a processor and a memory, the memory is configured to store computer program code, the computer program code includes computer instructions, and when the processor executes the computer instructions, the electronic device executes the first aspect and any one of the implementations thereof.
[0084] In a fourth aspect, another electronic device is provided, including a processor, a sending device, an input device, an output device and a memory, the memory is configured to store computer program code, the computer program code includes computer instructions, and when the processor executes the computer instructions, the electronic device executes the first aspect and any one of the implementations thereof.
[0085] In a fifth aspect, a computer readable storage medium is provided, the computer readable storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the first aspect and any one of the implementations thereof.
[0086] In a sixth aspect, a computer program product is provided, the computer program product includes a computer program or instructions, and when the computer program or instructions are run on a computer, the computer executes the first aspect and any one of the implementations thereof.
[0087] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, but not limiting the present application.
[0088] In the embodiment of the present application, after obtaining the to-be-played video, the first condition and the play record, the video play control device determines the right to play the to-be-played video through the first account according to the play record and the first condition, wherein the to-be-played video includes the first label, the first condition is the condition for playing the first type video through the first account, the first type video is the video including the first label, and the play record is the record of playing the first type video through the first account. Through the above steps, the video play control device only has the right to play the to-be-played video through the first account in the case that the play record meets the first condition, that is, the to-be-played video can be played through the first account, so as to realize the control of the play of the first type video. Compared with limiting the total play time of the video, the present scheme can realize different control conditions for videos carrying different labels, and improve the precision of controlling the play of the video. BRIEF DESCRIPTION OF DRAWINGS
[0089] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background art, the drawings needed to be used in the embodiments of the present application or the background art will be described below.
[0090] The drawings herein are incorporated into the specification and form part of the specification, which show the embodiments consistent with the present application, and together with the specification, are used to illustrate the technical solutions of the present application.
[0091] Figure 1 A flowchart of a video play control method provided by the embodiment of the present application;
[0092] Figure 2 A three-layer directory structure diagram provided by the embodiment of the present application;
[0093] Figure 3 An architecture diagram of a video play control device provided by the embodiment of the present application;
[0094] Figure 4 An architecture diagram of a user control unit provided by the embodiment of the present application;
[0095] Figure 5 A setting flowchart of a condition setting unit provided by the embodiment of the present application;
[0096] Figure 6 A setting flowchart of a holiday condition setting unit provided by the embodiment of the present application;
[0097] Figure 7 A setting flowchart of a time range of a synchronous holiday provided by the embodiment of the present application;
[0098] Figure 8 A structural schematic diagram of a video play control device provided by the embodiment of the present application;
[0099] Figure 9 A hardware structure schematic diagram of an electronic device is provided for an embodiment of the present application. DETAILED DESCRIPTION
[0100] In order for those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.
[0101] The terms "first", "second", and the like in the specification and claims of the present application and the above-described drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but can optionally include steps or units not listed or can optionally include other steps or units inherent to such processes, methods, products or devices.
[0102] Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearance of the phrase in various places in the specification does not necessarily all refer to the same embodiment, nor is it necessarily independent or alternative embodiments to each other. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0103] The execution subject of the embodiments of the present application is a video playback control device, wherein the video playback control device can be any electronic device that can execute the technical solutions disclosed in the method embodiments of the present application. Alternatively, the video playback control device can be one of the following: a computer, a server.
[0104] It should be understood that the method embodiments of the present application can also be implemented by a processor executing computer program code. The embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Please refer to Figure 1 , Figure 1 A flowchart of a video playback control method is provided for an embodiment of the present application.
[0105] 101, obtaining a video to be played, a first condition and a playback record.
[0106] In the embodiments of the present application, the playback record is a record of playing the first type of video through the first account, and the first condition is a condition of playing the first type of video through the first account.
[0107] Optionally, the first condition comprises one or more of the following: the number of playing the first type of video through the first account is less than a first number, playing the first type of video through the first account within a first time period, and the duration of playing the first type of video through the first account is less than a first duration.
[0108] In a case where the first condition comprises the number of playing the first type of video through the first account being less than the first number, the playback record comprises the number of playing the first type of video through the first account.
[0109] In a possible implementation, the playback record comprises the number of playing the first type of video through the first account within 24 hours.
[0110] In another possible implementation, the playback record comprises the number of playing the first type of video through the first account on a current date. For example, the current date is March 28, and the playback record comprises the number of playing the first type of video through the first account on March 28.
[0111] In a case where the first condition comprises playing the first type of video through the first account within the first time period, the playback record comprises a time point of playing the to-be-played video through the first account.
[0112] In a case where the first condition comprises the duration of playing the first type of video through the first account being less than the first duration, the playback record comprises the duration of playing the first type of video through the first account. For example, the duration of playing the first type of video through the first account is from 3:27 to 4:12, a total of 45 minutes. The first condition comprises the duration of playing the first type of video through the first account being less than 60 minutes. For another example, the video playback control apparatus plays the first type of video through the first account for a duration of 3:00-3:30 and 4:00-4:15, a total of 45 minutes.
[0113] In a possible implementation, the playback record comprises the duration of playing the first type of video through the first account within 24 hours.
[0114] In another possible implementation, the playback record comprises the duration of playing the first type of video through the first account on a current date.
[0115] In the embodiments of the present application, the to-be-played video is the first type of video, and the first type of video is a video containing a first label.
[0116] In a possible implementation, the video to be played is a video with a high degree of interest determined according to a historical video record browsed by the first account.
[0117] In another possible implementation, the video to be played is a video related to a preferred video type set in the first account, where the preferred video type is a video type that the first account wants to watch.
[0118] In yet another possible implementation, the video to be played is a video with a play quantity greater than M in the video playing control device, and the video has a low matching degree with the historical video record browsed by the first account. By recommending the video with a low matching degree with the historical video record and a high play quantity to the user of the first account, it is avoided that the recommended video is too single, and the diversity of the video recommendation is improved.
[0119] Optionally, the first tag is a tag in a three-layer directory structure, where the three-layer directory structure includes a main directory layer, a series layer, and a set layer. The tag in the main directory layer can be an animation, an educational video, a documentary, or the like. The tag in the series layer can be an animation series, a course series, a zoo series, or the like. The tag in the set layer can be a first set, a second set, or the like. The video to be played includes one or more tags in any one-level directory structure. For example, the video to be played carries a tag including a documentary, an animal zoo series, and a first set. The first tag can be any one of the three tags. The conditions corresponding to the tags in different directory structures can be the same. Please refer to Figure 2 , Figure 2 A three-layer directory structure diagram provided in the embodiments of the present application is shown. Specifically, the three-layer directory structure includes a tag carried by any video in a video content library in the video playing control device. The tag in the three-layer directory structure includes a directory A1 and a directory A2. The directory A1 includes a series B1 and a series B2. The series B2 includes a set C1 and a set C2. The video to be played includes a first tag, a second tag, and a third tag. The video containing the first tag, the second tag, and the third tag is subjected to condition setting. In a case where the first tag is the directory A1, the first condition includes a condition of playing the video containing the directory A1 tag by the first account. In a case where the second tag is the series B2, the fourth condition includes a condition of playing the video containing the series B2 tag by the first account. In a case where the third tag is the set C1, the fifth condition includes a condition of playing the video containing the set C1 tag by the first account.
[0120] Optionally, the first label is a label in a label system, and the label system includes label series of different dimensions. For example, the label system includes age range labels, content type labels, and education type labels. The age range labels include 3-6 year old labels, 7-9 year old labels, 10-12 year old labels, and the like. The content type labels include education labels, entertainment labels, and science popularization labels. The education type labels include language learning labels, science knowledge labels, and social skills labels.
[0121] 102. Determine, according to the play record and the first condition, a permission of playing the to-be-played video through the first account.
[0122] In the embodiments of the present application, the permission of playing the to-be-played video through the first account is used to indicate playing or pausing the to-be-played video. Optionally, the permission includes a play permission and a pause permission. The play permission is used to indicate playing the to-be-played video, and the pause permission is used to indicate pausing the to-be-played video.
[0123] Specifically, in a case where the play record satisfies the first condition, a condition of playing the first type video through the first account is satisfied, the permission of playing the to-be-played video through the first account is the play permission, and the to-be-played video is played through the first account.
[0124] In a case where the play record does not satisfy the first condition, the condition of playing the first type video is not satisfied, the permission of playing the to-be-played video through the first account is the pause permission, and playing the to-be-played video through the first account is paused.
[0125] In a possible implementation, the first condition includes that the number of playing the first type video through the first account is less than a first number, and the play record includes the number of playing the first type video through the first account. In a case where the number of playing the first type video through the first account is less than the first number, the first condition of playing the first type video is satisfied, the permission of playing the to-be-played video through the first account is the play permission, and the to-be-played video is played through the first account. Otherwise, the permission of playing the to-be-played video through the first account is the pause permission, and playing the to-be-played video through the first account is paused. Through the above steps, the playing of the video is controlled, so that the number of playing the first type video through the first account of the device of the first account does not exceed the first number, thereby achieving the purpose of reducing watching the first type video.
[0126] In another possible implementation, the first condition comprises playing a first type of video through the first account within a first time period, and the playing record comprises a time point of playing the to-be-played video through the first account. In a case where the time point of playing the to-be-played video through the first account is within the first time period, the first condition of playing the first type of video through the first account is met, the permission of playing the to-be-played video through the first account is a playing permission, and the to-be-played video is played through the first account. Otherwise, the permission of playing the to-be-played video through the first account is a pausing permission, and playing the to-be-played video through the first account is paused. Through the foregoing steps, the playing of the video is controlled, so that the video playing control apparatus can only play the first type of video within the first time period, thereby achieving the purpose of reducing watching of the first type of video.
[0127] In another possible implementation, the first condition comprises that a duration of playing the first type of video through the first account is less than a first duration, and the playing record comprises the duration of playing the first type of video through the first account. In a case where the duration of playing the first type of video through the first account is less than the first duration, the first condition of playing the first type of video through the first account is met, the permission of playing the to-be-played video through the first account is a playing permission, and the to-be-played video is played through the first account. Otherwise, the permission of playing the to-be-played video through the first account is a pausing permission, and playing the to-be-played video through the first account is paused. Through the foregoing steps, the playing of the video is controlled, so that the video playing control apparatus plays the first type of video for a duration less than the first duration, thereby achieving the purpose of reducing watching of the first type of video.
[0128] Optionally, in a case where the continuous playing duration is greater than or equal to the third duration, the video playing apparatus continuously plays the first type of video for a relatively long continuous time, and a first reminder is sent to remind to pause playing the to-be-played video, so as to avoid long-time watching of the first type of video and reduce the watching frequency of the first type of video. The first reminder can be a pop-up reminder, or can be a reminder by changing the color of a video progress bar, and the form of the first reminder is not limited in the application.
[0129] Optionally, in a case where the playing record does not meet the first condition, different prompt information is provided for different reasons of not meeting the first condition. For example, in a case where the reason that the playing record does not meet the first condition is that the number of playing the first type of video through the first account is greater than or equal to the first number, the prompt information comprises that the number of playing the first type of video through the first account is greater than or equal to the first number. For another example, in a case where the reason that the playing record does not meet the first condition is that the time point of playing the to-be-played video through the first account is not within the first time period, the prompt information comprises that the current time point is not within the first time period in which the first type of video can be played.
[0130] Further, in addition to providing different prompt information for different unmet reasons, a replacement activity suggestion and playable time information can be provided, where the replacement activity suggestion is used to indicate participating in an activity other than watching the first type of video. For example, the first type of video is an entertainment video, and the replacement activity suggestion includes watching a learning video, thereby reducing the time of watching the first type of video and increasing the viewing time of the learning video. The playable time information is used to indicate the time information of the playable first type of video, for example, the playable time information includes a countdown of 28 minutes for the playable first type of video, i.e., the first type of video can be played after 28 minutes.
[0131] In the embodiments of the present application, after obtaining the to-be-played video, the first condition and the play record, the video play control device determines the permission of playing the to-be-played video through the first account according to the play record and the first condition, wherein the to-be-played video includes the first label, the first condition is the condition of playing the first type of video through the first account, the first type of video is the video including the first label, and the play record is the record of playing the first type of video through the first account. Through the above steps, the video play control device only has the play permission of playing the to-be-played video through the first account in the case that the play record meets the first condition, i.e., the to-be-played video can be played through the first account, so as to realize the control of the play of the first type of video. Compared with limiting the total play time of the video, the present scheme can realize different control conditions for videos carrying different labels, and improve the precision of controlling the play of the video.
[0132] As an optional implementation, the first condition is a condition of playing the first type of video through the first account within a first time range. The video play control device performs the following steps in the process of executing step 102:
[0133] 201, obtaining a current time.
[0134] In the embodiments of the present application, the current time is a specific time. For example, the current time is March 28, 2025, 15:15.
[0135] 202, in the case that the current time is within the first time range, determining the permission of playing the to-be-played video through the first account according to the play record and the first condition.
[0136] In the embodiments of the present application, the first time range is a set of multiple time points, and in the case that the current time is within the first time range, the current time is the same as one of the multiple time points.
[0137] Optionally, a hash table-based fast date query method is used to determine whether the current time is within the first time range, and the time complexity of the method is O(1).
[0138] In an embodiment of the present application, the first time range can be any time range such as a workday, a holiday, and the like, and the present application does not make any limitation in this regard.
[0139] In an embodiment of the present application, the video playback control device acquires the current time, and in the case where the current time is within the first time range, determines the right to play the to-be-played video through the first account according to the playback record and the first condition. Through the above steps, the video playback control device can configure different conditions for controlling video playback for different time ranges, realize automatic adjustment of the conditions for different time ranges, avoid the need to manually adjust the conditions for controlling video playback at different time ranges, and improve the convenience of controlling video playback.
[0140] Optionally, the structure of the first condition includes a first identifier, a first name, a first time range, a total number of days, a phase setting array, and an activation state, wherein the first identifier is an identifier for uniquely identifying the first condition.
[0141] The first name is the name of the first condition. For example, the first name is the condition for playing the first type of video during the summer vacation in 2023. For another example, the first name is the condition for playing the first type of video during the workday in 2024.
[0142] The first time range includes a first start time and a first end time, and the first start time and the first end time are stored in a standard time format. For example, the first start time is 2025-03-28T13:30:00, and the first end time is 2025-04-28T13:30:00.
[0143] The total number of days is the duration of the first time range. For example, in the case where the start time is 2025-03-28T13:30:00 and the end time is 2025-04-28T13:30:00, the total number of days is 31 days.
[0144] The phase setting array is the condition for playing the first type of video through the first account in one or more phases within the first time range. For example, the first time range is divided into the early stage of the first time range, the middle stage of the first time range, and the late stage of the first time range, and the phase setting array includes a second identifier, a third identifier, a fourth identifier, a first phase name, a second phase name, a third phase name, the early stage of the first time range, the middle stage of the first time range, the late stage of the first time range, a first phase condition, a second phase condition, a third phase condition, and a reference increase coefficient. The second identifier is an identifier for uniquely identifying the first phase, the third identifier is an identifier for uniquely identifying the second phase, and the fourth identifier is an identifier for uniquely identifying the third phase.
[0145] The first stage name is a name of the first stage. For example, the first stage name is a condition for playing the first type of video in the early stage of the summer vacation of 2023. The second stage name is a name of the second stage. The third stage name is a name of the third stage.
[0146] The first time range early stage includes a second start time and a second end time, the first time range middle stage includes a third start time and a third end time, and the first time range late stage includes a fourth start time and a fourth end time. For example, the first start time of the first time range is 2025-03-28T13:30:00, and the first end time is 2025-04-28T13:30:00. The second start time of the first time range early stage is 2025-03-28T13:30:00, and the second end time is 2025-04-08T13:30:00. The third start time of the first time range middle stage is 2025-04-08T13:30:00, and the third end time is 2025-04-18T13:30:00. The fourth start time of the first time range late stage is 2025-04-18T13:30:00, and the fourth end time is 2025-04-28T13:30:00.
[0147] The first stage condition is a condition for playing the first type of video through the first account in the first time range early stage, the second stage condition is a condition for playing the first type of video through the first account in the first time range middle stage, and the third stage condition is a condition for playing the first type of video through the first account in the first time range late stage.
[0148] The reference increase coefficient can be used to adjust the first stage condition to obtain the second stage condition and / or the third stage condition. For example, the first stage condition includes that the number of playing the first type of video through the first account is less than n, and the reference increase coefficient is that the number of playing the first type of video through the first account is increased by 5 every time a stage is passed. The second stage condition obtained by adjusting the reference increase coefficient includes that the number of playing the first type of video through the first account is less than n+5. The third stage condition obtained by adjusting the reference increase coefficient includes that the number of playing the first type of video through the first account is less than n+10.
[0149] The activation state is used to indicate whether the first condition is effective. In the case that the current time is in the first time range, the first condition is effective, and the activation state is in the effective state. In the case that the current time is not in the first time range, the first condition is not effective, and the activation state is in the ineffective state.
[0150] In a possible implementation scenario, there are a second condition and a third condition, the second condition is a condition of playing the first type of video through the first account in a second time range, and the third condition is a condition of playing the first type of video through the first account in a third time range, wherein the first time range is an intersection of the second time range and the third time range, and the first condition of playing the first type of video through the first account in the first time range is determined according to the second condition and the third condition. For example, the second time range is weekdays, the third time range is holidays, and the first time range is weekdays during holidays, where the holidays can be any holidays such as winter and summer holidays, statutory holidays, and the like. For another example, the second time range is weekends, the third time range is holidays, and the first time range is weekends during holidays.
[0151] Optionally, the first condition determined according to the second condition and the third condition is stored in a cache, and when the condition corresponding to the first time range needs to be called, the first condition in the cache can be directly called, so that repeated determination according to the second condition and the third condition is avoided, and the utilization rate of the computing resources in the video playing control apparatus is improved.
[0152] In an implementation manner of determining the first condition, the second condition includes that the number of playing the first type of video through the first account is less than a first number, the third condition includes that the number of playing the first type of video through the first account is less than a second number, and the first condition includes that the number of playing the first type of video through the first account is less than a third number, where the third number is the maximum of the first number and the second number.
[0153] In another implementation manner of determining the first condition, the second condition includes that the time length of playing the first type of video through the first account is less than a second time length, the third condition includes that the time length of playing the first type of video through the first account is less than a third time length, and the first condition includes that the time length of playing the first type of video through the first account is less than a first time length, where the first time length is the sum of the second time length and the third time length.
[0154] Optionally, there is an increase coefficient, which can be used to adjust the second condition to improve the speed of obtaining the third condition and avoid manual setting of the third condition by the user. For example, the second condition includes that the number of playing the first type of video through the first account is less than a first number, the first number is adjusted according to the increase coefficient to obtain a second number, and the third condition including that the number of playing the first type of video through the first account is less than the second number is obtained according to the second number. The manner of adjusting the first number according to the increase coefficient can be that the sum of the first number and the increase coefficient is taken as the second number. The manner of adjusting the first number according to the increase coefficient can also be that the product of the first number and the increase coefficient is taken as the second number.
[0155] Optionally, in the case that the second time range is a holiday, the background server is configured to store the second time range of the holiday, and the video playing control device can automatically obtain the second time range from the background server, avoiding the need for the user to manually adjust the holiday date, resulting in the rest date not being adjusted to the second time range or the weekend overtime date not being adjusted out of the second time range, thereby improving the accuracy of the second time range.
[0156] Further optionally, the video playing control device communicates with the background server through the Hypertext Transfer Protocol Secure (HTTPS), uses the Transport Layer Security (TLS) 1.3 protocol to encrypt the transmitted data, realizes encryption and integrity verification of data transmission, supports bidirectional authentication and session management, provides communication anomaly detection and processing mechanism, and through the breakpoint resume function, the background server can resume sending the second time range to the video playing control device after the network interruption.
[0157] In the case that the network signal is less than the first threshold, the frequency of obtaining the second time range from the background server by the video playing control device is reduced, and in the case that the network signal is greater than or equal to the first threshold, the second time range is preferentially obtained from the background server, thereby improving the success rate of obtaining the second time range from the background server.
[0158] In the process of obtaining the second time range from the background server, the data amount of obtaining the second time range from the background server is reduced through data compression, and the traffic consumption is reduced. The background server supports batch data processing function, can simultaneously process the requests of multiple video playing control devices, and improves the data transmission efficiency. The background server also supports data buffering and preloading strategy, improves the speed of obtaining the second time range from the background server, and improves the user experience.
[0159] As an optional implementation, the video playing control device performs the following steps in the process of obtaining the first condition:
[0160] 301, obtaining the first identity information stored in the first account and the to-be-verified information.
[0161] In the embodiment of the application, the first identity information is the identity information of the first user who can adjust the first condition of the first account. The to-be-verified information is the identity information to be verified received by the video playing control device.
[0162] In a possible implementation, the first identity information includes password information. The password information is a password that needs to include letters, numbers and special characters. Optionally, the password information is encrypted by using a secure hash (SHA) algorithm.
[0163] In another possible implementation, the first identity information includes fingerprint information of the first user. The fingerprint information of the first user is input through an application programming interface (API) of a fingerprint sensor of the video playing control device, and the to-be-verified fingerprint information in the to-be-verified information is received.
[0164] In yet another possible implementation, the first identity information includes face information of the first user. The face information of the first user is obtained through a device camera of the video playing control device, and the to-be-verified face information in the to-be-verified information is received.
[0165] In yet another possible implementation, the first identity information includes iris information of the first user. The iris information of the first user is obtained through a device camera of the video playing control device, and the to-be-verified iris information in the to-be-verified information is received.
[0166] 302. In a case where the to-be-verified information matches the first identity information, a condition for playing the first type of video through the first account within the first time range is obtained as the first condition.
[0167] In the embodiments of the present application, in a case where the to-be-verified information matches the first identity information, it is determined that the user logged into the video playing control device is the first user. In a case where it is determined that the user logged into the video playing control device is the first user, the first user obtains the first condition by adjusting / setting a condition for playing the first type of video through the first account within the first time range.
[0168] Optionally, the first user adjusts the time and / or quantity limit in a dragging manner to adjust the condition for playing the first type of video through the first account, thereby improving the convenience of adjusting the first condition.
[0169] Optionally, the application of different conditions on different dates is displayed by the visual calendar in the video playback control device. For example, the video playback control device includes a second condition and a third condition, the second time range corresponding to the second condition includes March 1, 2025 to March 14, 2025, and the third time range corresponding to the third condition includes March 6, 2025 to March 31, 2025. The first user can determine through the visual calendar that the second condition takes effect from March 1, 2025 to March 14, 2025, the third condition takes effect from March 6, 2025 to March 31, 2025, and no condition controls the video playback on March 15.
[0170] In the embodiments of the present application, when the video playback control device receives the to-be-verified information, the to-be-verified information is matched with the first identity information stored in the first account. When the to-be-verified information matches the first identity information stored in the first account, the condition for playing the first type of video through the first account within the first time range is obtained as the first condition. Since the to-be-verified information matches the first identity information stored in the first account, the user corresponding to the to-be-verified information has the ability to adjust the first condition corresponding to the first account, and can obtain the condition for playing the first type of video through the first account within the first time range to adjust / set the first condition. The video playback device matches the to-be-verified information with the first identity information, thereby realizing identity authentication. The first condition can be set or adjusted when the identity authentication is successful, avoiding the situation that the user who does not pass the identity authentication sets or adjusts the first condition, which leads to the failure to effectively control the video playback, and improving the effectiveness of controlling the video playback.
[0171] As an optional implementation, the to-be-played video further includes a second label, and the first condition includes a first priority. The video playback control device performs the following steps in the process of performing step 102:
[0172] 401, obtaining a fourth condition.
[0173] In the embodiments of the present application, the fourth condition is a condition for playing a second type of video through the first account, the second type of video is a video including a second label, and the fourth condition includes a second priority.
[0174] 402, in the case that the first priority of the first condition is higher than the second priority of the fourth condition, determining the right to play the to-be-played video through the first account according to the playback record and the first condition.
[0175] In the embodiments of the present application, the priority is a level standard of the judgment condition. In the case that the to-be-played video includes the first label and the second label, the first condition and the second condition can be applied to the to-be-played video. In the case that the first condition and the fourth condition conflict, the effective condition can be determined according to the first priority of the first condition and the second priority of the fourth condition, and then the control of the playing of the to-be-played video is realized. For example, the first condition is to play the first type of video through the first account from 2 o'clock to 4 o'clock. The fourth condition is to play the second type of video through the first account from 5 o'clock to 6 o'clock. In the case that the to-be-played video includes the first label and the second label, the first condition and the fourth condition conflict. In the case that the first priority of the first condition is higher than the second priority of the fourth condition, the playing of the to-be-played video is controlled by using the first condition. In the case that the second priority of the fourth condition is higher than the first priority of the first condition, the playing of the to-be-played video is controlled by using the fourth condition.
[0176] In a possible implementation, the label is a label selected by a video publisher for a video when publishing the video, and the label with a higher order in the label list of the video is a label with a higher matching degree determined by the video publisher. In the case that the first priority of the first condition is equal to the second priority of the fourth condition, the condition applied to the to-be-played video is determined according to the order of the first label and the second label in the label list of the to-be-played video. For example, the order of the first label in the label list of the to-be-played video is higher than the order of the second label in the label list of the to-be-played video, and the first condition corresponding to the first label is taken as the condition for controlling the playing of the to-be-played video.
[0177] In another possible implementation, the relevance of the to-be-played video to the first label is determined to obtain a first relevance. The relevance of the to-be-played video to the second label is determined to obtain a second relevance. The maximum value of the first relevance and the second relevance is determined to obtain a third relevance, the condition corresponding to the third relevance is determined to obtain a fifth condition, and the fifth condition is taken as the condition for controlling the playing of the to-be-played video. Specifically, x frames of pictures in the to-be-played video are determined to match y frames of pictures of the first label to obtain the first relevance. X frames of pictures in the to-be-played video are determined to match z frames of pictures of the second label to obtain the second relevance. In the case that y is greater than z, the first relevance is greater than the second relevance. In the case that z is greater than y, the second relevance is greater than the first relevance. The maximum value of the first relevance and the second relevance is determined to obtain the third relevance, and the condition corresponding to the third relevance is determined from the first condition and the fourth condition to obtain the fifth condition. According to the playing record and the fifth condition, the permission of playing the to-be-played video through the first account is determined.
[0178] In the embodiments of the present application, the video playing control device determines the condition for controlling the playing of the to-be-played video according to the second priority of the fourth condition corresponding to the second tag and the first priority of the first condition in the case where the to-be-played video exists the second tag. In the case where the first priority of the first condition is higher than the second priority of the fourth condition, the right to play the to-be-played video through the first account is determined according to the playing record and the first condition. Otherwise, the right to play the to-be-played video through the first account is determined according to the playing record and the fourth condition. Through the above steps, in the case where the to-be-played video exists multiple tags and the priorities of the conditions corresponding to different tags are different, the video playing control device takes the condition with higher priority as the condition for controlling the video playing, avoids the case where the video cannot be normally played due to the conflicting control conditions, and improves the accuracy of controlling the video playing.
[0179] Please refer to Figure 3 , Figure 3A structural diagram of a video playing control device is provided for an embodiment of the present application. Specifically, the video playing control device comprises a user control unit, a video tag management unit, a condition setting unit, a holiday condition setting unit, a holiday information synchronization unit, a network communication unit, a background server, a permission execution unit, and a data storage unit. The video tag management unit is configured to manage tags of videos in the video playing control device. The user control unit is configured to perform identity authentication. After successful identity authentication, the user control unit can set conditions for playing videos carrying different tags via the first account for different tags in the video tag management unit via the condition setting unit. The conditions set by the condition setting unit are conditions for controlling video playing during non-holiday periods. The conditions in the condition setting unit can also be quickly adjusted via settings in the holiday condition setting unit, so as to accelerate the generation of conditions for playing videos during holidays. The specific generation manner can refer to the implementation manner of adjusting the second condition by using the increase coefficient in step 202, which will not be described herein again. The holiday information synchronization unit can communicate with the background server via the network communication unit, so as to obtain the time range of holidays, avoid adjustment errors caused by manually adjusting the time range of holidays, and thus reduce the accuracy of the time range of holidays. The conditions for controlling video playing during holidays do not take effect correctly, and the accuracy of controlling video playing is reduced. In the case of determining the conditions for controlling video playing, the permission execution unit determines the permission of playing videos via the first account according to the playing records and the conditions for controlling video playing, and determines whether to play videos or not according to the determined permission. The data storage unit is configured to locally store information such as video playing records, the time range of holidays, and conditions for controlling video playing, and encrypt the information for storage, so as to avoid unauthorized access to the information. Optionally, the data storage unit uses a lightweight database (SQLite) database engine, supports complex queries and transaction processing. The SQLite database can include data structures such as a permission setting table and a watching record table. The permission setting table is configured to store conditions for controlling video playing, and the watching record table is configured to store video playing records. The data index in the SQLite database is optimized, and the efficiency of querying data in the SQLite database is improved.
[0180] Further optionally, the data stored in the SQLite database can be encrypted by using an Advanced Encryption Standard (AES)-256 encryption algorithm, and data access permission control and operation auditing are implemented, data integrity verification and tamper-proofing functions are supported. Data backup and data recovery are performed on the data in the SQLite database at regular intervals, data cleaning and compression are supported, the storage space in the SQLite database is optimized, and data export and migration functions are supported.
[0181] Based on Figure 3The architecture diagram of the video playing control device is provided, please refer to Figure 4 , Figure 4 The architecture diagram of a user control unit is provided for the embodiment of the present application. The user performs authentication through an authentication module in the user control interface of the user control unit, specifically, the authentication can be performed through password authentication, fingerprint identification, face recognition. After the authentication is successful, the user can view all tags through a video tag management unit, and can set conditions for any tag, so that the video including the tag should meet the conditions corresponding to the tag when playing. For example, the video tag management unit includes a first tag, a second tag, and a third tag, any tag in the above three tags can be selected to set conditions. After selecting the tag to be set, the limit of the number of daily playing, the limit of the continuous playing time length, and the playing time period limit can be set through a condition setting unit, and the holiday viewing time, the increase coefficient, and the special time period setting can also be set through a holiday condition setting unit, wherein the holiday viewing time is used to quickly set the time range of playing the video containing the tag to be set, the increase coefficient is used to adjust the conditions set in the condition setting unit, so as to quickly generate the conditions for controlling the video playing during the holiday. The special time period setting is used to release the conditions of part of the time period during the non-holiday, and set special time period conditions for the special time period such as birthday and after the exam. After the user completes the setting, the condition setting is applied by clicking the save setting button.
[0182] Based on Figure 3 The architecture diagram of the video playing control device is provided, please refer to Figure 5 , Figure 5 The setting flow chart of a condition setting unit is provided for the embodiment of the present application. Specifically, after starting the setting, the tag to be set is selected from the video tag management unit, and after the selection is completed, the condition setting unit is entered. The condition setting unit includes the number of daily playing setting, the continuous playing time length setting, and the playing time period setting.
[0183] The limit of the number of daily playing can be set in the number of daily playing setting. For example, if the tag to be set is selected as the education category, the limit of the number of daily playing is education category: 10 / day, that is, 10 education category videos can be played per day. For example, if the tag to be set is selected as the entertainment category, the limit of the number of daily playing is entertainment category: 5 / day, that is, 5 entertainment category videos can be played per day. For example, if the tag to be set is selected as the other category, the limit of the number of daily playing is other category: 3 / day, that is, 3 videos except the education category and the entertainment category can be played per day.
[0184] The continuous playing time length setting can set the limit of the continuous playing time length, and the limit of the continuous playing time length includes the maximum playing time, the forced rest time and the early warning time. In the case that the time difference between the continuous playing time length and the maximum playing time is equal to the early warning time, the video playing control device sends a rest reminder, and the rest reminder is used to remind the user to pause the playing of the video. In the case that the continuous playing time length is equal to the maximum playing time, the playing of the video is forced to stop, and no video can be played in the forced rest time. For example, the setting of the continuous playing time length is as follows: the maximum playing time is 60 minutes, the forced rest time is 15 minutes, and the early warning time is 5 minutes. In the case that the continuous playing time length is equal to 55 minutes, the rest reminder is sent. In the case that the continuous playing time length of the video reaches 60 minutes, the playing of the video is forced to stop, and no video can be played in the following 15 minutes.
[0185] The playing time period setting can set the playing time period limit of the to-be-set label in different time ranges. For example, the setting of the playing time period limit is as follows: the first time range is 17:00-19:00; and the second time range is 10:00-12:00 and 14:00-16:00. In the case that the current time is in the first time range, the video including the to-be-set label can be played in 17:00-19:00. In the case that the current time is in the second time range, the video including the to-be-set label can be played in 10:00-12:00 and 14:00-16:00.
[0186] After the above settings are completed, the settings are saved, and the video playing control device starts to control the playing of the video including the to-be-set label according to the above settings and ends the settings.
[0187] Based on Figure 3 The architecture diagram of the provided video playing control device is shown in FIG. 1. Figure 6 , Figure 6 The setting flow chart of the holiday condition setting unit provided in the embodiments of the present application is shown in FIG. 2. Specifically, after the setting is started, the to-be-set label is selected from the video label management unit, and after the selection is completed, the holiday condition setting unit is entered. The holiday condition setting unit includes the holiday watching time setting, the increase coefficient setting and the special time period setting.
[0188] The holiday watching time setting can set the holiday watching time, and the holiday watching time is used to quickly set the time range of the playing of the video including the to-be-set label. Specifically, the holiday watching time includes only holiday watching, weekend watching, winter and summer vacation watching. After the only holiday watching is checked, any day during the holiday can watch the video including the to-be-set label. After the weekend watching is checked, the weekend during the holiday can watch the video including the to-be-set label. After the winter and summer vacation watching is checked, the winter and summer vacation during the holiday can watch the video including the to-be-set label.
[0189] The increase coefficient setting includes an increase coefficient used to adjust the limit of the daily play quantity set in the condition setting unit. The increase coefficient includes a holiday coefficient, a weekend coefficient, and a winter and summer vacation coefficient. For example, the setting of the increase coefficient is as follows: holiday coefficient: 3 / day, weekend coefficient: 2 / day, winter and summer vacation coefficient: 5 / day. The daily play quantity of the video containing the entertainment category label in the condition setting unit is 5 / day. In the case that the current time point is in the weekend of the winter and summer vacation, the limit of the daily play quantity set in the condition setting unit is adjusted based on the holiday coefficient, the weekend coefficient, and the winter and summer vacation coefficient, and the daily play quantity of the video containing the entertainment category label during the weekend of the winter and summer vacation is obtained as (5+3+2+5=15) / day. In the case that the current time period is in the holiday weekend of the non-winter and summer vacation, the limit of the daily play quantity set in the condition setting unit is adjusted based on the holiday coefficient and the weekend coefficient, and the daily play quantity of the video containing the entertainment category label during the holiday weekend of the non-winter and summer vacation is obtained as (5+3+2=10) / day.
[0190] The special time period setting is used to release the conditions of part of the time period during the non-holiday period, and the special time period conditions are set for the special time period such as birthday, after examination, etc. Specifically, the special time period setting includes a birthday time range, an after-examination time range, etc. For example, the special time period setting is as follows: birthday: [2023-03-28T00:00:00, 2023-03-29T00:00:00], after-examination: [2023-06-28T00:00:00, 2023-06-30T00:00:00]. In the case that the current time is in the birthday time range, the special time period conditions include all restrictions being lifted, i.e., no control is performed on the play of any video. The daily play quantity of the video containing the entertainment category label in the condition setting unit is 5 / day. In the case that the current time is in the after-examination time range, the special time period conditions include a special time period coefficient: 5 / day, and the limit of the daily play quantity set in the condition setting unit is adjusted based on the special time period coefficient, and the daily play quantity of the video containing the entertainment category label during the after-examination time range is obtained as (5+5=10) / day.
[0191] After the above settings are completed, the settings are saved, and the video play control device starts to control the play of the video including the to-be-set label according to the above settings and ends the setting.
[0192] In a possible implementation scenario, the user interface of the holiday condition setting unit can further include one or more than one of the following areas: holiday date adjustment area, stage condition setting area, learning balance mechanism setting area, and test tool area.
[0193] The holiday date adjustment area includes a date range selector, an automatic stage division button, a manual stage division tool, and a holiday template selector. The date range selector is used to select the start time and end time of the holiday. The automatic stage division button is used to divide the time range of the holiday into three stages: early, middle, and late. The manual stage division tool is used to manually adjust the time range of different stages. The holiday template selector provides holiday templates, such as a standard summer vacation template and a short summer vacation template. By selecting different templates, the preset framework can be adjusted, reducing repetitive operations in condition settings.
[0194] The stage condition setting area includes a time period editor, a weekday / weekend switcher, a quota adjustment slider, and a continuous viewing limit setting. The time period editor is used to set the time period that allows viewing through a visual timeline. The weekday / weekend switcher is used to switch between weekday and weekend conditions, allowing them to be set. The quota adjustment slider is used to quickly adjust the limit of the number of daily plays through a slider. The continuous viewing limit setting is used to set the continuous play duration and mandatory rest time.
[0195] The learning balance mechanism setting area includes a learning task creation tool, a reward content selector, and a progress tracking panel. The learning task creation tool is used to set the learning tasks that need to be completed. The reward content selector is used to select the reward content after completing the learning task. For example, the reward content includes an additional increase of 5 daily plays, with an initial daily play limit of 5 per day, and after completing the learning task, 10 per day can be watched. The progress tracking panel is used to display the completion of the learning task.
[0196] The test tool area includes a date simulator, a rule conflict detector, and an effect preview. The date simulator is used to view the conditions for playing videos on any date. The rule conflict detector is used to detect conflicts between different conditions. The effect preview is used to simulate the videos that can be watched, the time that can be watched, and the number of videos that can be watched on the selected date.
[0197] Based on Figure 3 The architecture diagram of the provided video play control device is shown in Figure 7 , Figure 7A setting flow chart of a time range of a holiday is provided for the embodiments of the present application. First, the time range of the holiday in the background server is maintained regularly. The video playing control device requests the holiday information synchronization unit to synchronize the time range of the holiday. After receiving the synchronization request of the video playing control device, the holiday information synchronization unit sends a synchronization request to the network communication unit. The network communication unit sends a request for the time range of the holiday to the background server. After receiving the request of the network communication unit, the background server returns the maintained time range of the holiday to the network communication unit. After receiving the data transmitted by the background server, the network communication unit transmits the data to the holiday information synchronization unit. After receiving the time range of the holiday, the holiday information synchronization unit identifies the rest arrangement in the time range of the holiday and updates the holiday information in the local database. By repeatedly executing the above steps, the accuracy of the holiday information in the local server is ensured. Optionally, when the time range of the holiday received by the holiday information synchronization unit from the network communication unit changes, the changed data is synchronized through the incremental update mechanism to avoid the waste of transmission resources caused by repeatedly storing unchanged data. The user can manually mark a specific date as a holiday through the user control unit. After the user sets, the user control unit transmits the specific date set by the user to the holiday information synchronization unit to take the specific date as a holiday date. After the holiday information synchronization unit merges the specific date into the time range of the holiday, the holiday information in the local database is updated. The video playing control device applies the time range of the holiday in the local database to the condition of controlling video playing during the holiday. In the case where the condition of controlling video playing during the holiday is not met, the authority execution unit sends prompt information of playing failure, alternative activity suggestion and playable time information.
[0198] In a possible implementation scenario, the playing information of the video playing control device is recorded, including: playing start time, identifier of the played video, expected end time, number of watched videos, cumulative watching time, watching frequency, etc. By recording the above playing information in real time, the accuracy of the playing information is ensured. By analyzing the playing information of the user, the watching trend in the past 7 days or 30 days is determined to identify the tendency of the user to be addicted to videos.
[0199] Optionally, the playing information further includes the pause time of the video. According to the pause time, the breakpoint resume is realized to improve the user experience after the interruption of video playing.
[0200] The behavior data of the user is recorded, including: playing completion rate, interactive operation, pause frequency, etc. The behavior data of the user is anonymized to protect the privacy of the user. According to the behavior data of the user, the behavior mode analysis is performed to identify the watching habit and preference of the user.
[0201] According to the recorded playing information and behavior data, the watching statistical report is generated regularly to display the change of the watching habit of the user.
[0202] The playing information and the user settings are synchronized to the cloud, ensuring consistency of multiple video playing control devices when logging into the same account, local recording when the account is offline, and automatic synchronization to the cloud after network reconnection.
[0203] In a possible implementation, the video playing control device adopts a three-layer architecture design, including a user interface layer, a business logic layer, and a data storage layer. The user interface layer is responsible for presenting video content and interactive interfaces, including a video playing window, a directory browsing interface, a control panel, a parental setting page, and the like. The business logic layer is used to implement core function logic, including permission verification, playing control, time management, and data processing, and the like. The data storage layer is used to manage local data, including user settings, watching records, holiday information, and cached content, and the like. The three-layer architecture design makes the video playing control device have good maintainability and extensibility, facilitating independent development and upgrading of function modules.
[0204] Those skilled in the art can understand that, in the above method of the specific implementation, the writing order of each step does not mean a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.
[0205] The above describes the method of the embodiments of the application in detail. The device of the embodiments of the application is provided below.
[0206] Please refer to Figure 8 , Figure 8 A structural schematic diagram of a video playing control device provided by the embodiments of the application is provided. The video playing control device 1 includes an acquisition unit 11 and a determination unit 12. Wherein:
[0207] The acquisition unit 11 is configured to acquire a to-be-played video, a first condition, and a playing record. The to-be-played video includes a first label. The first condition includes a condition of playing a first type of video through a first account. The first type of video is a video containing the first label. The playing record includes a record of playing the first type of video through the first account.
[0208] The determination unit 12 is configured to determine a permission of playing the to-be-played video through the first account according to the playing record and the first condition.
[0209] According to any one of the embodiments of the application, the first condition is a condition of playing the first type of video through the first account within a first time range.
[0210] The above determination unit 12 is specifically configured to:
[0211] acquire a current time;
[0212] In a case where the current time is within the first time range, according to the playing record and the first condition, a right of playing the to-be-played video by the first account is determined.
[0213] In combination with any one of the embodiments of the present application, the acquisition unit 11 is specifically configured to:
[0214] acquire a second condition and a third condition, the second condition being a condition of playing the first type of video by the first account within a second time range, the third condition being a condition of playing the first type of video by the first account within a third time range, an intersection of the second time range and the third time range being the first time range;
[0215] determine the first condition according to the second condition and the third condition.
[0216] In combination with any one of the embodiments of the present application, the determination unit 12 is further configured to:
[0217] determine a time range in the second time range that has no intersection with the first time range, to obtain a fourth time range;
[0218] In a case where the current time is within the fourth time range, according to the playing record and the second condition, a right of playing the to-be-played video by the first account is determined.
[0219] In combination with any one of the embodiments of the present application, the second condition includes that a number of playing the first type of video by the first account is less than a first number, the third condition includes that the number of playing the first type of video by the first account is less than a second number, the first condition includes that the number of playing the first type of video by the first account is less than a third number, and the third number is a maximum value of the first number and the second number.
[0220] In combination with any one of the embodiments of the present application, the second time range includes weekdays, the third time range includes holidays, and the first time range includes weekdays during the holidays.
[0221] In combination with any one of the embodiments of the present application, the second condition includes that the number of playing the first type of video by the first account is less than the first number.
[0222] The acquisition unit 11 is specifically configured to:
[0223] acquire an increase coefficient;
[0224] adjust the first number according to the increase coefficient to obtain the second number, the second number being positively correlated with the increase coefficient and the first number.
[0225] The third condition is determined according to the second quantity, and the third condition comprises that a quantity of playing the first type of video through the first account is less than the second quantity.
[0226] According to any one of the embodiments of the present application, the video playing control apparatus 1 further comprises a sending unit 13, configured to:
[0227] Obtain a continuous playing duration, the playing duration being a continuous duration of playing the first type of video;
[0228] In a case where the continuous playing duration is greater than or equal to a third duration, send a first reminder, the first reminder being used to remind to pause playing the to-be-played video.
[0229] According to any one of the embodiments of the present application, the determining unit 12 is specifically configured to:
[0230] In a case where it is determined that the first account satisfies the first condition based on the playing record, determine that the permission is a playing permission, the playing permission being used to indicate playing the to-be-played video through the first account.
[0231] According to any one of the embodiments of the present application, the first condition comprises one or more of the following: a quantity of playing the first type of video through the first account is less than a fourth quantity, playing the first type of video through the first account within a first time period, and a duration of playing the first type of video through the first account is less than a first duration.
[0232] According to any one of the embodiments of the present application, the obtaining unit 11 is specifically configured to:
[0233] Obtain first identity information and to-be-verified information stored in the first account;
[0234] In a case where the to-be-verified information matches the first identity information, obtain a condition of playing the first type of video through the first account within the first time range as the first condition.
[0235] According to any one of the embodiments of the present application, the to-be-played video further comprises a second label, and the first condition comprises a first priority.
[0236] The determining unit 12 is specifically configured to:
[0237] Obtain a fourth condition, the fourth condition being a condition of playing a second type of video through the first account, the second type of video being a video comprising the second label, and the fourth condition comprising a second priority.
[0238] In a case where the first priority of the first condition is higher than the second priority of the fourth condition, the right of playing the to-be-played video through the first account is determined according to the playing record and the first condition.
[0239] In combination with any of the embodiments of the present application, the determination unit 12 is further configured to:
[0240] determine the relevance of the to-be-played video to the first tag to obtain a first relevance;
[0241] determine the relevance of the to-be-played video to the second tag to obtain a second relevance;
[0242] determine the maximum of the first relevance and the second relevance to obtain a third relevance;
[0243] determine the condition corresponding to the third relevance from the first condition and the fourth condition to obtain a fifth condition;
[0244] determine the right of playing the to-be-played video through the first account according to the playing record and the fifth condition.
[0245] In the embodiments of the present application, after the video playing control device obtains the to-be-played video, the first condition and the playing record, the right of playing the to-be-played video through the first account is determined according to the playing record and the first condition, wherein the to-be-played video includes the first tag, the first condition is the condition of playing the first type video through the first account, the first type video is the video including the first tag, and the playing record is the record of playing the first type video through the first account. Through the above steps, the right of playing the to-be-played video through the first account is the playing right in a case where the playing record meets the first condition, that is, the to-be-played video can be played through the first account, so as to realize the control of the playing of the first type video. Compared with limiting the total playing time of the video, the present solution can realize different control conditions for videos carrying different tags, and improve the precision of controlling the playing of the video.
[0246] In some embodiments, the apparatus provided by the embodiments of the present application has functions or includes modules that can be used to execute the methods described in the above method embodiment descriptions, and the specific implementation can refer to the descriptions of the above method embodiments. For brevity, they will not be described here.
[0247] Figure 9A hardware structure schematic diagram of an electronic device is provided in the embodiments of the present application. The electronic device 2 comprises a processor 21 and a memory 22. Optionally, the electronic device 2 further comprises an input device 23 and an output device 24. The processor 21, the memory 22, the input device 23 and the output device 24 are coupled through a connector, which comprises various interfaces, transmission lines or buses, etc. The embodiments of the present application do not make any limitation in this aspect. It should be understood that in various embodiments of the present application, coupling means mutual connection in a specific way, including direct connection or indirect connection through other devices, for example, various interfaces, transmission lines, buses, etc.
[0248] The processor 21 can comprise one or more processors, for example, one or more central processing units (CPUs), which can be a single core CPU or a multi-core CPU. Optionally, the processor 21 can be a processor group comprising a plurality of CPUs, and the plurality of processors are coupled with each other through one or more buses. Optionally, the processor can also be other types of processors, etc. The embodiments of the present application do not make any limitation in this aspect.
[0249] The memory 22 can be used to store computer program instructions and various computer program codes for executing the schemes of the present application. Optionally, the memory comprises but is not limited to a random access memory (RAM), a read-only memory (ROM), an erasable programmable read only memory (EPROM), or a compact disc read-only memory (CD-ROM), which is used for relevant instructions and data.
[0250] The input device 23 is used to input data and / or signals, and the output device 24 is used to output data and / or signals. The input device 23 and the output device 24 can be independent devices or an integrated device.
[0251] It can be understood that in the embodiments of the present application, the memory 22 can be used to store not only relevant instructions but also relevant data, for example, the memory 22 can be used to store the acquired video to be played, the first condition and the playing record acquired through the input device 23, or the memory 22 can be used to store the permission of playing the video to be played through the first account determined by the processor 21, etc. The embodiments of the present application do not make any limitation in this aspect.
[0252] It can be understood that,Figure 9 Only a simplified design of an electronic device is shown. In actual applications, the electronic device can also include other necessary elements, including but not limited to any number of input / output devices, processors, memories, etc., and all electronic devices that can implement the embodiments of the present application are within the protection scope of the present application.
[0253] Those skilled in the art can appreciate that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether the functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0254] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working processes of the above-described system, device and unit can refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here. Those skilled in the art can also clearly understand that each embodiment of the present application describes each with emphasis, and for the convenience and brevity of the description, the same or similar parts in different embodiments can not be described in detail, so the parts not described or not described in detail in a certain embodiment can be referred to the description of other embodiments.
[0255] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interface, device or unit, and can be electrical, mechanical or other forms.
[0256] The units described as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, i.e., they can be located in one place, or can be distributed on a plurality of network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiments of the present application.
[0257] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically, or two or more units can be integrated into one unit.
[0258] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable apparatus. The computer instructions can be stored in or transmitted by a computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through a wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) manner. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes one or more available media sets. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a digital versatile disc (DVD)), or a semiconductor medium (such as a solid state disk (SSD)), etc.
[0259] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiments can be instructed by a computer program to complete the relevant hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned embodiments. The storage medium includes a read-only memory (ROM) or a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.
Claims
1. A video playback control method, characterized in that: The method comprises: Obtaining a video to be played, a first condition, and a playback record, wherein the video to be played includes a first tag, the first condition includes a condition for playing a first type of video through a first account, the first type of video being a video including a first tag, and the playback record includes a record of playing the first type of video through the first account; According to the playback record and the first condition, the permission for playing the to-be-played video through the first account is determined.
2. The method according to claim 1, characterized in that The first condition is that the first type of video is played through the first account within a first time range; The determining, based on the playback record and the first condition, permission to play the to-be-played video through the first account includes: Get the current time; When the current time is within the first time range, the permission to play the to-be-played video through the first account is determined according to the playback record and the first condition.
3. The method according to claim 2, characterized in that Get the first condition, including: Obtain a second condition and a third condition, where the second condition is a condition for playing the first type of video through the first account within a second time range, and the third condition is a condition for playing the first type of video through the first account within a third time range, and the intersection of the second time range and the third time range is the first time range; The first condition is determined according to the second condition and the third condition.
4. The method according to claim 3, characterized in that The method further comprises: Determine a time range in the second time range that does not intersect with the first time range, to obtain a fourth time range; In a case where the current time is within the fourth time range, the permission to play the to-be-played video through the first account is determined according to the playback record and the second condition.
5. The method according to claim 3 or 4, characterized in that The second condition includes that the number of videos of the first type played through the first account is less than the first number, the third condition includes that the number of videos of the first type played through the first account is less than the second number, the first condition includes that the number of videos of the first type played through the first account is less than the third number, and the third number is the maximum value of the first number and the second number.
6. The method according to claim 3 or 4, characterized in that The second time range includes working days, the third time range includes holidays, and the first time range includes working days during holidays.
7. The method according to claim 3 or 4, characterized in that The second condition includes that the number of videos of the first type played through the first account is less than the first number; Get the third condition, including: Get the increase coefficient; adjusting the first quantity according to the increase coefficient to obtain the second quantity, wherein the second quantity is positively correlated with the increase coefficient and the first quantity; The third condition is determined based on the second number, and the third condition includes that the number of videos of the first type played through the first account is less than the second number.
8. The method according to any one of claims 1 to 4, characterized in that The method further comprises: Obtaining a continuous playback duration, where the playback duration is a continuous duration of playing the first type of video; When the continuous playback duration is greater than or equal to the third duration, a first reminder is sent, where the first reminder is used to remind the user to pause playback of the video to be played.
9. The method according to claim 1, characterized in that The determining, based on the playback record and the first condition, permission to play the to-be-played video through the first account includes: When it is determined based on the playback record that the first account satisfies the first condition, the permission is determined to be a playback permission, and the playback permission is used to indicate that the video to be played is played through the first account.
10. The method according to any one of claims 1 to 4, characterized in that The first condition includes one or more of the following: the number of videos of the first type played through the first account is less than a fourth number, the first type of video is played through the first account within a first time period, and the duration of the first type of video played through the first account is less than a first duration.
11. The method according to claim 2, characterized in that Get the first condition, including: Obtaining the first identity information and the information to be verified stored in the first account; When the information to be verified matches the first identity information, a condition of playing a first type of video through a first account within the first time range is obtained as the first condition.
12. The method according to claim 1, characterized in that The video to be played further includes a second tag, and the first condition includes a first priority; The determining, based on the playback record and the first condition, permission to play the to-be-played video through the first account includes: Obtaining a fourth condition, where the fourth condition is a condition for playing a second type of video through the first account, the second type of video being a video including the second tag, and the fourth condition includes a second priority; When the first priority of the first condition is higher than the second priority of the fourth condition, the permission to play the to-be-played video through the first account is determined according to the playback record and the first condition.
13. The method according to claim 12, characterized in that When the first priority is equal to the second priority, the method further includes: Determining the relevance between the to-be-played video and the first tag to obtain a first relevance; Determining the relevance between the to-be-played video and the second tag to obtain a second relevance; determining a maximum value of the first correlation and the second correlation to obtain a third correlation; Determine a condition corresponding to the third correlation from the first condition and the fourth condition to obtain a fifth condition; According to the playback record and the fifth condition, the permission to play the to-be-played video through the first account is determined.
14. A video playback control device, characterized in that: The video playback control device includes: an acquisition unit, configured to acquire a to-be-played video, a first condition, and a playback record, wherein the to-be-played video includes a first tag, the first condition includes a condition for playing a first type of video through a first account, the first type of video being a video including a first tag, and the playback record includes a record of playing the first type of video through the first account; A determination unit is used to determine the permission to play the video to be played through the first account based on the playback record and the first condition.
15. An electronic device, characterized in that: include: A processor and a memory, the memory is used to store computer program code, the computer program code includes computer instructions, and when the processor executes the computer instructions, the electronic device executes the method according to any one of claims 1 to 13.
16. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 13.
17. A computer program product, characterized in that The computer program product comprises a computer program or instructions; when the computer program or instructions are run on a computer, the computer is caused to execute the method according to any one of claims 1 to 13.