CN111372159A - Earphone play control method and earphone - Google Patents
Earphone play control method and earphone Download PDFInfo
- Publication number
- CN111372159A CN111372159A CN202010185015.5A CN202010185015A CN111372159A CN 111372159 A CN111372159 A CN 111372159A CN 202010185015 A CN202010185015 A CN 202010185015A CN 111372159 A CN111372159 A CN 111372159A
- Authority
- CN
- China
- Prior art keywords
- electronic devices
- playing
- earphone
- headset
- electronic
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
Abstract
The invention provides an earphone play control method and an earphone. The method is applied to a headset which is connected with at least two electronic devices, and comprises the following steps: under the condition of acquiring the playing requests of at least two electronic devices, determining the target playing sequence of the at least two electronic devices according to a preset judgment condition; according to the target playing sequence, sequentially playing the audio data through the earphones; wherein the preset judgment condition is at least one of the following conditions: historical connection records with the headset; the types of the audio data sent by the at least two electronic devices; the playing time of the audio data sent by the at least two electronic devices; a weight value of at least two electronic devices. According to the method provided by the embodiment of the invention, through the connection of the earphone and the plurality of electronic devices, when the playing requirements of the plurality of electronic devices exist, the frequent manual switching of the connection between the earphone and the electronic devices by a user is not needed, the automatic switching of playing can be realized, the operation is simple, and the audio playing experience of the user is improved.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an earphone play control method and an earphone.
Background
With the continuous development and progress of electronic devices, wireless headsets are beginning to enter people's lives. For example, a wireless bluetooth headset is a headset that is most commonly used, and bluetooth transmission is adopted. The Bluetooth earphone applies the Bluetooth technology to the hands-free earphone, so that a user can avoid annoying wire stumbling and improve user experience.
When a user has a playing requirement of a plurality of electronic devices, frequent manual switching of connection between the electronic devices and the earphones is required, the operation is complicated, and the user experience is poor.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide an earphone playing control method and an earphone, so as to solve the problems that when the existing user has a plurality of playing requirements of electronic devices, the connection between the electronic device and the earphone needs to be frequently and manually switched, the operation is complicated, and the user experience is poor.
In order to solve the technical problem, the embodiment of the invention adopts the following technical scheme:
in a first aspect, an embodiment of the present invention provides a method for controlling playback of an earphone, where the earphone is connected to at least two electronic devices, and the method includes:
under the condition of acquiring playing requests of at least two electronic devices, determining a target playing sequence of the at least two electronic devices according to a preset judgment condition;
sequentially responding to the playing requests of the at least two electronic devices according to the target playing sequence, and sequentially playing the audio data sent by the at least two electronic devices through the earphones;
wherein the preset determination condition is at least one of the following conditions:
historical connection records of the at least two electronic devices and the headset;
the types of the audio data sent by the at least two electronic devices;
the playing time of the audio data sent by the at least two electronic devices;
a weight value of the at least two electronic devices.
In a second aspect, an embodiment of the present invention further provides a headset, where the headset is connected to at least two electronic devices, and the headset includes:
the first processing module is used for determining a target playing sequence of at least two pieces of electronic equipment according to a preset judgment condition under the condition of acquiring playing requests of the at least two pieces of electronic equipment;
the playing control module is used for sequentially responding to the playing requests of the at least two electronic devices according to the target playing sequence and sequentially playing the audio data sent by the at least two electronic devices through the earphones;
wherein the preset determination condition is at least one of the following conditions:
historical connection records of the at least two electronic devices and the headset;
the types of the audio data sent by the at least two electronic devices;
the playing time of the audio data sent by the at least two electronic devices;
a weight value of the at least two electronic devices.
In a third aspect, an embodiment of the present invention further provides a headset, where the headset is connected to at least two electronic devices, and the headset includes a processor, a memory, and a computer program stored in the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the headset play control method as described above.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the earphone play control method are implemented as described above.
In the above scheme of the embodiment of the present invention, the earphone is connected to at least two electronic devices, and when the play requests of the at least two electronic devices are obtained, the target play order of the at least two electronic devices is determined according to a preset determination condition; sequentially responding to the playing requests of the at least two electronic devices according to the target playing sequence, and sequentially playing the audio data sent by the at least two electronic devices through the earphones; wherein the preset judgment condition is at least one of the following conditions: historical connection records of at least two electronic devices and the headset; the types of the audio data sent by the at least two electronic devices; the playing time of the audio data sent by the at least two electronic devices; the weighted values of the at least two electronic devices are connected with the electronic devices through the earphones, when playing requirements of the electronic devices exist, the frequent manual switching between the earphones and the electronic devices is not needed, automatic switching of playing can be achieved, operation is simple, and audio playing experience of users is improved.
Drawings
Fig. 1 is a schematic flow chart of an earphone play control method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a setup interface displayed on a host device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an earphone according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of an earphone according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a schematic flow chart of a method for controlling playing of an earphone according to an embodiment of the present invention, and the method is applied to an earphone. The headset is connected with at least two electronic devices. The following is a detailed description of the implementation of the method of the embodiments of the present invention with reference to this figure.
In this step, the headset may be connected to different electronic devices using different connection (wired or wireless) technologies, that is, the headset may be used to support the connection of multiple electronic devices simultaneously and maintain the connection of multiple electronic devices simultaneously.
Preferably, the earphone is wirelessly connected with at least two electronic devices, so that the devices are not bound by a wire harness, and the earphone is convenient to carry.
And step 102, sequentially responding to the playing requests of the at least two electronic devices according to the target playing sequence, and sequentially playing the audio data sent by the at least two electronic devices through the earphones.
Wherein the preset determination condition is at least one of the following conditions:
historical connection records of the at least two electronic devices and the headset;
the types of the audio data sent by the at least two electronic devices;
the playing time of the audio data sent by the at least two electronic devices;
a weight value of the at least two electronic devices.
In this step, when the play requests of the at least two electronic devices connected to the earphone are obtained, the user does not need to manually switch, that is, manually disconnect the earphone from the first electronic device, and manually connect the earphone with the at least two electronic devices, but directly perform automatic switching of audio data play according to the target play sequence determined by the preset determination condition, that is, control the play channel of the earphone, play the audio data sent by the at least two electronic devices according to the target play sequence, play the audio data sent by the electronic device in the prior order first, and play the audio data sent by the electronic device in the subsequent order after the play is completed.
It should be noted that, when the preset determination condition is the historical connection records of the at least two electronic devices and the headset, the target playing sequence of the at least two electronic devices may be determined according to the morning and evening of the connection time between the electronic devices and the headset in the historical connection records from morning to evening or from evening to morning.
When the preset judgment condition is the type of the audio data sent by the at least two electronic devices, the target playing sequence of the at least two electronic devices can be determined according to the type of the application program from which the audio data is taken. Here, the types of the application include an audio class, a video class, and other classes other than the audio class and the video class. If the type of the application program from which the audio data sent by the electronic equipment is taken is audio type or video type, the corresponding playing sequence is prior, otherwise, the playing sequence is posterior.
When the preset determination condition is that the playing time lengths of the audio data sent by the at least two electronic devices are long, the playing time lengths can be determined as the target playing sequence of the at least two electronic devices according to the sequence from long to short or from short to long.
When the preset judgment condition is the weight values of the at least two electronic devices, the order of the weight values of the electronic devices from large to small or from small to large can be determined as the playing order of the at least two electronic devices according to the weight values of the electronic devices.
In addition, if the predetermined determination condition includes at least two of the above conditions, the playback order determined by the determination condition with the highest priority may be taken as the target playback order of at least two electronic devices according to the predetermined priority of the determination condition.
In addition, if a play request of the electronic device B is received while the first audio data sent by the electronic device a is being played through the earphone, the playing of the first audio data may be suspended in response to the play request, and the second audio data sent by the electronic device B may be played through the earphone, where the electronic device a and the electronic device B are both connected to the earphone.
In one example, the earphone is connected to both the mobile phone and the computer, when the mobile phone plays music, the computer needs to play the pronunciation of a word temporarily, and the earphone will automatically pause playing the music in the mobile phone and convert to playing the pronunciation of the word in the computer. Namely, the user can realize the automatic switching of the audio data playing without manually switching the electronic equipment connected with the earphone.
And after the first audio data is paused to be played in response to the playing request and the second audio data sent by the electronic equipment B is played through the earphone, controlling the earphone to continue playing the first audio data under the condition that the playing priority of the electronic equipment A is higher than that of the electronic equipment B and the playing of the second audio data is monitored to be finished.
In this step, the playing priority of the electronic device may be set by a user, and may also be determined by the playing parameters of other audio data (such as the playing duration of the audio data and the type of the application program from which the audio data is obtained), which is not specifically limited herein.
For example, the electronic device set by the user to play preferentially is a mobile phone, the current playing source of the earphone is the mobile phone, and a song is being played, and when the user uses the computer to play an event (for example, the playing of a word is finished, or the user actively pauses the playing of the computer, etc.) is finished, the song in the mobile phone is automatically switched back to play. The user does not need to click to pause and play, the operation is simple, and the audio playing experience of the user is improved.
If the first audio data sent by the electronic device a is currently being played through the earphone, a play request of the electronic device B is received, and whether the play request of the electronic device B is responded by the earphone depends on the weight values of the electronic device B and the electronic device a currently playing the audio data, that is, if the weight value of the electronic device B is greater than the weight value of the electronic device a, the playing of the first audio data is suspended in response to the play request, and the second audio data provided by the electronic device B is played through the earphone.
In this step, the weight value of the electronic device may be set by the user, and may also be determined by other parameters related to the electronic device (such as the actual usage duration of the electronic device and the volume value of the electronic device), which is not specifically limited herein.
Here, the electronic devices are prioritized according to the weight values of the electronic devices, and the electronic devices having a high weight value also have a high priority. In this way, the specific needs of the user can be better met.
It should be noted that, if the weight value of the B electronic device is smaller than the weight value of the a electronic device, the response to the play request of the B electronic device is prohibited, that is, the play request of the B electronic device is ignored.
In an example, if the weight value of the current playing source device of the earphone is 50, at this time, if an electronic device with a weight value of 40 initiates a playing request, the earphone end ignores the playing request this time; if the weight value of the current playing source device of the earphone is 50, and at this time, if an electronic device with a weight value of 60 initiates a playing request, the earphone responds to the playing request, and the playing source setting of the earphone is switched to the electronic device with a weight value of 60.
In the method for controlling the playing of the earphones provided by the embodiment of the present invention, the earphones are connected to at least two electronic devices, and when the playing requests of the at least two electronic devices are obtained, the target playing sequence of the at least two electronic devices is determined according to a preset determination condition; sequentially responding to the playing requests of the at least two electronic devices according to the target playing sequence, and sequentially playing the audio data sent by the at least two electronic devices through the earphones; wherein the preset judgment condition is at least one of the following conditions: historical connection records of at least two electronic devices and the headset; the types of the audio data sent by the at least two electronic devices; the playing time of the audio data sent by the at least two electronic devices; the weighted values of the at least two electronic devices are connected with the electronic devices through the earphones, when playing requirements of the electronic devices exist, the frequent manual switching between the earphones and the electronic devices is not needed, automatic switching of playing can be achieved, operation is simple, and audio playing experience of users is improved.
As an optional implementation manner, the preset determination condition is a weight value of the at least two electronic devices; before the step of determining the target playing order of the at least two electronic devices according to the preset determination condition in step 101, the method according to the embodiment of the present invention may further include:
receiving a control instruction sent by first electronic equipment, wherein the first electronic equipment is one of the at least two pieces of electronic equipment;
under the condition that the first electronic equipment is a main equipment, executing a target event according to the control instruction, wherein the target event comprises one of the following events:
disconnecting the headset from the master device;
disconnecting the earphone from a first target slave device, wherein the first target slave device is one of the other electronic devices except the master device;
changing a second target slave device to be a master device, wherein the second target slave device is one of the other electronic devices except the master device;
and switching the playing mode of the earphone.
It should be noted that only the host device can perform the related function setting of the headset and the related setting of all the electronic devices connected to the headset.
Optionally, in a case that the first electronic device is a master device, receiving the control instruction sent by the first electronic device may specifically include:
and receiving a control instruction sent by the first electronic equipment through a setting interface.
Here, a setting interface is displayed on the first electronic device, the setting interface may be an interface in a preset application installed on the first electronic device, and the setting interface may be displayed on a screen of the first electronic device by opening the preset application.
It should be noted that, as shown in fig. 2, the setting interface is schematically displayed on the host device. The user can view the electronic device to which the headset is currently connected through the setting interface, that is, how many devices to which the headset is connected are displayed on the setting interface. For example, in fig. 2, the headset is connected to a mobile phone, a computer, and a tablet computer.
And the user can also send a control instruction through the setting interface to control the earphone to execute the target event.
The earphone is disconnected from the main device, and specifically, the main device information in the setting interface can be deleted through user operation. The mobile phones in the list of "connected devices" in the setting interface can be deleted by user operation as in fig. 2.
Here, the related operation of the user on the setting interface triggers the generation of the related control instruction, so as to control the earphone to execute the related event.
Additionally, optionally, the playback modes of the headphones include, but are not limited to: queue mode, priority mode, and weight mode.
It should be noted that the queue mode is a mode for playing the audio data provided by the corresponding electronic device in response to the play request as long as the play request is received.
Here, if the audio data of an electronic device is being played before the play request is received, the playing of the audio data is suspended, and the audio data provided by the electronic device which currently initiates the play request is changed to be played.
For example, when the user clicks the computer to play the song on the mobile phone, the earphone will switch to the computer as the playing source and automatically pause the playing of the song on the mobile phone. Similarly, the user clicks the mobile phone again to play the song, and then the earphone is switched to the mobile phone again as the playing source.
The priority mode is a mode for automatically returning to play audio data provided by the electronic device with higher priority than the electronic device initiating the play request when the audio data provided by the electronic device initiating the play request is played.
For example, when the user sets the priority playing device as a mobile phone, the current playing source of the earphone is the mobile phone, and the mobile phone is playing songs, and the user finishes playing an event by using the computer, the user can automatically return to playing the songs of the mobile phone. The user does not need to click pause and play.
It should be noted that, usually, the default master device is the priority playing device, and when the earphone receives a control instruction for changing the priority playing device through a user operation, the priority playing device may be switched.
The weight mode is a mode for deciding whether to respond to audio data provided by the electronic device initiating the play request based on the weight value of the electronic device.
Specifically, in the weight mode, if the weight value of the electronic device initiating the play request is greater than the weight value of the electronic device currently playing the audio data through the earphone, the electronic device initiating the play request responds to the audio data provided by the electronic device initiating the play request; otherwise, the response is disabled.
It should be noted that, when the headset does not store the master device information, the first electronic device connected to the headset in the at least two electronic devices is the master device;
here, when the earphone is factory set or factory set is restored, the electronic device to which the earphone is connected for the first time is set as a master device by default. Then, the earphone end stores the main device information. Here, optionally, the master device information is a master device identification code for distinguishing the master device from the slave device.
Also, the earphone end stores slave device information, such as a slave device identification code.
And under the condition that the earphone stores the main device information, the electronic device corresponding to the main device information is the main device, or the electronic device which is changed into the main device according to the control instruction of the main device is the main device.
In addition, the earphone end can also store the play mode information of the earphone, and optionally, the play mode of the earphone can be identified through the play mode code.
As an optional implementation manner, the target event is: disconnecting the headset from the master device; the method of the embodiment of the invention can also comprise the following steps:
and selecting the slave equipment with the highest weight value from the slave equipment except the master equipment in the at least two pieces of electronic equipment as temporary master equipment.
In this step, it should be noted that only when the master device is disconnected, there is a temporary master device. Also, in order to maintain the uniqueness of the master device, the temporary master device may not be changed to the master device, but may view related information and modify the play mode of the headset.
In the method for controlling the playing of the earphones, the earphones are connected with at least two pieces of electronic equipment, and the target playing sequence of the at least two pieces of electronic equipment is determined according to preset judgment conditions under the condition that the playing requests of the at least two pieces of electronic equipment are obtained; sequentially responding to the playing requests of the at least two electronic devices according to the target playing sequence, and sequentially playing the audio data sent by the at least two electronic devices through the earphones; wherein the preset judgment condition is at least one of the following conditions: historical connection records of at least two electronic devices and the headset; the types of the audio data sent by the at least two electronic devices; the playing time of the audio data sent by the at least two electronic devices; the weighted values of the at least two electronic devices are connected with the electronic devices through the earphones, when playing requirements of the electronic devices exist, the frequent manual switching between the earphones and the electronic devices is not needed, automatic switching of playing can be achieved, operation is simple, and audio playing experience of users is improved.
Based on the method, the embodiment of the invention also provides the earphone for realizing the method.
Fig. 3 is a schematic structural diagram of an earphone according to an embodiment of the present invention. An embodiment of the present invention provides an earphone 300, where the earphone is wirelessly connected to at least two electronic devices, including:
the first processing module 301 is configured to, when the play requests of at least two electronic devices are obtained, determine a target play sequence of the at least two electronic devices according to a preset determination condition;
a playing control module 302, configured to sequentially respond to the playing requests of the at least two electronic devices according to the target playing sequence, and sequentially play the audio data sent by the at least two electronic devices through the earphones;
wherein the preset determination condition is at least one of the following conditions:
historical connection records of the at least two electronic devices and the headset;
the types of the audio data sent by the at least two electronic devices;
the playing time of the audio data sent by the at least two electronic devices;
a weight value of the at least two electronic devices.
Optionally, the preset determination condition is a weighted value of the at least two electronic devices, and the earphone 300 according to the embodiment of the present invention may further include:
the second processing module is configured to determine a weight value of each of the at least two pieces of electronic equipment according to at least one of a target duration and a volume value of each of the at least two pieces of electronic equipment, where the target duration is a duration from a time when the electronic equipment is connected with the headset to a time when the headset detects a play request.
The headset 300 of the embodiment of the present invention may further include:
the receiving module is used for receiving a control instruction sent by first electronic equipment, wherein the first electronic equipment is one of the at least two pieces of electronic equipment;
a third processing module, configured to, if the first electronic device is a master device, execute a target event according to the control instruction, where the target event includes one of the following events:
disconnecting the headset from the master device;
disconnecting the earphone from a first target slave device, wherein the first target slave device is one of the other electronic devices except the master device;
changing a second target slave device to be a master device, wherein the second target slave device is one of the other electronic devices except the master device;
and switching the playing mode of the earphone.
Optionally, when the headset does not store the master device information, a first electronic device connected to the headset in the at least two electronic devices is a master device;
and under the condition that the earphone stores the main device information, the electronic device corresponding to the main device information is the main device, or the electronic device which is changed into the main device according to the control instruction of the main device is the main device.
Optionally, the target event is disconnection of the headset from the master device; accordingly, the headset 300 of the embodiment of the present invention may further include:
and the selecting module is used for selecting the slave equipment with the highest weight value from the slave equipment except the master equipment in the at least two pieces of electronic equipment as the temporary master equipment.
The earphone provided by the embodiment of the present invention can implement each process implemented by the earphone in the method embodiments of fig. 1 to fig. 2, and is not described herein again to avoid repetition.
In the earphone of the embodiment of the invention, the earphone is connected with at least two pieces of electronic equipment, and the first processing module determines the target playing sequence of the at least two pieces of electronic equipment according to the preset judgment condition under the condition of acquiring the playing requests of the at least two pieces of electronic equipment; the playing control module sequentially responds to the playing requests of the at least two electronic devices according to the target playing sequence and sequentially plays the audio data sent by the at least two electronic devices through the earphones; wherein the preset judgment condition is at least one of the following conditions: historical connection records of at least two electronic devices and the headset; the types of the audio data sent by the at least two electronic devices; the playing time of the audio data sent by the at least two electronic devices; the weighted values of the at least two electronic devices are connected with the electronic devices through the earphones, when playing requirements of the electronic devices exist, the frequent manual switching between the earphones and the electronic devices is not needed, automatic switching of playing can be achieved, operation is simple, and audio playing experience of users is improved.
Fig. 4 is a schematic diagram of a hardware structure of an earphone for implementing various embodiments of the present invention.
The headset 400 includes, but is not limited to: an audio output unit 401, an interface unit 402, a memory 403, a processor 404, and a power supply 405. It will be appreciated by those skilled in the art that the earphone configuration shown in fig. 4 does not constitute a limitation of the earphone, and that the earphone may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In an embodiment of the invention, the headset is a wireless headset.
The earphone is connected with at least two pieces of electronic equipment, and under the condition that playing requests of the at least two pieces of electronic equipment are obtained, the target playing sequence of the at least two pieces of electronic equipment is determined according to preset judgment conditions; sequentially responding to the playing requests of the at least two electronic devices according to the target playing sequence, and sequentially playing the audio data sent by the at least two electronic devices through the earphones; wherein the preset judgment condition is at least one of the following conditions: historical connection records of at least two electronic devices and the headset; the types of the audio data sent by the at least two electronic devices; the playing time of the audio data sent by the at least two electronic devices; a weight value of at least two electronic devices.
In the embodiment of the invention, through the connection of the earphone and the plurality of electronic devices, when the playing requirements of the plurality of electronic devices exist, the frequent manual switching of the connection between the earphone and the electronic devices by a user is not needed, the automatic switching of playing can be realized, the operation is simple, and the audio playing experience of the user is improved.
The audio output unit 401 converts audio data stored in the memory 403 into an audio signal and outputs as sound. The audio output unit 401 includes a speaker.
The interface unit 402 is a wireless interface for the terminal device to connect with the headset 400. For example, the terminal device may include, but is not limited to, a mobile phone, a tablet computer, a laptop computer, a palmtop computer, a vehicle-mounted terminal device, a wearable device, a pedometer, and the like. The interface unit 402 serves to receive an audio data input from the terminal device and transmit the received input to the audio output unit 401 of the headset 400.
The memory 403 may be used to store software programs as well as various data. The memory 403 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program (such as a sound playing function) required for at least one function, and the like; the storage data area may store data (such as audio data) created according to the use of the headset, and the like. Further, the memory 403 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 404 is a control center of the headset, connects various parts of the whole headset by various interfaces and lines, performs various functions of the mobile terminal device and processes data by running or executing software programs and/or modules stored in the memory 403 and calling data stored in the memory 403, thereby monitoring the headset as a whole. Processor 404 may include one or more processing units; preferably, the processor 404 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 404.
The headset 400 may also include a power source 405 (e.g., a battery) for powering the various components, and preferably the power source 405 may be logically coupled to the processor 404 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
In addition, the headset 400 includes some functional modules that are not shown, and thus will not be described in detail herein.
Preferably, an embodiment of the present invention further provides an earphone, where the earphone is wirelessly connected to at least two electronic devices, and the earphone includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the computer program implements each process of the earphone play control method embodiment, and can achieve the same technical effect, and therefore, to avoid repetition, details are not repeated here.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned earphone play control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (12)
1. A method for controlling the playing of an earphone is applied to the earphone, and is characterized in that the earphone is connected with at least two electronic devices, and the method comprises the following steps:
under the condition of acquiring playing requests of at least two electronic devices, determining a target playing sequence of the at least two electronic devices according to a preset judgment condition;
sequentially responding to the playing requests of the at least two electronic devices according to the target playing sequence, and sequentially playing the audio data sent by the at least two electronic devices through the earphones;
wherein the preset determination condition is at least one of the following conditions:
historical connection records of the at least two electronic devices and the headset;
the types of the audio data sent by the at least two electronic devices;
the playing time of the audio data sent by the at least two electronic devices;
a weight value of the at least two electronic devices.
2. The method according to claim 1, wherein the preset determination condition is a weight value of the at least two electronic devices;
before determining the target playing order of the at least two electronic devices according to a preset judgment condition, the method further comprises:
determining a weight value of each of the at least two pieces of electronic equipment according to at least one of a target duration and a volume value of each of the at least two pieces of electronic equipment, wherein the target duration is a duration from a time when the electronic equipment is connected with the headset to a time when the headset detects a play request.
3. The method of claim 1, further comprising:
receiving a control instruction sent by first electronic equipment, wherein the first electronic equipment is one of the at least two pieces of electronic equipment;
under the condition that the first electronic equipment is a main equipment, executing a target event according to the control instruction, wherein the target event comprises one of the following events:
disconnecting the headset from the master device;
disconnecting the earphone from a first target slave device, wherein the first target slave device is one of the other electronic devices except the master device;
changing a second target slave device to be a master device, wherein the second target slave device is one of the other electronic devices except the master device;
and switching the playing mode of the earphone.
4. The method of claim 3,
under the condition that the earphone does not store main equipment information, the first electronic equipment connected with the earphone in the at least two pieces of electronic equipment is main equipment;
and under the condition that the earphone stores the main device information, the electronic device corresponding to the main device information is the main device, or the electronic device which is changed into the main device according to the control instruction of the main device is the main device.
5. The method of claim 4, wherein the target event is: disconnecting the headset from the master device; the method further comprises the following steps:
and selecting the slave equipment with the highest weight value from the slave equipment except the master equipment in the at least two pieces of electronic equipment as temporary master equipment.
6. A headset, wherein the headset is connected to at least two electronic devices, comprising:
the first processing module is used for determining a target playing sequence of at least two pieces of electronic equipment according to a preset judgment condition under the condition of acquiring playing requests of the at least two pieces of electronic equipment;
the playing control module is used for sequentially responding to the playing requests of the at least two electronic devices according to the target playing sequence and sequentially playing the audio data sent by the at least two electronic devices through the earphones;
wherein the preset determination condition is at least one of the following conditions:
historical connection records of the at least two electronic devices and the headset;
the types of the audio data sent by the at least two electronic devices;
the playing time of the audio data sent by the at least two electronic devices;
a weight value of the at least two electronic devices.
7. The earphone according to claim 6, wherein the preset determination condition is a weight value of the at least two electronic devices;
the earphone further comprises:
the second processing module is configured to determine a weight value of each of the at least two pieces of electronic equipment according to at least one of a target duration and a volume value of each of the at least two pieces of electronic equipment, where the target duration is a duration from a time when the electronic equipment is connected with the headset to a time when the headset detects a play request.
8. The headset of claim 6, further comprising:
the receiving module is used for receiving a control instruction sent by first electronic equipment, wherein the first electronic equipment is one of the at least two pieces of electronic equipment;
a third processing module, configured to, if the first electronic device is a master device, execute a target event according to the control instruction, where the target event includes one of the following events:
disconnecting the headset from the master device;
disconnecting the earphone from a first target slave device, wherein the first target slave device is one of the other electronic devices except the master device;
changing a second target slave device to be a master device, wherein the second target slave device is one of the other electronic devices except the master device;
and switching the playing mode of the earphone.
9. The headset of claim 8,
under the condition that the earphone does not store main equipment information, the first electronic equipment connected with the earphone in the at least two pieces of electronic equipment is main equipment;
and under the condition that the earphone stores the main device information, the electronic device corresponding to the main device information is the main device, or the electronic device which is changed into the main device according to the control instruction of the main device is the main device.
10. The headset of claim 9, wherein the target event is disconnection of the headset from the host device; the earphone further comprises:
and the selecting module is used for selecting the slave equipment with the highest weight value from the slave equipment except the master equipment in the at least two pieces of electronic equipment as the temporary master equipment.
11. A headset, characterized in that the headset is connected with at least two electronic devices, comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the headset play control method according to any of claims 1 to 5.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the steps of the headphone playback control method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010185015.5A CN111372159A (en) | 2020-03-17 | 2020-03-17 | Earphone play control method and earphone |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010185015.5A CN111372159A (en) | 2020-03-17 | 2020-03-17 | Earphone play control method and earphone |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111372159A true CN111372159A (en) | 2020-07-03 |
Family
ID=71210535
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010185015.5A Pending CN111372159A (en) | 2020-03-17 | 2020-03-17 | Earphone play control method and earphone |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111372159A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112162838A (en) * | 2020-09-25 | 2021-01-01 | 维沃移动通信有限公司 | Multimedia file playing method and device and electronic equipment |
CN112333533A (en) * | 2020-09-07 | 2021-02-05 | 深圳Tcl新技术有限公司 | Selection method, device and equipment of playing equipment and computer readable storage medium |
CN113556830A (en) * | 2021-05-14 | 2021-10-26 | 北京汇钧科技有限公司 | Device connection method, device and wireless earphone |
CN113852944A (en) * | 2021-09-24 | 2021-12-28 | 维沃移动通信有限公司 | Audio output method and device |
WO2023035918A1 (en) * | 2021-09-08 | 2023-03-16 | Oppo广东移动通信有限公司 | Audio playing control method and apparatus, and audio output device and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106341516A (en) * | 2015-07-06 | 2017-01-18 | 中兴通讯股份有限公司 | Multipoint connection control method and apparatus, terminal and multipoint bluetooth earphone |
CN110191442A (en) * | 2019-04-18 | 2019-08-30 | 华为技术有限公司 | A kind of Bluetooth connecting method, equipment and system |
US20200026486A1 (en) * | 2018-07-20 | 2020-01-23 | Logitech Europe S.A. | Content streaming apparatus and method |
-
2020
- 2020-03-17 CN CN202010185015.5A patent/CN111372159A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106341516A (en) * | 2015-07-06 | 2017-01-18 | 中兴通讯股份有限公司 | Multipoint connection control method and apparatus, terminal and multipoint bluetooth earphone |
US20200026486A1 (en) * | 2018-07-20 | 2020-01-23 | Logitech Europe S.A. | Content streaming apparatus and method |
CN110191442A (en) * | 2019-04-18 | 2019-08-30 | 华为技术有限公司 | A kind of Bluetooth connecting method, equipment and system |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112333533A (en) * | 2020-09-07 | 2021-02-05 | 深圳Tcl新技术有限公司 | Selection method, device and equipment of playing equipment and computer readable storage medium |
CN112333533B (en) * | 2020-09-07 | 2023-12-05 | 深圳Tcl新技术有限公司 | Method, device, equipment and computer readable storage medium for selecting playing equipment |
CN112162838A (en) * | 2020-09-25 | 2021-01-01 | 维沃移动通信有限公司 | Multimedia file playing method and device and electronic equipment |
CN112162838B (en) * | 2020-09-25 | 2023-06-20 | 维沃移动通信有限公司 | Multimedia file playing method and device and electronic equipment |
CN113556830A (en) * | 2021-05-14 | 2021-10-26 | 北京汇钧科技有限公司 | Device connection method, device and wireless earphone |
WO2023035918A1 (en) * | 2021-09-08 | 2023-03-16 | Oppo广东移动通信有限公司 | Audio playing control method and apparatus, and audio output device and storage medium |
CN113852944A (en) * | 2021-09-24 | 2021-12-28 | 维沃移动通信有限公司 | Audio output method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111372159A (en) | Earphone play control method and earphone | |
US11671920B2 (en) | Method and system for operating a multifunction portable electronic device using voice-activation | |
US11812485B2 (en) | Bluetooth communication method and terminal | |
US11282519B2 (en) | Voice interaction method, device and computer readable storage medium | |
CN109068211B (en) | TWS earphone and computer readable storage medium thereof | |
CN111935583B (en) | Earphone mode control method, earphone mode control device, terminal equipment, earphone mode control system and storage medium | |
EP3091756B1 (en) | Method and system for setting alarm clock of wireless music system | |
US11785092B2 (en) | Multimedia resource playing method, apparatus, terminal, and system | |
CN111787452B (en) | TWS earphone, TWS earphone control method, TWS earphone control device and computer readable storage medium | |
CN108737551B (en) | VR experiences equipment and VR broadcast management system | |
CN108737648B (en) | Music volume self-adaptive adjusting method, device, storage medium and terminal | |
US20200341721A1 (en) | Speaker with broadcasting mode and broadcasting method thereof | |
US10052067B2 (en) | Wearable device | |
CN110856086A (en) | Method and device for controlling sound system and readable storage medium | |
CN113840269A (en) | Multimedia data transmission method and device, electronic equipment and storage medium | |
CN116193413B (en) | Bluetooth connection method, system, storage medium and device | |
CN112004154A (en) | Recording method and system of intelligent terminal and intelligent terminal | |
CN107704172B (en) | Multimedia application switching control method, system and storage device | |
JP2015002394A (en) | Information processing apparatus and computer program | |
WO2023011370A1 (en) | Audio playing method and apparatus | |
CN109274827A (en) | Method, apparatus, equipment and the medium of auto-pickup mobile phone communication | |
EP1511237B1 (en) | Wireless Communication device and a method for establishing communication connection | |
CN110392878A (en) | A kind of method and mobile terminal controlling sound | |
CN106210762A (en) | Method, source device, purpose equipment, TV and the terminal that audio frequency is play | |
CN111988693A (en) | Earphone control method and system based on earphone charging box and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200703 |