CN106775748B - Screen locking switching method and device and electronic equipment - Google Patents

Screen locking switching method and device and electronic equipment Download PDF

Info

Publication number
CN106775748B
CN106775748B CN201611241252.9A CN201611241252A CN106775748B CN 106775748 B CN106775748 B CN 106775748B CN 201611241252 A CN201611241252 A CN 201611241252A CN 106775748 B CN106775748 B CN 106775748B
Authority
CN
China
Prior art keywords
video
cache
stored
videos
screen locking
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.)
Active
Application number
CN201611241252.9A
Other languages
Chinese (zh)
Other versions
CN106775748A (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 Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201611241252.9A priority Critical patent/CN106775748B/en
Publication of CN106775748A publication Critical patent/CN106775748A/en
Application granted granted Critical
Publication of CN106775748B publication Critical patent/CN106775748B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The embodiment of the invention discloses a screen locking switching method and device and electronic equipment, relates to a screen locking switching technology, and can improve the screen locking experience effect. The screen locking switching method comprises the following steps: when a preset cache triggering condition is met, judging whether the stored video number meets a preset cache number threshold value; if the number of the stored videos does not meet the threshold value of the cache number, downloading one or more videos from a preset video server and storing the videos so that the number of the stored videos reaches the threshold value of the cache number; monitoring screen locking switching operation, reading a stored video which is not played, and playing the read video on a screen locking; the stored played video is cleared. The method and the device are suitable for switching the video screen locking.

Description

Screen locking switching method and device and electronic equipment
Technical Field
The present invention relates to a screen locking switching technology, and in particular, to a screen locking switching method and apparatus, and an electronic device.
Background
With the development of computer communication and internet technology, more and more people have electronic devices, such as tablet computers, personal digital assistants, palm top computers, smart mobile phones, etc., which can be networked with the wired internet and/or the wireless internet. Especially for very popular mobile electronic devices, in order to prevent the leakage of user privacy information caused by the loss of the mobile electronic device, most users generally adopt a screen locking technology to achieve the purpose of protecting the privacy information, namely, the screen is locked under the condition of not using the electronic device, and then unlocking can be performed by inputting unlocking information if the mobile electronic device is needed to be used subsequently, the screen locking information can be dynamically set in a screen locking wallpaper mode, a password lock mode or a mode of combining the screen locking wallpaper mode and the password lock mode, meanwhile, the electronic device can be prevented from being operated by mistake through the screen locking technology, and the electric quantity is saved under the condition of not closing an application program of an operating system.
At present, when an electronic device is in a screen locking state, displayed information is usually static information set by a user or an operating system, such as wallpaper or clock information, in order to improve user service experience when a screen of the electronic device is in the screen locking state, an improved method is to adopt a screen locking switching mode, that is, when screen locking switching is performed, for example, when screen locking switching operation actively initiated by the user or preset screen locking switching time is up, different screen locking wallpapers are set, so that information can be dynamically displayed during screen locking, and user experience is improved. However, according to the screen locking switching method, screen locking wallpaper needs to be downloaded and stored in advance by a screen locking application program, and the screen locking wallpaper is selected from the stored screen locking wallpaper to execute screen locking switching; or when the screen locking wallpaper needs to be switched, requesting the screen locking wallpaper through a server (network) online, and switching the current screen locking wallpaper to the downloaded screen locking wallpaper after downloading the screen locking wallpaper by using the network. The former may not meet the latest screen locking wallpaper requirement of a user due to long storage time of the screen locking wallpaper, the service experience of the user is low, the screen locking experience effect is poor, the latter needs to rely on real-time network conditions, screen locking switching can be executed after the screen locking wallpaper is downloaded from a network, the waiting time is long, and the service experience of the user is also reduced; each screen locking wallpaper is static information, so that the performance is not strong; meanwhile, the screen locking wallpaper has small capacity, so that the utilization rate of screen locking resources is low when the screen of the electronic equipment is locked.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for switching a lock screen, and an electronic device, which can improve a screen locking experience effect, so as to solve the problem that a screen locking wallpaper storage time is long or a screen locking wallpaper is downloaded online in an existing screen locking switching method, so that the screen locking experience effect is poor.
In a first aspect, an embodiment of the present invention provides a screen lock switching method, including:
when a preset cache triggering condition is met, judging whether the stored video number meets a preset cache number threshold value;
if the number of the stored videos does not meet the threshold value of the cache number, downloading one or more videos from a preset video server and storing the videos so that the number of the stored videos reaches the threshold value of the cache number;
monitoring screen locking switching operation, reading a stored video which is not played, and playing the read video on a screen locking;
the stored played video is cleared.
With reference to the first aspect, in a first implementation manner of the first aspect, the cache trigger condition includes a cache trigger timing and a cache condition.
With reference to the first implementation manner of the first aspect, in a second implementation manner of the first aspect, the cache triggering time includes: monitoring that the charging state of the electronic equipment is changed, or monitoring that the electronic equipment is switched to a wireless fidelity network, or monitoring that the screen locking is switched.
With reference to the first implementation manner of the first aspect, in a third implementation manner of the first aspect, the caching condition includes: connecting to a wireless fidelity network, and the power of the electronic device reaches a first power threshold when in a charging state; or the caching condition comprises: the wireless fidelity network is connected, and the electronic device reaches a second charge threshold when in the non-charging state.
With reference to the first aspect, in a fourth implementation manner of the first aspect, the method further includes:
and if the number of the stored videos meets the cache number threshold value, executing the step of monitoring the screen locking switching operation and reading the stored unplayed videos.
With reference to the first aspect, in a fifth implementation manner of the first aspect, the method further includes:
setting a switching period for the stored video, and clearing the stored video when the stored video reaches the switching period.
With reference to the first aspect, in a sixth implementation manner of the first aspect, after the monitoring of the screen lock switching operation, before reading the stored unplayed video, the method further includes:
and judging whether an unplayed video is stored or not, if so, executing the step of reading the stored unplayed video, and if not, downloading a video from a preset video server and storing the video, and then executing the step of reading the stored unplayed video.
In a second aspect, an embodiment of the present invention provides a screen locking switching device, including: a judging module, a downloading module, a switching module and a clearing module, wherein,
the judging module is used for judging whether the stored video number meets a preset cache number threshold value or not when a preset cache triggering condition is met;
the downloading module is used for downloading one or more videos from a preset video server and storing the videos if the number of the stored videos does not meet the threshold of the cache number, so that the number of the stored videos reaches the threshold of the cache number;
the switching module is used for monitoring the screen locking switching operation, reading the stored unplayed video and playing the read video on the screen locking;
and the clearing module is used for clearing the stored played video.
With reference to the second aspect, in a first implementation manner of the second aspect, the determining module is specifically configured to determine whether the number of stored videos meets a preset threshold of the number of caches when a preset cache trigger time and a preset cache condition are met.
With reference to the first implementation manner of the second aspect, in a second implementation manner of the second aspect, the cache triggering time includes: monitoring that the charging state of the electronic equipment is changed, or monitoring that the electronic equipment is switched to a wireless fidelity network, or monitoring that the screen locking is switched.
With reference to the first implementation manner of the second aspect, in a third implementation manner of the second aspect, the caching condition includes: connecting to a wireless fidelity network, and the power of the electronic device reaches a first power threshold when in a charging state; or the caching condition comprises: the wireless fidelity network is connected, and the electronic device reaches a second charge threshold when in the non-charging state.
With reference to the second aspect, in a fourth implementation manner of the second aspect, the downloading module is further configured to notify the switching module if the number of stored videos meets the buffer number threshold.
With reference to the second aspect, in a fifth implementation manner of the second aspect, the apparatus further includes:
the setting module is used for setting a switching period for the stored video;
the clearing module is further configured to clear the stored video when the stored video reaches the switching period.
With reference to the second aspect, in a sixth implementation manner of the second aspect, the switching module is further configured to, after the screen locking switching operation is monitored and before the stored unplayed video is read, determine whether the unplayed video is stored, if so, execute the step of reading the stored unplayed video, and if not, execute the step of reading the stored unplayed video after a video is downloaded from a preset video server and stored.
In a third aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing the following operations:
when a preset cache triggering condition is met, judging whether the stored video number meets a preset cache number threshold value;
if the number of the stored videos does not meet the threshold value of the cache number, downloading one or more videos from a preset video server and storing the videos so that the number of the stored videos reaches the threshold value of the cache number;
monitoring screen locking switching operation, reading a stored video which is not played, and playing the read video on a screen locking;
the stored played video is cleared.
In a fourth aspect, an embodiment of the present invention further provides a storage medium, where the storage medium is used to store an application program, and the application program is used to execute the screen locking switching method provided in the embodiment of the present invention.
In a fifth aspect, an embodiment of the present invention further provides an application program, configured to execute the screen locking switching method provided in the embodiment of the present invention.
According to the screen locking switching method, the screen locking switching device and the electronic equipment, whether the stored video number meets the preset cache number threshold value is judged when the preset cache triggering condition is met; if the number of the stored videos does not meet the threshold value of the cache number, downloading one or more videos from a preset video server and storing the videos so that the number of the stored videos reaches the threshold value of the cache number; monitoring screen locking switching operation, reading a stored video which is not played, and playing the read video on a screen locking; the stored played video is cleared, the screen locking experience effect can be improved, and the problem that the screen locking experience effect is poor due to the fact that the screen locking wallpaper is stored for a long time or the screen locking wallpaper is downloaded online in the existing screen locking switching method is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a lock screen switching method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a second lock screen switching device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an embodiment of an electronic device according to the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Fig. 1 is a schematic flow chart of a lock screen switching method according to an embodiment of the present invention, and as shown in fig. 1, the method according to the embodiment may include:
step 101, when a preset cache triggering condition is met, judging whether the number of stored videos meets a preset cache number threshold value;
in this embodiment, as an optional embodiment, a mapping relationship may be formed between a preset cache triggering condition and a preset cache number threshold, and different cache triggering conditions may map the same or different cache number thresholds.
In this embodiment, as an optional embodiment, the cache triggering condition may include a cache triggering time and a cache condition; preferably, it may be determined whether the cache triggering time is satisfied first, and if the cache triggering time is satisfied, it is determined whether the cache condition is satisfied, and if both the cache triggering time and the cache condition are satisfied, it is determined that the cache triggering condition is satisfied.
In this embodiment, as an optional embodiment, the cache triggering condition includes: monitoring that the charging state of the electronic device changes, or monitoring that the electronic device is switched to a Wireless Fidelity (wifi) network, or monitoring that a screen locking switching operation is performed.
In this embodiment, as an optional embodiment, the change of the charging state of the electronic device includes two situations, that the electronic device is connected to the power source and the electronic device is disconnected from the power source.
In this embodiment, as an optional embodiment, the caching condition includes: connecting to a wireless fidelity network, and the power of the electronic device reaches a first power threshold when in a charging state; or the caching conditions include: the wireless fidelity network is connected, and the electronic device reaches a second charge threshold when in the non-charging state.
For example, when the preset buffer triggering condition is satisfied, determining whether the number of stored videos satisfies the preset buffer number threshold includes:
and when the condition that the electronic equipment is connected to a power supply and a wireless fidelity network is monitored, and the electric quantity of the electronic equipment reaches a first electric quantity threshold value in a charging state, determining that the preset cache triggering condition is met, and judging whether the stored video number meets the preset first cache number threshold value.
In this embodiment, after the electronic device is connected to the power supply, downloading of the video is facilitated, and it may be considered that a preset cache trigger condition is satisfied.
For another example, when the preset buffer triggering condition is met, determining whether the number of stored videos meets a preset buffer number threshold includes:
and when the fact that the electronic equipment is disconnected with the power supply and connected to the wireless fidelity network and the electric quantity of the electronic equipment reaches a second electric quantity threshold value in a non-charging state is monitored, determining that the preset cache triggering condition is met, and judging whether the stored video number meets the preset second cache number threshold value or not.
For another example, when the preset buffer triggering condition is met, determining whether the number of stored videos meets a preset buffer number threshold includes:
and when the electronic equipment is monitored to be switched to the wireless fidelity network, and the electric quantity of the electronic equipment reaches a first electric quantity threshold value in a charging state (or the electric quantity of the electronic equipment reaches a second electric quantity threshold value in a non-charging state), determining that the preset cache triggering condition is met, and judging whether the stored video number meets a preset third cache number threshold value.
In this embodiment, after the electronic device is connected to the wifi network, since the wifi network is a free network, the video is downloaded at this time, which is beneficial to saving the user traffic and reducing the traffic overhead of the user.
For another example, when the preset buffer triggering condition is met, determining whether the number of stored videos meets a preset buffer number threshold includes:
and monitoring screen locking switching operation, connecting to a wireless fidelity network, and determining whether the stored video number meets a preset fourth cache number threshold value if the electric quantity of the electronic equipment in a charging state reaches a first electric quantity threshold value (or the electric quantity of the electronic equipment in a non-charging state reaches a second electric quantity threshold value).
In this embodiment, when the user clicks a "change one" control button in the screen locking interface, it indicates that the user wishes to browse the next video, and the screen locking switching operation is triggered.
The first cache number threshold, the second cache number threshold, the third cache number threshold and the fourth cache number threshold may be set according to actual needs. As an optional embodiment, in order to reduce the video number that needs to be downloaded subsequently during the screen lock switching operation, the fourth threshold value of the number of buffers may be set to be minimum, the second threshold value of the number of buffers is set to be small, and the first threshold value of the number of buffers is set to be maximum. Of course, the first buffer count threshold, the second buffer count threshold, the third buffer count threshold, and the fourth buffer count threshold may also be set to be equal, which is not limited in this embodiment.
In this embodiment, the first power threshold is smaller than the second power threshold, and as an optional embodiment, the first power threshold is set to be 5% of the total power of the electronic device, and the second power threshold is set to be 20% of the total power of the electronic device.
In this embodiment, as an optional embodiment, related technicians may also set each cache triggering condition and the corresponding cache number threshold on the network operation server, and then, the set each cache triggering condition and the corresponding cache number threshold are issued to each electronic device for storage, and each cache triggering condition and the corresponding cache number threshold stored in the electronic device may be updated regularly or irregularly.
102, if the number of the stored videos does not meet the threshold value of the cache number, downloading one or more videos from a preset video server and storing the videos so that the number of the stored videos reaches the threshold value of the cache number;
in this embodiment, address information of a video server for acquiring a video, such as uniform resource locator information, hypertext transfer protocol information, and IP address information, is stored in advance in the electronic device. The address information of the video server can be set by a user, and can also be issued to each electronic device by the network operation server.
In this embodiment, a buffer pool is provided for storing videos used for screen locking switching, where as an optional embodiment, the videos used for screen locking switching are short videos.
In this embodiment, taking the threshold of the number of cached videos as 10 as an example, querying whether 10 videos are cached in the cache pool, if not, downloading the latest video from the video server, caching the latest video into the cache pool, and complementing the number of the videos cached in the cache pool to 10. As an alternative embodiment, when downloading the video, the video is downloaded in the order from the new time to the old time according to the update time of the video, and the video with the latest update time is downloaded first.
In this embodiment, as an optional embodiment, the method may further include:
if the number of stored videos meets the threshold of the number of caches, execute step 103.
In this embodiment, if 10 videos are cached in the cache pool, it indicates that it is no longer necessary to download a new video from the video server for caching.
In this embodiment, as an optional embodiment, the method may further include:
setting a switching period for the stored video, and clearing the stored video when the stored video reaches the switching period.
In this embodiment, as an optional embodiment, when the video is downloaded, timing may be started, and when the timing reaches the set switching period, the video reaching the switching period may be automatically cleared.
For example, the switching period may be set to 1 hour.
103, monitoring screen locking switching operation, reading a stored video which is not played, and playing the read video on a screen locking;
in this embodiment, the user may initiate the screen locking switching operation actively, or may initiate the screen locking switching operation by automatic triggering, which is not limited in this embodiment. For example, when a user actively clicks a 'change' control button on a screen locking interface, if an unplayed video is cached in a cache pool, the video is played on the screen locking interface, if no unplayed video exists in the cache pool, a video is downloaded first, and then the video is downloaded according to a cache triggering condition until 10 videos are cached in the cache pool.
In this embodiment, as an optional embodiment, after the monitoring of the screen locking switching operation and before reading the stored unplayed video, the method further includes:
and judging whether an unplayed video is stored or not, if so, executing the step of reading the stored unplayed video, and if not, downloading a video from a preset video server and storing the video, and then executing the step of reading the stored unplayed video.
In this embodiment, if the cache triggering condition also includes a screen lock switching operation, the step of reading the stored unplayed video may be performed first when the video is stored in the cache pool, and then the step of downloading and storing one or more videos from the preset video server may be performed according to the cache triggering condition when the number of the stored videos does not satisfy the preset threshold of the cache number.
And 104, clearing the stored played video.
In this embodiment, after the read video is played on the lock screen, the video becomes a played video, and the video (the played video) is deleted from the cache pool.
According to the screen locking switching method, when a preset cache triggering condition is met, whether the number of stored videos meets a preset cache number threshold value is judged; if the number of the stored videos does not meet the threshold value of the cache number, downloading one or more videos from a preset video server and storing the videos so that the number of the stored videos reaches the threshold value of the cache number; monitoring screen locking switching operation, reading a stored video which is not played, and playing the read video on a screen locking; the stored played video is cleared. Therefore, by defining the cache triggering condition, setting the time for triggering downloading and caching of the video to finely design the cache logic of the screen locking video, and defining a complete video expiration strategy to achieve the effect of optimized use, the video is innovatively used as the main element of the screen locking interface, the vitality of the screen locking interface is improved, and the elements of the screen locking are enriched. Due to the fact that the video performance capability is strong, a user can rapidly display different videos when the screen locking switching is carried out each time, the user can browse the latest video without waiting, and the smoothness of the flow can be sensed more strongly, so that the business experience of the user is effectively enhanced, the screen locking experience effect is improved, and the continuous attraction is provided for the user; meanwhile, the downloading of the video can utilize the screen locking resource when the electronic equipment is in the screen locking state, so that the utilization rate of the screen locking resource is higher.
Example two
Fig. 2 is a schematic structural diagram of a second lock screen switching device according to an embodiment of the present invention, and as shown in fig. 2, the device according to this embodiment may include: a judging module 21, a downloading module 22, a switching module 23 and a clearing module 24, wherein,
the judging module 21 is configured to judge whether the stored video number meets a preset buffer number threshold when a preset buffer triggering condition is met;
in this embodiment, as an optional embodiment, a mapping relationship may be formed between a preset cache triggering condition and a preset cache number threshold, and different cache triggering conditions may map the same or different cache number thresholds.
In this embodiment, as an optional embodiment, the determining module 21 is specifically configured to determine whether the number of stored videos meets a preset threshold of the number of caches when a preset cache triggering time and a preset cache condition are met.
Preferably, the determining module 21 may first determine whether the cache triggering time is met, determine whether the cache condition is met if the cache triggering time is met, determine that the cache triggering condition is met if both the cache triggering time and the cache condition are met, and then determine whether the number of stored videos meets a preset threshold of the number of caches.
In this embodiment, as an optional embodiment, the cache triggering time includes: monitoring that the charging state of the electronic equipment is changed, or monitoring that the electronic equipment is switched to a wireless fidelity network, or monitoring that the screen locking is switched.
In this embodiment, as an optional embodiment, the caching condition includes: connecting to a wireless fidelity network, and the power of the electronic device reaches a first power threshold when in a charging state; or the caching condition comprises: the wireless fidelity network is connected, and the electronic device reaches a second charge threshold when in the non-charging state.
For example, when the preset buffer triggering condition is satisfied, the determining module 21 determines whether the number of stored videos satisfies the preset buffer number threshold, including:
and when the condition that the electronic equipment is connected to a power supply and a wireless fidelity network is monitored, and the electric quantity of the electronic equipment reaches a first electric quantity threshold value in a charging state, determining that the preset cache triggering condition is met, and judging whether the stored video number meets the preset first cache number threshold value.
For example, when the preset buffer triggering condition is satisfied, the determining module 21 determines whether the number of stored videos satisfies the preset buffer number threshold, including:
and when the fact that the electronic equipment is disconnected with the power supply and connected to the wireless fidelity network and the electric quantity of the electronic equipment reaches a second electric quantity threshold value in a non-charging state is monitored, determining that the preset cache triggering condition is met, and judging whether the stored video number meets the preset second cache number threshold value or not.
For another example, when the preset buffer triggering condition is met, the determining module 21 determines whether the number of stored videos meets a preset buffer number threshold, including:
and when the electronic equipment is monitored to be switched to the wireless fidelity network, and the electric quantity of the electronic equipment reaches a first electric quantity threshold value in a charging state (or the electric quantity of the electronic equipment reaches a second electric quantity threshold value in a non-charging state), determining that the preset cache triggering condition is met, and judging whether the stored video number meets a preset third cache number threshold value.
For another example, when the preset buffer triggering condition is met, the determining module 21 determines whether the number of stored videos meets a preset buffer number threshold, including:
and monitoring screen locking switching operation, connecting to a wireless fidelity network, and determining whether the stored video number meets a preset fourth cache number threshold value if the electric quantity of the electronic equipment in a charging state reaches a first electric quantity threshold value (or the electric quantity of the electronic equipment in a non-charging state reaches a second electric quantity threshold value).
In this embodiment, the first power threshold is smaller than the second power threshold, and as an optional embodiment, the first power threshold is set to be 5% of the total power of the electronic device, and the second power threshold is set to be 20% of the total power of the electronic device.
The downloading module 22 is configured to download one or more videos from a preset video server and store the videos if the number of the stored videos does not meet the threshold of the cache number, so that the number of the stored videos reaches the threshold of the cache number;
in this embodiment, address information of a video server for acquiring a video, such as uniform resource locator information, hypertext transfer protocol information, and IP address information, is stored in advance in the electronic device.
In this embodiment, as an optional embodiment, the downloading module 22 is further configured to notify the switching module 23 if the number of stored videos meets the threshold of the cache number.
The switching module 23 is configured to monitor a screen locking switching operation, read a stored unplayed video, and play the read video on a screen locking;
in this embodiment, as an optional embodiment, the switching module 23 is further configured to, after the screen locking switching operation is monitored and before the stored unplayed video is read, determine whether the unplayed video is stored, if so, execute the step of reading the stored unplayed video, and if not, execute the step of reading the stored unplayed video after a video is downloaded from a preset video server and stored.
And a clearing module 24 for clearing the stored played video.
In this embodiment, after the read video is played on the lock screen, the video becomes a played video, and the video (the played video) is deleted from the cache pool.
In this embodiment, as an optional embodiment, the apparatus further includes:
a setting module (not shown in the figure) for setting a switching period for the stored video;
the clearing module 24 is further configured to clear the stored video when the stored video reaches the switching period.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 1, and the implementation principle and the technical effect are similar, which are not described herein again.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or 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.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments.
In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof.
In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
The embodiment of the invention also provides electronic equipment, and the electronic equipment comprises the device in any one of the embodiments.
Fig. 3 is a schematic structural diagram of an embodiment of an electronic device of the present invention, which can implement the processes of the embodiments shown in fig. 1-2 of the present invention, and as shown in fig. 3, the electronic device may include: the device comprises a shell 31, a processor 32, a memory 33, a circuit board 34 and a power circuit 35, wherein the circuit board 34 is arranged inside a space enclosed by the shell 31, and the processor 32 and the memory 33 are arranged on the circuit board 34; a power supply circuit 35 for supplying power to each circuit or device of the electronic apparatus; the memory 33 is used for storing executable program codes; the processor 32 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 33, for performing the following operations:
when a preset cache triggering condition is met, judging whether the stored video number meets a preset cache number threshold value;
if the number of the stored videos does not meet the threshold value of the cache number, downloading one or more videos from a preset video server and storing the videos so that the number of the stored videos reaches the threshold value of the cache number;
monitoring screen locking switching operation, reading a stored video which is not played, and playing the read video on a screen locking;
the stored played video is cleared.
The specific execution process of the above steps by the processor 32 and the steps further executed by the processor 32 by running the executable program code may refer to the description of the embodiment shown in fig. 1-2 of the present invention, and are not described herein again.
The electronic device exists in a variety of forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include: smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play multimedia content. This type of device comprises: audio, video players (e.g., ipods), handheld game consoles, electronic books, and smart toys and portable car navigation devices.
(4) A server: the device for providing the computing service comprises a processor, a hard disk, a memory, a system bus and the like, and the server is similar to a general computer architecture, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing high-reliability service.
(5) And other electronic equipment with data interaction function.
The embodiment of the invention also provides a storage medium for storing the application program, and the application program is used for executing the screen locking switching method provided by the embodiment of the invention.
The embodiment of the invention also provides an application program used for executing the screen locking switching method provided by the embodiment of the invention.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
For convenience of description, the above devices are described separately in terms of functional division into various units/modules. Of course, the functionality of the units/modules may be implemented in one or more software and/or hardware implementations of the invention.
The above description of the embodiments will make clear to those skilled in the art that the present invention can be implemented
The invention can be implemented by means of software plus a necessary general-purpose hardware platform. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (11)

1. A screen locking switching method is characterized by comprising the following steps:
when a preset cache triggering condition is met, judging whether the stored video number meets a preset cache number threshold value, wherein the cache triggering condition comprises a cache triggering opportunity and a cache condition; the cache triggering condition is satisfied by: judging whether the cache triggering time is met or not, judging whether the cache condition is met or not if the cache triggering time is met, and determining that the cache triggering condition is met if the cache triggering time and the cache condition are both met;
if the number of the stored videos does not meet the threshold value of the cache number, downloading one or more videos from a preset video server and storing the videos so that the number of the stored videos reaches the threshold value of the cache number;
monitoring screen locking switching operation, judging whether an unplayed video is stored or not, if so, reading the stored unplayed video, and playing the read video on a screen locking; if the video is not stored, downloading a video from a preset video server and storing the video, reading the stored video which is not played, and playing the read video on a lock screen;
the stored played video is cleared.
2. The screen-locking switching method according to claim 1, wherein the buffering trigger time comprises: monitoring that the charging state of the electronic equipment is changed, or monitoring that the electronic equipment is switched to a wireless fidelity network, or monitoring that the screen locking is switched.
3. The screen-lock switching method according to claim 1, wherein the buffer condition includes: connecting to a wireless fidelity network, and the power of the electronic device reaches a first power threshold when in a charging state; or the caching condition comprises: the wireless fidelity network is connected, and the electronic device reaches a second charge threshold when in the non-charging state.
4. The screen-lock switching method according to claim 1, further comprising:
and if the number of the stored videos meets the cache number threshold value, executing the step of monitoring the screen locking switching operation and reading the stored unplayed videos.
5. The screen-lock switching method according to claim 1, further comprising:
setting a switching period for the stored video, and clearing the stored video when the stored video reaches the switching period.
6. A screen-locking switching device, comprising: a judging module, a downloading module, a switching module and a clearing module, wherein,
the judging module is used for judging whether the stored video number meets a preset cache number threshold value or not when a preset cache triggering condition is met; the cache triggering condition comprises a cache triggering time and a cache condition; the cache triggering condition is satisfied by: judging whether the cache triggering time is met or not, judging whether the cache condition is met or not if the cache triggering time is met, and determining that the cache triggering condition is met if the cache triggering time and the cache condition are both met;
the downloading module is used for downloading one or more videos from a preset video server and storing the videos if the number of the stored videos does not meet the threshold of the cache number, so that the number of the stored videos reaches the threshold of the cache number;
the switching module is used for monitoring the screen locking switching operation, judging whether an unplayed video is stored, if so, reading the stored unplayed video, and playing the read video on the screen locking; if the video is not stored, downloading a video from a preset video server and storing the video, reading the stored video which is not played, and playing the read video on a lock screen;
and the clearing module is used for clearing the stored played video.
7. The screen-locking switching device of claim 6, wherein the buffering trigger time comprises: monitoring that the charging state of the electronic equipment is changed, or monitoring that the electronic equipment is switched to a wireless fidelity network, or monitoring that the screen locking is switched.
8. The screen-locking switching device of claim 6, wherein the buffer condition comprises: connecting to a wireless fidelity network, and the power of the electronic device reaches a first power threshold when in a charging state; or the caching condition comprises: the wireless fidelity network is connected, and the electronic device reaches a second charge threshold when in the non-charging state.
9. The screen locking switching device of claim 6, wherein the downloading module is further configured to notify the switching module if the number of stored videos meets the threshold number of caches.
10. The screen-locking switching device of claim 6, further comprising:
the setting module is used for setting a switching period for the stored video;
the clearing module is further configured to clear the stored video when the stored video reaches the switching period.
11. An electronic device, characterized in that the electronic device comprises: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing the following operations:
when a preset cache triggering condition is met, judging whether the stored video number meets a preset cache number threshold value, wherein the cache triggering condition comprises a cache triggering opportunity and a cache condition; the cache triggering condition is satisfied by: judging whether the cache triggering time is met or not, judging whether the cache condition is met or not if the cache triggering time is met, and determining that the cache triggering condition is met if the cache triggering time and the cache condition are both met;
if the number of the stored videos does not meet the threshold value of the cache number, downloading one or more videos from a preset video server and storing the videos so that the number of the stored videos reaches the threshold value of the cache number;
monitoring screen locking switching operation, judging whether an unplayed video is stored or not, if so, reading the stored unplayed video, and playing the read video on a screen locking; if the video is not stored, downloading a video from a preset video server and storing the video, reading the stored video which is not played, and playing the read video on a lock screen;
the stored played video is cleared.
CN201611241252.9A 2016-12-28 2016-12-28 Screen locking switching method and device and electronic equipment Active CN106775748B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611241252.9A CN106775748B (en) 2016-12-28 2016-12-28 Screen locking switching method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611241252.9A CN106775748B (en) 2016-12-28 2016-12-28 Screen locking switching method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN106775748A CN106775748A (en) 2017-05-31
CN106775748B true CN106775748B (en) 2020-11-03

Family

ID=58925357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611241252.9A Active CN106775748B (en) 2016-12-28 2016-12-28 Screen locking switching method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN106775748B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107368310A (en) * 2017-07-07 2017-11-21 Tcl移动通信科技(宁波)有限公司 Mobile terminal screen locking interface dynamic display method, storage device and mobile terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103442139A (en) * 2013-08-26 2013-12-11 百度在线网络技术(北京)有限公司 Method and device for displaying lock screen information of intelligent mobile device
CN104978188A (en) * 2015-06-19 2015-10-14 上海卓悠网络科技有限公司 Method and apparatus for updating screen-lock picture of intelligent terminal
CN106161789A (en) * 2016-06-30 2016-11-23 努比亚技术有限公司 A kind of mobile terminal, the device and method of switching screen locking wallpaper

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120038777A (en) * 2010-10-14 2012-04-24 엘지전자 주식회사 Mobile terminal and operation control method thereof
CN103543931B (en) * 2013-10-18 2017-09-05 努比亚技术有限公司 The method and apparatus that mobile terminal shows electronic information
EP3629564B1 (en) * 2014-03-12 2021-03-10 Huawei Device Co., Ltd. Screen locking method and mobile terminal
US9350852B1 (en) * 2015-02-10 2016-05-24 Qualcomm Incorporated Intelligent auto screen lock
CN104793956A (en) * 2015-04-30 2015-07-22 网易传媒科技(北京)有限公司 Screen locking switching method and device of client APP

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103442139A (en) * 2013-08-26 2013-12-11 百度在线网络技术(北京)有限公司 Method and device for displaying lock screen information of intelligent mobile device
CN104978188A (en) * 2015-06-19 2015-10-14 上海卓悠网络科技有限公司 Method and apparatus for updating screen-lock picture of intelligent terminal
CN106161789A (en) * 2016-06-30 2016-11-23 努比亚技术有限公司 A kind of mobile terminal, the device and method of switching screen locking wallpaper

Also Published As

Publication number Publication date
CN106775748A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
US10635449B2 (en) Method and apparatus for running game client
CN107861814B (en) Resource allocation method and equipment
WO2017185616A1 (en) File storage method and electronic equipment
CN106648325B (en) Method and device for playing video on screen locking interface and electronic equipment
US9674063B2 (en) Managing data usage of a computing device
US11202066B2 (en) Video data encoding and decoding method, device, and system, and storage medium
CN109224435B (en) Online game acceleration method and device, electronic equipment and storage medium
CN106231433B (en) A kind of methods, devices and systems playing network video
CN106250182B (en) File processing method and device and electronic equipment
CN105677477A (en) Method and device for optimizing application program resources and electronic equipment
CN105363201A (en) Prompt information display method and prompt information display device
WO2017185605A1 (en) File management method and electronic equipment
CN107329778B (en) System updating method and related product
US9588757B2 (en) Data update method, user terminal, and data update system
CN103294442B (en) A kind of method of playing alert tones, device and terminal device
CN106203092B (en) Method and device for intercepting shutdown of malicious program and electronic equipment
CN107959659B (en) Streaming media playing control method and device and electronic equipment
CN108235075A (en) Video quality grade matching process, computer readable storage medium and terminal
CN106775748B (en) Screen locking switching method and device and electronic equipment
CN109429076B (en) Playing card pause processing method and device for multimedia data
CN112740178B (en) Small game access method and related equipment
WO2015184959A2 (en) Method and apparatus for playing behavior event
CN111142900A (en) Program updating method and device and terminal equipment
CN106779844B (en) Method and device for acquiring value added service information and electronic equipment
CN110750743A (en) Animation playing method, device, equipment and storage medium

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