CN114745566A - Management method of teenager mode, related device and computer storage medium - Google Patents

Management method of teenager mode, related device and computer storage medium Download PDF

Info

Publication number
CN114745566A
CN114745566A CN202210393267.6A CN202210393267A CN114745566A CN 114745566 A CN114745566 A CN 114745566A CN 202210393267 A CN202210393267 A CN 202210393267A CN 114745566 A CN114745566 A CN 114745566A
Authority
CN
China
Prior art keywords
teenager
playing time
mode
popup
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210393267.6A
Other languages
Chinese (zh)
Other versions
CN114745566B (en
Inventor
王玉泉
闵博
孙成新
王金明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sohu New Power Information Technology Co ltd
Original Assignee
Beijing Sohu New Power Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sohu New Power Information Technology Co ltd filed Critical Beijing Sohu New Power Information Technology Co ltd
Priority to CN202210393267.6A priority Critical patent/CN114745566B/en
Publication of CN114745566A publication Critical patent/CN114745566A/en
Application granted granted Critical
Publication of CN114745566B publication Critical patent/CN114745566B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
    • H04N21/4627Rights management associated to the content

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Social Psychology (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Storage Device Security (AREA)

Abstract

The application provides a management method of a teenager mode, a related device and a computer storage medium, wherein the method comprises the following steps: when the client is started, acquiring a teenager configuration information interface of an application programming interface center and identification information in a local memory; acquiring a time period allowed to be played, an allowed playing time length and preset teenager columns from the teenager configuration information through a teenager configuration information interface; the teenager configuration information is configured in the remote dictionary service; if the identification information in the local memory indicates that the current mode of the teenager is in, judging whether the preset teenager columns need to be loaded according to the current time, the time period allowed to be played, the accumulated playing time of the day and the allowed playing time. The teenager mode can be effectively managed. If the background system has the teenager configuration information to be effective in time, the cache in the remote dictionary service can be cleared through the issuing function according to the appointed key, so that the teenager configuration information is effective in time.

Description

Management method of teenager mode, related device and computer storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a management method for a juvenile mode, a related apparatus, and a computer storage medium.
Background
With the release of the teenager anti-addiction system, the teenager modes are released by the large video and live broadcast platforms in succession, and the juveniles are limited in the use time period, the use duration, the access content and the like.
However, parameters such as the existing pop-up window prompting case, pop-up window frequency, column identification and the like are generally written to the client, and if the requirements are changed, the case needs to be changed or the columns need to be changed, the client needs to be upgraded to meet the requirements. The user experience is very much affected.
Disclosure of Invention
In view of the above, the present application provides a method, a related apparatus, and a computer storage medium for managing a teenager mode, which can effectively manage the teenager mode.
A first aspect of the present application provides a method for managing a teenager model, including:
when the client is started, acquiring a teenager configuration information interface of an application programming interface center and identification information in a local memory; the method comprises the steps that a time period for allowing playing, a playing time length for allowing playing and preset teenager columns are obtained from teenager configuration information through a teenager configuration information interface; the teenager configuration information is configured in a remote dictionary service, and the identification information in the local memory indicates whether the teenager configuration information is in a teenager mode or not;
if the identification information in the local memory indicates that the current mode is the teenager mode, acquiring the current time;
judging whether the current time is within the time period allowed to be played;
if the current time is judged to be in the allowed playing time period, acquiring the accumulated playing time of the present day;
judging whether the current accumulated playing time length exceeds the allowable playing time length or not;
if the accumulated playing time length does not exceed the allowed playing time length, loading a preset teenager column;
when a user selects a video in a teenager column to play, counting the playing time length in real time and accumulating the playing time length to the accumulated playing time length today to obtain the current playing time length;
continuously judging whether the current playing time length exceeds the allowable playing time length or not;
and if the current playing time length is judged to exceed the allowable playing time length, generating a popup window to prompt the user to input a password so as to continue watching the video.
Optionally, the teenager configuration information includes a preset popup frequency, and the management method for the teenager mode further includes:
if the identification information in the local memory indicates that the current mode is not in the teenager mode, reading the last popup time and the current popup frequency;
judging whether a popup is required to be generated at present to prompt a user to select whether to enter a teenager mode or not according to the previous popup time, the current popup frequency and a preset popup frequency;
if judging that a popup window does not need to be generated at present to prompt a user to select whether to enter a teenager mode, loading normal column information;
if the fact that the popup window needs to be generated currently to prompt the user to select whether to enter the teenager mode is judged, the popup window is generated to prompt the user to select whether to enter the teenager mode;
if the user selects to enter the teenager mode, a popup window is generated to prompt the user to set a password to enter the teenager mode;
and when the password is successfully set, loading the preset teenager columns.
Optionally, the method for managing a teenager mode further includes:
if the current time is judged not to be in the playing permitted time period or if the present accumulated playing time is judged to exceed the playing permitted time period, generating a popup window to prompt the user to input a password so as to continue to watch the video;
receiving and verifying a password input by a user;
if the password verification is successful, clearing the current playing time, entering a teenager mode again, and loading preset teenager columns;
if the password is not successfully verified, the playing of the video is suspended and the playing stops on the password input page.
Optionally, the method for managing a teenager mode further includes:
receiving an instruction of exiting the teenager mode;
generating a popup window to prompt a user to input a password to exit the teenager mode;
receiving and verifying a password input by a user;
if the password verification is successful, exiting the teenager mode;
if the password verification is unsuccessful, the teenager mode is continued.
Optionally, the method for managing a teenager mode further includes:
configuring teenager configuration information in a background system; wherein the teenager configuration information at least comprises: presetting a popup frequency, a popup file, preset teenager columns, a permitted playing time and a permitted playing time period.
A second aspect of the present application provides a management apparatus for a teenager mode, comprising:
the first acquisition unit is used for acquiring a teenager configuration information interface of an application programming interface center and identification information in a local memory after the client is started; the method comprises the steps that a time period for allowing playing, a playing time length for allowing playing and preset teenager columns are obtained from teenager configuration information through a teenager configuration information interface; the teenager configuration information is configured in a remote dictionary service, and the identification information in the local memory indicates whether the teenager configuration information is in a teenager mode or not;
a second obtaining unit, configured to obtain a current time if the identification information in the local memory indicates that the current mode is a juvenile mode;
a first judging unit, configured to judge whether the current time is within the allowed time period;
a third obtaining unit, configured to obtain a current accumulated playing time length if the first determining unit determines that the current time is within the allowed playing time period;
a second judging unit, configured to judge whether the present accumulated playing time length exceeds the permitted playing time length;
the first loading unit is used for loading the preset teenager columns if the second judgment unit judges that the current accumulated playing time does not exceed the allowable playing time;
the statistical unit is used for counting the playing time length in real time and accumulating the playing time length to the accumulated playing time length today to obtain the current playing time length when the user selects the video in the teenager column to play;
a third judging unit, configured to continuously judge whether the current playing time length exceeds the allowable playing time length;
and the first popup unit is used for generating a popup to prompt a user to input a password to continue watching the video if the third judging unit judges that the current playing time length exceeds the allowed playing time length.
Optionally, the teenager configuration information includes a preset popup frequency, and the management apparatus for the teenager mode further includes:
a reading unit, configured to read the last popup time and the current popup frequency if the identification information in the local memory indicates that the local memory is not currently in the adolescent mode;
the fourth judging unit is used for judging whether the popup window needs to be generated at present to prompt the user to select whether to enter the teenager mode or not according to the previous popup window time, the current popup window frequency and the preset popup window frequency;
the second loading unit is used for loading normal column information if the fourth judging unit judges that a popup window does not need to be generated at present to prompt a user to select whether to enter a teenager mode or not;
the second popup unit is used for generating a popup to prompt the user to select whether to enter the teenager mode or not if the fourth judgment unit judges that the popup is required to be generated currently to prompt the user to select whether to enter the teenager mode or not;
the third popup unit is used for generating a popup to prompt the user to set a password to enter the teenager mode if the user selects to enter the teenager mode;
and the second loading unit is used for loading the pre-set teenager columns when the password is successfully set.
Optionally, the management apparatus for a teenager mode further includes:
a fourth popup unit, configured to generate a popup to prompt the user to input a password to continue watching the video if the first determining unit determines that the current time is not within the allowed playing time period, or if the second determining unit determines that the present accumulated playing time exceeds the allowed playing time;
a first authentication unit for receiving and authenticating a password input by a user;
the third loading unit is used for emptying the current playing time length, entering a teenager mode again and loading preset teenager columns if the password verification is successful;
and the pause unit is used for pausing the playing of the video and staying at the password input page if the password verification is unsuccessful.
Optionally, the management apparatus for a teenager mode further includes:
the receiving unit is used for receiving an instruction of exiting the teenager mode;
the fifth popup window unit is used for generating a popup window to prompt a user to input a password so as to exit the teenager mode;
a second authentication unit for receiving and authenticating a password input by a user;
the processing unit is used for exiting the teenager mode if the password verification is successful;
the processing unit is further configured to continue the teenager mode if the password authentication is unsuccessful.
Optionally, the management apparatus for a teenager mode further includes:
the configuration unit is used for configuring the teenager configuration information in the background system; wherein the teenager configuration information at least comprises: presetting a popup frequency, a popup file, preset teenager columns, a permitted playing time and a permitted playing time period.
A third aspect of the present application provides an electronic device comprising:
one or more processors;
a storage device having one or more programs stored thereon;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement a management method for teenager mode as defined in any one of the first aspects.
A fourth aspect of the present application provides a computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the management method of the teenager mode as set forth in any one of the first aspects.
In view of the foregoing, the present application provides a management method for a teenager mode, a related apparatus and a computer storage medium, wherein the management method for the teenager mode comprises: when the client is started, acquiring a teenager configuration information interface of an application programming interface center and identification information in a local memory; the method comprises the steps that a time period for allowing playing, a playing time length for allowing playing and preset teenager columns are obtained from teenager configuration information through a teenager configuration information interface; the teenager configuration information is configured in a remote dictionary service, and the identification information in the local memory indicates whether the teenager configuration information is in a teenager mode or not; if the identification information in the local memory indicates that the current mode is the teenager mode, acquiring the current time; if the current time is judged to be in the allowed playing time period, acquiring the accumulated playing time of the present day; judging whether the current accumulated playing time length exceeds the allowable playing time length or not; if the current accumulated playing time length is judged not to exceed the allowable playing time length, loading preset teenager columns; when a user selects a video in a teenager column to play, counting the playing time length in real time and accumulating the playing time length to the accumulated playing time length today to obtain the current playing time length; and if the current playing time length is judged to exceed the allowable playing time length, generating a popup window to prompt the user to input a password so as to continue watching the video. The aim of effectively managing the teenager mode is fulfilled. And the teenager configuration information is configured in the remote dictionary service, if the background system has the teenager configuration information and wants to take effect in time, the cache in the remote dictionary service can be cleared through the issuing function according to the specified key, so that the teenager configuration information takes effect in time.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart illustrating a management method of a juvenile mode according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating a management method for a juvenile mode according to another embodiment of the present application;
fig. 3 is a flowchart illustrating a management method for a juvenile mode according to another embodiment of the present application;
fig. 4 is a flowchart illustrating a management method for a juvenile mode according to another embodiment of the present application;
fig. 5 is a flowchart illustrating a management method for a juvenile mode according to another embodiment of the present application;
fig. 6 is a schematic diagram of a management apparatus for a juvenile mode according to another embodiment of the present application;
fig. 7 is a schematic view of an electronic device implementing a management method of a teenager mode according to another embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
It should be noted that the terms "first", "second", and the like, referred to in this application, are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence of functions performed by these devices, modules or units, but the terms "include", or any other variation thereof are intended to cover a non-exclusive inclusion, so that a process, method, article, or apparatus that includes a series of elements includes not only those elements but also other elements that are not explicitly listed, or includes elements inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The embodiment of the application provides a management method of a teenager mode, as shown in fig. 1, specifically comprising the following steps:
s101, after the client is started, acquiring a teenager configuration information interface of an application programming interface center and identification information in a local memory.
The method comprises the steps that a time period for allowing playing, a playing time length for allowing playing and preset teenager columns are obtained from teenager configuration information through a teenager configuration information interface; teenager configuration information is configured in a remote dictionary service (Redis), and when a subsequent client reads configuration data, the subsequent client directly reads the configuration data from a Redis cache, so that the high-concurrency pressure resistance is increased, and a request is prevented from directly reaching a database; the identification information in the local memory indicates whether the current mode is in a teenager mode.
And S102, if the identification information in the local memory indicates that the current mode is the teenager mode, acquiring the current time.
Optionally, in another embodiment of the present application, the teenager configuration information includes a preset popup frequency, and an implementation manner of the management method for the teenager mode is as shown in fig. 2, further including:
s201, if the identification information in the local memory indicates that the current mode is not in the teenager mode, reading the last time popup time and the current popup frequency.
S202, judging whether the popup is required to be generated currently to prompt a user to select whether to enter a teenager mode or not according to the previous popup time, the current popup frequency and a preset popup frequency.
Specifically, if it is determined that it is not necessary to generate a popup currently to prompt the user to select whether to enter the teenager mode, step S203 is executed; if it is determined that a popup window needs to be generated currently to prompt the user to select whether to enter the teenager mode, step S204 is executed.
And S203, loading normal column information.
And S204, generating a popup window to prompt the user to select whether to enter a teenager mode.
S205, if the user selects to enter the teenager mode, a popup window is generated to prompt the user to set a password to enter the teenager mode.
And S206, loading the pre-set teenager columns when the password is successfully set.
S103, judging whether the current time is in the time period allowing playing.
Specifically, if it is determined that the current time is within the time period allowed for playing, step S104 is executed.
S104, obtaining the accumulated playing time of the present day.
S105, judging whether the accumulated playing time length today exceeds the allowable playing time length.
Specifically, if it is determined that the present cumulative playing time does not exceed the allowable playing time, step S106 is executed.
Optionally, in another embodiment of the application, an implementation manner of the management method for the teenager mode, as shown in fig. 3, further includes:
s301, if the current time is judged not to be in the time period allowed to be played, or if the accumulated playing time of today is judged to exceed the allowed playing time, a popup window is generated to prompt the user to input a password so as to continue to watch the video.
S302, receiving and verifying the password input by the user.
And S303, if the password verification is successful, clearing the current playing time, entering a teenager mode again, and loading preset teenager columns.
S304, if the password is not successfully verified, the video playing is suspended, and the video is stopped on the password input page.
And S106, loading preset teenager columns.
S107, when the user selects the video in the teenager column to play, the playing time length is counted in real time and accumulated to the accumulated playing time length today to obtain the current playing time length.
And S108, continuously judging whether the current playing time length exceeds the allowable playing time length.
Specifically, if it is determined that the current playing time exceeds the allowable playing time, step S109 is executed.
And S109, generating a popup window to prompt the user to input a password so as to continuously watch the video.
Optionally, in another embodiment of the present application, an implementation manner of the management method for a teenager mode, as shown in fig. 4, further includes:
s401, receiving an instruction of quitting the teenager mode.
S402, generating a popup window to prompt the user to input a password to exit the teenager mode.
And S403, receiving and verifying the password input by the user.
And S404, exiting the teenager mode if the password verification is successful.
And S405, if the password verification is unsuccessful, continuing the teenager mode.
Optionally, in another embodiment of the present application, an implementation manner of the management method for a teenager mode further includes:
the teen-ager configuration information is configured in a background system.
Wherein the teenager configuration information at least comprises: presetting a popup frequency, a popup file, preset teenager columns, a permitted playing time and a permitted playing time period. If the background system has the teenager configuration information to be effective in time, the cache in the remote dictionary service can be cleared through the issuing function according to the appointed key, so that the teenager configuration information is effective in time. And providing an issuing interface for the background system to call, and clearing the configuration information interface cache in real time after receiving the issuing instruction.
Fig. 5 is a schematic overall view provided in the embodiment of the present application; after the client is started, judging whether the current mode is in a teenager mode or not according to the identification information in the local memory; if the identification information in the local memory indicates that the current mode is the teenager mode, acquiring the current time and acquiring a time period allowed to be played in the teenager configuration information through a teenager configuration information interface; judging whether the current time is within a time period allowed to be played, and if the current time is within the time period allowed to be played, acquiring the accumulated playing time of the present day; judging whether the accumulated playing time length of the present day exceeds the allowable playing time length; if the current accumulated playing time length is judged not to exceed the allowable playing time length, entering a teenager mode, loading preset teenager columns, and counting the playing time length in real time and accumulating the playing time length to the current accumulated playing time length to obtain the current playing time length when a user selects videos in the teenager columns to play; and if the current playing time length is judged to exceed the allowable playing time length, generating a popup window to prompt the user to input a password so as to continue watching the video.
When entering the teenager mode, the user can select to exit the teenager mode at any time, but needs to input the password, exits the teenager mode after the password is successfully verified, enters the normal watching mode, and loads corresponding column information.
If the identification information in the local memory indicates that the current mode is not the teenager mode, reading the last popup time and the current popup frequency, judging whether a popup needs to be generated currently to prompt a user to select whether to enter the teenager mode or not according to the last popup time, the current popup frequency and the preset popup frequency, if the popup needs to be generated to prompt the user to select whether to enter the teenager mode or not, generating the popup to prompt the user to select whether to enter the teenager mode or not, if the user selects to enter the teenager mode, popping up a password setting page, entering the teenager mode after setting a password, and loading a preset teenager column.
If the current time is not within the allowed playing time period or if the accumulated playing time exceeds the allowed playing time period, a popup window is generated to prompt the user to input a password to continue watching the video, the password input by the user is received and verified, if the password verification is successful, the current playing time period is emptied, the mode of the teenagers is entered again, the preset teenager column is loaded, and if the password verification is unsuccessful, the video playing is suspended and the user stays on the input password page.
According to the scheme, the application provides a management method of a teenager mode, which comprises the following steps: when the client is started, acquiring a teenager configuration information interface of an application programming interface center and identification information in a local memory; the method comprises the steps that a time period for allowing playing, a playing time length for allowing playing and preset teenager columns are obtained from teenager configuration information through a teenager configuration information interface; the teenager configuration information is configured in the remote dictionary service, and the identification information in the local memory indicates whether the teenager is in a teenager mode or not; if the identification information in the local memory indicates that the current mode is the teenager mode, acquiring the current time; if the current time is judged to be in the time period allowed to be played, acquiring the accumulated playing time of the present day; judging whether the accumulated playing time length of the present day exceeds the allowable playing time length; if the accumulated playing time length does not exceed the allowable playing time length, loading preset teenager columns; when a user selects a video in a teenager column to play, counting the playing time length in real time and accumulating the playing time length to the accumulated playing time length today to obtain the current playing time length; and if the current playing time length is judged to exceed the allowable playing time length, generating a popup window to prompt the user to input a password so as to continue watching the video. The aim of effectively managing the teenager mode is fulfilled. And the teenager configuration information is configured in the remote dictionary service, if the background system has the teenager configuration information to be effective in time, the cache in the remote dictionary service can be cleared through the issuing function according to the specified key, so that the teenager configuration information is effective in time.
Another embodiment of the present application provides a management device for a teenager mode, as shown in fig. 6, which specifically includes:
the first obtaining unit 601 is configured to obtain, after the client is started, the identification information in the teenager configuration information interface and the local memory of the api center.
The method comprises the steps that a time period for allowing playing, a playing time length for allowing playing and preset teenager columns are obtained from teenager configuration information through a teenager configuration information interface; the teenager configuration information is configured in the remote dictionary service, and the identification information in the local memory indicates whether the teenager is in a teenager mode or not.
A second obtaining unit 602, configured to obtain the current time if the identification information in the local memory indicates that the current mode is the teenager mode.
A first judging unit 603, configured to judge whether the current time is within a time period in which playback is allowed.
A third obtaining unit 604, configured to obtain the current accumulated playing time if the first determining unit 603 determines that the current time is within the allowed playing time period.
The second determining unit 605 is configured to determine whether the current accumulated playing time length exceeds the allowable playing time length.
A first loading unit 606, configured to load a preset teenager column if the second determining unit 605 determines that the current accumulated playing time does not exceed the allowable playing time.
The counting unit 607 is configured to count the playing time length in real time and accumulate the counted playing time length to the current accumulated playing time length to obtain the current playing time length when the user selects the video in the teenager column to play.
A third judging unit 608, configured to continuously judge whether the current playing time length exceeds the allowed playing time length.
The first popup unit 609 is configured to generate a popup to prompt the user to input a password to continue to watch the video if the third determining unit 608 determines that the current playing time exceeds the allowed playing time.
For a specific working process of the unit disclosed in the above embodiment of the present application, reference may be made to the content of the corresponding method embodiment, as shown in fig. 1, which is not described herein again.
Optionally, in another embodiment of the present application, the teenager configuration information includes a preset popup frequency, and an implementation manner of the management apparatus of the teenager further includes:
and the reading unit is used for reading the previous popup time and the current popup frequency if the identification information in the local memory indicates that the current popup is not in the teenager mode.
And the fourth judging unit is used for judging whether the popup window needs to be generated currently to prompt the user to select whether to enter the teenager mode or not according to the previous popup window time, the current popup window frequency and the preset popup window frequency.
And the second loading unit is used for loading the normal column information if the fourth judging unit judges that the popup window does not need to be generated at present to prompt the user to select whether to enter the teenager mode.
And the second popup unit is used for generating popup to prompt the user to select whether to enter the teenager mode or not if the fourth judgment unit judges that the popup is required to be generated currently to prompt the user to select whether to enter the teenager mode or not.
And the third popup unit is used for generating a popup to prompt the user to set a password to enter the teenager mode if the user selects to enter the teenager mode.
And the second loading unit is used for loading the pre-set teenager columns when the password is successfully set.
For a specific working process of the unit disclosed in the above embodiment of the present application, reference may be made to the content of the corresponding method embodiment, as shown in fig. 2, which is not described herein again.
Optionally, in another embodiment of the present application, an implementation manner of the management apparatus of the teenager further includes:
a fourth popup unit, configured to generate a popup to prompt the user to input a password to continue watching the video if the first determining unit determines that the current time is not within the allowed playing time period, or if the second determining unit determines that the current accumulated playing time exceeds the allowed playing time period;
and the first authentication unit is used for receiving and authenticating the password input by the user.
And the third loading unit is used for emptying the current playing time length, entering the teenager mode again and loading the preset teenager columns if the password verification is successful.
And the pause unit is used for pausing the playing of the video and staying on the password input page if the password verification is unsuccessful.
For a specific working process of the unit disclosed in the above embodiment of the present application, reference may be made to the content of the corresponding method embodiment, as shown in fig. 3, which is not described herein again.
Optionally, in another embodiment of the present application, an implementation manner of the management apparatus of the teenager further includes:
and the receiving unit is used for receiving the instruction of exiting the teenager mode.
And the fifth popup window unit is used for generating a popup window to prompt the user to input the password so as to exit the teenager mode.
And the second verification unit is used for receiving and verifying the password input by the user.
And the processing unit is used for exiting the teenager mode if the password verification is successful.
And the processing unit is also used for continuing the teenager mode if the password verification is unsuccessful.
For a specific working process of the unit disclosed in the above embodiment of the present application, reference may be made to the content of the corresponding method embodiment, as shown in fig. 4, which is not described herein again.
Optionally, in another embodiment of the present application, an implementation manner of the management apparatus of the teenager further includes:
and the configuration unit is used for configuring the teenager configuration information in the background system.
Wherein the teenager configuration information at least comprises: the method comprises the steps of presetting a popup frequency, a popup file, preset teenager columns, a permitted playing time and a permitted playing time period.
For specific working processes of the units disclosed in the above embodiments of the present application, reference may be made to the contents of the corresponding method embodiments, which are not described herein again.
As can be seen from the above, the present application provides a management device for a teenager mode: when the client is started, the first obtaining unit 601 obtains the teenager configuration information interface of the application programming interface center and the identification information in the local memory; the method comprises the steps that a time period for allowing playing, a playing time length for allowing playing and preset teenager columns are obtained from teenager configuration information through a teenager configuration information interface; the teenager configuration information is configured in the remote dictionary service, and the identification information in the local memory indicates whether the teenager is in a teenager mode or not; if the identification information in the local memory indicates that the current mode is the teenager mode, the second obtaining unit 602 obtains the current time; if the first determining unit 603 determines that the current time is within the allowed playing time period, the third obtaining unit 604 obtains the current accumulated playing time; the second judging unit 605 judges whether the present accumulated playing time length exceeds the allowable playing time length; if the second determining unit 605 determines that the present accumulated playing time does not exceed the allowable playing time, the first loading unit 606 loads the preset teenager column; when the user selects a video in the teenager column to play, the counting unit 607 counts the playing time in real time and accumulates the playing time to the accumulated playing time today to obtain the current playing time; if the third determining unit 608 determines that the current playing time exceeds the allowable playing time, the first popup unit 609 generates a popup to prompt the user to input a password to continue watching the video. The aim of effectively managing the teenager mode is fulfilled. And the teenager configuration information is configured in the remote dictionary service, if the background system has the teenager configuration information and wants to take effect in time, the cache in the remote dictionary service can be cleared through the issuing function according to the specified key, so that the teenager configuration information takes effect in time.
Another embodiment of the present application provides an electronic device, as shown in fig. 7, including:
one or more processors 701.
A storage 702 having one or more programs stored thereon.
The one or more programs, when executed by the one or more processors 701, cause the one or more processors 701 to implement a method for teenager mode as any of the embodiments described above.
Another embodiment of the present application provides a computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the adolescent model method as described in any one of the above embodiments.
In the above embodiments disclosed in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus and method embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present disclosure may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part. The functions may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a live broadcast device, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Those skilled in the art can make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for managing a juvenile model, comprising:
when the client is started, acquiring a teenager configuration information interface of an application programming interface center and identification information in a local memory; the method comprises the steps that a time period for allowing playing, a playing time length for allowing playing and preset teenager columns are obtained from teenager configuration information through a teenager configuration information interface; the teenager configuration information is configured in a remote dictionary service, and the identification information in the local memory indicates whether the teenager configuration information is in a teenager mode or not;
if the identification information in the local memory indicates that the current mode is the teenager mode, acquiring the current time;
judging whether the current time is within the time period allowed to be played;
if the current time is judged to be in the allowed playing time period, acquiring the accumulated playing time of the present day;
judging whether the accumulated playing time length today exceeds the allowable playing time length or not;
if the current accumulated playing time length is judged not to exceed the allowable playing time length, loading preset teenager columns;
when a user selects a video in a teenager column to play, counting playing time length in real time and accumulating the playing time length to the accumulated playing time length today to obtain the current playing time length;
continuously judging whether the current playing time length exceeds the allowable playing time length or not;
and if the current playing time length is judged to exceed the allowable playing time length, generating a popup window to prompt the user to input a password so as to continue watching the video.
2. The method for managing of claim 1, wherein the teenager configuration information comprises a preset popup frequency, and the method for managing the teenager mode further comprises:
if the identification information in the local memory indicates that the current mode is not in the teenager mode, reading the last popup time and the current popup frequency;
judging whether a popup is required to be generated at present to prompt a user to select whether to enter a teenager mode or not according to the previous popup time, the current popup frequency and a preset popup frequency;
if judging that a popup window does not need to be generated at present to prompt a user to select whether to enter a teenager mode, loading normal column information;
if the fact that the popup window needs to be generated currently to prompt the user to select whether to enter the teenager mode is judged, the popup window is generated to prompt the user to select whether to enter the teenager mode;
if the user selects to enter the teenager mode, a popup window is generated to prompt the user to set a password to enter the teenager mode;
and when the password is successfully set, loading the pre-set teenager column.
3. The method for managing according to claim 1, further comprising:
if the current time is judged not to be within the allowed playing time period or if the accumulated playing time length today is judged to exceed the allowed playing time length, a popup window is generated to prompt the user to input a password to continue watching the video;
receiving and verifying a password input by a user;
if the password verification is successful, clearing the current playing time, entering a teenager mode again, and loading preset teenager columns;
if the password is not successfully verified, the playing of the video is suspended and the playing stops on the password input page.
4. The method for managing according to claim 1, further comprising:
receiving an instruction of exiting the teenager mode;
generating a popup window to prompt a user to input a password to exit the teenager mode;
receiving and verifying a password input by a user;
if the password verification is successful, exiting the teenager mode;
if the password verification is unsuccessful, the teenager mode is continued.
5. The method for managing according to claim 1, further comprising:
configuring teenager configuration information in a background system; wherein the teenager configuration information at least comprises: the method comprises the steps of presetting a popup frequency, a popup file, preset teenager columns, a permitted playing time and a permitted playing time period.
6. A juvenile model management apparatus, comprising:
the first acquisition unit is used for acquiring a teenager configuration information interface of an application programming interface center and identification information in a local memory after the client is started; the method comprises the steps that a time period for allowing playing, a playing time length for allowing playing and preset teenager columns are obtained from teenager configuration information through a teenager configuration information interface; the teenager configuration information is configured in a remote dictionary service, and the identification information in the local memory indicates whether the teenager configuration information is in a teenager mode or not;
a second obtaining unit, configured to obtain a current time if the identification information in the local memory indicates that the current mode is a juvenile mode;
a first judging unit, configured to judge whether the current time is within the allowed time period;
a third obtaining unit, configured to obtain a current accumulated playing time length if the first determining unit determines that the current time is within the allowed playing time period;
a second judging unit, configured to judge whether the present accumulated playing time length exceeds the allowable playing time length;
a first loading unit, configured to load a preset teenager column if the second determining unit determines that the current accumulated playing time does not exceed the allowable playing time;
the statistical unit is used for counting the playing time length in real time and accumulating the playing time length to the current accumulated playing time length to obtain the current playing time length when the user selects the video in the teenager column to play;
a third judging unit, configured to continuously judge whether the current playing time length exceeds the allowable playing time length;
and the first popup unit is used for generating a popup to prompt a user to input a password to continue watching the video if the third judging unit judges that the current playing time length exceeds the allowed playing time length.
7. The apparatus for managing as claimed in claim 6, wherein the teenager configuration information comprises a preset popup frequency, the apparatus for managing the teenager mode further comprising:
a reading unit, configured to read the last popup time and the current popup frequency if the identification information in the local memory indicates that the local memory is not currently in the adolescent mode;
the fourth judging unit is used for judging whether the popup window needs to be generated at present to prompt the user to select whether to enter the teenager mode or not according to the previous popup window time, the current popup window frequency and the preset popup window frequency;
the second loading unit is used for loading normal column information if the fourth judging unit judges that a popup window does not need to be generated currently to prompt a user to select whether to enter a teenager mode or not;
the second popup unit is used for generating a popup to prompt the user to select whether to enter the teenager mode or not if the fourth judgment unit judges that the popup is required to be generated currently to prompt the user to select whether to enter the teenager mode or not;
the third popup unit is used for generating a popup to prompt the user to set a password to enter the teenager mode if the user selects to enter the teenager mode;
and the second loading unit is used for loading the pre-set teenager columns when the password is successfully set.
8. The management device according to claim 6, further comprising:
a fourth popup unit, configured to generate a popup to prompt the user to input a password to continue watching the video if the first determining unit determines that the current time is not within the allowed playing time period, or if the second determining unit determines that the present accumulated playing time exceeds the allowed playing time period;
a first authentication unit for receiving and authenticating a password input by a user;
the third loading unit is used for emptying the current playing time length, entering a teenager mode again and loading preset teenager columns if the password verification is successful;
and the pause unit is used for pausing the playing of the video and staying at the password input page if the password verification is unsuccessful.
9. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the management method for teenager mode as recited in any one of claims 1 to 5.
10. A computer storage medium, having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the adolescent mode management method as claimed in any one of claims 1 to 5.
CN202210393267.6A 2022-04-15 2022-04-15 Teenager mode management method, related device and computer storage medium Active CN114745566B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210393267.6A CN114745566B (en) 2022-04-15 2022-04-15 Teenager mode management method, related device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210393267.6A CN114745566B (en) 2022-04-15 2022-04-15 Teenager mode management method, related device and computer storage medium

Publications (2)

Publication Number Publication Date
CN114745566A true CN114745566A (en) 2022-07-12
CN114745566B CN114745566B (en) 2023-10-20

Family

ID=82282379

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210393267.6A Active CN114745566B (en) 2022-04-15 2022-04-15 Teenager mode management method, related device and computer storage medium

Country Status (1)

Country Link
CN (1) CN114745566B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442444A (en) * 2007-11-20 2009-05-27 彭学勤 Remote monitoring method for callan on Internet
CN105828187A (en) * 2016-03-10 2016-08-03 乐视致新电子科技(天津)有限公司 Intelligent playing limiting method and device, intelligent terminal and playing system
US20170149795A1 (en) * 2015-06-25 2017-05-25 Websafety, Inc. Management and control of mobile computing device using local and remote software agents
CN107659714A (en) * 2017-09-18 2018-02-02 上海斐讯数据通信技术有限公司 A kind of surf time based reminding method and system
CN109657428A (en) * 2017-10-12 2019-04-19 深圳市Tcl高新技术开发有限公司 A kind of control method of mobile terminal, mobile terminal and storage medium
CN109688470A (en) * 2019-01-10 2019-04-26 重庆科技学院 A kind of intelligent video broadcasting control system
CN112511870A (en) * 2020-11-30 2021-03-16 四川长虹电器股份有限公司 Method for remotely controlling playing content of television terminal
CN112770186A (en) * 2020-12-17 2021-05-07 深圳Tcl新技术有限公司 Method for determining television viewing mode, television and storage medium
CN113014939A (en) * 2021-02-24 2021-06-22 海信视像科技股份有限公司 Display device and playing method
US20210258644A1 (en) * 2020-03-31 2021-08-19 Baidu Online Network Technology (Beijing) Co., Ltd. Video playing method, apparatus, electronic device and storage medium
CN113411638A (en) * 2020-12-24 2021-09-17 腾讯科技(深圳)有限公司 Video file playing processing method and device, electronic equipment and storage medium
CN113407363A (en) * 2021-06-23 2021-09-17 京东科技控股股份有限公司 Sliding window counting method and device based on remote dictionary service
CN113794934A (en) * 2021-09-15 2021-12-14 深圳创维-Rgb电子有限公司 Anti-addiction guiding method, television and computer-readable storage medium
CN114138443A (en) * 2021-12-02 2022-03-04 北京安云世纪科技有限公司 Remote control method, device, equipment and storage medium
CN114328678A (en) * 2021-12-29 2022-04-12 挂号网(杭州)科技有限公司 Method and device for displaying option information in service, electronic equipment and storage medium

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442444A (en) * 2007-11-20 2009-05-27 彭学勤 Remote monitoring method for callan on Internet
US20170149795A1 (en) * 2015-06-25 2017-05-25 Websafety, Inc. Management and control of mobile computing device using local and remote software agents
CN105828187A (en) * 2016-03-10 2016-08-03 乐视致新电子科技(天津)有限公司 Intelligent playing limiting method and device, intelligent terminal and playing system
CN107659714A (en) * 2017-09-18 2018-02-02 上海斐讯数据通信技术有限公司 A kind of surf time based reminding method and system
CN109657428A (en) * 2017-10-12 2019-04-19 深圳市Tcl高新技术开发有限公司 A kind of control method of mobile terminal, mobile terminal and storage medium
CN109688470A (en) * 2019-01-10 2019-04-26 重庆科技学院 A kind of intelligent video broadcasting control system
US20210258644A1 (en) * 2020-03-31 2021-08-19 Baidu Online Network Technology (Beijing) Co., Ltd. Video playing method, apparatus, electronic device and storage medium
CN112511870A (en) * 2020-11-30 2021-03-16 四川长虹电器股份有限公司 Method for remotely controlling playing content of television terminal
CN112770186A (en) * 2020-12-17 2021-05-07 深圳Tcl新技术有限公司 Method for determining television viewing mode, television and storage medium
CN113411638A (en) * 2020-12-24 2021-09-17 腾讯科技(深圳)有限公司 Video file playing processing method and device, electronic equipment and storage medium
CN113014939A (en) * 2021-02-24 2021-06-22 海信视像科技股份有限公司 Display device and playing method
CN113407363A (en) * 2021-06-23 2021-09-17 京东科技控股股份有限公司 Sliding window counting method and device based on remote dictionary service
CN113794934A (en) * 2021-09-15 2021-12-14 深圳创维-Rgb电子有限公司 Anti-addiction guiding method, television and computer-readable storage medium
CN114138443A (en) * 2021-12-02 2022-03-04 北京安云世纪科技有限公司 Remote control method, device, equipment and storage medium
CN114328678A (en) * 2021-12-29 2022-04-12 挂号网(杭州)科技有限公司 Method and device for displaying option information in service, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114745566B (en) 2023-10-20

Similar Documents

Publication Publication Date Title
CN110213356B (en) Login processing method based on data processing and related equipment
CN111030936B (en) Current-limiting control method and device for network access and computer-readable storage medium
US8819263B2 (en) Method and user interface for downloading audio and video content filters to a media player
KR100765254B1 (en) Data transmission management system, a mobile device and a server used therein
CN107229851A (en) Shared device application method, shared device and computer-readable recording medium
CN110457229B (en) Game performance monitoring method and device, electronic equipment and storage medium
CN107241263A (en) A kind of message delet method and device, computer installation and storage medium
CN107451888B (en) Rental permission control method of electronic equipment, server and readable storage medium
CN103442267A (en) User behavior information collection method and television
CN110826984A (en) Conference room management method and device and computer readable storage medium
CN107451464B (en) Prompt message output method and device
CN114647550A (en) Process control method, device, storage medium and electronic equipment
CN114745566A (en) Management method of teenager mode, related device and computer storage medium
CN107959890B (en) Detection method, device, terminal and storage medium for reserved recording
CN117411689A (en) Account security management method, system and readable storage medium
CN111859320A (en) Cross-system login-free method, device, equipment and readable storage medium
CN107786561B (en) Application use duration management and control method and client
CN103544061A (en) Smart television based safe exit method and device for external storage device
CN111145391A (en) Door lock control method and device
CN106231594B (en) Mobile terminal information protection method and system
CN113076529A (en) Access control method, device, computer readable storage medium and equipment
CN109462501B (en) Authentication process control method and system
CN112446191A (en) Text processing method, device, equipment and storage medium
CN109561274B (en) Conference activation method and system, conference terminal and computer readable storage medium
CN114285799B (en) Method, device, terminal and storage medium for processing service

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant