CN115671712A - Vibration control method, device, equipment and storage medium - Google Patents

Vibration control method, device, equipment and storage medium Download PDF

Info

Publication number
CN115671712A
CN115671712A CN202110854628.8A CN202110854628A CN115671712A CN 115671712 A CN115671712 A CN 115671712A CN 202110854628 A CN202110854628 A CN 202110854628A CN 115671712 A CN115671712 A CN 115671712A
Authority
CN
China
Prior art keywords
vibration
target
time
recovery
service scene
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110854628.8A
Other languages
Chinese (zh)
Other versions
CN115671712B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202110854628.8A priority Critical patent/CN115671712B/en
Priority to PCT/CN2022/106179 priority patent/WO2023005703A1/en
Publication of CN115671712A publication Critical patent/CN115671712A/en
Application granted granted Critical
Publication of CN115671712B publication Critical patent/CN115671712B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/25Output arrangements for video game devices
    • A63F13/28Output arrangements for video game devices responding to control signals received from the game device for affecting ambient conditions, e.g. for vibrating players' seats, activating scent dispensers or affecting temperature or light
    • A63F13/285Generating tactile feedback signals via the game input device, e.g. force feedback
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/45Controlling the progress of the video game
    • A63F13/49Saving the game status; Pausing or ending the game
    • A63F13/493Resuming a game, e.g. after pausing, malfunction or power failure
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/803Driving vehicles or craft, e.g. cars, airplanes, ships, robots or tanks

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a vibration control method, a device, equipment and a storage medium, wherein the method comprises the following steps: when a target service scene presented by a target application comprises a target vibration object needing vibration, informing a terminal of driving a vibration component to vibrate according to a target vibration waveform file of the target vibration object in the target service scene; when a vibration pause event which is caused by the target application and is related to the vibration component exists, recording a target vibration waveform file and current vibration time; when the vibration of the vibration component needs to be recovered, if the service scene presented by the target application is the target service scene, generating vibration recovery time based on the current vibration time, generating a vibration recovery notice according to the vibration recovery time and the recorded target vibration waveform file, and sending the vibration recovery notice to the terminal so that the terminal drives the vibration component to continuously vibrate according to the vibration recovery notice. The vibration component can be flexibly controlled to switch states, and the integrating degree between the vibration effect and the target application is improved.

Description

