CN106648325B - Method and device for playing video on screen locking interface and electronic equipment - Google Patents

Method and device for playing video on screen locking interface and electronic equipment Download PDF

Info

Publication number
CN106648325B
CN106648325B CN201611236786.2A CN201611236786A CN106648325B CN 106648325 B CN106648325 B CN 106648325B CN 201611236786 A CN201611236786 A CN 201611236786A CN 106648325 B CN106648325 B CN 106648325B
Authority
CN
China
Prior art keywords
screen
event
video
interface
type
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
CN201611236786.2A
Other languages
Chinese (zh)
Other versions
CN106648325A (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 CN201611236786.2A priority Critical patent/CN106648325B/en
Publication of CN106648325A publication Critical patent/CN106648325A/en
Application granted granted Critical
Publication of CN106648325B publication Critical patent/CN106648325B/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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention discloses a method and a device for playing a video on a screen locking interface and electronic equipment, relates to a video playing technology, and can simplify the playing operation process. The method for playing the video on the screen locking interface comprises the following steps: after a screen-up event is monitored to occur on a screen locking interface, judging whether the type of the monitored screen-up event is a preset screen-up event type or not; if the monitored type of the bright screen event is the preset type of the bright screen event, updating the window attribute of the interface to be normally bright; loading a video lock interface to play a video; and after the video playing is monitored to be finished, updating the window attribute of the interface to be screen-off. The method and the device are suitable for playing the video on the screen locking interface.

Description

Method and device for playing video on screen locking interface and electronic equipment
Technical Field
The present invention relates to video playing technologies, and in particular, to a method and an apparatus for playing a video on a screen lock interface, and an electronic device.
Background
With the rapid development of mobile internet, mobile phone users no longer satisfy simple functions such as simple short messages, multimedia messages and voice calls. With the popularization of the third Generation mobile communication technology (3G, 3rd-Generation), the fourth Generation mobile communication technology (4G, 4th-Generation) and Wireless Fidelity (WIFI), users can smoothly download video clips for watching through the mobile internet to meet the leisure and entertainment requirements of the users, and the development of video applications has become a necessary trend.
While the entertainment requirements of users are met, Android (Android) users have strong requirements on the security of the mobile phone, including financing and shopping applications of payment treasures, Jingdong, palm life and the like, various account numbers bound to the mobile phone, personal short messages, address books and other privacy are in urgent need of protection, and a common mode is to adopt a screen locking technology.
In order to meet the higher requirements of users on entertainment, safety and convenience, the improved technology is to use a video lock function, namely, a video with low safety requirements is played on a screen locking interface, and meanwhile, the screen does not need to be unlocked, so that the user operation is reduced. Because the video is played on the screen locking interface, when the length of the video is longer, namely the video playing time is longer than the screen lightening time set by the user, the system can automatically turn off the screen, so that the user can not watch the video smoothly, and the video playing effect is reduced. To solve the problem, a method of holding a system Wake-up Lock (Wake Lock) is proposed to keep a screen normally bright so that a user can watch a video smoothly, but in the method, an application holding the system Wake-up Lock needs to apply for a new permission, an operation flow is complex, version upgrading is not facilitated, and the method is not high in universality.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for playing a video on a screen lock interface, and an electronic device, which can simplify a playing operation process, so as to solve a problem that a playing operation process is complicated due to a system wake-up lock being held to keep a screen normally bright in an existing method for playing a video on a screen lock interface.
In a first aspect, an embodiment of the present invention provides a method for playing a video on a screen locking interface, including:
after a screen-up event is monitored to occur on a screen locking interface, judging whether the type of the monitored screen-up event is a preset screen-up event type or not;
if the monitored type of the bright screen event is the preset type of the bright screen event, updating the window attribute of the interface to be normally bright;
loading a video lock interface to play a video;
and after the video playing is monitored to be finished, updating the window attribute of the interface to be screen-off.
With reference to the first aspect, in a first implementation manner of the first aspect, the determining whether the type of the monitored bright screen event is a preset bright screen event type includes:
judging whether the screen-on event is caused by the triggering of the received information flow;
if so, determining that the type of the monitored bright screen event is not the preset bright screen event type, and if not, determining that the type of the monitored bright screen event is the preset bright screen event type.
With reference to the first aspect, in a second implementation manner of the first aspect, the updating a window attribute of the interface to be normally bright includes:
the attribute of the window is set to FLAG _ KEEP _ SCREEN _ ON.
With reference to the first aspect, in a third implementation manner of the first aspect, after the monitored type of the bright screen event is a preset type of the bright screen event, before the window attribute of the interface is updated to be normally bright, the method further includes:
and inquiring whether the display priority of the video lock interface is higher than that of other lock screen interfaces, if so, executing the step of updating the window attribute of the video lock interface to be normally bright.
With reference to the first aspect, any one of the first to third embodiments of the first aspect, in a fourth embodiment of the first aspect, the method further comprises:
and in the video playing process, receiving an instruction from the video lock interface, and correspondingly controlling the played video.
In a second aspect, an embodiment of the present invention provides an apparatus for playing a video on a screen locking interface, including: a bright screen event judging module, a first window attribute updating module, a loading module and a second window attribute updating module, wherein,
the screen-up event judging module is used for judging whether the type of the monitored screen-up event is a preset screen-up event type or not after the screen-up event of the screen-up locking interface is monitored;
the first window attribute updating module is used for updating the window attribute of the interface to be normally bright if the monitored type of the bright screen event is the preset bright screen event type;
the loading module is used for loading the video lock interface to play the video;
and the second window attribute updating module is used for updating the window attribute of the interface to be screen-off after the video playing is monitored to be finished.
With reference to the second aspect, in a first implementation manner of the second aspect, the bright screen event determining module includes: a monitoring unit and a bright screen event judging unit, wherein,
the monitoring unit is used for notifying the screen-lighting event judging unit after monitoring that a screen-lighting event occurs on the screen locking interface;
the screen-lightening event judging unit is used for judging whether the screen-lightening event is caused by the triggering of the received information flow; if so, determining that the type of the monitored bright screen event is not the preset bright screen event type, and if not, determining that the type of the monitored bright screen event is the preset bright screen event type.
With reference to the second aspect, in a second implementation manner of the second aspect, the updating the window property of the interface to be normally bright includes:
the attribute of the window is set to FLAG _ KEEP _ SCREEN _ ON.
With reference to the second aspect, in a third implementation manner of the second aspect, the window attribute first updating module is further configured to query whether a display priority of the video lock interface is higher than display priorities of other screen lock interfaces after the monitored type of the screen-up event is a preset type of the screen-up event, and if so, execute the step of updating the window attribute of the video lock interface to be normally bright.
With reference to the second aspect, or any one of the first to third embodiments of the second aspect, in a fourth embodiment of the second aspect, the apparatus method further comprises:
and the playing control module is used for receiving an instruction from the video lock interface in the video playing process and correspondingly controlling the played video.
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:
after a screen-up event is monitored to occur on a screen locking interface, judging whether the type of the monitored screen-up event is a preset screen-up event type or not;
if the monitored type of the bright screen event is the preset type of the bright screen event, updating the window attribute of the interface to be normally bright;
loading a video lock interface to play a video;
and after the video playing is monitored to be finished, updating the window attribute of the interface to be screen-off.
In a fourth aspect, an embodiment of the present invention further provides a storage medium, configured to store an application program, where the application program is configured to execute the method for playing a video on a screen locking interface 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 method for playing a video on a screen locking interface provided in the embodiment of the present invention.
According to the method, the device and the electronic equipment for playing the video on the screen locking interface, provided by the embodiment of the invention, after the screen lightening event is monitored on the screen locking interface, whether the type of the monitored screen lightening event is the preset screen lightening event type is judged; if the monitored type of the bright screen event is the preset type of the bright screen event, updating the window attribute of the interface to be normally bright; loading a video lock interface to play a video; after the video playing is monitored to be finished, the window attribute of the interface is updated to be screen off, the playing operation process can be simplified, and the problem that the playing operation process is complex due to the fact that the screen is kept normally bright in the existing method for playing the video on the screen locking interface in a system awakening lock mode 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 flowchart illustrating a method for playing a video on a screen locking interface according to an embodiment of the present invention;
fig. 2 is a schematic flowchart illustrating a second method for playing a video on a screen locking interface according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a device for playing a video on a screen locking interface according to a third embodiment of the present invention;
fig. 4 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 flowchart of a method for playing a video on a screen locking interface according to an embodiment of the present invention, as shown in fig. 1, the method of this embodiment may include:
step 101, after a screen-up event is monitored to occur on a screen locking interface, judging whether the type of the monitored screen-up event is a preset screen-up event type or not;
in this embodiment, as an optional embodiment, before the screen-lock interface is monitored to have a screen-up event, the method further includes:
and registering a monitoring module for monitoring the bright screen event.
In this embodiment, as an optional embodiment, the module for registering and monitoring the bright screen event includes:
and starting a background service (service) process, and registering a monitoring module for monitoring the bright screen event by using the background service process.
In this embodiment, the electronic device operating system may send a corresponding on/off screen broadcast message when a screen on/off corresponding to the screen on/off event occurs, for example, send (broadcast) the on screen broadcast message when the screen on corresponding to the screen on event occurs, and send the off screen broadcast message when the screen off corresponding to the screen off event occurs.
In this embodiment, the registered monitoring module is configured to monitor a screen-on event, and in practical applications, the registered monitoring module may also be configured to monitor events such as a screen-off event, a call state event, and an alarm clock unlocking event, and trigger corresponding logic when the monitored events occur.
In this embodiment, as an optional embodiment, the monitoring module is a broadcast receiver. The method for playing the video on the screen locking interface of the embodiment is used for editing the program code segment to form an application program installation package, the application program installation package is installed to obtain an application program, the application program is registered in the broadcast receiver, and then the screen-on broadcast message broadcast when the screen-on event occurs can be received, so that the screen-on broadcast message can be monitored.
In this embodiment, as an optional embodiment, the determining whether the monitored type of the bright screen event is a preset type of the bright screen event includes:
judging whether the screen-on event is caused by the triggering of the received information flow;
if so, determining that the type of the monitored bright screen event is not the preset bright screen event type, and if not, determining that the type of the monitored bright screen event is the preset bright screen event type.
In this embodiment, if the screen is turned on due to the user trigger, the screen is actively turned on for the user. For example, if the user sets up a lock screen and presses a power key, the screen is actively lightened, and if the screen is lightened due to information flow, the screen is automatically lightened.
102, if the monitored type of the bright screen event is a preset bright screen event type, updating the window attribute of the interface to be normally bright;
in this embodiment, since the interfaces in the Android operating system are all displayed on windows (windows), and the Window attributes of the interfaces in the Android operating system are correspondingly stored, the Window attributes can be dynamically changed by modifying the Window attributes through a Window management mechanism of the Android operating system, that is, the display modes of the corresponding interfaces, such as display priority, display duration, and the like, can be controlled by setting the Window attributes of the interfaces.
In this embodiment, as an optional embodiment, the updating the window attribute of the video lock interface to be normally bright includes:
the attribute of the window is set to FLAG _ KEEP _ SCREEN _ ON.
In this embodiment, as an optional embodiment, after the monitored type of the bright screen event is the preset type of the bright screen event, before the window attribute of the interface is updated to be normally bright, the method further includes:
and inquiring whether the display priority of the video lock interface is higher than that of other lock screen interfaces, if so, executing the step of updating the window attribute of the video lock interface to be normally bright.
In this embodiment, if the display priority of the video lock interface obtained by the query is not higher than the display priorities of other lock screen interfaces, the processing is performed according to the prior art process.
In this embodiment, as an optional embodiment, the video lock interface may be implemented by a video lock window or a video lock Activity (Activity) component. The video lock window may be a floating window.
In this embodiment, the video lock interface is implemented by a video lock active component.
In this embodiment, if the display priority of the video lock interface is higher than the display priority of other lock screen interfaces, for example, the display priority of the video lock interface is higher than the display priority of the system lock interface, the video lock Activity component or the floating window may be overlaid on the other lock screen interfaces after the screen is turned on. Thus, when the screen is illuminated, the video lock Activity component of the lock screen or the floating window is first presented.
103, loading a video lock interface to play a video;
in this embodiment, after the video lock interface is successfully loaded, the corresponding video can be played according to the preset setting so as to be convenient for the user to watch.
In this embodiment, as an optional embodiment, the method further includes:
and in the video playing process, receiving an instruction from the video lock interface, and correspondingly controlling the played video.
In this embodiment, a user may execute corresponding control when the user clicks one of the control buttons included in the playing window for playing the video in the video lock interface, for example, a forward key, a backward key, a fast forward key, a fast backward key, a pause key, a stop key, a replay key, and the like. That is, in the process of playing the video through the video lock interface, only the control button contained in the video can be set to respond.
And 104, after the video playing is monitored to be finished, updating the window attribute of the interface to be screen-off.
In this embodiment, as an optional embodiment, the monitoring of the completion of the video playing may also be implemented by monitoring, by the registered monitoring module, a playing completion broadcast message broadcast by the operating system when the video playing is completed.
In this embodiment, after the active SCREEN is turned ON, the Window attribute is set to normally-ON FLAG _ KEEP _ SCREEN _ ON, so that the video is kept normally-ON, and after the video is played, the normally-ON attribute of the Window attribute is cancelled, so that the video is turned off.
In the method for playing the video on the screen locking interface, after the screen lightening event is monitored on the screen locking interface, whether the type of the monitored screen lightening event is the preset type of the screen lightening event is judged; if the monitored type of the bright screen event is the preset type of the bright screen event, updating the window attribute of the interface to be normally bright; loading a video lock interface to play a video; and after the video playing is monitored to be finished, updating the window attribute of the interface to be screen-off. Therefore, the mode that the window attribute of the video lock interface is automatically updated to be normally bright is adopted, the user does not need to actively apply the authority to set the system awakening lock, the video on the lock screen can be completely watched, the operation flow for watching the video is effectively simplified, the method is strong in universality and beneficial to version upgrading, and therefore the user experience and the installation rate can be effectively improved.
Example two
Fig. 2 is a schematic flowchart of a method for playing a video on a screen-locking interface according to a second embodiment of the present invention, as shown in fig. 2, taking an example that a user watches a video after turning on a screen, the method of this embodiment may include:
step 201, setting the window attribute of a system interface as automatic screen-off, wherein the screen-off time is 10 seconds;
step 202, entering an application program, selecting a video with the duration exceeding 10 seconds, and setting the video as a screen locking video;
step 203, pressing a power key of the mobile phone to enter a screen locking state;
step 204, pressing a power key of the mobile phone to enter a bright screen state;
and step 205, updating the window attribute of the interface to be normally bright, and then playing the video on the video lock interface.
In the embodiment, the video can be completely played in the bright screen state, the screen always keeps bright, and after the video is played, the window attribute of the interface is updated to be screen off, so that the problem of screen off in the video playing process is effectively solved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a device for playing a video on a screen locking interface according to a third embodiment of the present invention, as shown in fig. 3, the device according to the present embodiment may include: a bright screen event judging module, a first window attribute updating module, a loading module and a second window attribute updating module, wherein,
the screen-up event judging module is used for judging whether the type of the monitored screen-up event is a preset screen-up event type or not after the screen-up event of the screen-up locking interface is monitored;
in this embodiment, as an optional embodiment, the bright screen event determining module includes: a monitoring unit and a bright screen event judging unit (not shown in the figure), wherein,
the monitoring unit is used for notifying the screen-lighting event judging unit after monitoring that a screen-lighting event occurs on the screen locking interface;
the screen-lightening event judging unit is used for judging whether the screen-lightening event is caused by the triggering of the received information flow; if so, determining that the type of the monitored bright screen event is not the preset bright screen event type, and if not, determining that the type of the monitored bright screen event is the preset bright screen event type.
The first window attribute updating module is used for updating the window attribute of the interface to be normally bright if the monitored type of the bright screen event is the preset bright screen event type;
in this embodiment, as an optional embodiment, the updating the window attribute of the interface to be normally bright includes:
the attribute of the window is set to FLAG _ KEEP _ SCREEN _ ON.
In this embodiment, as an optional embodiment, the first window attribute updating module is further configured to query whether the display priority of the video lock interface is higher than the display priorities of other screen lock interfaces after the monitored type of the screen-up event is the preset type of the screen-up event, and if so, execute the step of updating the window attribute of the video lock interface to be normally bright.
In this embodiment, if the display priority of the video lock interface obtained by the query is not higher than the display priorities of other lock screen interfaces, the processing is performed according to the prior art process.
The loading module is used for loading the video lock interface to play the video;
in this embodiment, as an optional embodiment, the video lock interface includes: a video lock window and a video lock activity component. The video lock window may be a floating window.
And the second window attribute updating module is used for updating the window attribute of the video lock interface to be automatic screen-off after the video playing is monitored to be finished.
In this embodiment, as an optional embodiment, the apparatus further includes:
and the playing control module is used for receiving an instruction from the video lock interface in the video playing process and correspondingly controlling the played video.
In this embodiment, a user may execute corresponding control when the user clicks one of the control buttons included in the playing window for playing the video in the video lock interface, for example, a forward key, a backward key, a fast forward key, a fast backward key, a pause key, a stop key, a replay key, and the like. That is, in the process of playing the video through the video lock interface, only the control button contained in the video can be set to respond.
In this embodiment, as another optional embodiment, the apparatus further includes:
and the registration module is used for registering the monitoring module for monitoring the bright screen event.
In this embodiment, as an optional embodiment, the module for registering and monitoring the bright screen event includes:
and starting a background service process, and registering a monitoring module for monitoring the bright screen event by using the background service process.
In this embodiment, as an optional embodiment, the monitoring module is a broadcast receiver.
The apparatus of this embodiment may be used to implement the technical solutions of the method embodiments shown in fig. 1 and fig. 2, and the implementation principles and technical effects 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. 4 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 to 3 of the present invention, and as shown in fig. 4, the electronic device may include: the device comprises a shell 41, a processor 42, a memory 43, a circuit board 44 and a power circuit 45, wherein the circuit board 44 is arranged inside a space enclosed by the shell 41, and the processor 42 and the memory 43 are arranged on the circuit board 44; a power supply circuit 45 for supplying power to each circuit or device of the electronic apparatus; the memory 43 is used for storing executable program code; the processor 42 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 43, for performing the following operations:
after a screen-up event of a screen-locking interface is monitored, judging whether the monitored screen-up event is a preset screen-up event or not;
if the monitored screen-up event is a preset screen-up event, updating the window attribute of the video lock interface to be normally bright;
loading a video lock interface to play a video;
and after the video playing is monitored to be finished, updating the window attribute of the video lock interface to be automatic screen-off.
The specific execution process of the above steps by the processor 42 and the steps further executed by the processor 42 by running the executable program code may refer to the description of the embodiment shown in fig. 1 to 3 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, wherein the application program is used for executing the method for playing the video on the screen locking interface provided by the embodiment of the invention.
The embodiment of the invention also provides an application program used for executing the method for playing the video on the screen locking interface.
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 (9)

1. A method for playing a video on a screen locking interface is characterized by comprising the following steps:
after a screen-up event of a screen-locking interface is monitored, judging whether the type of the monitored screen-up event is a preset screen-up event type, wherein the preset screen-up event type comprises screen-up caused by user triggering;
if the type of the monitored bright SCREEN event is a preset bright SCREEN event type, the window attribute of the updated interface is normally bright, and the updating of the window attribute of the interface to be normally bright comprises the step of setting the attribute of the window to be FLAG _ KEEP _ SCREEN _ ON;
loading a video lock interface to play a video;
and after the video playing is monitored to be finished, updating the window attribute of the interface to be screen-off.
2. The method for playing the video on the screen locking interface according to claim 1, wherein the determining whether the type of the monitored bright screen event is a preset bright screen event type comprises:
judging whether the screen-on event is caused by the triggering of the received information flow;
if so, determining that the type of the monitored bright screen event is not the preset bright screen event type, and if not, determining that the type of the monitored bright screen event is the preset bright screen event type.
3. The method for playing the video on the screen locking interface according to claim 1, wherein after the monitored type of the bright screen event is the preset type of the bright screen event and before the window attribute of the interface is updated to be normally bright, the method further comprises:
and inquiring whether the display priority of the video lock interface is higher than that of other lock screen interfaces, if so, executing the step of updating the window attribute of the video lock interface to be normally bright.
4. The method for playing the video on the screen locking interface according to any one of claims 1 to 3, wherein the method further comprises:
and in the video playing process, receiving an instruction from the video lock interface, and correspondingly controlling the played video.
5. An apparatus for playing a video on a lock screen interface, comprising: a bright screen event judging module, a first window attribute updating module, a loading module and a second window attribute updating module, wherein,
the screen-up event judging module is used for judging whether the type of the monitored screen-up event is a preset screen-up event type after the screen-up event of the screen-up interface is monitored, wherein the preset screen-up event type comprises screen-up caused by triggering of a user;
the first window attribute updating module is used for updating the window attribute of the interface to be normally bright if the type of the monitored bright SCREEN event is the preset bright SCREEN event type, wherein the updating of the window attribute of the interface to be normally bright comprises the step of setting the attribute of the window to be FLAG _ KEEP _ SCREEN _ ON;
the loading module is used for loading the video lock interface to play the video;
and the second window attribute updating module is used for updating the window attribute of the interface to be screen-off after the video playing is monitored to be finished.
6. The apparatus for playing video on a screen locking interface according to claim 5, wherein the screen-lighting event determining module comprises: a monitoring unit and a bright screen event judging unit, wherein,
the monitoring unit is used for notifying the screen-lighting event judging unit after monitoring that a screen-lighting event occurs on the screen-locking interface:
the screen-lightening event judging unit is used for judging whether the screen-lightening event is caused by the triggering of the received information flow; if so, determining that the type of the monitored bright screen event is not the preset bright screen event type, and if not, determining that the type of the monitored bright screen event is the preset bright screen event type.
7. The device for playing the video on the screen locking interface according to claim 5, wherein the first window attribute updating module is further configured to query whether the display priority of the video lock interface is higher than the display priorities of the other screen locking interfaces after the monitored type of the screen-up event is the preset type of the screen-up event, and if so, execute the step of updating the window attribute of the video lock interface to be normally on.
8. The apparatus for playing video on a lock screen interface according to any one of claims 5 to 7, wherein the apparatus further comprises:
and the playing control module is used for receiving an instruction from the video lock interface in the video playing process and correspondingly controlling the played video.
9. 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:
after a screen-up event is monitored to occur on a screen locking interface, judging whether the type of the monitored screen-up event is a preset screen-up event type or not;
if the type of the monitored bright SCREEN event is a preset bright SCREEN event type, the window attribute of the updated interface is normally bright, and the updating of the window attribute of the interface to be normally bright comprises the step of setting the attribute of the window to be FLAG _ KEEP _ SCREEN _ ON;
loading a video lock interface to play a video;
and after the video playing is monitored to be finished, updating the window attribute of the interface to be screen-off.
CN201611236786.2A 2016-12-28 2016-12-28 Method and device for playing video on screen locking interface and electronic equipment Active CN106648325B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611236786.2A CN106648325B (en) 2016-12-28 2016-12-28 Method and device for playing video on screen locking interface and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611236786.2A CN106648325B (en) 2016-12-28 2016-12-28 Method and device for playing video on screen locking interface and electronic equipment

Publications (2)

Publication Number Publication Date
CN106648325A CN106648325A (en) 2017-05-10
CN106648325B true CN106648325B (en) 2020-11-03

Family

ID=58832428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611236786.2A Active CN106648325B (en) 2016-12-28 2016-12-28 Method and device for playing video on screen locking interface and electronic equipment

Country Status (1)

Country Link
CN (1) CN106648325B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107147928A (en) * 2017-05-23 2017-09-08 努比亚技术有限公司 Play method, terminal and the computer-readable recording medium of video
CN107241648B (en) * 2017-06-26 2019-05-24 中广热点云科技有限公司 The mobile terminal of video is played under a kind of screen lock state under video broadcasting method and screen lock state
CN108200271A (en) * 2017-12-25 2018-06-22 深圳市金立通信设备有限公司 Control method, terminal and the computer readable storage medium of drawing pin application interface
CN108334253A (en) * 2017-12-26 2018-07-27 珠海市君天电子科技有限公司 A kind of information displaying method, device and terminal device
CN108647074B (en) * 2018-05-09 2022-01-07 北京微播视界科技有限公司 Method, device, hardware device and medium for displaying dynamic information in screen locking state
CN110945882B (en) 2018-06-07 2021-04-20 华为技术有限公司 Information pushing method and terminal equipment
CN111787384A (en) * 2019-05-07 2020-10-16 北京沃东天骏信息技术有限公司 Split-screen playing method, device and equipment for screen locking video and storage medium
CN110446109B (en) * 2019-08-01 2021-04-23 珠海格力电器股份有限公司 Method for preventing terminal from being touched by mistake during video playing, storage medium and terminal
CN110475152B (en) * 2019-09-09 2022-02-01 北京字节跳动网络技术有限公司 Video playing method and device, terminal equipment and computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103345360A (en) * 2013-06-21 2013-10-09 广东欧珀移动通信有限公司 Method for recognizing intelligent terminal touch screen gestures
CN104346100A (en) * 2014-10-17 2015-02-11 广东欧珀移动通信有限公司 Method and device for rapidly operating smart mobile terminal in blank screen state
CN104765551A (en) * 2015-04-20 2015-07-08 深圳市欧珀通信软件有限公司 Method, device and system for lightening mobile terminal screen
CN105549721A (en) * 2015-12-18 2016-05-04 Tcl集团股份有限公司 Sleep method and apparatus for intelligent terminal
CN105573468A (en) * 2015-12-14 2016-05-11 Tcl移动通信科技(宁波)有限公司 Power-saving control method for awakening of touch screen and mobile terminal
CN106055073A (en) * 2016-05-31 2016-10-26 广东欧珀移动通信有限公司 Processing method and device based on screen-lighting lock
CN106131334A (en) * 2016-07-11 2016-11-16 广东欧珀移动通信有限公司 Control the method and device of mobile terminal screen state
CN106201600A (en) * 2016-06-30 2016-12-07 北京奇虎科技有限公司 Application program for mobile terminal progress control method and operating system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030050019A1 (en) * 2001-09-07 2003-03-13 Dowling Eric Morgan Mobile units with fexible-retractable peripherals
US20050071761A1 (en) * 2003-09-25 2005-03-31 Nokia Corporation User interface on a portable electronic device
CN104010230B (en) * 2014-06-17 2015-09-23 合一网络技术(北京)有限公司 The method and system of the video playback under screen lock state
CN104935739A (en) * 2015-05-29 2015-09-23 努比亚技术有限公司 Audio and video application control method and device
CN105892793A (en) * 2015-12-04 2016-08-24 乐视网信息技术(北京)股份有限公司 Operation method for intelligent terminal device and intelligent terminal device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103345360A (en) * 2013-06-21 2013-10-09 广东欧珀移动通信有限公司 Method for recognizing intelligent terminal touch screen gestures
CN104346100A (en) * 2014-10-17 2015-02-11 广东欧珀移动通信有限公司 Method and device for rapidly operating smart mobile terminal in blank screen state
CN104765551A (en) * 2015-04-20 2015-07-08 深圳市欧珀通信软件有限公司 Method, device and system for lightening mobile terminal screen
CN105573468A (en) * 2015-12-14 2016-05-11 Tcl移动通信科技(宁波)有限公司 Power-saving control method for awakening of touch screen and mobile terminal
CN105549721A (en) * 2015-12-18 2016-05-04 Tcl集团股份有限公司 Sleep method and apparatus for intelligent terminal
CN106055073A (en) * 2016-05-31 2016-10-26 广东欧珀移动通信有限公司 Processing method and device based on screen-lighting lock
CN106201600A (en) * 2016-06-30 2016-12-07 北京奇虎科技有限公司 Application program for mobile terminal progress control method and operating system
CN106131334A (en) * 2016-07-11 2016-11-16 广东欧珀移动通信有限公司 Control the method and device of mobile terminal screen state

Also Published As

Publication number Publication date
CN106648325A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN106648325B (en) Method and device for playing video on screen locking interface and electronic equipment
CN105117211B (en) The method and device of prompting message
CN108604265B (en) Method for offline managing application program use time and terminal equipment
CN106599680B (en) Method and device for setting application program permission and electronic equipment
CN109947449B (en) System upgrading method and device, storage medium and electronic equipment
US11184314B2 (en) Method and apparatus for prompting message reading state, and electronic device
US20200396325A1 (en) Application switching method and terminal
CN106559560B (en) Method and device for displaying information and electronic equipment
CN106713954B (en) Video live broadcast starting reminding method and device
CN107844341B (en) Process starting control method and device, storage medium and mobile terminal
CN106250182B (en) File processing method and device and electronic equipment
CN106873898B (en) Application program working mode switching method and device and electronic equipment
KR102322542B1 (en) Notification reminder method, terminal and storage medium
CN110908728B (en) Authority configuration method and related product
EP3486823B1 (en) System notification service control method, apparatus, terminal device, and storage medium
CN111290926A (en) Terminal prompting method and device, storage medium and terminal
CN110267088B (en) Video playing control method and device, electronic equipment and storage medium
CN110278273B (en) Multimedia file uploading method, device, terminal, server and storage medium
CN111107147B (en) Message pushing method and device
CN106502698B (en) Anti-addiction method and mobile terminal
CN106708501A (en) Activity monitoring method and device
CN110691334A (en) Method and device for displaying timeliness of message and storage medium
CN108196664B (en) Screen display method and device, storage medium and terminal
CN111399960B (en) Screen locking method and device, electronic equipment and storage medium
CN106775748B (en) Screen locking switching method and device and electronic equipment

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