Switching method, intelligent terminal and storage medium
Patent Information
- Application Number
- CN202510074723.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-16
- Publication Date
- 2025-05-16
AI Technical Summary
Existing smart terminals are difficult to switch music through screen operations in scenarios such as user movement, resulting in low convenience.
By obtaining the shaking track of the smart terminal and controlling the music application to switch the next or previous music based on the preset shaking track or direction.
It realizes that music can be switched by simply shaking the smart terminal, improving the convenience of music switching.
Smart Images

Figure CN120010660A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of intelligent terminals, and in particular to a switching method, an intelligent terminal and a storage medium. Background Art
[0002] With the technological development of smart terminals, smart terminals have developed into multifunctional devices. Users can play music through smart terminals, which greatly enriches their daily lives.
[0003] In the process of conceiving and implementing this application, the inventors found that there are at least the following problems: when a user plays music through a smart terminal, he usually needs to open the music playing interface and switch the music by clicking the switch button on the screen. However, in the scene of activities such as sports, it is difficult for the user to control the smart terminal to switch music because he cannot distract his attention to the screen of the smart terminal. Therefore, the existing convenience of switching music through a smart terminal is low.
[0004] The preceding description is intended to provide general background information and does not necessarily constitute prior art. Summary of the invention
[0005] In response to the above technical problems, the present application provides a switching method, a smart terminal and a storage medium, which can improve the convenience of switching music in the smart terminal.
[0006] The present application provides a switching method, comprising:
[0007] S301: Obtaining a shaking trajectory of the first smart terminal;
[0008] S302: According to the shaking trajectory of the first smart terminal, control the music application of the first smart terminal to switch to the next music or the previous music.
[0009] Optionally, the S302 includes:
[0010] If the shaking trajectory of the first smart terminal is a preset first shaking trajectory, controlling the music application of the first smart terminal to switch to the next music;
[0011] If the shaking trajectory of the first smart terminal is the preset second shaking trajectory, the music application of the first smart terminal is controlled to switch to the previous music.
[0012] Optionally, the method further comprises:
[0013] In response to a first shaking trajectory setting instruction, setting the acquired shaking trajectory of the first smart terminal as the first shaking trajectory;
[0014] In response to the second shaking trajectory setting instruction, the acquired shaking trajectory of the first smart terminal is set as the second shaking trajectory.
[0015] Optionally, the S302 includes:
[0016] If the shaking track of the first smart terminal is in a preset first direction, controlling the music application of the first smart terminal to switch to the next music;
[0017] If the direction of the shaking track of the first smart terminal is a preset second direction, the music application of the first smart terminal is controlled to switch to the previous music.
[0018] Optionally, the S302 includes:
[0019] If the shaking speed of the first smart terminal is greater than or equal to a preset first speed threshold, the music application of the first smart terminal is controlled to switch to the next music or the previous music according to the shaking trajectory of the first smart terminal.
[0020] Optionally, the S302 includes:
[0021] If the music application is running in the background and the foreground application of the first smart terminal does not respond to the shaking of the first smart terminal, the music application of the first smart terminal is controlled to switch to the next music or the previous music according to the shaking trajectory of the first smart terminal.
[0022] Optionally, the method further comprises:
[0023] Acquiring a shaking trajectory of a second smart terminal, where the second smart terminal is in communication with the first smart terminal;
[0024] According to the shaking trajectory of the second smart terminal, the music application of the first smart terminal is controlled to switch to the next music or the previous music.
[0025] Optionally, controlling the music application of the first smart terminal to switch to the next music or the previous music according to the shaking trajectory of the second smart terminal includes:
[0026] If the shaking speed of the second smart terminal is greater than or equal to a preset second speed threshold, the first smart terminal is controlled to switch to the next music or the previous music according to the shaking trajectory of the second smart terminal.
[0027] The present application also provides an intelligent terminal, comprising: a memory and a processor, wherein a switching program is stored in the memory, and when the switching program is executed by the processor, the steps of the above method are implemented.
[0028] The present application also provides a storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, the steps of the above method are implemented.
[0029] As described above, the switching method, smart terminal, and storage medium of the present application obtain the shaking trajectory of the first smart terminal and control the music application of the first smart terminal to switch to the next music or the previous music according to the shaking trajectory of the first smart terminal. The switching method of the present application can control the music application to switch to the next music or the previous music by simply shaking the first smart terminal, thereby improving the convenience of switching music through the first smart terminal. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor.
[0031] Figure 1 A schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of the present application;
[0032] Figure 2 A communication network system architecture diagram provided in an embodiment of the present application;
[0033] Figure 3 A schematic diagram of a switching method provided in an embodiment of the present application Figure 1 ;
[0034] Figure 4 A schematic diagram of a switching method provided in an embodiment of the present application Figure 2 ;
[0035] Figure 5 A schematic diagram of a switching method provided in an embodiment of the present application Figure 3 ;
[0036] Figure 6 A schematic diagram of a switching method provided in an embodiment of the present application Figure 4 ;
[0037] Figure 7 A module schematic diagram of a music switching device provided in an embodiment of the present application.
[0038] The realization of the purpose, functional features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. The above-mentioned drawings have shown clear embodiments of this application, which will be described in more detail later. These drawings and textual descriptions are not intended to limit the scope of the concept of this application in any way, but to illustrate the concept of this application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0039] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0040] Optionally, in this document, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined by their explanation in the specific embodiment or further combined with the context in the specific embodiment.
[0041] It should be understood that, although the terms first, second, third, etc. may be used to describe various information in this article, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this article, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination". Furthermore, as used in this article, the singular forms "one", "one" and "the" are intended to also include plural forms, unless there is an opposite indication in the context. It should be further understood that the terms "comprising", "including" indicate the existence of features, steps, operations, elements, components, projects, kinds, and / or groups, but do not exclude the existence, occurrence or addition of one or more other features, steps, operations, elements, components, projects, kinds, and / or groups. The terms "or", "and / or", "including at least one of the following" etc. used in this application can be interpreted as inclusive, or mean any one or any combination. For example, “comprising at least one of the following: A, B, C” means “any of the following: A; B; C; A and B; A and C; B and C; A and B and C”, and for another example, “A, B or C” or “A, B and / or C” means “any of the following: A; B; C; A and B; A and C; B and C; A and B and C”. An exception to this definition will only occur when a combination of elements, functions, steps or operations are inherently mutually exclusive in some manner.
[0042] It should be understood that, although the various steps in the flowchart in the embodiment of the present application are displayed in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and it can be performed in other orders. Moreover, at least a portion of the steps in the figure may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and their execution order is not necessarily performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0043] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0044] It should be noted that in this article, step codes such as S301, S302, etc. are used for the purpose of expressing the corresponding content more clearly and concisely, and do not constitute a substantial limitation on the sequence. When implementing the step, those skilled in the art may execute S302 first and then S301, etc., but these should all be within the scope of protection of this application.
[0045] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0046] In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present application, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.
[0047] The smart terminal may be implemented in various forms. For example, the smart terminal described in this application may include smart terminals such as mobile phones, tablet computers, laptop computers, PDAs, portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.
[0048] The following description will be made by taking a mobile terminal as an example, and those skilled in the art will understand that, in addition to components specifically used for mobile purposes, the construction according to the embodiments of the present application can also be applied to fixed-type terminals.
[0049] See also Figure 1 , which is a schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of the present application, the mobile terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A / V (audio / video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111 and other components. Those skilled in the art can understand that Figure 1 The structure of the mobile terminal shown in the figure does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0050] Combine the following Figure 1 The following is a detailed introduction to the various components of the mobile terminal:
[0051] The radio frequency unit 101 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving the downlink information of the base station, it is sent to the processor 110 for processing; in addition, the uplink data is sent to the base station. Generally, the radio frequency unit 101 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 101 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communications can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution), TDD-LTE (Time Division Duplexing-Long Term Evolution), 5G and 6G, etc.
[0052] WiFi is a short-range wireless transmission technology. Mobile terminals can help users send and receive emails, browse web pages, and access streaming media through WiFi module 102. It provides users with wireless broadband Internet access. Figure 1 The WiFi module 102 is shown, but it is understandable that it is not a necessary component of the mobile terminal and can be omitted as needed without changing the essence of the present application.
[0053] The audio output unit 103 can convert the audio data received by the RF unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output it as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, etc. Moreover, the audio output unit 103 can also provide audio output related to a specific function performed by the mobile terminal 100 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, an earpiece, a buzzer, etc.
[0054] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processor (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 106. The image frame processed by the graphics processor 1041 can be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a telephone call mode, a recording mode, a voice recognition mode, and other operating modes, and can process such sound into audio data. The processed audio (voice) data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 can implement various types of noise elimination (or suppression) algorithms to eliminate (or suppress) noise or interference generated in the process of receiving and sending audio signals.
[0055] The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Optionally, the light sensor includes an ambient light sensor and a proximity sensor. Optionally, the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1061 and / or the backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured on the mobile phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0056] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0057] The user input unit 107 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile terminal. Optionally, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 1071 or near the touch panel 1071 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Optionally, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 110, and can receive and execute the command sent by the processor 110. In addition, the touch panel 1071 can be implemented in at least two types such as resistive, capacitive, infrared and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may further include other input devices 1072. Optionally, the other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, etc., which are not specifically limited here.
[0058] Optionally, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of touch event. Then, the processor 110 provides corresponding visual output on the display panel 1061 according to the type of touch event. Figure 1 In the figure, the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the mobile terminal. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to implement the input and output functions of the mobile terminal, which is not limited here.
[0059] The interface unit 108 serves as an interface through which at least one external device can be connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.
[0060] The memory 109 can be used to store software programs and various data. The memory 109 can mainly include a program storage area and a data storage area. Optionally, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 109 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0061] The processor 110 is the control center of the mobile terminal. It uses various interfaces and lines to connect various parts of the entire mobile terminal. It executes various functions of the mobile terminal and processes data by running or executing software programs and / or modules stored in the memory 109, and calling data stored in the memory 109, so as to monitor the mobile terminal as a whole. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor. Optionally, the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 110.
[0062] The mobile terminal 100 may also include a power supply 111 (such as a battery) for supplying power to various components. Preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system.
[0063] although Figure 1 Not shown, the mobile terminal 100 may further include a Bluetooth module, etc., which will not be described in detail here.
[0064] To facilitate understanding of the embodiments of the present application, the communication network system on which the smart terminal of the present application is based is described below.
[0065] See also Figure 2 , Figure 2 This is a communication network system architecture diagram provided in an embodiment of the present application. The communication network system is an LTE system of universal mobile communication technology. The LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203 and an operator's IP service 204 that are connected in sequence.
[0066] Optionally, UE201 may be the above-mentioned mobile terminal 100, which will not be described in detail here.
[0067] E-UTRAN 202 includes eNodeB 2021 and other eNodeBs 2022 , etc. Optionally, eNodeB 2021 may be connected to other eNodeBs 2022 via a backhaul (eg, an X2 interface), and eNodeB 2021 is connected to EPC 203 , and eNodeB 2021 may provide UE 201 with access to EPC 203 .
[0068] EPC203 may include MME (Mobility Management Entity) 2031, HSS (Home Subscriber Server) 2032, other MMEs 2033, SGW (Serving Gate Way) 2034, PGW (PDN Gate Way) 2035 and PCRF (Policy and Charging Rules Function) 2036, etc. Optionally, MME 2031 is a control node that processes signaling between UE 201 and EPC 203, and provides bearer and connection management. HSS 2032 is used to provide some registers to manage functions such as home location register (not shown in the figure), and store some user-specific information such as service features and data rates. All user data can be sent through SGW2034, PGW2035 can provide IP address allocation and other functions for UE 201, PCRF2036 is the parameter and charging control parameter decision point for service data flow and IP bearer resources, and it selects and provides available parameters and charging control decisions for the parameter and charging execution function unit (not shown in the figure).
[0069] The IP service 204 may include the Internet, an intranet, an IMS (IP Multimedia Subsystem) or other IP services.
[0070] Although the above introduction takes the LTE system as an example, those skilled in the art should know that the present application is not only applicable to the LTE system, but also to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, 5G and future new network systems (such as 6G), etc., without limitation here.
[0071] Based on the above-mentioned mobile terminal hardware structure and communication network system, various embodiments of the present application are proposed.
[0072] In the prior art, when a user plays music through a smart terminal, he usually needs to open a music playing interface and switch music by clicking a switch button on the screen. The convenience of switching music through the smart terminal is low.
[0073] In view of this, the present application provides a switching method, which controls the music application of the smart terminal to switch to the next music or the previous music by distinguishing the shaking trajectory of the smart terminal. The switching method of the present application can control the music application to switch to the next music or the previous music by simply shaking the smart terminal, thereby improving the convenience of switching music through the smart terminal.
[0074] It should be understood that the switching method of the embodiment of the present application can be used in any smart terminal. The execution subject of the embodiment of the present application can be a processing unit of a smart terminal, or a smart terminal that implements the switching method. The following is an example of a smart terminal that implements the switching method.
[0075] Reference Figure 3 , Figure 3 A schematic diagram of a switching method provided in an embodiment of the present application Figure 1 .
[0076] like Figure 3 As shown, the switching method in the embodiment of the present application includes:
[0077] S301: Obtain a shaking trajectory of the first smart terminal.
[0078] The first intelligent terminal is a device with computing capability and network connection function, usually including a smart phone, a tablet computer, etc.
[0079] The shaking trajectory is the path of the smart terminal being shaken in space, and can represent different ways in which the smart terminal is shaken.
[0080] The shaking trajectory of the first smart terminal can be obtained, optionally, through the measurement data of the acceleration sensor and the gyroscope of the first smart terminal. The acceleration sensor can measure the acceleration of the first smart terminal moving in various directions, and the gyroscope can measure the tilt direction and angular velocity of the first smart terminal. For example, the measurement data of the acceleration sensor and the gyroscope of the first smart terminal are obtained, and the measurement data of the acceleration sensor and the gyroscope are gravity separated, and the shaking trajectory of the first smart terminal is obtained based on the relevant data processing method and the motion trajectory algorithm.
[0081] Optionally, the measurement data of the accelerometer, gyroscope and magnetometer of the first smart terminal can also be obtained. The magnetometer can determine the shaking direction of the first smart terminal by measuring the direction and strength of the geomagnetic field. Combined with the measurement data of the accelerometer, gyroscope and magnetometer, the tilt direction of the first smart terminal during the shaking process can be determined more accurately.
[0082] The above embodiment illustrates a method for obtaining the shaking trajectory of the first smart terminal based on the measurement data of the hardware of the first smart terminal. When there is a related application for calculating the shaking trajectory of the first smart terminal in the first smart terminal, the shaking trajectory of the first smart terminal can also be obtained by calling the interface of the related application for calculating the shaking trajectory of the first smart terminal in the first smart terminal.
[0083] S302: According to the shaking trajectory of the first smart terminal, control the music application of the first smart terminal to switch to the next music or the previous music.
[0084] The music application of the first smart terminal is any application for playing music in the first smart terminal.
[0085] According to the shaking trajectory of the first smart terminal, the music application of the first smart terminal is controlled to switch to the next music or the previous music. Optionally, according to the shape of the shaking trajectory of the first smart terminal, the music application of the first smart terminal can be controlled to switch to the next music or the previous music. For example, one shaking trajectory can be preset as a circular shaking with the vertical axis of the mobile phone as the axis, and another shaking trajectory can be a linear shaking up and down along the vertical axis of the mobile phone. Optionally, if it is detected that the shaking trajectory of the first smart terminal is a circular shaking with the vertical axis of the mobile phone as the axis, the music application of the first smart terminal can be controlled to switch to the next music, and if it is detected that the shaking trajectory of the first smart terminal is a linear shaking up and down along the vertical axis of the mobile phone, the music application of the first smart terminal can be controlled to switch to the previous music.
[0086] Optionally, the music application of the first smart terminal can be controlled to switch to the next music or the previous music according to the direction of the shaking track of the first smart terminal. For example, if it is detected that the shaking track of the first smart terminal is in a direction parallel to the plane where the interactive interface of the first smart terminal is located, the music application of the first smart terminal can be controlled to switch to the next music; if it is detected that the shaking track of the first smart terminal is in a direction perpendicular to the plane where the interactive interface of the first smart terminal is located, the music application of the first smart terminal can be controlled to switch to the previous music.
[0087] It should be understood that the switching method of the present application is executed when the music application of the first smart terminal is playing music, and is not limited to the lock screen state of the smart terminal, and the foreground and background states of the music application.
[0088] The switching method of the embodiment of the present application controls the music application of the first smart terminal to switch to the next music or the previous music by obtaining the shaking trajectory of the first smart terminal and according to the shaking trajectory of the first smart terminal. The switching method of the present application controls the music application to switch to the next music or the previous music by simply shaking the first smart terminal, thereby improving the convenience of switching music through the first smart terminal.
[0089] The following describes how to control the music application of the first smart terminal to switch to the next music or the previous music according to the shaking trajectory of the first smart terminal in the switching method of the embodiment of the present application.
[0090] Optionally, it can be determined that the shaking trajectory of the first smart terminal is a preset first shaking trajectory or a second shaking trajectory, and the music application of the first smart terminal is controlled to switch to the next music or the previous music.
[0091] The first shaking trajectory and the second shaking trajectory are two different preset shaking trajectories, and the first shaking trajectory and the second shaking trajectory can distinguish two states of the first smart terminal being shaken.
[0092] Optionally, if the shaking trajectory of the first smart terminal is a preset first shaking trajectory, the music application of the first smart terminal is controlled to switch to the next music; if the shaking trajectory of the first smart terminal is a preset second shaking trajectory, the music application of the first smart terminal is controlled to switch to the previous music.
[0093] Taking the example that the shape of the preset first shaking trajectory is a wave shape and the shape of the preset second shaking trajectory is a circular shape, for example, the curvature characteristics and amplitude characteristics can be extracted according to the shaking trajectory of the first smart terminal, and the geometric algorithm or machine learning model in the relevant technology can be used to match the shaking trajectory of the first smart terminal with the predefined circular shape and wave shape. If it is confirmed based on the matching result that the shaking trajectory of the first smart terminal is a wave shape, the music application of the first smart terminal is controlled to switch to the next music. If it is confirmed based on the matching result that the shaking trajectory of the first smart terminal is a circular shape, the music application of the first smart terminal is controlled to switch to the previous music.
[0094] Optionally, it can be determined that the direction of the shaking trajectory of the first smart terminal is a preset first direction or a second direction, and the music application of the first smart terminal is controlled to switch to the next music or the previous music.
[0095] The first direction and the second direction are two different preset shaking directions, and the first direction and the second direction can distinguish two different directions in which the first smart terminal is shaken.
[0096] Optionally, if the shaking trajectory of the first smart terminal is in a preset first direction, the music application of the first smart terminal is controlled to switch to the next music; if the shaking trajectory of the first smart terminal is in a preset second direction, the music application of the first smart terminal is controlled to switch to the previous music.
[0097] Taking the preset first direction being parallel to the vertical direction of the smart terminal and the preset second direction being parallel to the horizontal direction of the smart terminal as an example, for example, the direction of the shaking trajectory of the first smart terminal can be obtained. If the direction of the shaking trajectory of the first smart terminal is parallel to the vertical direction of the smart terminal, the music application of the first smart terminal is controlled to switch to the next song. If the direction of the shaking trajectory of the first smart terminal is parallel to the horizontal direction of the smart terminal, the music application of the first smart terminal is controlled to switch to the previous song.
[0098] Optionally, a preset first shaking trajectory or a second shaking trajectory may be set. Optionally, in response to a first shaking trajectory setting instruction, the obtained shaking trajectory of the first intelligent terminal may be set as the first shaking trajectory; in response to a second shaking trajectory setting instruction, the obtained shaking trajectory of the first intelligent terminal may be set as the second shaking trajectory.
[0099] Taking setting the first shaking trajectory as an example, for example, in response to the first shaking trajectory setting instruction, the user can be guided to simulate shaking in any way on the interactive interface, the shaking trajectory of the first smart device is obtained, and the obtained shaking trajectory of the first smart device is set as the first shaking trajectory. Optionally, for example, the user can be guided to simulate shaking within 3 seconds in any way on the interactive interface, the shaking trajectory of the first smart device within 3 seconds is obtained, and the obtained shaking trajectory of the first smart device is set as the first shaking trajectory.
[0100] Taking setting the first shaking trajectory as an example, in response to the setting operation of the first shaking trajectory, a plurality of shaking trajectories of the first smart device that can be set can be displayed on the interactive interface, the shaking trajectory of the first smart device selected by the user can be obtained, and the obtained shaking trajectory of the first smart device can be set as the first shaking trajectory.
[0101] The switching method of the embodiment of the present application controls the music application of the first smart terminal to switch to the next music or the previous music according to the shaking trajectory of the first smart terminal. For example, the music application of the first smart terminal can be controlled to switch to the next music or the previous music according to the shape or direction of the shaking trajectory. The switching method of the present application can control the music application to switch to the next music or the previous music by simply shaking the first smart terminal, thereby improving the convenience of switching music through the first smart terminal.
[0102] Optionally, when controlling the music application of the first smart terminal to switch to the next music or the previous music according to the shaking trajectory of the first smart terminal, the music application of the first smart terminal can also be controlled to switch to the next music or the previous music in combination with the shaking speed of the first smart terminal.
[0103] The shaking speed of the first smart terminal can be obtained, for example, through an acceleration sensor of the first smart terminal. The acceleration sensor of the first smart terminal can measure the acceleration of the first smart terminal in various directions. Optionally, for example, the acceleration in any direction can be integrated and calculated, and the result of the integration is the speed of the first smart terminal in that direction.
[0104] Optionally, when the shaking speed of the first smart terminal is greater than or equal to a preset first speed threshold, the music application of the first smart terminal is controlled to switch to the next music or the previous music according to the shaking trajectory of the first smart terminal.
[0105] The first speed threshold is a preset shaking speed threshold of the first smart terminal for controlling the first smart terminal to switch music. When the shaking speed of the first smart terminal is less than the preset first speed threshold, it indicates that the user has not performed the operation of shaking the first smart device to switch music.
[0106] Optionally, it can be avoided that the music application of the first smart terminal is mistakenly controlled to switch to the next music or the previous music when the first smart terminal is slightly shaken, thereby improving the accuracy of the first smart terminal switching music.
[0107] Figure 4 A schematic diagram of a switching method provided in an embodiment of the present application Figure 2 . Optionally, if Figure 4 As shown, for example, the switching method may include:
[0108] S401: Obtain a shaking speed and a shaking trajectory of a first smart terminal.
[0109] S402: Whether the shaking speed of the first smart terminal is greater than or equal to a preset first speed threshold.
[0110] If yes, execute S403;
[0111] If not, execute S401.
[0112] If the shaking speed of the first smart terminal is less than a preset first speed threshold, the first smart terminal does not switch the music, and executes S401 to re-acquire the shaking speed and shaking trajectory of the first smart terminal.
[0113] S403: Whether the direction of the shaking trajectory of the first intelligent terminal is a preset first direction.
[0114] If yes, execute S405;
[0115] If not, execute S404.
[0116] S404: Whether the direction of the shaking trajectory of the first intelligent terminal is a preset second direction.
[0117] If yes, execute S406;
[0118] If not, execute S401.
[0119] If the direction of the shaking trajectory of the first smart terminal is not the preset first direction or second direction, the first smart terminal does not switch the music, and executes S401 to re-acquire the shaking speed and shaking trajectory of the first smart terminal.
[0120] S405: Control the music application of the first smart terminal to switch to the next piece of music.
[0121] In the current state, if the shaking speed of the first smart terminal is greater than or equal to a preset first speed threshold, and the direction of the shaking trajectory of the first smart terminal is a preset first direction, the music application of the first smart terminal is controlled to switch to the next music.
[0122] S406: Control the music application of the first smart terminal to switch to the previous music.
[0123] In the current state, if the shaking speed of the first smart terminal is greater than or equal to a preset first speed threshold, and the direction of the shaking trajectory of the first smart terminal is a preset second direction, the music application of the first smart terminal is controlled to switch to the previous music.
[0124] Optionally, the above is a realization process of controlling the music application of the first smart terminal to switch to the next music or the previous music in combination with the shaking trajectory and shaking speed of the first smart terminal. The shaking trajectory and shaking speed of the first smart terminal can also be confirmed based on other processes. For example, first determine whether the shaking trajectory of the first smart terminal is a preset trajectory, and when it is confirmed that the shaking trajectory of the first smart terminal is the preset trajectory, further confirm the shaking speed of the first smart terminal. This application does not limit this.
[0125] Optionally, the sensitivity of controlling the music switching of the first intelligent terminal by shaking can be set, and the user can adjust the sensitivity of the music switching in advance, that is, set the first speed threshold. Optionally, in response to the first speed threshold setting instruction, the shaking speed of the first intelligent terminal can be obtained and set as the first speed threshold. For example, the user can be guided to simulate shaking, obtain the shaking speed of the first intelligent device, and set the obtained shaking speed of the first intelligent device as the first speed threshold. For example, a plurality of shaking speeds of the first intelligent device can be provided, the shaking speed of the selected first intelligent device can be obtained, and the shaking speed of the selected first intelligent device can be set as the first speed threshold. Optionally, the shaking speed of the first intelligent terminal can be obtained multiple times, and the average value of the shaking speeds of the first intelligent terminal obtained multiple times can be set as the first speed threshold.
[0126] The switching method of the present application monitors the shaking speed of the first smart terminal. When the shaking speed of the first smart terminal is greater than or equal to a preset first speed threshold, the switching method controls the music application of the first smart terminal to switch to the next song or the previous song according to the shaking trajectory of the first smart terminal. This can avoid mistakenly controlling the music application of the first smart terminal to switch to the next song or the previous song when the first smart terminal shakes slightly, thereby improving the accuracy of switching music by the first smart terminal.
[0127] Optionally, when controlling the music application of the first smart terminal to switch to the next music or the previous music according to the shaking trajectory of the first smart terminal, it is also possible to determine whether the music application of the first smart terminal is running in the background. When the music application of the first smart terminal is running in the background, combined with the running status of the foreground application, the music application of the first smart terminal is controlled to switch to the next music or the previous music.
[0128] The music application is running in the background, that is, the music application is playing music, but the music application is not an application that the current user interacts with on the screen of the first smart terminal.
[0129] The foreground application is an application displayed on the screen of the first intelligent terminal and with which the current user is interacting.
[0130] Optionally, if the music application is running in the background and the foreground application of the first smart terminal does not respond to the shaking of the first smart terminal, the music application of the first smart terminal is controlled to switch to the next music or the previous music according to the shaking trajectory of the first smart terminal.
[0131] To determine whether the music application is in the foreground or the background, for example, the foreground application of the first smart terminal can be obtained, and it can be determined whether the foreground application is a music application. If the foreground application is not a music application, the music application is running in the background.
[0132] When the music application is running in the background, it is determined whether the foreground application of the first smart terminal responds to the shaking of the first smart terminal. For example, it can be determined by obtaining the shaking feedback flag of the first smart terminal. If the foreground application responds to the shaking of the first smart terminal, the shaking feedback flag will be modified to a flag indicating that it has responded. Optionally, it is determined whether the foreground application of the first smart terminal responds to the shaking of the first smart terminal according to the shaking feedback flag of the first smart terminal.
[0133] If the music application is running in the background, and the shaking feedback mark of the first smart terminal indicates that the foreground application does not respond to the shaking of the first smart terminal, the music application of the first smart terminal is controlled to switch to the next or previous music according to the shaking trajectory of the first smart terminal.
[0134] Figure 5 A schematic diagram of a switching method provided in an embodiment of the present application Figure 3 . Optionally, if Figure 5 As shown, the switching method may include:
[0135] S501: Obtain a shaking speed and a shaking trajectory of a first smart terminal.
[0136] S502: Whether the shaking speed of the first smart terminal is greater than or equal to a preset first speed threshold.
[0137] If yes, execute S503;
[0138] If not, execute S501.
[0139] S503: Whether the music application is running in the background.
[0140] If yes, execute S504;
[0141] If not, execute S505.
[0142] S504: Whether the foreground application of the first smart terminal responds to shaking of the first smart terminal.
[0143] If yes, execute S501;
[0144] If not, execute S505.
[0145] If the music application is running in the background and the foreground application of the first smart terminal responds to the shaking of the first smart terminal, the first smart terminal does not switch the music and executes S501 to reacquire the shaking speed and shaking trajectory of the first smart terminal.
[0146] S505: Whether the direction of the shaking trajectory of the first intelligent terminal is a preset first direction.
[0147] If yes, execute S507;
[0148] If not, execute S506.
[0149] S506: Whether the direction of the shaking trajectory of the first intelligent terminal is a preset second direction.
[0150] If yes, execute S508;
[0151] If not, execute S501.
[0152] S507: Control the music application of the first smart terminal to switch to the next piece of music.
[0153] In the current state, the shaking speed of the first smart terminal is greater than or equal to a preset first speed threshold, the music application runs in the foreground, and the direction of the shaking trajectory of the first smart terminal is the preset first direction; or, the shaking speed of the first smart terminal is greater than or equal to the preset first speed threshold, the music application runs in the background, the foreground application of the first smart terminal does not respond to the shaking of the first smart terminal, and the direction of the shaking trajectory of the first smart terminal is the preset first direction, then the music application of the first smart terminal is controlled to switch to the next music.
[0154] S508: Control the music application of the first smart terminal to switch to the previous music.
[0155] In the current state, the shaking speed of the first smart terminal is greater than or equal to a preset first speed threshold, the music application runs in the foreground, and the direction of the shaking trajectory of the first smart terminal is a preset second direction; or, the shaking speed of the first smart terminal is greater than or equal to the preset first speed threshold, the music application runs in the background, the foreground application of the first smart terminal does not respond to the shaking of the first smart terminal, and the direction of the shaking trajectory of the first smart terminal is the preset second direction, then the music application of the first smart terminal is controlled to switch to the previous music.
[0156] The switching method of the embodiment of the present application determines that the music application is running in the background and the foreground application of the first smart terminal does not respond to the shaking of the first smart terminal, and controls the music application of the first smart terminal to switch to the next music or the previous music according to the shaking trajectory of the first smart terminal. The switching method of the present application avoids the situation where the music application of the first smart terminal is mistakenly controlled to switch to the next music or the previous music when the user interacts with the foreground application of the first smart terminal by shaking, thereby improving the accuracy of the first smart terminal switching music.
[0157] Optionally, when the first smart terminal is in communication connection with the second smart terminal, the shaking trajectory of the second smart terminal can also be obtained, and the music application of the first smart terminal can be controlled to switch to the next music or the previous music according to the shaking trajectory of the second smart terminal.
[0158] The second smart terminal is a smart terminal that is connected to the first smart terminal for communication, such as a smart phone, a smart watch, a smart bracelet, a smart ring, etc. The second smart terminal and the first smart terminal can be connected via wired or wireless connection, and the wireless connection can be, for example, a wireless connection mode such as Bluetooth or a local area network.
[0159] The method for obtaining the shaking trajectory of the second smart terminal may refer to the method for obtaining the shaking trajectory of the first smart terminal in the above embodiment.
[0160] Optionally, if the shaking track of the second smart terminal is in the shape of a triangle, the music application of the first smart terminal can be controlled to switch to the next music; if the shaking track of the second smart terminal is in the shape of a circle, the music application of the first smart terminal can be controlled to switch to the previous music.
[0161] Optionally, if the shaking trajectory of the second smart terminal is an up and down shaking perpendicular to the ground, the music application of the first smart terminal can be controlled to switch to the next song; if the shaking trajectory of the second smart terminal is a horizontal shaking parallel to the ground, the music application of the first smart terminal can be controlled to switch to the previous song.
[0162] Optionally, when the shaking speed of the second smart terminal is greater than or equal to a preset second speed threshold, the first smart terminal may be controlled to switch to the next music or the previous music according to the shaking trajectory of the second smart terminal.
[0163] The second speed threshold is a preset shaking speed threshold of the second smart terminal for controlling the first smart terminal to switch music. When the shaking speed of the second smart terminal is less than the preset second speed threshold, it indicates that the user has not performed the operation of shaking the second smart device to switch music.
[0164] Figure 6 A schematic diagram of a switching method provided in an embodiment of the present application Figure 4 Taking the preset shaking trajectory as the third shaking trajectory and the fourth shaking trajectory as an example, the third shaking trajectory and the fourth shaking trajectory are shaking trajectories that can distinguish two different ways of shaking the second smart device.
[0165] Optionally, a third shaking trajectory and a fourth shaking trajectory may be set. Optionally, in response to the setting operation of the third shaking trajectory, the obtained shaking trajectory of the second intelligent terminal may be set as the third shaking trajectory; in response to the setting operation of the fourth shaking trajectory, the obtained shaking trajectory of the second intelligent terminal may be set as the fourth shaking trajectory.
[0166] Accordingly, if Figure 6 As shown, the switching method may include, for example:
[0167] S601: Obtain a shaking speed and a shaking trajectory of a second smart terminal.
[0168] S602: Whether the shaking speed of the second smart terminal is greater than or equal to a preset second speed threshold.
[0169] If yes, execute S603;
[0170] If not, execute S601.
[0171] If the shaking speed of the second smart terminal is less than the preset second speed threshold, the second smart terminal does not switch the music, and controls the second smart terminal to execute S601 to reacquire the shaking speed and shaking trajectory of the second smart terminal.
[0172] S603: Whether the direction of the shaking trajectory of the second smart terminal is a preset third shaking trajectory.
[0173] If yes, execute S605;
[0174] If not, execute S604.
[0175] S604: Whether the direction of the shaking trajectory of the second intelligent terminal is a preset fourth shaking trajectory.
[0176] If yes, execute S606;
[0177] If not, execute S601.
[0178] If the direction of the shaking trajectory of the second smart terminal is not the preset third direction or fourth direction, the first smart terminal does not switch the music, and executes S601 to re-acquire the shaking speed and shaking trajectory of the second smart terminal.
[0179] S605: Control the music application of the first smart terminal to switch to the next piece of music.
[0180] In the current state, if the shaking speed of the second smart terminal is greater than or equal to the preset second speed threshold, and the direction of the shaking trajectory of the second smart terminal is the preset third direction, the music application of the first smart terminal is controlled to switch to the next music.
[0181] S606: Control the music application of the first smart terminal to switch to the previous music.
[0182] In the current state, if the shaking speed of the second smart terminal is greater than or equal to the preset second speed threshold, and the direction of the shaking trajectory of the second smart terminal is the preset fourth direction, the music application of the first smart terminal is controlled to switch to the previous music.
[0183] The switching method proposed in the embodiment of the present application obtains the shaking trajectory of the second smart terminal that is in communication with the first smart terminal, and controls the music application of the first smart terminal to switch to the next music or the previous music according to the shaking trajectory of the second smart terminal. The switching method of the present application can control the music application of the first smart device to switch to the next music or the previous music by simply shaking the second smart terminal, thereby improving the convenience of switching music.
[0184] In some embodiments of the present application, a music switching device is also provided, referring to Figure 7 , Figure 7 Schematic diagram of a module of a music switching device provided in an embodiment of the present application. In some embodiments of the present application, the music switching device 700 includes: an acquisition module 701 and a control module 702. Optionally, a setting module may also be included.
[0185] An acquisition module 701 is used to acquire a shaking trajectory of the first smart terminal;
[0186] The control module 702 is used to control the music application of the first smart terminal to switch to the next music or the previous music according to the shaking trajectory of the first smart terminal.
[0187] As described above, the music switching device provided in the embodiment of the present application can control the music application of the first smart device to switch to the next music or the previous music by simply shaking the first smart terminal or the second smart terminal, thereby improving the convenience of switching music.
[0188] Optionally, the control module 702 can be used to control the music application of the first smart terminal to switch to the next music if the shaking trajectory of the first smart terminal is the preset first shaking trajectory; if the shaking trajectory of the first smart terminal is the preset second shaking trajectory, control the music application of the first smart terminal to switch to the previous music.
[0189] Optionally, the setting module can be used to set the acquired shaking trajectory of the first smart terminal as the first shaking trajectory in response to the first shaking trajectory setting instruction; and set the acquired shaking trajectory of the first smart terminal as the second shaking trajectory in response to the second shaking trajectory setting instruction.
[0190] Optionally, the control module 702 can be used to control the music application of the first smart terminal to switch to the next song if the direction of the shaking trajectory of the first smart terminal is a preset first direction; if the direction of the shaking trajectory of the first smart terminal is a preset second direction, control the music application of the first smart terminal to switch to the previous song.
[0191] Optionally, the control module 702 can be used to control the music application of the first smart terminal to switch to the next music or the previous music according to the shaking trajectory of the first smart terminal if the shaking speed of the first smart terminal is greater than or equal to a preset first speed threshold.
[0192] Optionally, the control module 702 can be used to control the music application of the first smart terminal to switch to the next or previous music according to the shaking trajectory of the first smart terminal if the music application is running in the background and the foreground application of the first smart terminal does not respond to the shaking of the first smart terminal.
[0193] Optionally, the acquisition module 701 is also used to obtain the shaking trajectory of the second smart terminal, and the second smart terminal is communicatively connected to the first smart terminal; accordingly, the control module 702 is also used to control the music application of the first smart terminal to switch to the next music or the previous music according to the shaking trajectory of the second smart terminal.
[0194] Exemplarily, the control module 702 can be used to control the first smart terminal to switch to the next music or the previous music according to the shaking trajectory of the second smart terminal if the shaking speed of the second smart terminal is greater than or equal to a preset second speed threshold.
[0195] The music switching device provided in the embodiment of the present application can be used to execute the technical solution of the switching method described in the above embodiment. Its implementation principle and technical effect are similar and will not be repeated here.
[0196] An embodiment of the present application further provides an intelligent terminal, including a memory and a processor, wherein a processing program is stored in the memory, and when the processing program is executed by the processor, the steps of the switching method in any of the above embodiments are implemented.
[0197] An embodiment of the present application further provides a storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, the steps of the method in any of the above embodiments are implemented.
[0198] In the embodiments of the smart terminal and storage medium provided in the present application, all technical features of any of the above-mentioned switching method embodiments may be included, and the expanded and explained contents of the specification are basically the same as those of the embodiments of the above-mentioned methods, and will not be repeated here.
[0199] The embodiment of the present application further provides a computer program product, which includes a computer program code. When the computer program code runs on a computer, the computer executes the methods in the above various possible implementation modes.
[0200] An embodiment of the present application also provides a chip, including a memory and a processor, the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device equipped with the chip executes the methods in various possible implementation modes as described above.
[0201] It is understood that the above scenarios are only examples and do not constitute a limitation on the application scenarios of the technical solutions provided in the embodiments of the present application. The technical solutions of the present application can also be applied to other scenarios. For example, it is known to those skilled in the art that with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0202] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0203] The steps in the switching method provided in the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs.
[0204] The units in the intelligent terminal adopted in the embodiment of the present application can be merged, divided and deleted according to actual needs.
[0205] In the present application, the same or similar terminology concepts, technical solutions and / or application scenario descriptions are generally described in detail only the first time they appear. When they appear again later, they are generally not repeated for the sake of brevity. When understanding the technical solutions and other contents of the present application, for the same or similar terminology concepts, technical solutions and / or application scenario descriptions that are not described in detail later, reference can be made to the previous related detailed descriptions.
[0206] In the present application, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0207] The various technical features of the technical solution of the present application can be arbitrarily combined. In order to make the description concise, not all possible combinations of the various technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of the present application.
[0208] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to execute the method of each embodiment of the present application.
[0209] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer program instructions on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. Computer instructions can be stored in a storage medium, or transmitted from one storage medium to another storage medium. For example, computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. Available media can be magnetic media, (e.g., floppy disk, storage disk, tape), optical media (e.g., DVD), or semiconductor media (e.g., solid-state storage disk Solid State Disk (SSD)), etc.
[0210] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A switching method, characterized in that: include: S301: Obtaining a shaking trajectory of the first smart terminal; S302: According to the shaking trajectory of the first smart terminal, control the music application of the first smart terminal to switch to the next music or the previous music.
2. The method according to claim 1, characterized in that: The S302 includes: If the shaking trajectory of the first smart terminal is a preset first shaking trajectory, controlling the music application of the first smart terminal to switch to the next music; If the shaking trajectory of the first smart terminal is the preset second shaking trajectory, the music application of the first smart terminal is controlled to switch to the previous music.
3. The method according to claim 2, characterized in that The method further comprises: In response to a first shaking trajectory setting instruction, setting the acquired shaking trajectory of the first smart terminal as the first shaking trajectory; In response to the second shaking trajectory setting instruction, the acquired shaking trajectory of the first smart terminal is set as the second shaking trajectory.
4. The method according to any one of claims 1 to 3, characterized in that The S302 includes: If the shaking track of the first smart terminal is in a preset first direction, controlling the music application of the first smart terminal to switch to the next music; If the direction of the shaking track of the first smart terminal is a preset second direction, the music application of the first smart terminal is controlled to switch to the previous music.
5. The method according to any one of claims 1 to 3, characterized in that The S302 includes: If the shaking speed of the first smart terminal is greater than or equal to a preset first speed threshold, the music application of the first smart terminal is controlled to switch to the next music or the previous music according to the shaking trajectory of the first smart terminal.
6. The method according to any one of claims 1 to 3, characterized in that The S302 includes: If the music application is running in the background and the foreground application of the first smart terminal does not respond to the shaking of the first smart terminal, the music application of the first smart terminal is controlled to switch to the next music or the previous music according to the shaking trajectory of the first smart terminal.
7. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Acquiring a shaking trajectory of a second smart terminal, where the second smart terminal is in communication with the first smart terminal; According to the shaking trajectory of the second smart terminal, the music application of the first smart terminal is controlled to switch to the next music or the previous music.
8. The method according to claim 7, characterized in that The step of controlling the music application of the first smart terminal to switch to the next music or the previous music according to the shaking trajectory of the second smart terminal includes: If the shaking speed of the second smart terminal is greater than or equal to a preset second speed threshold, the first smart terminal is controlled to switch to the next music or the previous music according to the shaking trajectory of the second smart terminal.
9. An intelligent terminal, characterized in that: The intelligent terminal comprises: a memory and a processor, wherein a switching program is stored in the memory, and when the switching program is executed by the processor, the switching method according to any one of claims 1 to 8 is implemented.
10. A storage medium, characterized in that: The storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the switching method according to any one of claims 1 to 8 is implemented.