Video playback control method, device, equipment and storage medium

By obtaining the child's actual age and adjusting blue light filtering, screen brightness, and flicker frequency according to the mapping relationship, the problem of existing technologies being unable to effectively protect children's eyesight is solved, and effective protection of children's eyesight is achieved.

CN114630067BActive Publication Date: 2024-11-26BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210204964.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-02
Publication Date
2024-11-26
Estimated Expiration
2042-03-02

AI Technical Summary

Technical Problem

Current methods of adjusting screen brightness based on the surrounding environment are ineffective in protecting children's eyesight.

Method used

By obtaining the actual age of the video viewer and determining the target blue light filtering percentage, screen brightness range, and flicker frequency range based on the mapping relationship between age and playback parameters, video playback is controlled to protect children's eyesight.

Benefits of technology

It effectively reduces the harm of video light to children's eyes, protects children's vision, and avoids permanent damage to vision caused by blue light, screen brightness, and screen flicker frequency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114630067B_ABST
    Figure CN114630067B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a video playback control method, device, equipment and storage medium, wherein the method comprises: obtaining the actual age of the video viewer; when the actual age is in the age group of children whose eyes have not yet fully developed, determining the playback parameters corresponding to the actual age according to the first mapping relationship between age and playback parameters; wherein the playback parameters include at least one of the target blue light filtering percentage, the target screen brightness range and the first flash screen frequency range; and controlling the video playback according to the playback parameters. The embodiment of the present invention can effectively reduce the damage caused by the video to the viewer's eyes, thereby effectively protecting children's eyesight, and to a certain extent solves the technical problem that the method of adjusting the screen brightness according to the surrounding environment alone cannot effectively protect children's eyesight.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic equipment, and in particular to a video playback control method, device, equipment and storage medium. Background Art

[0002] Currently, with the popularization of electronic devices in people’s lives, myopia problems are becoming more and more common at younger ages.

[0003] Most children's myopia is caused by premature use of electronic products and improper use of electronic products. In order to protect the user's eyes, existing applications and electronic products on the market only adjust the screen brightness according to the surrounding environment during use.

[0004] The existing method of simply adjusting the screen brightness according to the surrounding environment has a certain effect on protecting the eyesight of adults, but it cannot provide effective protection for children. Summary of the invention

[0005] The technical problem to be solved by the embodiments of the present invention is to provide a video playback control method, device, equipment and storage medium to solve the technical problem that the existing method of adjusting the screen brightness according to the surrounding environment cannot effectively protect children's eyesight.

[0006] Correspondingly, the embodiment of the present invention also provides a video playback control device, an electronic device and a storage medium to ensure the implementation and application of the above method.

[0007] In order to solve the above problems, the present invention is achieved through the following technical solutions:

[0008] A first aspect provides a video playback control method, the method comprising:

[0009] Get the actual age of the video viewers;

[0010] In the case where the actual age is in the age group of children whose eyes have not yet fully developed, determining the playback parameters corresponding to the actual age according to a first mapping relationship between the age and the playback parameters; wherein the playback parameters include at least one of a target blue light filtering percentage, a target screen brightness range, and a first screen flashing frequency range;

[0011] Control video playback according to the playback parameters described.

[0012] A second aspect provides a video playback control device, the device comprising:

[0013] An acquisition module is used to obtain the actual age of video viewers;

[0014] a determination module, configured to determine, when the actual age is in the age group of children whose eyes have not yet fully developed, the playback parameters corresponding to the actual age according to a first mapping relationship between age and playback parameters; wherein the playback parameters include at least one of a target blue light filtering percentage, a target screen brightness range, and a first screen flashing frequency range;

[0015] The control module is used to control the video playback according to the playback parameters.

[0016] The third aspect provides a device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the above-mentioned video playback control method when executed by the processor.

[0017] A fourth aspect provides a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps in the above-mentioned video playback control method.

[0018] Compared with the prior art, the embodiments of the present invention have the following advantages:

[0019] The video playback control method provided by the embodiment of the present invention can obtain the actual age of the video viewer; when the actual age is in the children's age group whose eyes have not yet fully developed, the playback parameters corresponding to the actual age are determined according to the first mapping relationship between age and playback parameters, and the playback parameters include at least one of the target blue light filtering percentage, the target screen brightness range, and the first flash screen frequency range; and the video playback is controlled according to the playback parameters. Since when it is determined that the age of the video viewer is in the children's age group, at least one playback parameter of the target blue light filtering percentage, the target screen brightness range, and the first flash screen frequency range is determined according to the actual age of the video viewer, and then the video playback is controlled according to the above-mentioned playback parameters, it can effectively reduce the damage caused by the video to the viewer's eyes, thereby effectively protecting children's eyesight, and to a certain extent solves the technical problem that the method of adjusting the screen brightness according to the surrounding environment alone cannot effectively protect children's eyesight.

[0020] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 is a flow chart of a video playback control method provided by an embodiment of the present invention;

[0022] Figure 2 is a schematic diagram of an operation interface for a parent to set identity information for a child provided by an embodiment of the present invention;

[0023] Figure 3 is a schematic diagram of the vision change trend of children at various stages of growth and development provided by an embodiment of the present invention;

[0024] Figure 4 is a graph of blue light hazard effects of light of various wavelengths in an embodiment of the present invention;

[0025] Figure 5 It is a schematic diagram of the principle of the PWM dimming technology provided by an embodiment of the present invention;

[0026] Figure 6 It is a structural schematic diagram of a video playback control device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0027] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0028] See also Figure 1 , which is a flow chart of a video playback control method provided by an embodiment of the present invention, and may specifically include the following steps 100 to 200.

[0029] In practical applications, the video playback control method provided by the embodiment of the present invention can be applied to an electronic device or a specific application in the electronic device. The electronic device can be a mobile phone, a tablet computer, a smart TV, etc.

[0030] Step 100: Obtain the actual age of the video viewer.

[0031] In this step, the video viewer is a person determined to need to watch the video, and the actual age is the age of the video viewer when watching the video.

[0032] Optionally, in one embodiment, the actual age can be calculated by combining the identity information pre-set by the parent in the application with the current date, and the identity information includes birthday information. In actual applications, corresponding identity information can be pre-set for multiple children in the application, and a corresponding account can be established for each child; in this way, when it is determined that child A needs to watch a video, the parent selects child A as the current user, and then the actual age of child A is accurately calculated by the application to determine whether the video needs to be played in the eye protection mode. Among them, the operation interface for parents to set identity information for their children is as follows: Figure 2 As shown, currently, parents can choose to delete the above-mentioned child’s identity information and corresponding account.

[0033] Optionally, in a specific embodiment, the electronic device stores a correspondence between facial feature information and birthday information, so that the electronic device can automatically and accurately obtain the birthday information of the video viewer based on the facial feature information, and then calculate the actual age, so as to avoid the situation where the video viewer is changed without the parents' knowledge, and the playback mode cannot be adjusted in time for video playback according to the actual video viewer; at the same time, it can avoid the problem that the playback mode cannot be adjusted for video playback according to the actual age of the actual video viewer due to the parents' negligence in selecting the wrong identity information.

[0034] Step 200: When the actual age is in the children's age group whose eyes have not yet fully developed, determine the playback parameters corresponding to the actual age based on a first mapping relationship between age and playback parameters; wherein the playback parameters include at least one of a target blue light filtering percentage, a target screen brightness range, and a first flash screen frequency range.

[0035] Like the functional development of other organs, children's vision also develops and matures gradually. During the gradual formation and maturation of visual functions at all levels after birth, the visual system of children has considerable plasticity, especially before the age of 3 is the critical period of visual development, and before the age of 12 is the sensitive period. For details, please refer to Figure 3 , which shows the trend of vision changes in children at different stages of growth and development. If there are adverse factors during the visual development period, it will hinder the normal development of vision.

[0036] Therefore, in this step, the above-mentioned children's age group can be 0 to 13 years old, that is, as long as the actual age of the video viewer is in the children's age group, it is judged that the current video viewer's visual development is not complete and visual protection is needed to reduce the damage to the video viewer's eyes caused by the video light.

[0037] The impact of electronic devices on children's vision is not only affected by the ambient light, but also by multiple playback parameters such as blue light, screen flicker, screen brightness, etc., and children of different ages have different tolerances to the above playback parameters. Therefore, a first mapping relationship between age and playback parameters can be established in advance based on the different tolerances of children of different ages to the above playback parameters. The above playback parameters include at least one of the blue light filtering percentage, screen brightness range, and screen flicker frequency range. In the above first mapping relationship, different age groups of children have different corresponding playback parameter value ranges.

[0038] In this step, because blue light has phototoxicity to the retina and a limit of radiation that does not cause harm to it, when blue light irradiates the retina, it has greater harm than other wavelengths of light. This degree of harm can be identified by the blue light hazard effect map, as shown in the following figure: Figure 4In order to evaluate the exposure conditions, it is necessary to measure the spectrum at a specific location, weight the value at each wavelength by the relevant factor at that wavelength, and then add the weighted values ​​to obtain the weighted radiance or irradiance for comparison with the guideline exposure limit.