Vibration control method, device, equipment and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method, an apparatus, a device, and a storage medium for controlling vibration.
Background
At present, when a vibrating object needing to vibrate exists in a service scene (such as a shooting game scene, a driving game scene, a music playing scene and the like) presented by an application; the terminal (such as a smart phone, a tablet computer and the like) can vibrate through the built-in vibration component of the drive, so that the experience of vibration effect is brought to a user. When the existing terminal drives the vibration component to vibrate, a target duration is usually set for the vibration component, and the vibration component is controlled to stop vibrating only when the vibration duration of the vibration component reaches the target duration; therefore, the vibration control mode is simple, so that the vibration effect of the vibration component cannot be perfectly matched with the application, and the user experience is influenced.
Disclosure of Invention
The embodiment of the application provides a vibration control method, a vibration control device, vibration control equipment and a storage medium, which can flexibly control a vibration assembly to switch states and improve the degree of engagement between a vibration effect and a target application.
In one aspect, an embodiment of the present application provides a vibration control method, where the method includes:
when a target service scene presented by a target application comprises a target vibration object needing vibration, informing a terminal of driving a vibration component in the terminal to vibrate according to a target vibration waveform file associated with the target vibration object in the target service scene;
when there is a vibration pause event about the vibration component caused by the target application, recording the target vibration waveform file and the current vibration time; the target vibration waveform file comprises a plurality of vibration attribute values, and the current vibration time refers to: when the vibration pause event exists, the vibration time corresponding to the adopted vibration attribute value in the target vibration waveform file;
when the vibration of the vibration component needs to be recovered, if the service scene presented by the target application is the target service scene, generating recovery vibration time based on the current vibration time;
and generating a vibration recovery notice according to the recovery vibration time and the recorded target vibration waveform file, and sending the vibration recovery notice to the terminal so that the terminal drives the vibration component to continuously vibrate according to the vibration recovery notice.
In another aspect, an embodiment of the present application provides a vibration control method, where the method includes:
when a target service scene presented by a target application comprises a target vibration object needing to be vibrated, driving a vibration component in a terminal to vibrate according to a target vibration waveform file associated with the target vibration object in the target service scene;
when there is a vibration pause event about the vibrating component caused by the target application, controlling the vibrating component to pause vibration; the target vibration waveform file comprises a plurality of vibration attribute values, when the vibration pause event exists, the vibration time corresponding to the adopted vibration attribute value in the target vibration waveform file is the current vibration time, and the current vibration time and the target vibration waveform file are recorded by the target application;
receiving a vibration recovery notification sent by the target application, wherein the vibration recovery notification is generated according to the recovery vibration time and the recorded target vibration waveform file; the vibration recovery time is generated based on the current vibration time when the target application determines that the vibration of the vibration component needs to be recovered and a service scene presented by the target application is the target service scene;
and determining the recovery vibration time and a target vibration waveform file according to the vibration recovery notice, and driving the vibration component to continuously vibrate according to the determined recovery vibration time and the target vibration waveform file.
In another aspect, an embodiment of the present application provides a vibration control method, where the method includes:
when a target service scene presented by a target application comprises a target vibration object needing vibration, driving a vibration component in a terminal to vibrate according to a target vibration waveform file associated with the target vibration object in the target service scene;
when a vibration pause event which is caused by the target application and is about the vibration component exists, recording the target vibration waveform file and the current vibration time; the target vibration waveform file comprises a plurality of vibration attribute values, and the current vibration time refers to: when the vibration pause event exists, the vibration time corresponding to the adopted vibration attribute value in the target vibration waveform file;
when the vibration of the vibration component needs to be recovered, if the service scene presented by the target application is the target service scene, generating recovery vibration time based on the current vibration time;
and driving the vibration component to continuously vibrate according to the recovered vibration time and the recorded target vibration waveform file.
In another aspect, an embodiment of the present application provides a vibration control apparatus, including:
the control unit is used for informing the terminal of driving a vibration component in the terminal to vibrate according to a target vibration waveform file associated with a target vibration object in a target service scene presented by a target application when the target service scene comprises the target vibration object to be vibrated;
the recording unit is used for recording the target vibration waveform file and the current vibration time when a vibration pause event which is caused by the target application and is about the vibration component exists; the target vibration waveform file comprises a plurality of vibration attribute values, and the current vibration time refers to: when the vibration pause event exists, the vibration time corresponding to the adopted vibration attribute value in the target vibration waveform file;
the processing unit is used for generating a vibration recovery time based on the current vibration time if a service scene presented by the target application is the target service scene when the vibration of the vibration component needs to be recovered;
the control unit is further configured to generate a vibration recovery notification according to the vibration recovery time and the recorded target vibration waveform file, and send the vibration recovery notification to the terminal, so that the terminal drives the vibration assembly to continue vibrating according to the vibration recovery notification.
In another aspect, an embodiment of the present application provides a vibration control apparatus, including:
the driving unit is used for driving a vibration component in the terminal to vibrate according to a target vibration waveform file associated with a target vibration object in a target service scene when the target service scene presented by a target application comprises the target vibration object to be vibrated;
the driving unit is used for controlling the vibration component to suspend vibration when a vibration suspension event which is caused by the target application and is related to the vibration component exists; the target vibration waveform file comprises a plurality of vibration attribute values, when the vibration pause event exists, the vibration time corresponding to the adopted vibration attribute value in the target vibration waveform file is the current vibration time, and the current vibration time and the target vibration waveform file are recorded by the target application;
a receiving unit, configured to receive a vibration recovery notification sent by the target application, where the vibration recovery notification is generated according to a recovery vibration time and a recorded target vibration waveform file; the vibration recovery time is generated based on the current vibration time when the target application determines that the vibration of the vibration component needs to be recovered and a service scene presented by the target application is the target service scene;
and the determining unit is further used for determining the vibration recovery time and a target vibration waveform file according to the vibration recovery notification, and driving the vibration component to continuously vibrate according to the determined vibration recovery time and the target vibration waveform file.
In another aspect, an embodiment of the present application provides a vibration control apparatus, including:
the driving unit is used for driving a vibration component in the terminal to vibrate according to a target vibration waveform file associated with a target vibration object in a target service scene when the target service scene presented by a target application comprises the target vibration object to be vibrated;
the recording unit is used for recording the target vibration waveform file and the current vibration time when a vibration pause event which is caused by the target application and is about the vibration component exists; the target vibration waveform file comprises a plurality of vibration attribute values, and the current vibration time refers to: when the vibration pause event exists, the vibration time corresponding to the adopted vibration attribute value in the target vibration waveform file;
the processing unit is used for generating a vibration recovery time based on the current vibration time if a service scene presented by the target application is the target service scene when the vibration of the vibration component needs to be recovered;
and the driving unit is also used for driving the vibration component to continuously vibrate according to the recovered vibration time and the recorded target vibration waveform file.
In another aspect, an embodiment of the present application provides a vibration control apparatus, where the vibration control apparatus includes an input interface and an output interface, and the vibration control apparatus further includes:
a processor adapted to implement one or more instructions; and (c) a second step of,
a computer storage medium storing one or more instructions adapted to be loaded by the processor and to perform the steps of:
when a target service scene presented by a target application comprises a target vibration object needing vibration, informing a terminal of driving a vibration component in the terminal to vibrate according to a target vibration waveform file associated with the target vibration object in the target service scene;
when a vibration pause event which is caused by the target application and is about the vibration component exists, recording the target vibration waveform file and the current vibration time; the target vibration waveform file comprises a plurality of vibration attribute values, and the current vibration time refers to: when the vibration pause event exists, the vibration time corresponding to the adopted vibration attribute value in the target vibration waveform file;
when the vibration of the vibration component needs to be recovered, if the service scene presented by the target application is the target service scene, generating recovery vibration time based on the current vibration time;
and generating a vibration recovery notice according to the recovery vibration time and the recorded target vibration waveform file, and sending the vibration recovery notice to the terminal so that the terminal drives the vibration component to continuously vibrate according to the vibration recovery notice.
Alternatively, the one or more instructions are adapted to be loaded by the processor and to perform the steps of:
when a target service scene presented by a target application comprises a target vibration object needing vibration, driving a vibration component in a terminal to vibrate according to a target vibration waveform file associated with the target vibration object in the target service scene;
when there is a vibration pause event about the vibrating component caused by the target application, controlling the vibrating component to pause vibration; the target vibration waveform file comprises a plurality of vibration attribute values, when the vibration pause event exists, the vibration time corresponding to the adopted vibration attribute value in the target vibration waveform file is the current vibration time, and the current vibration time and the target vibration waveform file are recorded by the target application;
receiving a vibration recovery notification sent by the target application, wherein the vibration recovery notification is generated according to the recovery vibration time and the recorded target vibration waveform file; the vibration recovery time is generated based on the current vibration time when the target application determines that the vibration of the vibration component needs to be recovered and a service scene presented by the target application is the target service scene;
and determining the recovery vibration time and a target vibration waveform file according to the vibration recovery notice, and driving the vibration component to continuously vibrate according to the determined vibration time indication information and the target vibration waveform file.
Alternatively, the one or more instructions are adapted to be loaded by the processor and to perform the steps of:
when a target service scene presented by a target application comprises a target vibration object needing vibration, driving a vibration component in a terminal to vibrate according to a target vibration waveform file associated with the target vibration object in the target service scene;
when a vibration pause event which is caused by the target application and is about the vibration component exists, recording the target vibration waveform file and the current vibration time; the target vibration waveform file comprises a plurality of vibration attribute values, and the current vibration time refers to: when the vibration pause event exists, the vibration time corresponding to the adopted vibration attribute value in the target vibration waveform file;
when the vibration of the vibration component needs to be recovered, if the service scene presented by the target application is the target service scene, generating recovery vibration time based on the current vibration time;
and driving the vibration component to continuously vibrate according to the recovery vibration time and the target vibration waveform file.
In yet another aspect, embodiments of the present application provide a computer storage medium storing one or more instructions adapted to be loaded by a processor and execute the above-mentioned vibration control method.
When a target service scene presented by a target application comprises a target vibration object to be vibrated, the vibration component in the terminal can be driven to vibrate by the terminal in the target service scene according to a target vibration waveform file associated with the target vibration object. When a vibration pause event which is caused by the target application and is related to the vibration component exists, the terminal can be triggered to control the vibration component to pause vibration; when the vibration of the vibration component needs to be recovered in the target application, the vibration component is continuously driven by the terminal to vibrate, so that the playing or pausing based on the target application is realized, the state of the vibration component is changed in real time, seamless switching is realized, the aims of flexibly controlling the pausing and the recovering of the vibration component are fulfilled, and the integrating degree between the vibration effect and the target application is improved. Further, when a vibration pause event exists, the target application can also record a target vibration waveform file and current vibration time, so that when vibration of the vibration component needs to be recovered, if the target application still presents a target service scene, the target application can generate the recovery vibration time based on the recorded current vibration time; and informing the terminal to drive the vibration component to continuously vibrate according to the recovered vibration time and the recorded target vibration waveform file. By recording the current vibration time and generating the recovery vibration time based on the current vibration time, the continuity of vibration pause and continuous playing can be realized to a certain extent, and the user experience is further improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1a is a schematic diagram of a target application presenting a service scenario provided in an embodiment of the present application;
fig. 1b is a schematic diagram of another service scenario presented by a target application according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a vibration control method according to an embodiment of the present application;
fig. 3a is a schematic diagram of recording a current vibration time according to an embodiment of the present application;
FIG. 3b is a schematic diagram of recovering vibration of a vibration component based on a current vibration time according to an embodiment of the present application;
FIG. 4 is a schematic flow chart diagram illustrating a vibration control method according to another embodiment of the present application;
FIG. 5a is a schematic diagram of processing logic of a system vibration interface according to an embodiment of the present application;
FIG. 5b is a schematic diagram of a target application recording a target vibration waveform file and a current vibration time through a vibration controller according to an embodiment of the present application;
FIG. 5c is a schematic diagram of a target application issuing a target vibration waveform file and a current vibration time through a vibration controller according to an embodiment of the present application;
fig. 5d is a schematic flowchart illustrating that a target application interacts with underlying hardware through a system vibration interface to implement vibration control on a vibration component according to the embodiment of the present application;
FIG. 6 is a flow chart illustrating a method for vibration control according to another embodiment of the present application;
fig. 7 is a schematic structural diagram of a vibration control device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a vibration control apparatus according to another embodiment of the present application;
fig. 9 is a schematic structural diagram of a vibration control apparatus according to another embodiment of the present application;
fig. 10 is a schematic structural diagram of a vibration control apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
In the embodiment of the present application, the target application mentioned later may be any application program executed by the device, and the application program may be a computer program for performing one or more specific tasks. Specifically, from the viewpoint of the operation mode of the application program, the target application mentioned later may be any one of the following: cloud applications, APP (client), light applications, web applications, and so on. So-called cloud applications refer to: the method comprises the following steps of installing and running an application program in a cloud server; by APP is meant: an application program installed and running in the terminal; by light applications are meant: a full-function Quick App (fast application) that does not need to be downloaded, i.e., searched for, and that typically runs as a subroutine in other clients; the so-called web application means: supporting an application program that is opened and thus run in a web page displayed by a browser APP. From the application service perspective of the application program, the subsequently mentioned target application may be any one of the following: game applications, instant messaging applications, content sharing applications, audio and video playing applications, and the like. The game application means: an application program for providing game service for the user to support the user to play games; the instant messaging application means: an application program for providing instant communication service for users to support instant information interaction between users; the content sharing application refers to: the method comprises the steps of providing a content sharing service for a user to support the user to share content to the outside and view and comment on shared content of others; the audio and video playing application is as follows: and providing an audio and video playing service for the user to support the user to play the application program of the related audio or video.
Based on the above description, it can be seen that the target application can be a wide variety of applications from the viewpoint of the operation mode of the integrated application and the viewpoint of the application service. For example, if the target application is APP from the viewpoint of the operation mode of the application program, and the target application is a game application from the viewpoint of the application service of the application program; then, the target application may be any general game application, which means a game application installed and run in the terminal. For another example, if from the perspective of the operation mode of the application program, the target application is a cloud application, and from the perspective of the application service of the application program, the target application is a game application; the target application may then be understood to be any cloud gaming application, so-called cloud gaming, i.e. a game running in a cloud gaming server. That is, the cloud game is not run in the user device, but in the game server; the game server can compress and encode game pictures and game audio in the cloud game into a media stream, and then transmit the media stream to the user equipment through the network for image display and audio playing. When a user executes various operations in a game interface, the user equipment can report operation data generated by the operations to the game server, the game server refreshes game pictures of the cloud game in the corresponding cloud game according to the operation data, and the refreshed game pictures are returned to the user equipment for displaying, so that the game of the cloud game is realized. As can be seen, cloud games are based on cloud computing technology, which provides strong graphics processing capability and data computing capability for cloud games; so-called cloud computing is a computing model that distributes computing tasks over a resource pool of large numbers of computers, enabling various application systems to obtain computing power, storage space, and information services as needed.
During the running process of the target application, the target application can present one or more service scenes for a user. For example, when the target application is an instant messaging application, the business scenario presented by the target application may include, but is not limited to: session scenario for instant messaging. For another example, when the target application is an audio/video playing application, the service scenario presented by the target application may include, but is not limited to: searching an audio/video searching scene of certain audio or video, and playing an audio/video playing scene of certain audio or video. For another example, when the target application is a game application, the business scenario presented by the target application may include, but is not limited to: a scene in which a virtual character in a game drives a vehicle (such as an automobile, a ship, and the like), a scene in which a virtual character in a game shoots with a gun, a scene in which a virtual character in a game dances, a scene in which at least two virtual characters in a game play a racing game, and the like. Further, for any service scenario presented by the target application, if the any service scenario includes a vibration object that needs to be vibrated, the any service scenario may be referred to as a vibration scenario of the target application. For example, a scene in which a virtual character in a game drives a vehicle may be referred to as a vibration scene of a target application because the scene includes a vibration object, which is a vehicle that needs to vibrate. For another example, for a scene in which at least two virtual character objects in the game play a racing car race, since at least two virtual characters in the scene collide during the racing car, the racing car driven by the two virtual characters needs to vibrate, that is, the scene includes a vibrating object of the racing car that needs to vibrate, so the scene in which at least two virtual character objects in the game play the racing car race may also be referred to as a vibrating scene of the target application.
It should be noted that, with the difference of the operation mode of the target application, the mode of the target application presenting the service scene is also different. Taking a target application as a game application and a service scene as a scene in which at least two virtual characters in a game race, for example, if the running mode of the target application is a running mode in a terminal, the target application can directly display a game picture of racing the two virtual characters as shown in fig. 1a in a terminal screen of the terminal, so as to present the service scene for a user; if the running mode of the target application is the running mode in the cloud game server, the target application may issue the game pictures of two virtual characters for racing to the connected terminals, so that the connected terminals sequentially display the received game pictures in the terminal screen, thereby presenting the service scene to the user, as shown in fig. 1 b. The terminal referred to herein means: any equipment which supports the hand holding or touching of a user and is internally provided with one or more vibration components; such as smart phones, tablet computers, notebook computers, smart watches, and the like; the vibration component refers to any component with vibration capability, such as a motor, a spring plate, a motor, and the like.
In order to realize that a vibration component in a terminal can be flexibly controlled to vibrate when a target application presents a vibration scene, so that the vibration effect of the vibration component and the target application can be matched, the embodiment of the application provides a vibration control scheme. Specifically, the general principle of the vibration control scheme is as follows: when the target application presents any vibration scene, the target application can inform the terminal to drive at least one built-in vibration component to vibrate according to a specified vibration waveform file (a file comprising vibration attribute values corresponding to a plurality of vibration times). In the vibration process of the vibration component, if a vibration pause event which is caused by the target application and relates to the vibration component exists, the target application can record a vibration waveform file and vibration time which are currently used, so that when the target application needs to recover the vibration of the vibration component, the target application can inform the terminal to drive the vibration component to continue vibrating according to the recorded vibration waveform file and the recorded vibration time, and the purpose of recovering the vibration of the vibration component based on the position of the vibration pause is achieved. Of course, optionally, when the target application needs to recover the vibration of the vibration component, the target application may also only use the recorded vibration waveform file, instead of using the recorded vibration time; in this case, the target application may notify the terminal to drive the vibration component to continue vibrating according to the recorded vibration waveform file and other vibration times (e.g., the start vibration time in the recorded vibration waveform file, etc.). Alternatively, the target application may not use the recorded vibration waveform file and the recorded vibration time; in this case, the target application may notify the terminal to drive the vibration component to continue vibrating in accordance with one or more new vibration waveform files.
Therefore, the following beneficial effects can be realized by the vibration control scheme: (1) the state of the vibration assembly can be changed in real time based on the playing or pausing of the target application, namely the state of the vibration assembly can be seamlessly switched to the paused state from the vibration state and the paused state to the vibration state, the purposes of flexibly controlling the vibration pausing and the vibration recovering of the vibration assembly are achieved, and the integrating degree between the vibration effect and the target application is improved. (2) By recording the vibration waveform file and the vibration time related to the vibration pause event, the vibration component can be supported to resume vibration based on the position of the vibration pause when the vibration of the vibration component needs to be resumed, and the continuity of the vibration pause and the continuous playing is improved, so that the continuity and the integrity of user experience are guaranteed to a certain extent, and more real and complete vibration experience is realized.
Based on the above description, the embodiments of the present application propose a vibration control method, which may be executed by a target application; alternatively, when the target application is a cloud application, the vibration control method may also be executed by a cloud server running the target application. For convenience of explanation, the vibration control method executed by the target application will be described as an example. Referring to fig. 2, the vibration control method may include the following steps S201 to S205:
s201, when a target service scene presented by a target application includes a target vibration object needing vibration, informing the terminal of driving a vibration component in the terminal to vibrate according to a target vibration waveform file associated with the target vibration object in the target service scene.
The target service scenario may also be referred to as a current service scenario, and specifically refers to a service scenario that is presented by the target application most recently, that is, a service scenario whose presentation time is closest to the system time. For example, a targeted application may provide a total of 4 service scenarios, which are: a service scene A, a service scene B, a service scene C and a service scene D. If the target application is presenting the service scene A, determining that the service scene recently presented by the target application is the service scene A, namely the target service scene is the service scene A; if the target application presents the service scene A and presents the service scene B at the moment, determining that the service scene recently presented by the target application is the service scene B, namely the target service scene is the service scene B; if the target application has presented 4 service scenes, namely service scenes A-D, and is re-presenting the service scene A at the moment, it can be determined that the service scene recently presented by the target application is the service scene A, namely the target service scene is the service scene A, and so on.
As can be seen from the foregoing, the target application presents the target service scene to the user by displaying a series of pictures describing the target service scene in the terminal screen; that is, when the target application presents any service scene, the frames related to the service scene are sequentially displayed in the terminal screen. Based on this, the meaning of "the target vibration object to be vibrated is included in the target service scene" mentioned in the embodiment of the present application may be understood as follows: the picture displayed by the terminal screen comprises a target vibration object to be vibrated. Wherein, the target vibration object may refer to: any object to be vibrated. For example, assuming that the target application is a game application and the target service scene is a scene in which two virtual characters presented by the game application race, in a real racing scene, when two vehicles collide or the vehicles run on an uneven road, the vehicles usually vibrate; therefore, the atmosphere for racing in the scene of real racing is created for the user, the game experience of the user is improved, and the vehicle driven by the virtual character can be controlled to vibrate when the vehicle driven by the virtual character collides in the process of racing or is driven on an uneven road. In this case, the target vibration object may be any vehicle that needs to be vibrated.
In the specific implementation process of step S201, if the target service scene presented by the target application includes a target vibration object to be vibrated, the target application may first acquire a target vibration waveform file associated with the target vibration object. Specifically, a target vibration description file associated with a target service scene may be obtained first, where the target vibration description file may include: vibration waveform files associated with each vibration object in the target service scene; then, the target application may obtain a vibration waveform file associated with the target vibration object from the target vibration description file as a target vibration waveform file. After the target application acquires the target vibration waveform file, the target vibration waveform file can be issued to the terminal so as to inform the terminal to drive a vibration component in the terminal to vibrate according to the target vibration waveform file associated with the target vibration object in a target service scene. The target vibration waveform file can comprise a plurality of vibration attribute values corresponding to vibration time; correspondingly, the specific mode that the terminal drives the vibration component to vibrate according to the target vibration waveform file may be: and sequentially adopting the vibration attribute values of all the vibration times to drive the vibration component to vibrate according to the sequence of the vibration times from morning to evening. The vibration property values referred to herein may include at least one of: a value of vibration intensity in the vibration intensity dimension, and a value of vibration frequency in the vibration frequency dimension, and so on. It should be noted that, the vibration attribute values corresponding to any two vibration times in the target waveform file may be the same or different, and are not limited; in addition, the vibration time mentioned in the embodiment of the present application refers to a relative time determined based on a starting point of a vibration waveform, and is not a system time. For example, based on the starting point of the vibration waveform, the target vibration waveform file may include a vibration attribute value for the 0 th second, a vibration attribute value for the 1 st second, and so on; it can be seen that the vibration time involved in the target waveform file has no relation to the system time of the device where the target application is located.
Further, when the target application executes step S201, a heartbeat signal may also be synchronously issued to the terminal; the heartbeat signal is: a signal for instructing the terminal to maintain the vibrating component vibrating. It should be noted that, the embodiment of the present application does not limit the specific form of the heartbeat signal; for example, the heartbeat signal may be a specified value (e.g., "0", "1", etc.); for another example, the heartbeat signal may also be a preset text message (e.g., "please maintain vibration", "continue vibration", and so on), and so on. After the target application issues the heartbeat signal for the first time, the heartbeat signal can be generated according to the target frequency in the process that the terminal drives the vibration component to vibrate according to the target vibration waveform file; the target frequency may be set according to an empirical value or a traffic demand, for example, the target frequency may be: a frequency at which a heartbeat signal is generated every 1 second, or a heartbeat signal is generated every 2 seconds, and so on. The target application can issue the generated heartbeat signal to the terminal after generating the heartbeat signal every time, so that the terminal maintains the vibration of the vibration component based on the heartbeat signal. The meaning of "the terminal maintains the vibration of the vibration component based on the heartbeat signal" referred to herein means: the terminal can drive the vibration component to vibrate constantly according to the target vibration waveform file as long as the terminal receives the heartbeat signal regularly at intervals corresponding to the target frequency; otherwise, the vibration of the vibrating assembly is suspended. For example, the target frequency is a frequency at which a heartbeat signal is generated every 1 second, and the terminal can drive the vibration component to vibrate all the time according to the standard vibration waveform file as long as the terminal regularly receives the heartbeat signal every 1 second; otherwise, the vibration of the vibrating component is suspended.
And S202, when a vibration pause event which is caused by the target application and is about to vibrate the component exists, recording a target vibration waveform file and the current vibration time.
In one specific implementation, the vibration of the vibration component is triggered by the existence of a target vibration object needing to be vibrated in a target business scene, and in actual application, the vibration of the target vibration object may pause the operation. Therefore, according to the embodiment of the application, when the target vibration object is paused, the vibration component in the control terminal pauses vibration, so that the vibration effect of the vibration component is consistent with that of the target vibration object, the vibration of the vibration component is perfectly matched with that of the target application, and real and complete vibration experience is provided for a user. Based on this, the target application may actively send a vibration pause notification to the terminal in response to the vibration pause operation for the target object to notify the terminal to control the vibration component to pause the vibration. Then, in this implementation, the vibration pause event may include: and the target application responds to the vibration pause operation aiming at the target object and sends a vibration pause notification event to the terminal.
Wherein, the vibration pause operation mentioned above may be: any operation that the target vibration object suspends the vibration is triggered. For example, if a user performs a triggering operation (such as a click operation, a press operation, or the like) on a picture pause display component in a terminal screen, a picture related to a target service scene is triggered to be paused in the terminal screen at this time, so that a target vibration object in the picture is triggered to pause vibration; then, the trigger operation for the screen pause component may be regarded as a vibration pause operation for the target vibration object in this case. For another example, if the target application is a game application and the target vibration object is a vehicle driven by a virtual character used by the user, and if the life value of the virtual character used by the user is reduced to 0 through a certain game operation by the user, the virtual character used by the user is triggered to suspend driving the vehicle, so that the vehicle (i.e., the target vibration object) is triggered to suspend vibration; then, the game operation that triggers the virtual character to decrease its life value to 0 in this case may be regarded as a vibration pause operation for the target vibration object. For another example, if the user closes the picture related to the target service scene displayed in the terminal screen, the target vibration object is triggered to pause vibration at this time; then, in this case, the operation of the screen related to the target business scene may be turned off, and regarded as a vibration pause operation for the target vibration object. The specific manner in which the user closes the screen related to the target service scene is not limited here, for example, the user may close the screen related to the target service scene by switching the screen related to the target service scene to the system main interface of the terminal, or may close the screen related to the target service scene by performing a screen-off operation on the terminal.
In another specific implementation, since the target application may periodically send a heartbeat signal to the terminal according to the target frequency, the terminal maintains the vibration of the vibration component based on the heartbeat signal; in actual application, the target application may be abnormally shut down, and in this case, the target application may not generate and send the heartbeat signal to the terminal periodically according to the target frequency, so that the heartbeat signal is lost. Therefore, according to the embodiment of the application, when the heartbeat signal is lost due to abnormal closing of the target application, the vibration component in the control terminal also stops vibrating, so that the vibration effect of the vibration component is consistent with the suspension of the target application, the vibration of the vibration component is perfectly matched with the target application, and real and complete vibration experience is provided for a user. Then, in this implementation, the vibration pause event may include: event of loss of heartbeat signal.
Based on the above description, the vibration pause event may include at least one of: (1) the target application responds to the vibration pause operation aiming at the target object and sends a vibration pause notification event to the terminal; and, (2) event of loss of heartbeat signal. Wherein the (1) vibration pause event is actively triggered by the target application, and the (2) vibration pause event is passively triggered by the target application. When the vibration pause event is present, the target application may record a target vibration waveform file and a current vibration time. As can be seen from the foregoing, the target vibration waveform file includes vibration attribute values corresponding to a plurality of vibration times; accordingly, the current vibration time refers to: and when the vibration pause event exists, the vibration time corresponding to the adopted vibration attribute value in the target vibration waveform file. For example, the terminal initially controls the vibration component to vibrate by adopting the vibration attribute value of the 0 th second in the target vibration waveform file, then controls the vibration component to vibrate by adopting the vibration attribute value of the 1 st second, and controls the vibration component to vibrate by adopting the vibration attribute value of the 2 nd second, and so on; if the terminal controls the vibration component to vibrate by adopting the vibration attribute value of the 30 th second when the vibration pause event exists, the current vibration time can be recorded as the 30 th second, as shown in fig. 3 a.
And S203, when the vibration of the vibration component needs to be recovered, if the service scene presented by the target application is the target service scene, generating the recovery vibration time based on the current vibration time.
In one implementation, if the suspended vibration of the vibration component is triggered due to a loss of the heartbeat signal caused by the target application being abnormally shut down, there may be a case where the target application is restarted in actual use. Therefore, after the target application is restarted, it can be determined again that the vibration of the vibrating component needs to be recovered. In another specific implementation, if the suspended vibration of the vibration component is triggered due to the suspended vibration of the target vibration object in the target service scene, in actual application, there may be a case of a vibration recovery operation for the target vibration object. Therefore, the target application may determine that the vibration of the vibration component needs to be recovered when the vibration recovery operation for the target vibration object is detected. That is to say. The condition in which the vibration of the vibrating component needs to be recovered may include at least one of: the target application is restarted successfully again after being closed abnormally; and detecting a vibration recovery operation for the target vibration object.
Among them, the vibration recovery operation mentioned here may be: any operation of restoring the vibration of the target vibration object is triggered. For example, if a user performs a trigger operation (such as a click operation, a press operation, etc.) on a picture playing component in a terminal screen, at this time, the user may trigger to continue displaying a picture related to a target service scene in the terminal screen, so as to trigger a target vibration object in the picture to continue vibrating; then, the trigger operation for the screen playing component may be regarded as a vibration recovery operation for the target vibration object in this case. For another example, if the target application is a game application and the target vibration object is a vehicle driven by a virtual character used by the user, and if the user increases the life value of the virtual character used by the user to an effective value (e.g., 20, 30, etc.) through a certain life value increasing operation, the virtual character used by the user is triggered to continue driving the vehicle, so that the vehicle (i.e., the target vibration object) is triggered to recover the vibration; then, in this case, the game operation that triggers the increase of the life value of the virtual character from 0 to the valid value may be regarded as the vibration recovery operation for the target vibration object. If the user opens the picture related to the target service scene displayed in the terminal screen again, the target vibration object is triggered to recover the vibration at the moment; then, in this case, the operation of opening the screen related to the target business scenario may be regarded as a vibration pause operation for the target vibration object.
When the target application needs to recover the vibration of the vibration component, if the service scene presented by the target application (i.e., the service scene presented when the vibration of the vibration component needs to be recovered) is the target service scene, the target application may generate the vibration recovery time based on the current vibration time, and continue to execute the subsequent steps S204 to S205. Wherein, the recovery vibration time means: controlling the vibration time for the vibration component to start to recover vibration; based on the current vibration time, a specific manner of generating the recovery vibration time may be any one of the following:
(1) and determining the current vibration time as the recovery vibration time. For example, the current vibration time is 30 th second, and the 30 th second may be determined as the recovery vibration time.
(2) And determining a vibration time earlier than the current vibration time as a recovery vibration time. For example, the start vibration time may be determined as the recovery vibration time. For another example, the vibration time that is earlier than the current vibration time and differs from the current vibration time by a first specified duration may be determined as the recovery vibration time, and the like; the first designated time period may be set according to business requirements or empirical values, and if the first designated time period is 2 seconds and the current vibration time is 30 seconds, the 28 th second may be determined as the recovery vibration time.
(3) A vibration time later than the current vibration time is determined as a recovery vibration time. For example, a vibration time that is later than the current vibration time and differs from the current vibration time by a second specified length of time may be determined as the recovery vibration time; the second designated time period may be set according to the service requirement or an empirical value, for example, if the second designated time period is set to 2 seconds according to the service requirement, and the current vibration time is 30 seconds, the 32 th second may be determined as the recovery vibration time. As another example, consider that the target business scenario presented by the target application may be a real-time scenario; in such a real-time scene, the related pictures change in real time as time passes, and when the user pauses the display of the pictures and plays back the pictures again, the user needs to jump to the real-time latest picture for display. Therefore, in order to ensure the consistency of subsequent vibration effects and pictures, the vibration time which is later than the current vibration time and has a dynamic time difference with the current vibration time can be determined as the recovery vibration time; the dynamic time period is determined according to the time difference between the time when the vibration pause event exists and the time when the vibration of the vibration component needs to be resumed is determined, if the time when the vibration pause event exists is 10 points of the system, 58 minutes and 10 seconds, and the time when the vibration of the vibration component needs to be resumed is determined to be 10 points of the system, 58 minutes and 15 seconds, the time difference between the two times is 5, then the dynamic time period can be determined to be 5 seconds, and if the current vibration time is 30 seconds, then the 35 th second can be determined to be the resumption vibration time.
It should be noted that the above list is only exemplary of several implementation ways for determining the recovery vibration time, and is not exhaustive; for example, in other embodiments, a vibration time may also be preset according to a service requirement or an empirical value, so that when the target application needs to recover the vibration of the vibration component and a service scene presented by the target application is the target service scene, the preset vibration time may be directly determined as the recovery vibration time.
And S204, generating a vibration recovery notice based on the recovery vibration time and the recorded target vibration waveform file.
In one specific implementation, the target vibration waveform file is issued to the terminal in consideration of the target application when performing step S201; therefore, the target application may generate a vibration recovery notification according to the recovery vibration time and the file identification (e.g., file number, file name, etc.) of the recorded target vibration waveform file when executing step S204. That is, in this embodiment, the vibration recovery notification may include: file identification of the target vibration waveform file. Because the data volume of the file identifier is usually much smaller than the data volume of the file, the vibration recovery notification is generated by adopting the embodiment, so that the data volume of the vibration recovery notification can be effectively reduced, resources required by transmission of the vibration recovery notification are saved, the transmission time of the vibration recovery notification is shortened, and the timeliness of the notification is further improved.
Then in this specific implementation, the specific implementation of step S204 may be: firstly, taking the current vibration time as a reference, and calculating the relative time offset between the recovered vibration time and the current vibration time; for example, let the current vibration time be 30 th: if the vibration recovery time is 35 seconds, the relative time offset is 5; if the recovery vibration time is 28 seconds, the relative time offset is-2; if the recovery oscillation time is 30 th second, the relative time shift amount is 0. In addition, the target application may determine a file identification of the recorded target vibration waveform file. The target application may then generate a vibration recovery notification using the relative time offset and the file identification. That is, the vibration recovery notification in this embodiment may include a relative time offset in addition to the file identification. Alternatively, the specific implementation of step S204 may be: and determining the file identifier of the recorded target vibration waveform file, and generating a vibration recovery notice by directly adopting the recovery vibration time and the file identifier. That is, the vibration recovery notification in this embodiment may include the recovery vibration time in addition to the file identification.
In another specific implementation, it is considered that although the target application has issued the target vibration waveform file to the terminal when performing step S201, the terminal may delete the target vibration waveform file after controlling the vibration component to stop vibrating. Therefore, the target application may generate a vibration recovery notification directly from the recovery vibration time and the recorded target vibration waveform file when performing step S204. That is, in this embodiment, the vibration recovery notification may include: a target vibration waveform file. By adopting the embodiment to generate the vibration recovery notification, the target vibration waveform file can be directly issued to the terminal again, so that even if the target vibration waveform file is deleted before, the terminal does not need to waste resources and time to request the target application to issue the target vibration waveform file, and the timeliness of vibration recovery is improved.
Then, in this specific implementation, the specific implementation of step S204 may be: firstly, taking the current vibration time as a reference, and calculating the relative time offset between the recovered vibration time and the current vibration time; the target application may then generate a vibration recovery notification using the relative time offset and the target vibration waveform file. Alternatively, the specific implementation of step S204 may be: and directly adopting the recovery vibration time and the target vibration waveform file to generate a vibration recovery notice.
And S205, sending the vibration recovery notification to the terminal so that the terminal drives the vibration component to continuously vibrate according to the vibration recovery notification.
Specifically, after the vibration recovery notification is generated by the target application in step S204, the vibration recovery notification may be issued to the terminal, so that the terminal may first obtain the recovery vibration time and the target vibration waveform file according to the vibration recovery notification, and then continuously drive the vibration component to continuously vibrate by continuously adopting the vibration attribute values of each vibration time after the recovery vibration time in the target vibration waveform file. If the vibration recovery time is determined by the mode (1), namely the vibration recovery time is equal to the current vibration time, seamless connection between the suspended vibration and the recovered vibration of the vibration assembly can be realized through the embodiment of the application, and the continuity and the integrity of the vibration effect are improved; for example, if the vibration component is suspended at the 30 th second (i.e. the current vibration time is 30 th second), and the vibration recovery time is 30 th second, then it can be realized to control the vibration component to continue vibrating by using the vibration attribute values of the respective vibration times (e.g. 31 th second, 32 th second, etc.) after the 30 th second, so as to realize the vibration component to recover from the 30 th second, as shown in fig. 3 b. If the vibration recovery time is determined by the method (2), namely the vibration recovery time is earlier than the current vibration time, the playback of the vibration effect of the vibration component can be realized by the embodiment of the application; for example, if the vibration component is suspended for the 30 th second and the recovery vibration time is 28 th second, the vibration component can be controlled to continue vibrating by using the vibration attribute values of the vibration time after the 28 th second, so that the vibration component can recover the vibration from the 28 th second, and the vibration effect between the 28 th and 30 th seconds can be played back. If the target vibration is determined by the mode (3), namely the recovery vibration time is later than the current vibration time, the vibration effect of the vibration assembly can be advanced through the method; for example, if the vibration component is suspended for the 30 th second and the vibration recovery time is 35 th second, the vibration component can be controlled to continue vibrating by using the vibration attribute values of the vibration times after the 35 th second, so that the vibration component can recover from the 35 th second, the vibration effect of skipping between 30 th and 35 th seconds is realized, and the progress of the vibration effect is realized.
Optionally, when the vibration of the vibration component needs to be recovered, if the service scene presented by the target application is a new service scene and the new service scene includes one or more vibration objects that need to be vibrated, the target application may obtain a new vibration description file associated with the new service scene, where the new vibration description file includes: and vibration waveform files associated with the vibration objects in the new service scene. And then, issuing the new vibration description file to the terminal, so that the terminal drives the vibration component to vibrate according to each vibration waveform file in the new vibration description file. That is, in this case, the target application may not perform steps S203-S205.
When a target service scene presented by a target application comprises a target vibration object to be vibrated, the vibration component in the terminal can be driven to vibrate by the terminal in the target service scene according to a target vibration waveform file associated with the target vibration object. When a vibration pause event which is caused by the target application and is related to the vibration component exists, the terminal can be triggered to control the vibration component to pause vibration; when the vibration of the vibration component needs to be recovered in the target application, the vibration component is continuously driven by the terminal to vibrate, so that the playing or pausing based on the target application is realized, the state of the vibration component is changed in real time, seamless switching is realized, the aims of flexibly controlling the pausing and the recovering of the vibration component are fulfilled, and the integrating degree between the vibration effect and the target application is improved. Further, when a vibration pause event exists, the target application can also record a target vibration waveform file and current vibration time, so that when vibration of the vibration component needs to be recovered, if the target application still presents a target service scene, the target application can generate the recovery vibration time based on the recorded current vibration time; and informing the terminal to drive the vibration component to continuously vibrate according to the recovered vibration time and the recorded target vibration waveform file. By recording the current vibration time and generating the recovery vibration time based on the current vibration time, the continuity of vibration pause and continuous playing can be realized to a certain extent, and the user experience is further improved.
Fig. 4 is a schematic flowchart of another vibration control method provided in the embodiment of the present application, which can be executed by the above-mentioned terminal. Referring to fig. 4, the vibration control method may include the following steps S401 to S404:
s401, when a target service scene presented by a target application includes a target vibration object needing vibration, driving a vibration component in the terminal to vibrate according to a target vibration waveform file associated with the target vibration object in the target service scene.
In a specific implementation process, a terminal can receive a target vibration waveform file associated with a target vibration object issued by a target application, wherein the target vibration waveform file can comprise vibration attribute values corresponding to a plurality of vibration times; then, the vibration property values of the vibration times can be sequentially adopted to drive the vibration component to vibrate according to the sequence of the vibration times from morning to evening. Optionally, the terminal may further receive a heartbeat signal issued by the target application, where the heartbeat signal is generated by the target application according to the target frequency; after each received heartbeat signal, the vibration of the vibratory assembly may be maintained based on each received heartbeat signal.
And S402, when a vibration pause event which is caused by the target application and is related to the vibration component exists, controlling the vibration component to pause vibration.
In a specific implementation process, if the terminal detects that the heartbeat signal is lost, the terminal can determine that the target application causes a vibration pause event related to the vibration component; or, the terminal may determine that the target application causes a vibration suspension event with respect to the vibration component if the terminal receives a vibration suspension notification sent by the target application. The specific way for the terminal to detect whether the heartbeat signal is lost may be: the terminal can acquire the latest system time in real time and calculate the interval duration between the latest system time and the time of receiving the heartbeat signal last time; if the calculated interval duration is greater than or equal to the interval duration corresponding to the target frequency, the loss of the heartbeat signal can be determined; and if the calculated interval duration is less than the interval duration corresponding to the target frequency, determining that the heartbeat signal is not lost.
For example, if the target frequency is a frequency that generates a heartbeat signal every 2 seconds, the interval duration corresponding to the target frequency is 2 seconds. Further, the latest system time is set to 11 points 02 minutes 36 seconds: if the time of last receiving the heartbeat signal is 11 points 02 minutes 35 seconds, the interval duration between the latest system time and the time of last receiving the heartbeat signal is calculated to be 1 second, and is smaller than the interval duration corresponding to the target frequency, and under the condition, the heartbeat signal can be determined not to be lost. If the time of last heartbeat signal reception is 11 points, 02 minutes and 33 seconds, the interval duration between the latest system time and the last heartbeat signal reception time can be calculated to be 3 seconds, and is greater than the interval duration corresponding to the target frequency, and under the condition, the heartbeat signal can be determined to be lost.
And S403, receiving the vibration recovery notification sent by the target application.
As can be seen from the foregoing, the target vibration waveform file includes a plurality of vibration attribute values, when there is a vibration suspension event, the vibration time corresponding to the vibration attribute value adopted in the target vibration waveform file is the current vibration time, and the current vibration time and the target vibration waveform file may be recorded by the target application, so that when the target application needs to recover the vibration of the vibration component and a service scene presented by the target application is a target service scene, the recovery vibration time may be generated according to the recorded current vibration time, and the vibration recovery notification may be generated based on the recovery vibration time and the recorded target vibration waveform file. Therefore, the vibration recovery notification received by the terminal is generated according to the recovery vibration time and the recorded target vibration waveform file; the vibration recovery time is generated based on the current vibration time when the target application determines that the vibration of the vibration component needs to be recovered and the service scene presented by the target application is the target service scene. Specifically, the vibration recovery notification may include: restoring the relative time offset between the vibration time and the current vibration time; alternatively, the vibration recovery notification may include a recovery vibration time.
S404, determining the vibration recovery time and the target vibration waveform file according to the vibration recovery notification, and driving the vibration component to continuously vibrate according to the determined vibration recovery time and the target vibration waveform file.
In a specific implementation process, if the vibration recovery notification includes: the specific implementation of determining the vibration recovery time according to the vibration recovery notification may be that: firstly, analyzing a relative time offset from a vibration recovery notice; then, based on the relative time offset and the current vibration time, the recovery vibration time is calculated, and the current vibration time can be recorded by the terminal when the vibration pause event is determined to exist. If the vibration recovery notification includes: the specific implementation of determining the vibration recovery time according to the vibration recovery notification may be: the recovery vibration time is parsed from the vibration recovery notification. After the recovery vibration time and the target vibration waveform file are determined by adopting any one of the above embodiments, the terminal may drive the vibration component to continuously vibrate according to the vibration attribute values of each vibration time after the recovery vibration time in the target vibration waveform file.
It should be noted that, steps S403-S404 are executed when it is determined that the vibration of the vibration component needs to be recovered, and the service scene presented by the target application is the target service scene; if the service scene presented by the target application is not the target service scene but a new service scene, the terminal does not receive the vibration recovery notification through step S403, and thus step S404 is not executed. In this case, the terminal may receive a new vibration description file issued by the target application, where the new vibration description file is obtained when the target application determines that the vibration of the vibration component needs to be recovered, a service scene presented by the target application is a new service scene, and the new service scene includes one or more vibration objects that need to be vibrated; the new vibration description file comprises: vibration waveform files of the various vibration objects in the new business scene. Then, the terminal can drive the vibration component to vibrate according to each vibration waveform file in the new vibration description file.
When a target service scene presented by a target application includes a target vibration object to be vibrated, the terminal can drive a vibration component in the terminal to vibrate according to a target vibration waveform file associated with the target vibration object in the target service scene. When a vibration pause event which is caused by the target application and is related to the vibration component exists, the terminal can be triggered to control the vibration component to pause vibration; when the vibration of the vibration assembly needs to be recovered by the target application, the vibration assembly is continuously driven by the terminal to vibrate, so that the playing or pausing based on the target application is realized, the state of the vibration assembly is changed in real time, seamless switching is realized, the purposes of flexibly controlling the pausing and the recovering of the vibration assembly are achieved, and the degree of engagement between the vibration effect and the target application is improved. Further, when a vibration pause event exists, the target application can also record a target vibration waveform file and current vibration time, so that when vibration of the vibration component needs to be recovered, if the target application still presents a target service scene, the target application can generate the recovery vibration time based on the recorded current vibration time; and informing the terminal to drive the vibration component to continuously vibrate according to the recovered vibration time and the recorded target vibration waveform file. By recording the current vibration time and generating the recovery vibration time based on the current vibration time, the continuity of vibration pause and continuous playing can be realized to a certain extent, and the user experience is further improved.
For the embodiments of the vibration control method shown in fig. 2 and 4, the following points are described:
1) In the method embodiments shown in fig. 2 and fig. 4, if the device where the target application is located is not the same device as the terminal, that is, the target application is not running in the terminal, the target application may issue related data (such as a target vibration waveform file, a vibration recovery notification, and the like) to the terminal through the internet. If the device where the target application is located and the terminal are the same device, that is, the target application runs in the terminal, the interaction between the target application and the terminal can be essentially understood as the interaction between the target application and the bottom hardware in the terminal; that is, the target application issues the data to the terminal, which can be essentially understood as the target application issuing the data to the underlying hardware of the terminal. And the target application can specifically issue related data (such as a target vibration waveform file, a vibration recovery notification and the like) to the bottom hardware of the terminal through a system vibration interface in the terminal. Specifically, the system vibration interface may be an interface that integrates a file issuing function, a heartbeat issuing function, and a notification issuing function. Alternatively, the system vibration interface may also include the following three sub-interfaces:
the sub-interface 1: vibrating the playing interface; the interface may simultaneously support the setting of cycles, vibration intensity, vibration frequency, vibration mode, and vibration time indication information. Specifically, the vibration playing interface can be represented by the following codes:
public void start(int loop,int interval,int amplitude,int freq,int patten,int level,int relativeTime){}
the following is a brief explanation of each parameter included in the above-described fields.
/**
* @ param loop is used to set the number of cycles; when the value =1, the vibration of the vibration object is not circulated; when the value is larger than 1, the value is taken to represent the corresponding times of the value of the cyclic vibration of the vibration object; when the value is-1, the vibration object is vibrated in an infinite loop.
* The @ param interval is used for setting a circulation interval, and the value range of the @ param interval can be 0-1000; the cycle interval refers to an interval between two times of vibrating the vibration object according to the target vibration waveform file, and may be in ms (millisecond) or other magnitude units.
* The @ param amplitude is used for setting the vibration intensity value, and the value range of the @ param amplitude can be 1-255; wherein 1 is smallest and 255 is largest; this parameter is used to modify the HE file (vibration waveform file) for overall intensity signal adjustment/reduction.
* The @ paramfreq is used for setting a vibration frequency value, and the value range of the @ paramfreq can be 1-100; wherein 1 is smallest and 100 is largest; this parameter is used as a percentage to modify the HE file and make the overall frequency signal adjustment.
* The @ parampattern is used for setting a vibration mode, the preemption mode is represented if the value is equal to 0, and the superposition mode is represented if the value is equal to 1; this parameter is used to inform the underlying hardware how to superimpose the vibration effects; the superposition mode refers to that different vibration objects can be subjected to fusion vibration, so that the vibration effect caused by the resonance of a plurality of vibration objects in a real physical environment can be simulated; the preemption mode can mean that different vibration objects can not be fused and superposed, and only one vibration object can be selected for vibration according to the vibration priority of each vibration object; for example, a vibration object with the highest vibration priority is selected from a plurality of vibration objects to vibrate.
* The @ param level is used for setting the vibration priority, and the value range of the @ param level is 1-10; wherein, the 10 grades are the highest and are decreased gradually; this parameter is used for priority playback with higher level in the preemption mode.
* The @ relative Time is used for setting vibration Time information, which may specifically be a recovered vibration Time, or a relative Time offset between the recovered vibration Time and a current vibration Time; when the vibration time information is relative time offset, the value of the vibration time information can be negative number, positive number or 0; and when the value is a negative number, the playback of the vibration effect is represented, when the value is a positive number, the vibration is continued when jumping to a specified position after the current vibration time, and when the value is 0, the vibration is continued based on the recorded current vibration time.
/**
The sub-interface 2: a heartbeat issuing interface; the interface can support the sending down of the heartbeat signal. Specifically, the heartbeat issuing interface may be represented by the following code:
public void heardbeat(int beat){}
wherein, the beat is used for setting the interval duration corresponding to the target frequency.
The sub-interface 3: a vibration recovery port; the interface may support the issuing of vibration recovery notifications. Specifically, the vibration recovery interface may be represented by the following code:
public void recover(int relativeTime){}
wherein, the relativeTime is used for setting the vibration time indication information.
It should be noted that the above description is only an exemplary description of the representation of the system vibration interface, and the present invention is not limited thereto. Further, the system vibration interface may add a heartbeat mechanism to detect if there is a loss of heartbeat based on the heartbeat mechanism. If the heartbeat loss does not exist, the vibration component can be maintained to continuously vibrate according to a target vibration waveform file issued by the target application; if there is a loss of heartbeat, the vibrating component is controlled to pause the vibration, as shown in fig. 5 a.
2) In the method embodiments shown in fig. 2 and 4, in order to facilitate the flexible control of the vibration pause and the vibration recovery of the vibration component in the terminal by the target application, a separate vibration controller may be further provided in the target application, so that the target application may implement the vibration control through the vibration controller. Specifically, the vibration controller is essentially a Software Development Kit (SDK); the method is mainly used for automatically recording the vibration waveform file currently used and the current vibration time when the heartbeat signal is lost or the target application actively suspends vibration, as shown in fig. 5 b. That is, when there is a vibration pause event with respect to the vibration component caused by the target application, the target application may record a target vibration waveform file and a current vibration time through the vibration controller. Further, the target application can also vibrate the recovery operation of the component through the interface of the vibration controller; that is, when the target application actively recovers the vibration of the vibration component, the vibration controller may be notified to issue the recorded vibration waveform file and the current vibration time to the bottom hardware of the terminal through the interface of the vibration controller, so that the bottom hardware drives the vibration component to vibrate according to the recorded vibration waveform file and the current vibration time, so as to implement the recorded vibration to continue playing, as shown in fig. 5 c. Optionally, the target application may also issue a new vibration description file to the terminal through the vibration controllers, or issue a recorded vibration waveform file and other vibration time to the terminal, which may specifically refer to the related description of step S203.
With reference to fig. 5d, a specific process of interacting the target application with the bottom layer hardware through the system vibration interface to realize vibration control of the vibration component in the terminal is described below:
firstly, a target application can detect whether a target service scene comprises a target vibration object needing vibration; if yes, determining that the target service scene is a vibration scene; and if not, determining that the target service scene is not the vibration scene. Secondly, after detecting that the target service scene is a vibration scene, the target application can issue a target vibration waveform file associated with a target vibration object to bottom hardware of the terminal through a system vibration interface; and generating a heartbeat signal and sending the generated heartbeat signal to bottom layer hardware through a system vibration interface. Correspondingly, after receiving the heartbeat signal and the target vibration waveform file, the bottom hardware of the terminal can drive the vibration component to vibrate according to the target vibration waveform file in a target service scene.
In the process of driving the vibration component to vibrate according to the target vibration waveform file, if a vibration suspension event aiming at the vibration component exists, the bottom layer hardware can control the vibration component to suspend vibration, and the target application can record the target vibration waveform file used currently and the current vibration time through the vibration controller. When the target application determines that the vibration of the vibrating component needs to be resumed, the target application may notify the vibration controller to determine a resume vibration time, which may be equal to the current vibration time, or earlier than the current vibration time, or later than the current vibration time. Then, the vibration controller can generate a vibration recovery notification based on the recovery vibration time and the recorded target vibration waveform file, and send the vibration recovery notification to the bottom hardware of the terminal, so that the bottom hardware drives the vibration assembly to vibrate according to the recorded target vibration waveform file and the recovery vibration time, and the vibration recovery of the vibration assembly is realized.
To sum up, the embodiment of the application adopts a standardized interface mode, so that the interface layer can unify the support application layer and the system hardware layer, the innovative design of the application layer does not need to worry about the influence of experience difference caused by mismatching with the bottom hardware layer, and the development function of the application layer can be enriched. In addition, the application layer can flexibly control the vibration pause and the recovery of the vibration component; and when the target application is abnormally quitted, the system vibration can also automatically quit, so that the integrating degree between the vibration effect of the vibration assembly and the target application can be effectively improved, and the user experience is improved.
It should be further noted that, in the above embodiments, the target application and the terminal are all described by taking the example of implementing vibration control through interaction; in practical applications, the terminal itself may perform various steps to realize vibration control of the vibration component, that is, operations such as recording a target waveform vibration file and current vibration time performed by the target application may be performed by the terminal. Based on this, the embodiment of the present application further provides a flow chart diagram of the vibration control method shown in fig. 6; referring to fig. 6, the vibration control method may be executed by a terminal, and may specifically include the following steps S601 to S604:
s601, when a target service scene presented by a target application includes a target vibration object needing vibration, driving a vibration component in the terminal to vibrate according to a target vibration waveform file associated with the target vibration object in the target service scene.
And S602, recording a target vibration waveform file and the current vibration time when a vibration pause event which is caused by the target application and is about the vibration component exists.
The target vibration waveform file comprises vibration attribute values corresponding to a plurality of vibration times, and the current vibration time refers to: and when the vibration pause event exists, the vibration time corresponding to the adopted vibration attribute value in the target vibration waveform file. The vibration pause event mentioned in step S602 may be: an event that a vibration pause operation for the target vibration object is detected, or an event that the target application is abnormally exited is detected, and the like.
S603, when the vibration of the vibration component needs to be recovered, if the service scene presented by the target application is the target service scene, generating the recovery vibration time based on the current vibration time.
And S604, driving the vibration assembly to continuously vibrate according to the recovered vibration time and the target vibration waveform file.
Optionally, when the vibration of the vibration component needs to be recovered, if the service scene presented by the target application is a new service scene and the new service scene includes one or more vibration objects that need to be vibrated, the terminal may obtain a new vibration description file associated with the new service scene, and drive the vibration component to vibrate according to each vibration waveform file in the new vibration description file.
When a target service scene presented by a target application includes a target vibration object to be vibrated, the terminal can drive a vibration component in the terminal to vibrate according to a target vibration waveform file associated with the target vibration object in the target service scene. When a vibration pause event which is caused by the target application and is related to the vibration component exists, the terminal can be triggered to control the vibration component to pause vibration; when the vibration of the vibration component needs to be recovered in the target application, the vibration component is continuously driven by the terminal to vibrate, so that the playing or pausing based on the target application is realized, the state of the vibration component is changed in real time, seamless switching is realized, the aims of flexibly controlling the pausing and the recovering of the vibration component are fulfilled, and the integrating degree between the vibration effect and the target application is improved. Further, when a vibration pause event exists, a target vibration waveform file and current vibration time can be recorded, so that when vibration of a vibration component needs to be recovered, if a target application still presents a target service scene, the recovery vibration time can be generated based on the recorded current vibration time; and driving the vibration component to continuously vibrate according to the recovered vibration time and the target vibration waveform file. By recording the current vibration time and generating the recovery vibration time based on the current vibration time, the continuity of vibration pause and continuous playing can be realized to a certain extent, and the user experience is further improved.
Based on the above description of the embodiment of the vibration control method shown in fig. 2, the present application further discloses a vibration control apparatus, which may be a computer program (including program code) running in a target application. The vibration control device may perform the method shown in fig. 2, see fig. 7, and may operate the following units:
a control unit 701, configured to notify a terminal of a target service scene presented by a target application that a target vibration object that needs to be vibrated is included in the target service scene, and drive a vibration component in the terminal to vibrate according to a target vibration waveform file associated with the target vibration object;
a recording unit 702, configured to record the target vibration waveform file and a current vibration time when there is a vibration suspension event about the vibration component caused by the target application; the target vibration waveform file comprises a plurality of vibration attribute values, and the current vibration time refers to: when the vibration pause event exists, the vibration time corresponding to the adopted vibration attribute value in the target vibration waveform file;
a processing unit 703, configured to, when the vibration of the vibration component needs to be recovered, if a service scene presented by the target application is the target service scene, generate a vibration recovery time based on the current vibration time;
the control unit 701 is further configured to generate a vibration recovery notification according to the vibration recovery time and the recorded target vibration waveform file, and send the vibration recovery notification to the terminal, so that the terminal drives the vibration component to continue vibrating according to the vibration recovery notification.
In an embodiment, when the processing unit 703 is configured to generate the vibration recovery notification according to the recovery vibration time and the recorded target vibration waveform file, it may specifically be configured to:
calculating the relative time offset between the recovered vibration time and the current vibration time by taking the current vibration time as a reference;
and determining the file identifier of the recorded target vibration waveform file, and generating a vibration recovery notice by adopting the relative time offset and the file identifier.
In another embodiment, when the processing unit 703 is configured to generate a vibration recovery notification according to the recovery vibration time and the recorded target vibration waveform file, it may specifically be configured to:
determining a file identifier of a recorded target vibration waveform file;
and generating a vibration recovery notice by adopting the vibration recovery time and the file identification.
In another embodiment, when the processing unit 703 is configured to generate the recovery vibration time based on the current vibration time, it may specifically be configured to:
determining the current vibration time as the recovery vibration time of vibration recovery;
or, determining a vibration time earlier than the current vibration time as a recovery vibration time;
or, a vibration time later than the current vibration time is determined as a recovery vibration time.
In another embodiment, the processing unit 703 may be further configured to:
generating a heartbeat signal according to a target frequency in the process that the vibration component is driven by the terminal to vibrate according to the target vibration waveform file;
after the heartbeat signal is generated every time, the generated heartbeat signal is sent to the terminal, so that the terminal maintains the vibration of the vibration component based on the heartbeat signal.
In another embodiment, the vibration pause event comprises at least one of:
the target application responds to the vibration pause operation aiming at the target object and sends a vibration pause notification event to the terminal; and, an event of loss of said heartbeat signal.
In another embodiment, the control unit 701 may further be configured to:
when the vibration of the vibration component needs to be recovered, if a service scene presented by the target application is a new service scene and the new service scene comprises one or more vibration objects needing to be vibrated, acquiring a new vibration description file associated with the new service scene, wherein the new vibration description file comprises: vibration waveform files associated with each vibration object in the new service scene;
and issuing the new vibration description file to the terminal, so that the terminal drives the vibration component to vibrate according to each vibration waveform file in the new vibration description file.
According to another embodiment of the present application, the units in the vibration control device shown in fig. 7 may be respectively or entirely combined into one or several other units to form the vibration control device, or some of the units may be further split into multiple functionally smaller units to form the vibration control device, which may achieve the same operation without affecting the achievement of the technical effects of the embodiments of the present application. The units are divided based on logic functions, and in practical application, the functions of one unit can be realized by a plurality of units, or the functions of a plurality of units can be realized by one unit. In other embodiments of the present application, the vibration-based control device may also include other units, and in practical applications, these functions may also be implemented with the assistance of other units, and may be implemented by cooperation of a plurality of units.
According to another embodiment of the present application, the vibration control apparatus device shown in fig. 7 may be constructed by running a computer program (including program codes) capable of executing the steps involved in the corresponding method shown in fig. 2 on a general-purpose computing device such as a computer including a Central Processing Unit (CPU), a random access storage medium (RAM), a read-only storage medium (ROM), and the like as well as a storage element, and the vibration control method shown in fig. 2 in the embodiment of the present application may be implemented. The computer program may be recorded on a computer-readable recording medium, for example, and loaded and executed in the above-described computing apparatus via the computer-readable recording medium.
When a target service scene presented by a target application comprises a target vibration object to be vibrated, the vibration component in the terminal can be driven to vibrate by the terminal in the target service scene according to a target vibration waveform file associated with the target vibration object. When a vibration pause event which is caused by the target application and is related to the vibration component exists, the terminal can be triggered to control the vibration component to pause vibration; when the vibration of the vibration component needs to be recovered in the target application, the vibration component is continuously driven by the terminal to vibrate, so that the playing or pausing based on the target application is realized, the state of the vibration component is changed in real time, seamless switching is realized, the aims of flexibly controlling the pausing and the recovering of the vibration component are fulfilled, and the integrating degree between the vibration effect and the target application is improved. Further, when a vibration pause event exists, a target vibration waveform file and current vibration time can be recorded, so that when vibration of a vibration component needs to be recovered, if a target application still presents a target service scene, the vibration recovery time can be generated based on the recorded current vibration time; and driving the vibration component to continuously vibrate according to the recovered vibration time and the target vibration waveform file. By recording the current vibration time and generating the recovery vibration time based on the current vibration time, the continuity of vibration pause and continuous playing can be realized to a certain extent, and the user experience is further improved.
Based on the above description of the embodiment of the vibration control method shown in fig. 4, the embodiment of the present application further discloses a vibration control apparatus, which may be a computer program (including program code) running in a terminal. The vibration control apparatus may perform the method shown in fig. 8, referring to fig. 8, the vibration control apparatus may operate as follows:
the driving unit 801 is configured to, when a target service scene presented by a target application includes a target vibration object to be vibrated, drive a vibration component in the terminal to vibrate in the target service scene according to a target vibration waveform file associated with the target vibration object;
the driving unit 801 is configured to control the vibration component to suspend vibration when there is a vibration suspension event about the vibration component caused by the target application; the target vibration waveform file comprises a plurality of vibration attribute values, when the vibration pause event exists, the vibration time corresponding to the adopted vibration attribute value in the target vibration waveform file is the current vibration time, and the current vibration time and the target vibration waveform file are recorded by the target application;
a receiving unit 802, configured to receive a vibration recovery notification sent by the target application, where the vibration recovery notification is generated according to a recovery vibration time and a recorded target vibration waveform file; the vibration recovery time is generated based on the current vibration time when the target application determines that the vibration of the vibration component needs to be recovered and a service scene presented by the target application is the target service scene;
the driving unit 801 is further configured to determine a vibration recovery time and a target vibration waveform file according to the vibration recovery notification, and drive the vibration component to continue vibrating according to the determined vibration recovery time and the target vibration waveform file.
In one embodiment, the vibration recovery notification comprises: a relative time offset between the recovery vibration time and the current vibration time; when the driving unit 801 is configured to determine the vibration recovery time according to the vibration recovery notification, it may specifically be configured to:
resolving the relative time offset from the vibration recovery notification;
and calculating the recovery vibration time based on the relative time offset and the current vibration time.
In another embodiment, the receiving unit 802 may further be configured to: receiving a heartbeat signal issued by the target application, wherein the heartbeat signal is generated by the target application according to a target frequency;
the drive unit 801 may also be used to: maintaining the vibration of the vibratory assembly based on each received heartbeat signal after each received heartbeat signal.
In another embodiment, the driving unit 801 may further be configured to:
determining that the target application caused a vibration pause event with respect to the vibrating component if the loss of heartbeat signal is detected;
or if a vibration pause notification sent by the target application is received, determining that the target application triggers a vibration pause event about the vibration component.
In another embodiment, the driving unit 801 may further be configured to:
receiving a new vibration description file issued by the target application, wherein the new vibration description file is obtained when the target application determines that the vibration of the vibration component needs to be recovered, a service scene presented by the target application is a new service scene, and the new service scene comprises one or more vibration objects needing to be vibrated; the new vibration description file comprises: vibration waveform files of each vibration object in the new service scene;
and driving the vibration component to vibrate according to each vibration waveform file in the new vibration description file.
According to another embodiment of the present application, the units in the vibration control device shown in fig. 8 may be respectively or entirely combined into one or several other units to form the vibration control device, or some of the units may be further split into multiple functionally smaller units to form the vibration control device, which may achieve the same operation without affecting the achievement of the technical effects of the embodiments of the present application. The units are divided based on logic functions, and in practical applications, the functions of one unit can also be implemented by a plurality of units, or the functions of a plurality of units can also be implemented by one unit. In other embodiments of the present application, the vibration-based control device may also include other units, and in practical applications, these functions may also be implemented with the assistance of other units, and may be implemented by cooperation of a plurality of units.
According to another embodiment of the present application, the vibration control apparatus device shown in fig. 8 may be constructed by running a computer program (including program codes) capable of executing the steps involved in the corresponding method shown in fig. 4 on a general-purpose computing device such as a computer including a Central Processing Unit (CPU), a random access storage medium (RAM), a read-only storage medium (ROM), and the like as well as a storage element, and the vibration control method shown in fig. 4 in the embodiment of the present application may be implemented. The computer program may be recorded on a computer-readable recording medium, for example, and loaded and executed in the above-described computing apparatus via the computer-readable recording medium.
When a target service scene presented by a target application includes a target vibration object to be vibrated, the terminal can drive a vibration component in the terminal to vibrate according to a target vibration waveform file associated with the target vibration object in the target service scene. When a vibration pause event which is caused by the target application and is related to the vibration component exists, the terminal can be triggered to control the vibration component to pause vibration; when the vibration of the vibration component needs to be recovered in the target application, the vibration component is continuously driven by the terminal to vibrate, so that the playing or pausing based on the target application is realized, the state of the vibration component is changed in real time, seamless switching is realized, the aims of flexibly controlling the pausing and the recovering of the vibration component are fulfilled, and the integrating degree between the vibration effect and the target application is improved. Further, when a vibration pause event exists, a target vibration waveform file and current vibration time can be recorded, so that when vibration of a vibration component needs to be recovered, if a target application still presents a target service scene, the recovery vibration time can be generated based on the recorded current vibration time; and driving the vibration component to continuously vibrate according to the recovered vibration time and the target vibration waveform file. By recording the current vibration time and generating the recovery vibration time based on the current vibration time, the continuity of vibration pause and continuous playing can be realized to a certain extent, and the user experience is further improved.
Based on the above description of the embodiment of the vibration control method shown in fig. 6, the embodiment of the present application further discloses a vibration control apparatus, which may be a computer program (including program code) running in a terminal. The vibration control device may perform the method shown in fig. 9, and referring to fig. 9, the vibration control device may operate the following units:
a driving unit 901, configured to, when a target service scene presented by a target application includes a target vibration object to be vibrated, drive a vibration component in a terminal to vibrate in the target service scene according to a target vibration waveform file associated with the target vibration object;
a recording unit 902, configured to record the target vibration waveform file and a current vibration time when there is a vibration pause event caused by the target application with respect to the vibration component; the target vibration waveform file comprises a plurality of vibration attribute values, and the current vibration time refers to: when the vibration pause event exists, the vibration time corresponding to the adopted vibration attribute value in the target vibration waveform file;
a processing unit 903, configured to generate a vibration recovery time based on the current vibration time if a service scene presented by the target application is the target service scene when vibration of the vibration component needs to be recovered;
the driving unit 901 is further configured to drive the vibration component to continue vibrating according to the recovered vibration time and the recorded target vibration waveform file.
According to another embodiment of the present application, the units in the vibration control apparatus shown in fig. 9 may be respectively or entirely combined into one or several other units to form the vibration control apparatus, or some unit(s) may be further split into multiple functionally smaller units to form the vibration control apparatus, which may achieve the same operation without affecting the achievement of the technical effects of the embodiments of the present application. The units are divided based on logic functions, and in practical application, the functions of one unit can be realized by a plurality of units, or the functions of a plurality of units can be realized by one unit. In other embodiments of the present application, the vibration-based control device may also include other units, and in practical applications, these functions may also be implemented with the assistance of other units, and may be implemented by cooperation of a plurality of units.
According to another embodiment of the present application, the vibration control apparatus device shown in fig. 9 may be constructed by running a computer program (including program codes) capable of executing the steps involved in the corresponding method shown in fig. 6 on a general-purpose computing device such as a computer including a Central Processing Unit (CPU), a random access storage medium (RAM), a read-only storage medium (ROM), and the like as well as a storage element, and the vibration control method shown in fig. 6 in the embodiment of the present application may be implemented. The computer program may be recorded on a computer-readable recording medium, for example, and loaded and executed in the above-described computing apparatus via the computer-readable recording medium.
When a target service scene presented by a target application includes a target vibration object to be vibrated, the terminal can drive a vibration component in the terminal to vibrate according to a target vibration waveform file associated with the target vibration object in the target service scene. When a vibration pause event which is caused by the target application and is related to the vibration component exists, the terminal can be triggered to control the vibration component to pause vibration; when the vibration of the vibration component needs to be recovered in the target application, the vibration component is continuously driven by the terminal to vibrate, so that the playing or pausing based on the target application is realized, the state of the vibration component is changed in real time, seamless switching is realized, the aims of flexibly controlling the pausing and the recovering of the vibration component are fulfilled, and the integrating degree between the vibration effect and the target application is improved. Further, when a vibration pause event exists, a target vibration waveform file and current vibration time can be recorded, so that when vibration of a vibration component needs to be recovered, if a target application still presents a target service scene, the vibration recovery time can be generated based on the recorded current vibration time; and driving the vibration component to continuously vibrate according to the recovered vibration time and the target vibration waveform file. By recording the current vibration time and generating the recovery vibration time based on the current vibration time, the continuity of vibration pause and continuous playing can be realized to a certain extent, and the user experience is further improved.
Based on the description of the above method embodiment and apparatus embodiment, the present application embodiment further provides a vibration control device, where the vibration control device mentioned herein may be the aforementioned terminal; optionally, when the aforementioned target application is a cloud application, the vibration control device may also be a cloud server running the target application. Referring to fig. 10, the vibration control apparatus includes at least a processor 1001, an input interface 1002, an output interface 1003, and a computer storage medium 1004; and the processor 1001, the input interface 1002, the output interface 1003, and the computer storage medium 1004 in the vibration control apparatus may be connected by a bus or other means. A computer storage medium 1004 may be stored in the memory of the vibration control device, the computer storage medium 1004 is used for storing a computer program, the computer program comprises program instructions, and the processor 1001 (or CPU) is a computing core and a control core of the vibration control device, which is adapted to implement one or more instructions, and is specifically adapted to load and execute one or more instructions to implement a corresponding method flow or a corresponding function.
In an embodiment, if the vibration control device is a cloud server running a target application, the processor 1001 according to the embodiment of the present application may be configured to perform a series of vibration control processes, which specifically includes: when a target service scene presented by a target application comprises a target vibration object needing vibration, informing a terminal of driving a vibration component in the terminal to vibrate according to a target vibration waveform file associated with the target vibration object in the target service scene; when a vibration pause event which is caused by the target application and is about the vibration component exists, recording the target vibration waveform file and the current vibration time; the target vibration waveform file comprises a plurality of vibration attribute values, and the current vibration time refers to: when the vibration pause event exists, the vibration time corresponding to the adopted vibration attribute value in the target vibration waveform file; when the vibration of the vibration component needs to be recovered, if the service scene presented by the target application is the target service scene, generating recovery vibration time based on the current vibration time; and generating a vibration recovery notice according to the recovery vibration time and the recorded target vibration waveform file, and sending the vibration recovery notice to the terminal so that the terminal drives the vibration component to continuously vibrate according to the vibration recovery notice, and the like.
In another embodiment, if the vibration control device is a terminal, the processor 1001 according to the embodiment of the present application may be configured to perform a series of vibration control processes, which specifically includes: when a target service scene presented by a target application comprises a target vibration object needing vibration, driving a vibration component in a terminal to vibrate according to a target vibration waveform file associated with the target vibration object in the target service scene; when there is a vibration pause event about the vibration component caused by the target application, controlling the vibration component to pause vibration; the target vibration waveform file comprises a plurality of vibration attribute values, when the vibration pause event exists, the vibration time corresponding to the adopted vibration attribute value in the target vibration waveform file is the current vibration time, and the current vibration time and the target vibration waveform file are recorded by the target application; receiving a vibration recovery notification sent by the target application, wherein the vibration recovery notification is generated according to the recovery vibration time and the recorded target vibration waveform file; the vibration recovery time is generated based on the current vibration time when the target application determines that the vibration of the vibration component needs to be recovered and a service scene presented by the target application is the target service scene; and determining a recovery vibration time and a target vibration waveform file according to the vibration recovery notice, driving the vibration component to continuously vibrate according to the determined vibration time indication information and the target vibration waveform file, and the like.
In another embodiment, if the vibration control device is a terminal, the processor 1001 according to the embodiment of the present application may be configured to perform a series of vibration control processes, which specifically includes: when a target service scene presented by a target application comprises a target vibration object needing to be vibrated, driving a vibration component in a terminal to vibrate according to a target vibration waveform file associated with the target vibration object in the target service scene; when there is a vibration pause event about the vibration component caused by the target application, recording the target vibration waveform file and the current vibration time; the target vibration waveform file comprises a plurality of vibration attribute values, and the current vibration time refers to: when the vibration pause event exists, the vibration time corresponding to the adopted vibration attribute value in the target vibration waveform file; when the vibration of the vibration component needs to be recovered, if the service scene presented by the target application is the target service scene, generating recovery vibration time based on the current vibration time; and driving the vibration component to continuously vibrate according to the recovery vibration time and the target vibration waveform file, and the like.
An embodiment of the present application also provides a computer storage medium (Memory), which is a Memory device in the vibration control device and is used for storing programs and data. It will be appreciated that the computer storage medium herein may comprise both a built-in storage medium in the vibration control device and, of course, an extended storage medium supported by the vibration control device. The computer storage medium provides a storage space storing an operating system of the vibration control device. Also stored in this memory space are one or more instructions, which may be one or more computer programs (including program code), suitable for loading and execution by processor 1001. The computer storage medium may be a high-speed RAM memory, or may be a non-volatile memory (non-volatile memory), such as at least one disk memory; and optionally at least one computer storage medium located remotely from the processor.
In one embodiment, one or more instructions stored in a computer storage medium may be loaded and executed by processor 1001 to implement the corresponding steps of the method described above with respect to the vibration control method embodiment shown in fig. 2; in particular implementations, one or more instructions in the computer storage medium are loaded by the processor 1001 and perform the following steps:
when a target service scene presented by a target application comprises a target vibration object needing vibration, informing a terminal of driving a vibration component in the terminal to vibrate according to a target vibration waveform file associated with the target vibration object in the target service scene;
when a vibration pause event which is caused by the target application and is about the vibration component exists, recording the target vibration waveform file and the current vibration time; the target vibration waveform file comprises a plurality of vibration attribute values, and the current vibration time refers to: when the vibration pause event exists, the vibration time corresponding to the adopted vibration attribute value in the target vibration waveform file;
when the vibration of the vibration component needs to be recovered, if the service scene presented by the target application is the target service scene, generating recovery vibration time based on the current vibration time;
and generating a vibration recovery notice according to the recovery vibration time and the recorded target vibration waveform file, and sending the vibration recovery notice to the terminal so that the terminal drives the vibration component to continuously vibrate according to the vibration recovery notice.
In one embodiment, when generating a vibration recovery notification from the recovery vibration time and the recorded target vibration waveform file, the one or more instructions are loaded and executed by the processor 1001 to:
calculating the relative time offset between the recovered vibration time and the current vibration time by taking the current vibration time as a reference;
and determining the file identifier of the recorded target vibration waveform file, and generating a vibration recovery notice by adopting the relative time offset and the file identifier.
In another embodiment, when generating a vibration recovery notification from the recovery vibration time and the recorded target vibration waveform file, the one or more instructions are loaded and executed by the processor 1001 to:
determining a file identifier of a recorded target vibration waveform file;
and generating a vibration recovery notice by adopting the vibration recovery time and the file identification.
In another embodiment, when generating the recovery vibration time based on the current vibration time, the one or more instructions are loaded and executed by processor 1001 to:
determining the current vibration time as the recovery vibration time of vibration recovery;
or, determining a vibration time earlier than the current vibration time as a recovery vibration time;
or, a vibration time later than the current vibration time is determined as a recovery vibration time.
In another embodiment, the one or more instructions may also be loaded and executed by processor 1001 to:
generating a heartbeat signal according to a target frequency in the process that the terminal drives the vibration component to vibrate according to the target vibration waveform file;
after the heartbeat signal is generated every time, the generated heartbeat signal is sent to the terminal, so that the terminal maintains the vibration of the vibration component based on the heartbeat signal.
In another embodiment, the vibration pause event comprises at least one of:
the target application responds to the vibration pause operation aiming at the target object and sends a vibration pause notification event to the terminal; and, an event of loss of said heartbeat signal.
In another embodiment, the one or more instructions may also be loaded and executed by processor 1001 to:
when the vibration of the vibration component needs to be recovered, if a service scene presented by the target application is a new service scene and the new service scene comprises one or more vibration objects needing to be vibrated, acquiring a new vibration description file associated with the new service scene, wherein the new vibration description file comprises: vibration waveform files associated with each vibration object in the new service scene;
and issuing the new vibration description file to the terminal, so that the terminal drives the vibration component to vibrate according to each vibration waveform file in the new vibration description file.
In another embodiment, one or more instructions stored in a computer storage medium may be loaded and executed by processor 1001 to perform the corresponding steps of the method described above with respect to the embodiment of the vibration control method shown in FIG. 4; in particular implementations, one or more instructions in the computer storage medium are loaded by the processor 1001 and perform the following steps:
when a target service scene presented by a target application comprises a target vibration object needing vibration, driving a vibration component in a terminal to vibrate according to a target vibration waveform file associated with the target vibration object in the target service scene;
when there is a vibration pause event about the vibrating component caused by the target application, controlling the vibrating component to pause vibration; the target vibration waveform file comprises a plurality of vibration attribute values, when the vibration pause event exists, the vibration time corresponding to the adopted vibration attribute value in the target vibration waveform file is the current vibration time, and the current vibration time and the target vibration waveform file are recorded by the target application;
receiving a vibration recovery notification sent by the target application, wherein the vibration recovery notification is generated according to the recovery vibration time and the recorded target vibration waveform file; the vibration recovery time is generated based on the current vibration time when the target application determines that the vibration of the vibration component needs to be recovered and a service scene presented by the target application is the target service scene;
and determining the recovery vibration time and a target vibration waveform file according to the vibration recovery notice, and driving the vibration component to continuously vibrate according to the determined vibration time indication information and the target vibration waveform file.
In one embodiment, the vibration recovery notification includes: a relative time offset between the recovery vibration time and the current vibration time; upon determining to resume vibration time from the vibration resumption notification, the one or more instructions are loaded and executed by processor 1001 to:
resolving the relative time offset from the vibration recovery notification;
and calculating the recovery vibration time based on the relative time offset and the current vibration time.
In another embodiment, the one or more instructions may also be loaded and executed by processor 1001 to:
receiving a heartbeat signal issued by the target application, wherein the heartbeat signal is generated by the target application according to a target frequency;
maintaining the vibration of the vibratory assembly based on each received heartbeat signal after each received heartbeat signal.
In another embodiment, the one or more instructions may also be loaded and executed by processor 1001 to:
determining that the target application caused a vibration pause event with respect to the vibrating component if the loss of heartbeat signal is detected;
or if a vibration pause notification sent by a target application is received, determining that the target application triggers a vibration pause event about the vibration component.
In another embodiment, the one or more instructions may also be loaded and executed by processor 1001 to:
receiving a new vibration description file issued by the target application, wherein the new vibration description file is obtained when the target application determines that the vibration of the vibration component needs to be recovered, a service scene presented by the target application is a new service scene, and the new service scene comprises one or more vibration objects needing to be vibrated; the new vibration description file comprises: vibration waveform files of each vibration object in the new service scene;
and driving the vibration component to vibrate according to each vibration waveform file in the new vibration description file.
In another embodiment, one or more instructions stored in a computer storage medium may be loaded and executed by processor 1001 to perform the corresponding steps of the method described above with respect to the embodiment of the vibration control method shown in FIG. 6; in particular implementations, one or more instructions in the computer storage medium are loaded by the processor 1001 and perform the following steps:
when a target service scene presented by a target application comprises a target vibration object needing vibration, driving a vibration component in a terminal to vibrate according to a target vibration waveform file associated with the target vibration object in the target service scene;
when a vibration pause event which is caused by the target application and is about the vibration component exists, recording the target vibration waveform file and the current vibration time; the target vibration waveform file comprises a plurality of vibration attribute values, and the current vibration time refers to: when the vibration pause event exists, the vibration time corresponding to the adopted vibration attribute value in the target vibration waveform file;
when the vibration of the vibration component needs to be recovered, if the service scene presented by the target application is the target service scene, generating vibration recovery time based on the current vibration time;
and driving the vibration component to continuously vibrate according to the recovery vibration time and the target vibration waveform file.
When a target service scene presented by a target application includes a target vibration object to be vibrated, the terminal can drive a vibration component in the terminal to vibrate according to a target vibration waveform file associated with the target vibration object in the target service scene. When a vibration pause event which is caused by the target application and is related to the vibration component exists, the terminal can be triggered to control the vibration component to pause vibration; when the vibration of the vibration component needs to be recovered in the target application, the vibration component is continuously driven by the terminal to vibrate, so that the playing or pausing based on the target application is realized, the state of the vibration component is changed in real time, seamless switching is realized, the aims of flexibly controlling the pausing and the recovering of the vibration component are fulfilled, and the integrating degree between the vibration effect and the target application is improved. Further, when a vibration pause event exists, a target vibration waveform file and current vibration time can be recorded, so that when vibration of a vibration component needs to be recovered, if a target application still presents a target service scene, the recovery vibration time can be generated based on the recorded current vibration time; and driving the vibration component to continuously vibrate according to the recovered vibration time and the target vibration waveform file. By recording the current vibration time and generating the recovery vibration time based on the current vibration time, the continuity of vibration pause and continuous playing can be realized to a certain extent, and the user experience is further improved.
It should be noted that according to an aspect of the present application, a computer program product or a computer program is also provided, and the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer readable storage medium. The computer instructions are read by a processor of the computer device from a computer-readable storage medium, and the computer instructions are executed by the processor to cause the computer device to perform the methods provided in the various alternatives in the aspect of the embodiment of the vibration control method illustrated in fig. 2, 4 and 6 described above.
It should be understood that the above disclosure is only for the preferred embodiment of the present application and should not be taken as limiting the scope of the present application, so that the present application can be covered by the claims of the present application.

Claims (18)

1. A vibration control method, comprising:
when a target service scene presented by a target application comprises a target vibration object needing vibration, informing a terminal of driving a vibration component in the terminal to vibrate according to a target vibration waveform file associated with the target vibration object in the target service scene;
when a vibration pause event which is caused by the target application and is about the vibration component exists, recording the target vibration waveform file and the current vibration time; the target vibration waveform file comprises a plurality of vibration attribute values, and the current vibration time refers to: when the vibration pause event exists, the vibration time corresponding to the adopted vibration attribute value in the target vibration waveform file;
when the vibration of the vibration component needs to be recovered, if the service scene presented by the target application is the target service scene, generating recovery vibration time based on the current vibration time;
and generating a vibration recovery notice according to the recovery vibration time and the recorded target vibration waveform file, and sending the vibration recovery notice to the terminal so that the terminal drives the vibration component to continuously vibrate according to the vibration recovery notice.
2. The method of claim 1, wherein generating a vibration recovery notification based on the recovery vibration time and a recorded target vibration waveform file comprises:
calculating the relative time offset between the recovered vibration time and the current vibration time by taking the current vibration time as a reference;
and determining the file identifier of the recorded target vibration waveform file, and generating a vibration recovery notice by adopting the relative time offset and the file identifier.
3. The method of claim 1, wherein generating a vibration recovery notification based on the recovery vibration time and a recorded target vibration waveform file comprises:
determining a file identifier of a recorded target vibration waveform file;
and generating a vibration recovery notice by adopting the vibration recovery time and the file identification.
4. The method of any of claims 1-3, wherein generating a recovery vibration time based on the current vibration time comprises:
determining the current vibration time as a recovery vibration time;
or, determining a vibration time earlier than the current vibration time as a recovery vibration time;
or, determining a vibration time later than the current vibration time as a recovery vibration time.
5. The method of claim 1, wherein the method further comprises:
generating a heartbeat signal according to a target frequency in the process that the terminal drives the vibration component to vibrate according to the target vibration waveform file;
after the heartbeat signal is generated every time, the generated heartbeat signal is sent to the terminal, so that the terminal maintains the vibration of the vibration component based on the heartbeat signal.
6. The method of claim 5, wherein the vibration pause event comprises at least one of:
the target application responds to the vibration pause operation aiming at the target object and sends a vibration pause notification event to the terminal; and, an event of loss of said heartbeat signal.
7. The method of claim 1, wherein the method further comprises:
when the vibration of the vibration component needs to be recovered, if a service scene presented by the target application is a new service scene and the new service scene comprises one or more vibration objects needing to be vibrated, acquiring a new vibration description file associated with the new service scene, wherein the new vibration description file comprises: vibration waveform files associated with each vibration object in the new service scene;
and issuing the new vibration description file to the terminal, so that the terminal drives the vibration component to vibrate according to each vibration waveform file in the new vibration description file.
8. A vibration control method, comprising:
when a target service scene presented by a target application comprises a target vibration object needing vibration, driving a vibration component in a terminal to vibrate according to a target vibration waveform file associated with the target vibration object in the target service scene;
when there is a vibration pause event about the vibrating component caused by the target application, controlling the vibrating component to pause vibration; the target vibration waveform file comprises a plurality of vibration attribute values, and when the vibration pause event exists, the vibration time corresponding to the vibration attribute value adopted in the target vibration waveform file is the current vibration time, and the current vibration time and the target vibration waveform file are recorded by the target application;
receiving a vibration recovery notification sent by the target application, wherein the vibration recovery notification is generated according to the recovery vibration time and the recorded target vibration waveform file; the vibration recovery time is generated based on the current vibration time when the target application determines that the vibration of the vibration component needs to be recovered and a service scene presented by the target application is the target service scene;
and determining the recovery vibration time and a target vibration waveform file according to the vibration recovery notice, and driving the vibration component to continuously vibrate according to the determined recovery vibration time and the target vibration waveform file.
9. The method of claim 8, wherein the vibration recovery notification comprises: a relative time offset between the recovery vibration time and the current vibration time;
the determining a vibration recovery time according to the vibration recovery notification includes:
resolving the relative time offset from the vibration recovery notification;
and calculating the recovery vibration time based on the relative time offset and the current vibration time.
10. The method of claim 8, wherein the method further comprises:
receiving a heartbeat signal issued by the target application, wherein the heartbeat signal is generated by the target application according to a target frequency;
maintaining the vibration of the vibratory assembly based on each received heartbeat signal after each received heartbeat signal.
11. The method of claim 10, wherein the method further comprises:
determining that the target application caused a vibration pause event with respect to the vibrating component if loss of heartbeat signal is detected;
or if a vibration pause notification sent by a target application is received, determining that the target application triggers a vibration pause event about the vibration component.
12. The method of claim 8, wherein the method further comprises:
receiving a new vibration description file issued by the target application, wherein the new vibration description file is obtained when the target application determines that the vibration of the vibration component needs to be recovered, a service scene presented by the target application is a new service scene, and the new service scene comprises one or more vibration objects needing to be vibrated; the new vibration description file comprises: vibration waveform files of each vibration object in the new service scene;
and driving the vibration component to vibrate according to each vibration waveform file in the new vibration description file.
13. A vibration control method, comprising:
when a target service scene presented by a target application comprises a target vibration object needing vibration, driving a vibration component in a terminal to vibrate according to a target vibration waveform file associated with the target vibration object in the target service scene;
when a vibration pause event which is caused by the target application and is about the vibration component exists, recording the target vibration waveform file and the current vibration time; the target vibration waveform file comprises a plurality of vibration attribute values, and the current vibration time refers to: when the vibration pause event exists, the vibration time corresponding to the adopted vibration attribute value in the target vibration waveform file;
when the vibration of the vibration component needs to be recovered, if the service scene presented by the target application is the target service scene, generating recovery vibration time based on the current vibration time;
and driving the vibration component to continuously vibrate according to the recovered vibration time and the recorded target vibration waveform file.
14. A vibration control apparatus, comprising:
the control unit is used for informing the terminal of driving a vibration component in the terminal to vibrate according to a target vibration waveform file associated with a target vibration object in a target service scene presented by a target application when the target service scene comprises the target vibration object to be vibrated;
the recording unit is used for recording the target vibration waveform file and the current vibration time when a vibration pause event which is caused by the target application and is about the vibration component exists; the target vibration waveform file comprises a plurality of vibration attribute values, and the current vibration time refers to: when the vibration pause event exists, the vibration time corresponding to the adopted vibration attribute value in the target vibration waveform file;
the processing unit is used for generating vibration recovery time based on the current vibration time if a service scene presented by the target application is the target service scene when the vibration of the vibration component needs to be recovered;
the control unit is further configured to generate a vibration recovery notification according to the vibration recovery time and the recorded target vibration waveform file, and send the vibration recovery notification to the terminal, so that the terminal drives the vibration assembly to continue vibrating according to the vibration recovery notification.
15. A vibration control apparatus, comprising:
the driving unit is used for driving a vibration component in the terminal to vibrate according to a target vibration waveform file associated with a target vibration object in a target service scene when the target service scene presented by a target application comprises the target vibration object to be vibrated;
the driving unit is used for controlling the vibration component to suspend vibration when a vibration suspension event which is caused by the target application and is about the vibration component exists; the target vibration waveform file comprises a plurality of vibration attribute values, and when the vibration pause event exists, the vibration time corresponding to the vibration attribute value adopted in the target vibration waveform file is the current vibration time, and the current vibration time and the target vibration waveform file are recorded by the target application;
a receiving unit, configured to receive a vibration recovery notification sent by the target application, where the vibration recovery notification is generated according to a recovery vibration time and a recorded target vibration waveform file; the vibration recovery time is based on the current vibration time when the target application determines that the vibration of the vibration component needs to be recovered and a service scene presented by the target application is the target service scene;
and the driving unit is also used for determining the vibration recovery time and a target vibration waveform file according to the vibration recovery notice, and driving the vibration component to continuously vibrate according to the determined vibration recovery time and the target vibration waveform file.
16. A vibration control apparatus, comprising:
the driving unit is used for driving a vibration component in the terminal to vibrate according to a target vibration waveform file associated with a target vibration object in a target service scene when the target service scene presented by a target application comprises the target vibration object to be vibrated;
the recording unit is used for recording the target vibration waveform file and the current vibration time when a vibration pause event which is caused by the target application and is about the vibration component exists; the target vibration waveform file comprises a plurality of vibration attribute values, and the current vibration time refers to: when the vibration pause event exists, the vibration time corresponding to the adopted vibration attribute value in the target vibration waveform file;
the processing unit is used for generating a vibration recovery time based on the current vibration time if a service scene presented by the target application is the target service scene when the vibration of the vibration component needs to be recovered;
and the driving unit is also used for driving the vibration component to continuously vibrate according to the recovered vibration time and the recorded target vibration waveform file.
17. A vibration control apparatus comprising an input interface and an output interface, characterized by further comprising:
a processor adapted to implement one or more instructions; and the number of the first and second groups,
a computer storage medium having one or more instructions stored thereon, the one or more instructions adapted to be loaded by the processor and to perform the vibration control method of any of claims 1-7; alternatively, the one or more instructions are adapted to be loaded by the processor and to perform the vibration control method of any of claims 8-12; alternatively, the one or more instructions are adapted to be loaded by the processor and to perform the vibration control method of claim 13.
18. A computer storage medium having one or more instructions stored thereon, the one or more instructions adapted to be loaded by a processor and to perform a vibration control method according to any one of claims 1-7; alternatively, the one or more instructions are adapted to be loaded by the processor and to perform the vibration control method of any of claims 8-12; alternatively, the one or more instructions are adapted to be loaded by the processor and to perform the vibration control method of claim 13.
CN202110854628.8A 2021-07-27 2021-07-27 Vibration control method, device, equipment and storage medium Active CN115671712B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110854628.8A CN115671712B (en) 2021-07-27 2021-07-27 Vibration control method, device, equipment and storage medium
PCT/CN2022/106179 WO2023005703A1 (en) 2021-07-27 2022-07-18 Vibration control method and apparatus, device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110854628.8A CN115671712B (en) 2021-07-27 2021-07-27 Vibration control method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115671712A true CN115671712A (en) 2023-02-03
CN115671712B CN115671712B (en) 2023-09-22

Family

ID=85059328

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110854628.8A Active CN115671712B (en) 2021-07-27 2021-07-27 Vibration control method, device, equipment and storage medium

Country Status (2)

Country Link
CN (1) CN115671712B (en)
WO (1) WO2023005703A1 (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657814A (en) * 2017-01-17 2017-05-10 维沃移动通信有限公司 Video recording method and mobile terminal
CN109062535A (en) * 2018-07-23 2018-12-21 Oppo广东移动通信有限公司 Sounding control method, device, electronic device and computer-readable medium
US20190215372A1 (en) * 2016-12-22 2019-07-11 Tencent Technology (Shenzhen) Company Limited Scene switching method based on mobile terminal
WO2019220758A1 (en) * 2018-05-14 2019-11-21 株式会社ソニー・インタラクティブエンタテインメント Information processing device
CN110597393A (en) * 2019-09-18 2019-12-20 Oppo(重庆)智能科技有限公司 Motor vibration control method and device and computer readable storage medium
CN111084983A (en) * 2019-11-25 2020-05-01 腾讯科技(深圳)有限公司 Cloud game service method, device, equipment and storage medium
CN111249722A (en) * 2020-01-17 2020-06-09 网易(杭州)网络有限公司 Control method and device of terminal equipment, storage medium and electronic equipment
CN112269895A (en) * 2020-11-06 2021-01-26 Oppo广东移动通信有限公司 Vibration control method and device and computer readable storage medium
IT201900014475A1 (en) * 2019-08-09 2021-02-09 Tor Mec Ambrosi S R L Control system and method for managing sewing machines
CN113018851A (en) * 2021-05-28 2021-06-25 腾讯科技(深圳)有限公司 Game processing method, device, computer equipment and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015028766A (en) * 2013-06-24 2015-02-12 パナソニックIpマネジメント株式会社 Tactile presentation device and tactile presentation method
CN105812567A (en) * 2016-03-29 2016-07-27 努比亚技术有限公司 Mobile terminal control method and device
CN107580247B (en) * 2017-08-30 2021-07-09 瑞声科技(新加坡)有限公司 Vibration playing method and device and electronic equipment
CN109887528A (en) * 2019-02-15 2019-06-14 上海艾为电子技术股份有限公司 Motor is with the method and device of audio frequency vibration, storage medium and electronic equipment
CN110568926B (en) * 2019-08-26 2021-07-30 维沃移动通信有限公司 Sound signal processing method and terminal equipment
CN111552377B (en) * 2020-03-30 2024-05-17 瑞声科技(新加坡)有限公司 Method, device, equipment and storage medium for generating vibration signal
CN111312281B (en) * 2020-05-09 2020-09-08 北京小米移动软件有限公司 Touch vibration implementation method
CN114618153A (en) * 2022-03-15 2022-06-14 网易(杭州)网络有限公司 Method and device for vibration feedback in game and electronic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190215372A1 (en) * 2016-12-22 2019-07-11 Tencent Technology (Shenzhen) Company Limited Scene switching method based on mobile terminal
CN106657814A (en) * 2017-01-17 2017-05-10 维沃移动通信有限公司 Video recording method and mobile terminal
WO2019220758A1 (en) * 2018-05-14 2019-11-21 株式会社ソニー・インタラクティブエンタテインメント Information processing device
CN109062535A (en) * 2018-07-23 2018-12-21 Oppo广东移动通信有限公司 Sounding control method, device, electronic device and computer-readable medium
IT201900014475A1 (en) * 2019-08-09 2021-02-09 Tor Mec Ambrosi S R L Control system and method for managing sewing machines
CN110597393A (en) * 2019-09-18 2019-12-20 Oppo(重庆)智能科技有限公司 Motor vibration control method and device and computer readable storage medium
CN111084983A (en) * 2019-11-25 2020-05-01 腾讯科技(深圳)有限公司 Cloud game service method, device, equipment and storage medium
CN111249722A (en) * 2020-01-17 2020-06-09 网易(杭州)网络有限公司 Control method and device of terminal equipment, storage medium and electronic equipment
CN112269895A (en) * 2020-11-06 2021-01-26 Oppo广东移动通信有限公司 Vibration control method and device and computer readable storage medium
CN113018851A (en) * 2021-05-28 2021-06-25 腾讯科技(深圳)有限公司 Game processing method, device, computer equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
WEI DAI, JIAN YANG: "Vibration transmission and energy flow of impact oscillators with nonlinear motion constraints created by diamond-shaped linkage mechanism", 《INTERNATIONAL JOURNAL OF MECHANICAL SCIENCES》, pages 1 - 17 *
崔亚芹;钟守平;潘安伟;张琦雪;祁忠;: "基于COMTRADE录波的水电机组轴心轨迹动态分析", 水利水电技术, no. 07, pages 125 - 131 *

Also Published As

Publication number Publication date
WO2023005703A9 (en) 2023-03-02
WO2023005703A1 (en) 2023-02-02
CN115671712B (en) 2023-09-22

Similar Documents

Publication Publication Date Title
AU2019233201B2 (en) Resource configuration method and apparatus, terminal, and storage medium
US9454282B2 (en) Sending application input commands over a network
KR101943771B1 (en) Spawning new timelines during game session replay
US20200406139A1 (en) Game execution device and game program
CN108769816B (en) Video playing method, device and storage medium
CN109495427B (en) Multimedia data display method and device, storage medium and computer equipment
JP7419554B2 (en) Surfacing pre-recorded gameplay videos for in-game player assistance
US20230043203A1 (en) Data processing method and apparatus for virtual scene, electronic device, and storage medium
CN113230660A (en) Application program updating method, device and equipment
US20230073381A1 (en) Method and apparatus for processing data
CN113596520A (en) Video playing control method and device and electronic equipment
CN112044078A (en) Access method, device, equipment and storage medium for virtual scene application
CN110267088B (en) Video playing control method and device, electronic equipment and storage medium
CN114042310A (en) Game operation data collection method and device, computer equipment and storage medium
CN115623230A (en) Live video playing method and device, electronic equipment and storage medium
CN115671712B (en) Vibration control method, device, equipment and storage medium
CN107592561B (en) Screen saver display method, device, intelligent remote controller and computer readable storage medium
CN108366271B (en) Multimedia file playing method and device and storage medium
CN115591226B (en) Service processing method, device, equipment and medium
CN115576611B (en) Service processing method, device, computer equipment and storage medium
CN111467797B (en) Game data processing method and device, computer storage medium and electronic equipment
CN110248237B (en) Video playing method, device, equipment and storage medium
CN114339419A (en) Method, device and storage medium for pull processing of video stream
CN117861194A (en) Cloud game-based device control method and device, electronic device and readable medium
US9954718B1 (en) Remote execution of applications over a dispersed network

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40081610

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant