CN111880879B - Playing method, device, equipment and storage medium of dynamic wallpaper - Google Patents

Playing method, device, equipment and storage medium of dynamic wallpaper Download PDF

Info

Publication number
CN111880879B
CN111880879B CN202010724926.0A CN202010724926A CN111880879B CN 111880879 B CN111880879 B CN 111880879B CN 202010724926 A CN202010724926 A CN 202010724926A CN 111880879 B CN111880879 B CN 111880879B
Authority
CN
China
Prior art keywords
state
dynamic wallpaper
wallpaper
instruction
playing
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
CN202010724926.0A
Other languages
Chinese (zh)
Other versions
CN111880879A (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.)
Shanghai Mihoyo Tianming Technology Co Ltd
Original Assignee
Shanghai Mihoyo Tianming Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Mihoyo Tianming Technology Co Ltd filed Critical Shanghai Mihoyo Tianming Technology Co Ltd
Priority to CN202010724926.0A priority Critical patent/CN111880879B/en
Publication of CN111880879A publication Critical patent/CN111880879A/en
Application granted granted Critical
Publication of CN111880879B publication Critical patent/CN111880879B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a playing method, a playing device, playing equipment and a storage medium of dynamic wallpaper. The method comprises the following steps: when a state instruction sent by a state monitoring module is received, determining the trigger state of the current dynamic wallpaper according to the state instruction; and acquiring the updated dynamic wallpaper corresponding to the trigger state, and playing the updated dynamic wallpaper on the desktop of the user. According to the embodiment of the invention, the trigger state of the current dynamic wallpaper is determined according to the state instruction, and the dynamic wallpaper is determined to be updated based on the trigger state, so that the problem of single presentation mode of the dynamic wallpaper is solved, the flexibility of the dynamic wallpaper displayed on a desktop is improved, and the user experience is improved.

Description

Playing method, device and equipment of dynamic wallpaper and storage medium
Technical Field
The embodiment of the invention relates to the technical field of terminal display, in particular to a playing method, a playing device, playing equipment and a storage medium of dynamic wallpaper.
Background
In the dynamic desktop technology in the prior art, the effect of a dynamic video is mainly realized by downloading a prerecorded video or a dynamic picture and adopting a circular playing mode. However, the dynamic wallpaper in the prior art cannot be customized to display so as to interact with the behavior of the user in real time, so that the displayed dynamic wallpaper is single in presentation mode and lacks flexibility. Aesthetic fatigue is easy to appear when a user uses the dynamic wallpaper, so that the use experience of the user is reduced.
Disclosure of Invention
The embodiment of the invention provides a playing method, a playing device, equipment and a storage medium of dynamic wallpaper, which improve the flexibility of the dynamic wallpaper displayed on a desktop and improve the user experience.
In a first aspect, an embodiment of the present invention provides a method for playing dynamic wallpaper, where the method includes:
when a state instruction sent by a state monitoring module is received, determining the trigger state of the current dynamic wallpaper according to the state instruction;
and acquiring the updated dynamic wallpaper corresponding to the trigger state, and playing the updated dynamic wallpaper on the desktop of the user.
In a second aspect, an embodiment of the present invention further provides a device for playing dynamic wallpaper, where the device includes:
the trigger state determining module is used for determining the trigger state of the current dynamic wallpaper according to the state instruction when the state instruction sent by the state monitoring module is received;
and the updating dynamic wallpaper playing module is used for acquiring the updating dynamic wallpaper corresponding to the trigger state and playing the updating dynamic wallpaper on the desktop of the user.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement any of the above-mentioned methods of playing dynamic wallpaper.
In a fourth aspect, the present invention further provides a storage medium containing computer executable instructions, which when executed by a computer processor, are used for executing the playing method of the dynamic wallpaper mentioned above.
According to the embodiment of the invention, the trigger state of the current dynamic wallpaper is determined according to the state instruction, and the dynamic wallpaper is determined to be updated based on the trigger state, so that the problem of single presentation mode of the dynamic wallpaper is solved, the flexibility of the dynamic wallpaper displayed on a desktop is improved, and the user experience is improved.
Drawings
Fig. 1 is a flowchart of a method for playing dynamic wallpaper according to an embodiment of the present invention.
Fig. 2 is a flowchart of a playing method of dynamic wallpaper according to a second embodiment of the present invention.
FIG. 3 is a flowchart of a method for playing dynamic wallpaper according to a third embodiment of the present invention
Fig. 4 is a schematic diagram of a playing apparatus for dynamic wallpaper according to a fourth embodiment of the present invention.
Fig. 5 is a schematic diagram illustrating an example of a system architecture of a playing device for dynamic wallpaper according to a fourth embodiment of the present invention.
Fig. 6 is a schematic structural diagram of an apparatus according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a playing method of dynamic wallpaper according to an embodiment of the present invention, where the embodiment is applicable to a situation where the dynamic wallpaper is played on a desktop of a user, the method may be executed by playing of the dynamic wallpaper, the apparatus may be implemented in a software and/or hardware manner, the apparatus may be configured in a terminal device, and for example, the terminal device may be a mobile terminal, a tablet computer, a desktop computer, a notebook computer, a game console, and the like, which are configured to display a desktop. The method specifically comprises the following steps:
s110, when a state instruction sent by the state monitoring module is received, determining the trigger state of the current dynamic wallpaper according to the state instruction.
Specifically, information interaction may be implemented with the status monitoring module through an Application Programming Interface (API). The operating system may be, for example, a Microsoft Windows, IOS, or android system.
In one embodiment, the status monitoring module is optionally communicatively coupled to a response module in the operating system. The response module includes a module which can respond to the user operation in the operating system, and exemplarily, the response module can be an icon, a desktop plug-in, a folder, a dialog box, a desktop dynamic wallpaper and the like. The state monitoring module monitors the response module, and the obtained user generates the state instruction corresponding to the response module based on the operation instruction input by the response module. The state instruction is specifically related to the operation instruction defined by different response modules, the same operation instruction is input to different response modules, and the generated state instruction may be different. For example, if the user performs a double-click operation on video icon a on the desktop, the status instruction may be to open the video a application. If the user performs a double-click operation on the title bar of the opened text document A, the status instruction may be that the text document A is displayed full screen.
In an embodiment, optionally, the status monitoring module generates the status instruction according to the obtained desktop status information, for example, the desktop status information may be the number, size, position, and the like of preset objects, and the preset objects may be display windows, icons, plug-ins, and the like, where the display windows may be application windows, folder windows, document windows, and the like.
In one embodiment, optionally, the type of status instruction includes an action instruction, an audio instruction, an occlusion instruction, or a de-occlusion instruction. The action instruction comprises a state instruction generated by the state monitoring module according to an operation instruction input by a user based on the current dynamic wallpaper, and the operation instruction can be single click, double click and movement. The audio instruction comprises a state instruction generated by the state monitoring module according to an operation instruction input by a user based on the audio response module, and the audio response module can be an audio file, an audio icon, a video file, a video icon and the like. The shielding execution or shielding release instruction comprises a state instruction generated by the state monitoring module according to the current desktop state information, wherein the desktop state information comprises shielding information of the current dynamic wallpaper.
In one embodiment, optionally, when the type of the status instruction is an occlusion instruction or an occlusion release instruction, determining a non-window area in the user desktop according to a window position and a window size in the status instruction; determining the shielding state of the current dynamic wallpaper according to the non-window area and the response area in the current dynamic wallpaper; wherein the shielding state comprises at least one of a non-shielding position element, a shielding position element and a shielding proportion.
For example, the window position may be a center point position of the window, or an upper left corner position of the window, where the specific setting of the window position is not limited. The window size may be an outline size of the window. Specifically, the window area in the user desktop can be determined according to the window position and the window size, and the non-intersection area of the window area and the desktop area of the user desktop is a non-window area.
The response area in the current dynamic wallpaper can be preset, and the response areas of different dynamic wallpapers can be the same or different. For example, if dynamic wallpaper a and dynamic wallpaper B both contain object a, the response area of dynamic wallpaper a may be location area a to which object a belongs and the response area of dynamic wallpaper B may be location area B to which object a belongs. Here, the position area a and the position area B may be the same or different. Illustratively, the response area of dynamic wallpaper A may also be the left hand of object A, and the response area of dynamic wallpaper B may also be the right hand of object A.
In this embodiment, the occlusion status includes, but is not limited to, an occlusion position element, a non-occlusion position element, and an occlusion scale. Specifically, a non-occlusion region is determined according to an intersection region of the non-window region and the response region, and a non-occlusion position element in the non-occlusion region is determined. And determining an occlusion area according to the non-occlusion area, and determining occlusion position elements in the occlusion area. And determining the proportion of the intersection region in the response region according to the intersection region of the shielding region and the response region to obtain the shielding proportion. Wherein the occlusion position element comprises an element in the response region in which the response object is occluded. Illustratively, the position element includes an element having a positional relationship with the response object, and if the response object is a person, the position element may be a hand, a head, a limb, a hair, an eye, and the like.
In another embodiment, optionally, when the type of the status instruction is an occlusion instruction or an occlusion release instruction, determining a window area in the user desktop according to the window position and the window size in the status instruction; determining the shielding state of the current dynamic wallpaper according to the window area and the response area in the current dynamic wallpaper; the shielding state comprises at least one of a non-shielding position element, a shielding position element and a shielding proportion.
In an embodiment, optionally, when the state instruction is an action instruction, determining a click state of the current dynamic wallpaper according to a click position in the action instruction and a response area in the current dynamic wallpaper; wherein the click status includes a click location element.
In the present embodiment, the click status includes, but is not limited to, a click location element and a click operation type. Specifically, the click position element is determined according to the position relationship between the click position in the action command and the response area. And if the click position is in the response area, determining a position element of the response object in the response area corresponding to the click position, and if the click position is not in the response area, determining that the click state is null. Illustratively, the clicking operation type can be left click, right click, left click double click, right click double click, and so on.
And S120, acquiring the updated dynamic wallpaper corresponding to the trigger state, and playing the updated dynamic wallpaper on the desktop of the user.
In one embodiment, optionally, a mapping list between the trigger state and the updated dynamic wallpaper is established, and the updated dynamic wallpaper is determined according to the mapping list and the trigger state. Specifically, if the trigger state is an occlusion state, a mapping list between at least one state of a non-occlusion position element, an occlusion position element and an occlusion proportion and the updated dynamic wallpaper is established. Illustratively, the dynamic wallpaper is updated to be a sleep type dynamic wallpaper when the occlusion position element includes a head, and the dynamic wallpaper is updated to be a wake type dynamic wallpaper when the non-occlusion position element includes a head. For example, when the occlusion position element includes a head and the occlusion ratio of the head is greater than a preset head occlusion ratio threshold, the dynamic wallpaper is updated to be the dynamic wallpaper of the sleep type. Specifically, if the trigger state is an audio state, the dynamic wallpaper is updated to be a music type dynamic wallpaper, for example, the dynamic wallpaper is an animation effect of a human listening to music.
According to the technical scheme of the embodiment, the trigger state of the current dynamic wallpaper is determined according to the state instruction, and the dynamic wallpaper is determined to be updated based on the trigger state, so that the problem of single presentation mode of the dynamic wallpaper is solved, the flexibility of the dynamic wallpaper displayed on a desktop is improved, and the user experience is improved.
Example two
Fig. 2 is a flowchart of a playing method of dynamic wallpaper according to a second embodiment of the present invention, and the technical solution of the present embodiment is further detailed based on the foregoing embodiment. Optionally, before determining the trigger state of the current dynamic wallpaper according to the state instruction, the method further includes: the method comprises the steps of obtaining at least one playing time period of state slicing wallpaper obtained by dividing initial dynamic wallpaper played on the basis of a user desktop, and taking the state slicing wallpaper corresponding to the playing time period matched with the current time of receiving a state instruction as the current dynamic wallpaper. Correspondingly, the acquiring updated dynamic wallpaper corresponding to the trigger state includes: acquiring state mapping lists among the state slicing wallpapers, at least one preset trigger state corresponding to each state slicing wallpaper and the updated dynamic wallpaper corresponding to each preset trigger state; and determining to update the dynamic wallpaper according to the current dynamic wallpaper, the trigger state of the current dynamic wallpaper and the state mapping list.
The specific implementation steps of this embodiment include:
s210, obtaining the playing time period of at least one state slicing wallpaper obtained by dividing the initial dynamic wallpaper played on the basis of the user desktop.
The initial dynamic wallpaper refers to a complete video animation played on a current user desktop, and at least one state slicing wallpaper contained in the initial dynamic wallpaper is obtained by dividing the initial dynamic wallpaper based on the state of a target object in the initial dynamic wallpaper.
In one embodiment, optionally, the animated content of the state-sliced wallpaper includes at least one state content. For example, assuming that the total duration of the initial dynamic wallpaper is 1min, and the animation content of the initial dynamic wallpaper includes the character object a, 10s of status split wallpapers 1 with the character object a sitting, 20s of status split wallpapers 2 with the character object a standing, and 30s of status split wallpapers 3 with the character object a lying may be divided based on the initial dynamic wallpaper. The wallpaper for separating sitting, standing and lying states can be further divided into wallpaper for separating sitting, standing and lying states. Of course, the initial dynamic wallpaper may also be divided into two state-sliced wallpapers, such as a state-sliced wallpaper with person object a sitting and standing for a duration of 30s and a state-sliced wallpaper with person object a lying for 30s, respectively. In another embodiment, optionally, the animated content of the state-sliced wallpaper further comprises at least one switching content. Taking two states of sitting and standing as an example, the duration of the initial dynamic wallpaper is 30s, and the initial dynamic wallpaper can be divided into 10s of state fragmentation wallpaper 1 in which the character object A sits and 10s of state fragmentation wallpaper 2 in which the character object A stands. In the present embodiment, the initial dynamic wallpaper may be further divided into 8s of status section wallpaper with person object a sitting 1,5s of status section wallpaper with person object a standing from the sitting status 12, and 17s of status section wallpaper with person object a standing 2. In another embodiment, the switching content in the state-sliced wallpaper may also be switching content unrelated to the state content in the front and back state-sliced wallpapers, and for example, the switching content in the state-sliced wallpaper may be an animation of continuous flashing of a 5s light source. The dividing mode of the initial dynamic wallpaper and the partitioned wallpaper of each state can be preset. The switching content in the state slicing wallpaper is specifically determined by the animation content of the initial dynamic wallpaper.
And S220, when the state instruction sent by the state monitoring module is received, taking the state slicing wallpaper corresponding to the playing time period matched with the current time of receiving the state instruction as the current dynamic wallpaper.
Specifically, when a status instruction sent by the status monitoring module is received, the current time is acquired. In one embodiment, optionally, the type of current time includes a system time or a play time corresponding to the initial dynamic wallpaper. Wherein, for example, the system time may be 14 o' clock 2 min 29 sec. Assuming that the total duration of the initial dynamic wallpaper is 1min, the current time is the playing time within 1 min. In the process of circularly playing the initial dynamic wallpaper, the playing time is cleared and is counted again every cycle.
For example, if the current time is the system time, assuming that the initial dynamic wallpaper is played circularly from 00. When a status instruction sent by the status monitoring module is received at 14. If the current time is the playing time corresponding to the initial dynamic wallpaper, when the state instruction sent by the state monitoring module is received in 29s, the playing time period matched with the current time 29s is the state slicing wallpaper A, and the state slicing wallpaper A is the current dynamic wallpaper.
And S230, determining the trigger state of the current dynamic wallpaper according to the state instruction.
S240, obtaining the state mapping list among the wallpaper of each state zone, at least one preset trigger state corresponding to the wallpaper of each state zone and the updated dynamic wallpaper corresponding to each preset trigger state.
Specifically, the state mapping list may be preset. For example, the state segment wallpaper a corresponds to a preset trigger state a and a preset trigger state B, where, for example, the preset trigger state a and the preset trigger state B may be that the head of the response object is blocked and the head of the response object is clicked, respectively. The updated dynamic wallpaper corresponding to the preset trigger state a may be a sleep-type video animation, and the updated dynamic wallpaper corresponding to the preset trigger state B may be a shaking-head-type video animation.
Specifically, the updated dynamic wallpaper is a complete video animation including at least one state slicing wallpaper or a combined video animation composed of at least one state slicing wallpaper.
And S250, determining the updated dynamic wallpaper according to the current dynamic wallpaper, the trigger state of the current dynamic wallpaper and the state mapping list, and playing the updated dynamic wallpaper on the desktop of the user.
Specifically, the current dynamic wallpaper and at least one preset trigger state corresponding to the current dynamic wallpaper are searched in the state mapping list, the trigger state of the current dynamic wallpaper determined according to the state instruction is matched with the preset trigger state, and the updated state wallpaper corresponding to the successfully matched preset trigger state in the state mapping list is determined.
Specifically, no matter whether the updated dynamic wallpaper is the whole video animation or the combined video animation, when the updated dynamic wallpaper is played on the desktop of the user, if the current dynamic wallpaper is not the last state slice wallpaper in the initial dynamic wallpaper, the first frame animation in the updated dynamic wallpaper needs to be linked with the last frame animation (the intermediate frame animation of the initial dynamic wallpaper) of the current dynamic wallpaper, so as to complete the playing of the updated dynamic wallpaper. And if the current dynamic wallpaper is the last state slicing wallpaper in the initial dynamic wallpaper, directly calling the updated dynamic wallpaper for playing after the current dynamic wallpaper is played.
If updating the dynamic wallpaper is relevant only to the trigger state, the update style is monotonous and easily predictable, so that the update interaction between the dynamic wallpaper and the user behavior lacks diversity. According to the technical scheme of the embodiment, the initial dynamic wallpaper is subjected to state fragmentation, the current dynamic wallpaper corresponding to the user operation is obtained, the updated dynamic wallpaper corresponding to the current dynamic wallpaper and the trigger state of the current dynamic wallpaper is determined according to the state mapping list, the updated dynamic wallpaper is not only relevant to the trigger state, but also relevant to the animation content of the current dynamic wallpaper, the problem that the updating mode of the dynamic wallpaper is single is solved, the diversity of the updating mode of the dynamic wallpaper is improved, and therefore the operation behavior of the user is better matched.
EXAMPLE III
Fig. 3 is a flowchart of a playing method of dynamic wallpaper according to a third embodiment of the present invention, and the technical solution of the present embodiment is further detailed based on the foregoing embodiment. Optionally, before determining the trigger state of the current dynamic wallpaper according to the state instruction, the method further includes: and acquiring a playing time period corresponding to at least one state slicing wallpaper played on the desktop of the user, and taking the state slicing wallpaper corresponding to the playing time period matched with the current time of receiving the state instruction as the current dynamic wallpaper.
The specific implementation steps of this embodiment include:
s310, acquiring a playing time period corresponding to at least one state slicing wallpaper played on the desktop of the user.
In this embodiment, the at least one state slice wallpaper played on the user desktop refers to a video animation played on the current user desktop that is a combined video animation obtained by combining the at least one state slice wallpaper, and it can also be understood that each state slice wallpaper is a single video animation and is not included in the initial dynamic wallpaper. In this embodiment, each state segment wallpaper may be preset and saved, and the setting and saving manner may be to save the state segment wallpaper obtained by dividing based on the initial dynamic wallpaper as an independent video animation, or save the state segment wallpaper made by the developer as an independent video animation.
In this embodiment, the playing sequence of at least one status slice wallpaper is preset. For example, when three state segment wallpapers are played on the desktop of the user, assuming that the three state segment wallpapers are respectively state segment wallpaper 1, state segment wallpaper 2 and state segment wallpaper 3, the preset playing sequence may be state segment wallpaper 1, state segment wallpaper 2 and state segment wallpaper 3, or may be state segment wallpaper 2, state segment wallpaper 3 and state segment wallpaper 1. Specifically, the saved state slicing wallpapers are sequentially called according to a preset playing sequence and are sequentially displayed and played on the desktop of the user. The playing sequence of the state-sliced wallpaper is not limited, and specifically, the playing sequence can be specifically determined according to the animation content and the engagement relationship in each state-sliced wallpaper.
And S320, when the state instruction sent by the state monitoring module is received, taking the state slicing wallpaper corresponding to the playing time period matched with the current time of the received state instruction as the current dynamic wallpaper.
And S330, determining the trigger state of the current dynamic wallpaper according to the state instruction.
S340, obtaining each state slicing wallpaper, at least one preset trigger state corresponding to each state slicing wallpaper, and a state mapping list between the updated dynamic wallpaper corresponding to each preset trigger state.
In one embodiment, the updated dynamic wallpaper is a complete video animation comprising at least one state-sliced wallpaper or a combined video animation of at least one state-sliced wallpaper. When the updated dynamic wallpaper is the combined video animation, the updated dynamic wallpaper also comprises the playing sequence among the state slicing wallpapers.
And S350, determining the updated dynamic wallpaper according to the current dynamic wallpaper, the trigger state of the current dynamic wallpaper and the state mapping list, and playing the updated dynamic wallpaper on the desktop of the user.
Specifically, no matter the updated dynamic wallpaper is the whole video animation or the combined video animation, when the updated dynamic wallpaper is played on the desktop of the user, after the current dynamic wallpaper is played, the updated dynamic wallpaper is only required to be directly called to continue playing.
In the embodiment that the state-slicing wallpaper is contained in the initial dynamic wallpaper, when the updated dynamic wallpaper is played, a video connection process of the updated dynamic wallpaper and the last animation of the current dynamic wallpaper in the initial dynamic wallpaper is involved, the process can increase the occupation of system resources and reduce the wallpaper updating efficiency, the requirement on the positioning accuracy of the last animation of the current dynamic wallpaper is high, and the phenomena of unsmooth and unsmooth video playing after connection are easy to occur. According to the technical scheme of the embodiment, the state fragment wallpaper is stored as the independent video animation, and the problems of video connection and positioning of the last frame of animation do not exist in the wallpaper updating process, so that the possible technical defects of the technical scheme can be effectively overcome, and the video updating rate and the smoothness are improved. In addition, according to the embodiment, the playing sequence of each state sliced wallpaper in the dynamic wallpaper is controlled and updated through the preset playing logic sequence of the state sliced wallpaper and/or the trigger state corresponding to the user operation, so that the playing continuity effect of the dynamic wallpaper is ensured, the switching effect of the object elements in the dynamic wallpaper is consistent, and the user experience is improved.
On the basis of the foregoing embodiment, optionally, the trigger state includes a current time ratio between a current time and a playing time period, the state mapping list further includes a time ratio threshold corresponding to each state slicing wallpaper, and the playing of the updated dynamic wallpaper on the user desktop includes: if the current time proportion is larger than or equal to the time proportion threshold value, playing the updated dynamic wallpaper on the desktop of the user after the current dynamic wallpaper is played; and if the current time proportion is smaller than the time proportion threshold value, playing the updated dynamic wallpaper on the desktop of the user after the current time is separated from the current time by preset time.
Specifically, the current time ratio is calculated according to the current time and the playing time period. Illustratively, if the current time is 10s and the playing time period is 0s-49s, the corresponding time duration range of the playing time period is 50s, and the proportion of the current time is 20%. If the current time proportion is larger than or equal to the time proportion threshold value, the current dynamic wallpaper is indicated to be played completely, and if the current time proportion is smaller than the time proportion threshold value, the current dynamic wallpaper is indicated to be played just. For example, the preset time may be 0s, 1s, or 2s.
The method has the advantages that the played dynamic wallpaper can be quickly and flexibly updated in response to user operation, and the continuity of the dynamic wallpaper during updating is improved. Assume that when the status command is received, the arm of the character object in the current dynamic wallpaper is lifted, and the dynamic wallpaper is updated to be that the character object lies down. If the updated dynamic wallpaper is played immediately at the moment, the dynamic wallpaper is easy to switch to a dead board, so that the actions of the object elements in the dynamic wallpaper are not consistent, and the user experience is reduced.
Example four
Fig. 4 is a schematic diagram of a playing apparatus for dynamic wallpaper according to a fourth embodiment of the present invention. The embodiment can be applicable to the situation that the dynamic wallpaper is played on the desktop of the user, the device can be realized in a software and/or hardware mode, and the device can be configured in the terminal equipment. The playing device of the dynamic wallpaper comprises: trigger state determination module 410 and update dynamic wallpaper play module 420.
The trigger state determining module 410 is configured to determine, when a state instruction sent by the state monitoring module is received, a trigger state of the current dynamic wallpaper according to the state instruction;
and the update dynamic wallpaper playing module 420 is configured to obtain the update dynamic wallpaper corresponding to the trigger state, and play the update dynamic wallpaper on the user desktop.
According to the technical scheme of the embodiment, the trigger state of the current dynamic wallpaper is determined according to the state instruction, and the dynamic wallpaper is determined to be updated based on the trigger state, so that the problem that the dynamic wallpaper is single in presentation mode is solved, the flexibility of the dynamic wallpaper displayed on a desktop is improved, and the user experience is improved.
On the basis of the above technical solution, optionally, the type of the status instruction includes an action instruction, an audio instruction, a blocking instruction, or a unblocking instruction.
On the basis of the foregoing technical solution, optionally, the trigger state determining module 410 includes:
the shielding state determining unit is used for determining a non-window area in the user desktop according to the window position and the window size in the state instruction when the type of the state instruction is a shielding instruction or a shielding release instruction; determining the shielding state of the current dynamic wallpaper according to the non-window area and the response area in the current dynamic wallpaper; the shielding state comprises at least one of a non-shielding position element, a shielding position element and a shielding proportion.
On the basis of the foregoing technical solution, optionally, the trigger state determining module 410 includes:
the click state determining unit is used for determining the click state of the current dynamic wallpaper according to the click position in the action instruction and the response area in the current dynamic wallpaper when the state instruction is the action instruction; wherein the click status includes a click location element.
On the basis of the above technical solution, optionally, the apparatus further includes:
and the first current dynamic wallpaper determining module is used for acquiring a playing time period corresponding to at least one state fragmentation wallpaper played on the desktop of the user and taking the state fragmentation wallpaper corresponding to the playing time period matched with the current time of the received state instruction as the current dynamic wallpaper.
On the basis of the above technical solution, optionally, the apparatus further includes:
and the current dynamic wallpaper second determination module is used for acquiring the playing time period of at least one state slicing wallpaper obtained by dividing the initial dynamic wallpaper played on the basis of the desktop of the user, and taking the state slicing wallpaper corresponding to the playing time period matched with the current time of receiving the state instruction as the current dynamic wallpaper.
On the basis of the foregoing technical solution, optionally, the update dynamic wallpaper playing module 420 includes:
the device comprises a state mapping list acquisition unit, a state mapping unit and a control unit, wherein the state mapping list acquisition unit is used for acquiring state slicing wallpapers, at least one preset trigger state corresponding to the state slicing wallpapers and a state mapping list among updated dynamic wallpapers corresponding to the preset trigger states;
and the updating dynamic wallpaper determining unit is used for determining to update the dynamic wallpaper according to the current dynamic wallpaper, the trigger state of the current dynamic wallpaper and the state mapping list.
On the basis of the foregoing technical solution, optionally, the trigger state includes a current time ratio between a current time and a playing time period, the state mapping list further includes a time ratio threshold corresponding to each state slicing wallpaper, and the update dynamic wallpaper playing module 420 is specifically configured to:
if the current time proportion is larger than or equal to the time proportion threshold value, playing the updated dynamic wallpaper on the desktop of the user after the current dynamic wallpaper is played;
and if the current time proportion is smaller than the time proportion threshold value, playing the updated dynamic wallpaper on the desktop of the user after the preset time is separated from the current time.
Fig. 5 is a schematic diagram illustrating an example of a system architecture of a playing device for dynamic wallpaper according to a fourth embodiment of the present invention. As shown in fig. 5, the system architecture includes a client and a server. The wallpaper playing module is used for playing the received dynamic wallpaper sent by the desktop control module, and may be, for example, a browser kernel window. The client may be any type of client, and may be, for example, a game client, a video client, or a wallpaper management client. The configuration background refers to a development platform of a developer and is used for configuring and updating configuration information and resource information of the state machine. The updated content may be transmitted to the client either all directly or separately through a direct transfer server or a content distribution network, respectively. For example, the video data in the resource information may be transmitted to the client through an upload content distribution network, and the state machine configuration information may be transmitted to the client through a direct transmission server. The manner of transmitting the update content to the client is not limited herein.
As shown in fig. 5, the state machine module in the client is configured to store state slicing wallpaper identifiers obtained by pre-dividing the playing time and the playing content of the initial dynamic wallpaper, state slicing wallpaper identifiers preset according to the playing time and the playing content of the state slicing wallpaper, and a playing sequence and a state mapping list between the state slicing wallpapers. Wherein a state slice wallpaper may exist in multiple play orders. Illustratively, the playing sequence a is to sequentially play the state slicing wallpaper 1 and the state slicing wallpaper 2, and the playing sequence B is to sequentially play the state slicing wallpaper 1, the state slicing wallpaper 3, and the state slicing wallpaper 4. In one embodiment, the state monitoring module sends the generated state instruction to a state machine module in the client, the state machine module generates a trigger state according to the received state instruction, and obtains updated dynamic wallpaper from a resource management module in the client after determining to update the dynamic wallpaper according to the trigger state and the state mapping list. Wherein, a large amount of video animation resources are stored in the resource management module. And the state machine module sends the updated dynamic wallpaper to the desktop control module, and the updated dynamic wallpaper is sent to the wallpaper playing module through the desktop control module so as to realize playing of the updated dynamic wallpaper. Specifically, when the updated dynamic wallpaper does not exist in the resource management module in the client, the updated dynamic wallpaper is obtained by accessing the resource management configuration module in the server or the content distribution network through the communication line.
In another embodiment, the state monitoring module sends the generated state instruction to the state machine module, the state machine module sends the state instruction to the state machine configuration module in the server through the communication line, the state machine configuration module in the server generates the trigger state, and the updated dynamic wallpaper is acquired from the resource management configuration module in the server after the dynamic wallpaper is determined to be updated according to the trigger state. Certainly, the state machine module and the resource management module in the client may also be updated based on the state machine configuration module and the resource management configuration module in the server, respectively.
As shown in fig. 5, the status monitoring module and the wallpaper playing module are integrated in the client. The method has the advantages that the configuration process of the state monitoring module and the wallpaper playing module can be completed simultaneously in the development process of the client, so that operation error report caused by incorrect configuration information when the client performs information interaction with the 2 modules is avoided. In another embodiment, optionally, the status monitoring module and/or the video playback module are integrated in another application besides the client. Wherein, the application program is in communication connection with the client. The method has the advantages that the code complexity of client development and the occupation of space resources of the client to the terminal are reduced, and therefore the response rate of the dynamic wallpaper updating is improved. In this embodiment, the application may be located in the same terminal device as the client, or in a different terminal device. Illustratively, the client and the application program are both installed in the same computer, or the client is installed in a computer and the application program is installed in a mobile phone.
The playing device of the dynamic wallpaper provided by the embodiment of the invention can be used for executing the playing method of the dynamic wallpaper provided by the embodiment of the invention, and has corresponding functions and beneficial effects of the executing method.
It should be noted that, in the embodiment of the playing apparatus for dynamic wallpaper, the units and modules included in the embodiment are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
EXAMPLE five
Fig. 6 is a schematic structural diagram of a device according to a fifth embodiment of the present invention, where the fifth embodiment of the present invention provides a service for implementing the method for playing dynamic wallpaper according to the foregoing embodiment of the present invention, and a playing apparatus for dynamic wallpaper according to the foregoing embodiment may be configured. Fig. 6 illustrates a block diagram of an exemplary device 12 suitable for use in implementing embodiments of the present invention. The device 12 shown in fig. 6 is only an example and should not bring any limitations to the functionality and scope of use of the embodiments of the present invention.
As shown in FIG. 6, device 12 is in the form of a general purpose computing device. The components of device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, and commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with device 12, and/or with any devices (e.g., network card, modem, etc.) that enable device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 20. As shown in FIG. 6, the network adapter 20 communicates with the other modules of the device 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, implementing a playing method of dynamic wallpaper provided by an embodiment of the present invention.
Through the equipment, the problem that the dynamic wallpaper presentation mode is single is solved, the flexibility of the dynamic wallpaper displayed on the desktop is improved, and the user experience is improved.
EXAMPLE six
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method for playing dynamic wallpaper, where the method includes:
when a state instruction sent by a state monitoring module is received, determining the trigger state of the current dynamic wallpaper according to the state instruction;
and acquiring the updated dynamic wallpaper corresponding to the trigger state, and playing the updated dynamic wallpaper on the desktop of the user.
Computer storage media for embodiments of the present invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the above method operations, and may also perform related operations in the playing method of dynamic wallpaper provided by any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in some detail by the above embodiments, the invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the invention, and the scope of the invention is determined by the scope of the appended claims.

Claims (9)

1. A playing method of dynamic wallpaper is characterized by comprising the following steps:
when a state instruction sent by a state monitoring module is received, determining the trigger state of the current dynamic wallpaper according to the state instruction;
acquiring updated dynamic wallpaper corresponding to the trigger state, and playing the updated dynamic wallpaper on a user desktop;
determining to update the dynamic wallpaper according to the mapping list and the trigger state by establishing the mapping list between the trigger state and the updated dynamic wallpaper;
the type of the state instruction comprises an action instruction, an audio instruction, a shielding instruction or a shielding removing instruction;
the determining the trigger state of the current dynamic wallpaper according to the state instruction comprises:
when the type of the state instruction is an occlusion instruction or an occlusion release instruction, determining a non-window area in a user desktop according to the window position and the window size in the state instruction;
determining the shielding state of the current dynamic wallpaper according to the non-window area and the response area in the current dynamic wallpaper; wherein the occlusion state comprises at least one of a non-occlusion position element, an occlusion position element, and an occlusion proportion.
2. The method of claim 1, wherein determining the trigger state of the current dynamic wallpaper according to the state instruction comprises:
when the state instruction is an action instruction, determining the click state of the current dynamic wallpaper according to the click position in the action instruction and the response area in the current dynamic wallpaper; wherein the click status comprises a click location element.
3. The method of claim 1, further comprising, prior to determining a trigger state of a current dynamic wallpaper from the state instruction:
and acquiring a playing time period corresponding to at least one state slicing wallpaper played on the desktop of the user, and taking the state slicing wallpaper corresponding to the playing time period matched with the current time of receiving the state instruction as the current dynamic wallpaper.
4. The method of claim 1, further comprising, prior to determining a trigger state of a current dynamic wallpaper from the state instruction:
the method comprises the steps of obtaining at least one playing time period of state slicing wallpaper obtained by dividing initial dynamic wallpaper played on the basis of a user desktop, and taking the state slicing wallpaper corresponding to the playing time period matched with the current time of receiving a state instruction as the current dynamic wallpaper.
5. The method according to claim 3 or 4, wherein the obtaining of the updated dynamic wallpaper corresponding to the trigger state comprises:
acquiring state mapping lists among each state slicing wallpaper, at least one preset trigger state corresponding to each state slicing wallpaper and updated dynamic wallpapers corresponding to each preset trigger state;
and determining to update the dynamic wallpaper according to the current dynamic wallpaper, the trigger state of the current dynamic wallpaper and the state mapping list.
6. The method as claimed in claim 5, wherein the trigger state comprises a current time ratio between a current time and the playing time period, the state mapping list further comprises a time ratio threshold corresponding to each of the state-sliced wallpapers, the playing the updated dynamic wallpaper on a user desktop comprises:
if the current time proportion is larger than or equal to the time proportion threshold value, playing the updated dynamic wallpaper on the desktop of the user after the current dynamic wallpaper is played;
and if the current time proportion is smaller than the time proportion threshold value, playing the updated dynamic wallpaper on the desktop of the user after the current time is separated from the current time by preset time.
7. A device for playing dynamic wallpaper, comprising:
the trigger state determining module is used for determining the trigger state of the current dynamic wallpaper according to the state instruction when the state instruction sent by the state monitoring module is received;
the updating dynamic wallpaper playing module is used for acquiring updating dynamic wallpaper corresponding to the trigger state and playing the updating dynamic wallpaper on a user desktop;
determining the updated dynamic wallpaper according to the mapping list and the trigger state by establishing a mapping list between the trigger state and the updated dynamic wallpaper;
the type of the state instruction comprises an action instruction, an audio instruction, a shielding instruction or a shielding release instruction;
the trigger state determination module includes:
the shielding state determining unit is used for determining a non-window area in the desktop of the user according to the window position and the window size in the state instruction when the type of the state instruction is a shielding instruction or a shielding release instruction; determining the shielding state of the current dynamic wallpaper according to the non-window area and the response area in the current dynamic wallpaper; wherein the shielding state comprises at least one of a non-shielding position element, a shielding position element and a shielding proportion.
8. An electronic device, characterized in that the device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method of playing dynamic wallpaper as recited in any of claims 1-6.
9. A storage medium containing computer-executable instructions for performing the method of playing dynamic wallpaper as recited in any one of claims 1-6 when executed by a computer processor.
CN202010724926.0A 2020-07-24 2020-07-24 Playing method, device, equipment and storage medium of dynamic wallpaper Active CN111880879B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010724926.0A CN111880879B (en) 2020-07-24 2020-07-24 Playing method, device, equipment and storage medium of dynamic wallpaper

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010724926.0A CN111880879B (en) 2020-07-24 2020-07-24 Playing method, device, equipment and storage medium of dynamic wallpaper

Publications (2)

Publication Number Publication Date
CN111880879A CN111880879A (en) 2020-11-03
CN111880879B true CN111880879B (en) 2023-04-07

Family

ID=73201231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010724926.0A Active CN111880879B (en) 2020-07-24 2020-07-24 Playing method, device, equipment and storage medium of dynamic wallpaper

Country Status (1)

Country Link
CN (1) CN111880879B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112433696A (en) * 2020-11-30 2021-03-02 上海米哈游天命科技有限公司 Wallpaper display method, device, equipment and medium
CN112684965A (en) * 2020-12-28 2021-04-20 上海米哈游天命科技有限公司 Dynamic wallpaper state changing method and device, electronic equipment and storage medium
CN114296854B (en) * 2021-12-28 2024-04-26 珠海豹趣科技有限公司 Desktop wallpaper display method and device, electronic equipment and readable storage medium
CN115278338B (en) * 2022-07-28 2023-09-19 广州市百果园信息技术有限公司 Video wallpaper processing method and device, equipment and medium thereof

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567037B (en) * 2010-12-27 2016-08-03 爱国者电子科技(天津)有限公司 Realize the method that the timing of desktop material updates
CN102566866B (en) * 2010-12-27 2016-03-23 爱国者电子科技(天津)有限公司 A kind of dynamic desktop updating system
CN106990962B (en) * 2017-03-29 2021-02-12 北京金山安全软件有限公司 Dynamic screen locking wallpaper switching method and device and terminal
CN109766034B (en) * 2017-11-09 2020-08-11 北京众纳鑫海网络技术有限公司 Method, device and equipment for quickly starting application program and storage medium
CN109308207A (en) * 2018-09-28 2019-02-05 珠海市君天电子科技有限公司 A kind of display methods of dynamic wallpaper, device, electronic equipment and storage medium
CN109960559B (en) * 2019-03-29 2022-05-31 珠海豹好玩科技有限公司 Message window management method of terminal application program and related device

Also Published As

Publication number Publication date
CN111880879A (en) 2020-11-03

Similar Documents

Publication Publication Date Title
CN111880879B (en) Playing method, device, equipment and storage medium of dynamic wallpaper
CN109902255B (en) Page mixed browsing record generation method, device, equipment and storage medium
US20240037060A1 (en) Computing device, virtualization acceleration device, remote control method and storage medium
US11455075B2 (en) Display method when application is exited and terminal
CN112947969B (en) Page off-screen rendering method, device, equipment and readable medium
EP2972830A1 (en) Switching to and from native web applications
CN112214155B (en) View information playing method, device, equipment and storage medium
CN113032083A (en) Data display method, device, electronic equipment and medium
CN111866577A (en) Screen recording method, electronic device and computer readable storage medium
US10394680B2 (en) Techniques for tracking graphics processing resource utilization
US11249771B2 (en) Terminal input invocation
CN110083467B (en) Method and device for processing applet message and computer storage medium
CN112684965A (en) Dynamic wallpaper state changing method and device, electronic equipment and storage medium
CN111381976B (en) Method and device for updating message prompt data, storage medium and computer equipment
US20240176456A1 (en) Interaction method and apparatus, and storage medium
CN114356475B (en) Display processing method, device, equipment and storage medium
CN114510308B (en) Method, device, equipment and medium for storing application page by mobile terminal
CN112367295A (en) Plug-in display method and device, storage medium and electronic equipment
CN113360064A (en) Method and device for searching local area of picture, medium and electronic equipment
CN113760317A (en) Page display method, device, equipment and storage medium
US11966320B1 (en) Techniques for capturing software application session replay data from devices
US11886893B2 (en) Method and device for capturing screen and terminal
WO2021073549A1 (en) Screen rotation picture display method and apparatus, computer device, and storage medium
CN110928622B (en) Picture display state adjusting method and device and electronic equipment
WO2024131550A1 (en) Rendering method and apparatus, and electronic device 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