[0039] pass Figure 4 It can be seen that the blue light with a wavelength between 400 and 500 nanometers has a great harm to vision. Among them, because the harmful blue light has extremely high energy, it can penetrate the lens directly to the retina, causing atrophy or even death of retinal pigment epithelial cells, and then irreversibly causing vision loss or even complete loss; secondly, blue light can also cause macular degeneration, because the lens in the human eye absorbs part of the blue light and gradually becomes turbid to form cataracts, and most of the blue light will penetrate the lens, especially the children's lens is clearer and cannot effectively resist blue light, which is more likely to cause macular degeneration and cataracts and other optical damage; in addition, due to the short wavelength of blue light, the focus is not on the center of the retina, but a little closer to the retina, so that the eyeball will be in a state of tension for a long time, causing visual fatigue, which will lead to symptoms such as deepening of myopia, double vision, easy serialization when reading, and inability to concentrate; at the same time, blue light will inhibit the secretion of melatonin, which is an important hormone that affects sleep, and then lead to insomnia and poor sleep quality.

[0040] Among them, because the percentage of blue light transmission from the corneal surface to the retina is related to age, the transmittance of children is higher than that of adults, and the macular area located in the center of the retina is the center of human vision. It is also the area with the highest light sensitivity and the most vulnerable area. It is not fully developed until about 4 years old. Therefore, within the spectrum range acceptable to adults, it may cause damage to children's vision. Children's tolerance to blue light is directly related to the clarity of their lens, and the clarity of the lens is directly related to age. Therefore, according to the actual age of the video viewer, combined with the medical data entered in advance, the child's eye development state can be judged to determine their tolerance to blue light, and then determine the proportion of blue light that needs to be filtered out, that is, the above-mentioned blue light filtering percentage can be obtained. The blue light filtering of the played video according to the blue light filtering percentage can effectively alleviate the damage of blue light to children's eyes.

[0041] For example, the blue light filtering percentage can be set to 100% when the actual age is less than or equal to 4 years old, that is, blue light needs to be completely blocked; when the actual age is greater than 4 years old, the blue light filtering percentage is set to be reduced by 10% for each additional year, that is, blue light needs to be partially blocked.

[0042] The implementation process of setting the blue light filtering percentage is as follows:

[0043] Pass the parameter blueFilterPercent to the function getFilterColor to set the blue light filter percentage realFilter; when the parameter value of blueFilterPercent is less than 10, it means setting the blue light filter percentage to 10; when the parameter value of blueFilterPercent is greater than 80, it means setting the blue light filter percentage to 80;

[0044] Pass parameters to the function Color.argb to set the transparency and color of the floating layer;

[0045] For example, parameter a is passed to the function Color.argb to set the transparency of the floating layer, and the value of the parameter is calculated by the method realFilter / 80f*180; parameter r is passed to the function Color.argb to set the red grayscale of the floating layer, and the value of the parameter r is calculated by the method 200-(realFilter / 80f)*190; parameter g is passed to the function Color.argb to set the green grayscale of the floating layer, and the value of the parameter g is calculated by the method 180-(realFilter / 80f)*170; parameter b is passed to the function Color.argb to set the blue grayscale of the floating layer, and the value of the parameter b is calculated by the method 60-realFilter / 80f*60;

[0046] The function Color.argb sets the transparency of the floating layer according to the parameter a, and sets the color of the floating layer according to the parameters r, g, and b.

[0047] In this step, because strong light or weak light can cause permanent damage to children's eyes, the screen brightness for playing videos can be limited by setting a critical value for screen brightness and setting video viewing limits according to the brightness of the surrounding environment. Among them, a strong light environment can cause the lens to thicken. Although electronic devices such as mobile phones will automatically adjust the screen brightness according to the surrounding environment, if a child accidentally touches the screen while watching a video and slides up to adjust the screen to the brightest or darkest, the lens will be permanently damaged if it is in a strong light state or weak light state for a long time. Therefore, the upper and lower thresholds of the screen light brightness can be set, and reminders and viewing limits can be set for situations where the surrounding environment is too bright or too dark, so as to avoid permanent damage to children's eyes caused by strong light or weak light.

[0048] In the above steps, because many screens on the market use pulse-width modulation (PWM) dimming technology, the brightness is controlled by controlling the duration of light emission. For example, 100% brightness means full brightness, and 50% brightness means half on and half off. For details, please refer to Figure 5Because children's eyes are more sensitive to light, long-term switching between on and off can cause children to experience symptoms of eye fatigue and dizziness. Therefore, the frequency of screen flashing when playing videos is limited, which effectively protects children's eyesight by sacrificing some viewing effects.

[0049] Because PWM dimming technology controls brightness by controlling the duration of light emission, and the darker the screen brightness, the more frequently the pixels flicker, that is, the higher the screen flickering frequency, which will increase the fatigue and tension of the ciliary muscles of the eyes. Therefore, in order to reduce the screen flickering frequency and reduce the damage to the eyes caused by the screen flickering, it is necessary to limit the screen brightness within a set brightness range, and correspondingly limit the screen flickering frequency within a set screen flickering frequency range. The set screen flickering frequency range is also a safe screen flickering frequency range that will not cause obvious damage to children's eyesight. Because children's eyes are sensitive to light intensity and screen flickering frequency at different ages, the safe screen brightness range and screen flickering frequency range corresponding to different age groups are determined according to the tolerance to screen brightness and screen flickering frequency.

[0050] Step 300: Control video playback according to the playback parameters.

[0051] Because the playback parameters determined in the above step 200 are playback parameters that match the eye development status of the video viewer and the tolerance to video light, controlling the video playback according to the above playback parameters can effectively reduce the damage caused by the video light to children's eyes and better protect children's eyes.

[0052] To sum up, the video playback control method provided by the embodiment of the present invention, when it is determined that the age of the video viewer is in the children's age group, determines at least one playback parameter among the target blue light filtering percentage, the target screen brightness range and the first flash screen frequency range according to the actual age of the video viewer, and then controls the video playback according to the above playback parameters. This can effectively reduce the damage caused by the video to the viewer's eyes, thereby effectively protecting children's eyesight. To a certain extent, it solves the technical problem that the method of adjusting the screen brightness according to the surrounding environment alone cannot effectively protect children's eyesight.

[0053] In practical applications, a child eye protection mode is pre-set. The child eye protection mode is a video viewing model that combines the above-mentioned multiple video playback parameters that affect children's vision and can effectively reduce the damage to children's eyes caused by video relationships. It can better protect children's eyes and reduce the damage to their eyesight caused by watching videos on electronic devices. The child eye protection mode can be turned on or off by parents, and the video playback control method provided in the embodiment of the present invention will only be executed when the child eye protection mode is turned on.

[0054] For example, taking the blue light filtering percentage as 30%, the implementation process of turning on the children's eye protection mode is as follows:

[0055] Call view.setBackgroundColor to adjust the background color, define its parameters as the method getFilterColor, and pass in a color temperature with a blue light filtering ratio of 30%.

[0056] For example, how to turn off the children's eye protection mode is as follows:

[0057] Call the view.setBackgroundColor function to adjust the background color; define its parameter as Color.TRANSPAREN.

[0058] Optionally, in one implementation, when the playback parameter includes a target blue light filtering percentage, the step 300 includes steps 301 and 302 .

[0059] Step 301: Determine a target color depth corresponding to the target blue light filtering percentage according to a second mapping relationship between the color depth of the yellow mask and the blue light filtering percentage.

[0060] In this step, because yellow light with a wavelength of 500 to 600 nm can absorb blue light with a wavelength of 400 to 500 nm, a yellow mask can be added on the screen to filter out the blue light in the video light.

[0061] Among them, because yellow light of different wavelengths has different absorption effects on blue light, that is, yellow light of different wavelengths has different filtering percentages on blue light, and the color depths of the yellow mask formed by yellow light of different wavelengths are different, it is possible to establish a mapping relationship between the color depth of the yellow mask and the blue light filtering percentage, which is the above-mentioned second mapping relationship.

[0062] For example, a blue light filtering percentage of 100% corresponds to a yellow light mask with a color depth of 580nm; a blue light filtering percentage of 50% corresponds to a yellow light mask with a color depth of 595nm.

[0063] Step 302: During playback of the video, a yellow mask of the target color depth is displayed on the screen playing the video.

[0064] In this step, a window with a yellow transparent foreground color of the target color depth is added during video playback, thereby adding a yellow mask showing the target color depth on the screen. The yellow mask can absorb the blue light emitted by the video according to the blue light filtering percentage, so that the amount of blue light entering the eyes of the video viewer is within the tolerance range of the eyes, thereby preventing the blue light from causing irreversible optical damage to the vision.

[0065] The implementation process of setting the yellow mask is as follows:

[0066] Call the function (ViewGroup) findViewById (android.R.id.content) to get the content root layout;

[0067] Call the function new FrameLayout(this) to create a floating view;

[0068] Call the function view.setBackgroundColor(Color.TRANSPARENT) to set the floating layer to transparent;

[0069] Call the function new WindowManager.LayoutParams() to set the properties of LayoutParams;

[0070] Call the function WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL to set the floating layer to be untouchable;

[0071] Call the function WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE to set the floating layer to be non-focusable;

[0072] Call the function WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE to set the floating layer to be untouchable;

[0073] Call the function WindowManager.LayoutParams.MATCH_PARENT to set the height of the floating layer; call the function WindowManager.LayoutParams.MATCH_PARENT to set the width of the floating layer;

[0074] Call the function content.addView(view,params) to display the floating layer, thereby achieving the yellow mask effect.

[0075] Optionally, in one implementation, when the playback parameters include a first screen flashing frequency range, the step 300 includes steps 311 to 314.

[0076] Step 311: Obtain the first screen brightness set by the user.

[0077] In this step, the first screen brightness is the screen brightness that the user wants to play the video. The user can set the first screen brightness through a user instruction, and the user instruction is an operation for the user to set the screen brightness, which can be specifically an operation such as touching, pressing, sliding, etc. on the screen brightness control.

[0078] Step 312: Determine a first screen flashing frequency corresponding to the first screen brightness.

[0079] In this step, for the pulse width modulation (PWM) dimming device, the screen brightness is achieved by adjusting the screen flashing frequency. The darker the screen, the higher the screen flashing frequency. That is, there is a corresponding relationship between the screen brightness and the screen flashing frequency. Therefore, based on the corresponding relationship between the screen brightness and the screen flashing frequency, the screen flashing frequency corresponding to the first screen brightness can be determined, that is, the above-mentioned first screen flashing frequency.

[0080] Step 313: Determine a second screen flashing frequency according to the first screen flashing frequency range and the first screen flashing frequency.

[0081] In this step, when the first splash screen frequency is less than the first splash screen frequency lower limit value of the first splash screen frequency range, the first splash screen frequency lower limit value is set to the second splash screen frequency; when the first splash screen frequency is within the first splash screen frequency range, the first splash screen frequency is determined as the second splash screen frequency; when the first splash screen frequency is greater than the first splash screen frequency upper limit value of the first splash screen frequency range, the first splash screen frequency upper limit value is determined as the second splash screen frequency.

[0082] Step 314: Control the screen to maintain the second screen flashing frequency during video playback.

[0083] In this step, the screen flicker is caused by the on-off switching of the screen backlight unit, wherein the longer the backlight unit is lit and the shorter the off time, the brighter the screen and the lower the screen flicker frequency, and the shorter the backlight unit is lit and the longer the off time, the darker the screen and the higher the screen flicker frequency. Therefore, the screen can maintain the above-mentioned second screen flicker frequency by controlling the light-on time and off time of the screen backlight; playing the video according to the above-mentioned second screen flicker frequency can maximize the satisfaction of the screen brightness requirements corresponding to the user's instructions while ensuring that no obvious damage is caused to the children's eyesight, thereby avoiding the children accidentally touching the screen while watching the video and sliding upward to adjust the screen to the brightest or darkest, causing the electronic device to be in a strong light state or a weak light state for a long time, causing permanent damage to the lens.

[0084] Optionally, in another implementation, when the above-mentioned playback parameters include the first screen flash frequency range, step 315 is included:

[0085] Step 315: Use the DC regulation mode to adjust the screen brightness for video playback.

[0086] Because the direct current (DC) dimming device controls the screen brightness by changing the voltage of the optical module to change the current, there will be no screen flicker. Therefore, it can effectively reduce the fatigue and tension of the ciliary muscles of the eyes caused by high-frequency screen flicker and avoid damage to children's eyesight.

[0087] Optionally, in one implementation, when the playback parameters include a target screen brightness range, step 300 includes steps 321 to 323.

[0088] Step 321: Obtain the second screen brightness set by the user.

[0089] In this step, the second screen brightness is the screen brightness that the user wants to play the video. The user can set the second screen brightness through a user instruction, and the user instruction is an operation for the user to set the screen brightness, which can be specifically an operation such as touching, pressing, sliding, etc. on the screen brightness control.

[0090] Step 322: Determine a third screen brightness according to the second screen brightness and the target screen brightness range.

[0091] In this step, the target screen brightness range is a safe brightness range that will not cause significant damage to children's eyesight, and can be specifically set to 0.1 to 0.8 of the maximum screen brightness.

[0092] Because the second screen brightness is the screen brightness for displaying video content specified by the user through user instructions, and the target screen brightness range limits the safe brightness range that will not cause obvious vision damage, the third screen brightness can be determined to maximize the satisfaction of the screen brightness requirements corresponding to the user instructions while ensuring that no obvious damage to children's eyesight is caused through the above-mentioned second screen brightness and target screen brightness range.

[0093] Specifically, when the second screen brightness is less than the lower limit value of the target screen brightness range, the lower limit value of the brightness is set to the third screen brightness; when the second screen brightness is within the target screen brightness range, the second screen brightness is determined as the third screen brightness; when the second screen brightness is greater than the upper limit value of the target screen brightness range, the upper limit value of the brightness is determined as the third screen brightness.

[0094] Step 323: Control the screen to maintain the third screen brightness during video playback.

[0095] In this step, the video is played according to the third screen brightness mentioned above, which can ensure that the screen brightness requirements corresponding to the user instructions are met to the maximum extent under the premise of not causing obvious damage to the children's eyesight, thereby avoiding the situation where the children accidentally touch the screen while watching the video and slide upwards to adjust the screen to the brightest or darkest, causing the electronic device to be in a strong light state or a weak light state for a long time, thereby causing permanent damage to the lens.

[0096] The brightness of the second screen can be set by the parent, and the specific implementation example is as follows:

[0097] Pass the parameter brightness to the function setBrightness to set the brightness. Define that when the brightness is greater than or equal to 80, set the brightness to 80;

[0098] Call methods getWindow and getAttributes to obtain the window layout parameters of the current page lp;

[0099] Call Math.max to set the minimum value to 10, and calculate the brightness to 10 / 100=0.1 to prevent a completely black screen;

[0100] Call the method mActivity.getWindow().sertatttributies(lp) to make the settings take effect.

[0101] Optionally, in an implementation manner, when the playback parameters include a target screen brightness range and a first screen flash frequency range, the above step 300 includes steps 331 to 335:

[0102] Step 331: Obtain the fourth screen brightness set by the user.

[0103] This step may be specifically referred to as step 301 and will not be described in detail here.

[0104] Step 332: determine a second screen flashing frequency range corresponding to the target screen brightness range and a third screen flashing frequency corresponding to the fourth screen brightness.

[0105] This step may be specifically referred to as step 312 and step 322, which will not be described in detail here.

[0106] Step 333: Determine a third splash screen frequency range according to the intersection of the second splash screen frequency range and the first splash screen frequency range.

[0107] In this step, the intersection of the second flash screen frequency range and the first flash screen frequency range is taken to obtain a third flash screen frequency range that will not cause obvious damage to children's eyesight, and the screen brightness corresponding to the third flash screen frequency range will not cause obvious damage to children's eyesight.

[0108] Step 334: Determine a fourth screen splash frequency according to the third screen splash frequency range and the third screen splash frequency.

[0109] In this step, because the fourth screen brightness is the screen brightness for displaying video content specified by the user through user instructions, the above-mentioned third flash screen frequency is a flash screen comment for controlling the screen to achieve the fourth screen brightness, and the above-mentioned third flash screen frequency range limits the flash screen frequency range that will not cause obvious vision damage due to brightness and corresponding screen flicker. Therefore, through the above-mentioned third flash screen frequency and the third flash screen frequency range, it is possible to determine the fourth flash screen frequency that maximally meets the screen brightness requirements corresponding to the user instruction while ensuring that it will not cause obvious damage to children's eyesight.

[0110] Specifically, when the third splash screen frequency is less than the second splash screen frequency lower limit value in the third splash screen frequency range, the second splash screen frequency lower limit value is set to the fourth splash screen frequency; when the third splash screen frequency is within the third splash screen frequency range, the third splash screen frequency is determined as the fourth splash screen frequency; when the third splash screen frequency is greater than the second splash screen frequency upper limit value in the third splash screen frequency range, the second splash screen frequency upper limit value is determined as the fourth splash screen frequency.

[0111] Step 335: Control the screen to maintain the fourth screen flashing frequency during video playback.

[0112] In this step, playing the video according to the fourth screen flashing frequency can ensure that the brightness and the corresponding screen flashing will not cause obvious damage to the children's eyesight, and can maximize the satisfaction of the screen brightness requirements corresponding to the user's instructions. It can also avoid irreversible damage to the children's eyesight due to excessively high screen flashing frequency, which may increase fatigue and tension of the ciliary muscles of the eyes. It can also avoid the situation where children accidentally touch the screen while watching the video and slide upwards to adjust the screen to the brightest or darkest, causing the electronic device to be in a strong light state or a weak light state for a long time, thereby causing permanent damage to the lens.

[0113] Optionally, in one implementation, the video playback control method provided by the embodiment of the present invention further includes: acquiring the ambient light brightness; and stopping the video playback when the ambient light brightness exceeds the target screen brightness range.

[0114] In the above implementation, the light sensor is used to detect the ambient light brightness; the above target screen brightness range is the ambient light brightness range suitable for using the screen to watch videos;

[0115] In the above implementation, because too high or too low ambient light brightness will lead to excessive eye strain and thus damage children's eyesight, when the ambient light brightness exceeds the fourth brightness range, it means that the ambient light is too bright or too dark, so a healthy eye reminder is generated and the video playback is stopped.

[0116] In summary, the video playback control method provided in the embodiment of the present invention can obtain the actual age of the video viewer. When the actual age is in the age group of children whose eyes have not yet fully developed, the played video is at least partially filtered for blue light, and the screen brightness of the played video is limited, and the screen flashing frequency of the played video is limited. This can effectively reduce the damage to children's eyesight caused by blue light and screen flashing generated during video playback, and avoid the situation where the light is too dark or too bright, causing excessive eye use and causing permanent damage to children's eyes, thereby effectively protecting children's eyesight. To a certain extent, it solves the technical problem that the method of adjusting the screen brightness according to the surrounding environment alone cannot effectively protect children's eyesight.

[0117] Optionally, in another embodiment of the present invention, the provided video playback control method further includes: detecting the continuous duration of each video viewing by the video viewer; when the continuous duration exceeds a preset duration threshold, controlling the screen to lock. That is, controlling the continuous duration of each video viewing by the video viewer not to exceed the preset duration threshold, and forcing the video viewer to take a break when the preset duration is exceeded, thereby protecting his eyes. For example, the above preset duration threshold is set to 30 minutes.

[0118] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0119] See also Figure 6 , a video playback control device provided by an embodiment of the present invention, comprising:

[0120] An acquisition module 61 is used to acquire the actual age of the video viewer;

[0121] The determination module 62 is used to determine the playback parameters corresponding to the actual age according to the first mapping relationship between the age and the playback parameters when the actual age is in the children's age group whose eyes have not yet fully developed; wherein the playback parameters include at least one of a target blue light filtering percentage, a target screen brightness range, and a first screen flashing frequency range;

[0122] The control module 63 is used to control the video playback according to the playback parameters.

[0123] Optionally, in another embodiment, based on the above embodiment, the control module 63 includes:

[0124] a first determining unit, configured to determine, when the playback parameter includes a target blue light filtering percentage, a target color depth corresponding to the target blue light filtering percentage according to a second mapping relationship between a color depth of a yellow mask and the blue light filtering percentage;

[0125] The first control unit is used to display a yellow mask of the target color depth on the screen playing the video during the process of playing the video.

[0126] Optionally, in another embodiment, based on the above embodiment, the control module 63 includes:

[0127] A first acquisition unit, configured to acquire a first screen brightness set by a user when the playback parameter includes a first screen flash frequency range;

[0128] A second determining unit, configured to determine a first screen flashing frequency corresponding to the first screen brightness;

[0129] a third determining unit, configured to determine a second flash screen frequency according to the first flash screen frequency range and the first flash screen frequency;

[0130] The second control unit is used to control the screen to maintain the second flashing frequency during video playback.

[0131] Optionally, in another embodiment, based on the above embodiment, the control module 63 includes:

[0132] A second acquisition unit, configured to acquire a second screen brightness set by a user when the playback parameter includes a target screen brightness range;

[0133] a fourth determining unit, configured to determine a third screen brightness according to the second screen brightness and the target screen brightness range;

[0134] The third control unit is used to control the screen to maintain the third screen brightness during video playback.

[0135] Optionally, in another embodiment, based on the above embodiment, the fourth determination unit is specifically used to set the lower limit brightness to the third screen brightness when the second screen brightness is less than the lower limit brightness of the target screen brightness range; determine the second screen brightness as the third screen brightness when the second screen brightness is within the target screen brightness range; and determine the upper limit brightness as the third screen brightness when the second screen brightness is greater than the upper limit brightness of the target screen brightness range.

[0136] Optionally, in another embodiment, based on the above embodiment, the control module 63 includes:

[0137] A third acquisition unit, configured to acquire a fourth screen brightness set by a user when the playback parameters include a target screen brightness range and a first screen flash frequency range;

[0138] A fifth determining unit, configured to determine a second screen flashing frequency range corresponding to the target screen brightness range and a third screen flashing frequency corresponding to the fourth screen brightness;

[0139] a sixth determining unit, configured to determine a third splash screen frequency range according to an intersection of the second splash screen frequency range and the first splash screen frequency range;

[0140] a seventh determining unit, configured to determine a fourth splash screen frequency according to the third splash screen frequency range and the third splash screen frequency;

[0141] The fourth control unit is used to control the screen to maintain the fourth flash screen frequency during video playback.

[0142] Optionally, in another embodiment, based on the above embodiment, the control module 63 further includes:

[0143] A fourth acquisition unit, used to acquire the ambient light brightness;

[0144] The fifth control unit is used to stop playing the video when the ambient light brightness exceeds the target screen brightness range.

[0145] Optionally, an embodiment of the present invention further provides a device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the video playback control method described above are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0146] Optionally, an embodiment of the present invention further provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the video playback control method described above are implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0147] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0148] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0149] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0150] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable terminal device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0151] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they are aware of the basic creative concept. Therefore, the claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0152] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0153] The above is a detailed introduction to a method, device, equipment and storage medium for sorting media objects provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A video playback control method, characterized in that: include: Get the actual age of the video viewers; In the case where the actual age is in the age group of children whose eyes have not yet fully developed, determining the playback parameters corresponding to the actual age according to a first mapping relationship between age and playback parameters; wherein the playback parameters include at least one of a target blue light filtering percentage, a target screen brightness range, and a first screen flashing frequency range; Control video playback according to the playback parameters; In a case where the playback parameters include a target screen brightness range and a first flash screen frequency range, controlling the video playback according to the playback parameters includes: Get the fourth screen brightness set by the user; Determine a second screen flash frequency range corresponding to the target screen brightness range and a third screen flash frequency corresponding to the fourth screen brightness; Determine a third splash screen frequency range according to the intersection of the second splash screen frequency range and the first splash screen frequency range; Determining a fourth splash screen frequency according to the third splash screen frequency range and the third splash screen frequency; During video playback, the screen is controlled to maintain the fourth screen flashing frequency.

2. The method according to claim 1, characterized in that In a case where the playback parameter includes a target blue light filtering percentage, controlling the video playback according to the playback parameter includes: Determining a target color depth corresponding to the target blue light filtering percentage according to a second mapping relationship between the color depth of the yellow mask and the blue light filtering percentage; During the playing of the video, a yellow mask of the target color depth is displayed on the screen playing the video.

3. The method according to claim 1, characterized in that In a case where the playback parameter includes a first flash screen frequency range, controlling the video playback according to the playback parameter includes: Get the first screen brightness set by the user; Determine a first screen flashing frequency corresponding to the first screen brightness; Determining a second flash screen frequency according to the first flash screen frequency range and the first flash screen frequency; During video playback, the screen is controlled to maintain the second flashing frequency.

4. The method according to claim 1, characterized in that In a case where the playback parameter includes a target screen brightness range, controlling the video playback according to the playback parameter includes: Get the second screen brightness set by the user; determining a third screen brightness according to the second screen brightness and the target screen brightness range; During video playback, the screen is controlled to maintain the third screen brightness.

5. The method according to claim 4, characterized in that Determining a third screen brightness according to the second screen brightness and the target screen brightness range includes: When the second screen brightness is less than the brightness lower limit value of the target screen brightness range, setting the brightness lower limit value as the third screen brightness; When the second screen brightness is within the target screen brightness range, determining the second screen brightness as the third screen brightness; In the case where the second screen brightness is greater than the upper brightness limit value of the target screen brightness range, the upper brightness limit value is determined as the third screen brightness.

6. The method according to claim 1, characterized in that The method further comprises: Get the ambient light brightness; When the ambient light brightness exceeds the target screen brightness range, stop playing the video.

7. A video playback control device, characterized in that: include: An acquisition module is used to obtain the actual age of video viewers; a determination module, configured to determine, when the actual age is in the age group of children whose eyes have not yet fully developed, the playback parameters corresponding to the actual age according to a first mapping relationship between age and playback parameters; wherein the playback parameters include at least one of a target blue light filtering percentage, a target screen brightness range, and a first screen flashing frequency range; A control module, used to control video playback according to the playback parameters; The control module comprises: A third acquisition unit, configured to acquire a fourth screen brightness set by a user when the playback parameters include a target screen brightness range and a first screen flash frequency range; A fifth determining unit, configured to determine a second screen flashing frequency range corresponding to the target screen brightness range and a third screen flashing frequency corresponding to the fourth screen brightness; a sixth determining unit, configured to determine a third splash screen frequency range according to an intersection of the second splash screen frequency range and the first splash screen frequency range; a seventh determining unit, configured to determine a fourth splash screen frequency according to the third splash screen frequency range and the third splash screen frequency; The fourth control unit is used to control the screen to maintain the fourth flash screen frequency during video playback.

8. A device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the video playback control method as claimed in any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the steps in the video playback control method according to any one of claims 1 to 6 are implemented.