技术领域technical field
本发明涉及通信技术领域,尤其涉及一种音频播放的控制方法及移动终端。The invention relates to the field of communication technologies, in particular to an audio playback control method and a mobile terminal.
背景技术Background technique
随着人们生活水平的不断提高,汽车已经逐渐成为了不可或缺的出行工具。且随着汽车技术的发展,移动终端(如手机)也可通过车载蓝牙与车载端进行连接,通过车载端进行语音通话或音乐播放,方便用户的使用。With the continuous improvement of people's living standards, cars have gradually become an indispensable means of travel. And with the development of automobile technology, mobile terminals (such as mobile phones) can also be connected to the vehicle-mounted terminal through the vehicle-mounted Bluetooth, and voice calls or music playback can be performed through the vehicle-mounted terminal, which is convenient for users to use.
通过确认发现,市面上很多汽车在车载端与移动终端建立蓝牙连接后,能够自动拉起移动终端上的音乐播放器的功能。在这种未经使用者确认和允许的情况下,直接将音乐播放器拉起,播放音频数据的行为,对于那些不想车载端播放音频数据的使用者来说,每次还需要手动去停止音乐播放器,为很多使用者带来了不便和困扰。Through confirmation, it is found that many cars on the market can automatically activate the music player function on the mobile terminal after the vehicle-mounted terminal establishes a Bluetooth connection with the mobile terminal. In this case, the music player is directly pulled up to play the audio data without the user's confirmation and permission. For those users who do not want the car to play the audio data, they need to manually stop the music every time. Players have brought inconvenience and confusion to many users.
发明内容Contents of the invention
本发明实施例提供了一种音频播放的控制方法及移动终端,以解决现有技术中当车载蓝牙与移动终端连接后,音乐播放器自动进行音频播放的问题。Embodiments of the present invention provide an audio playback control method and a mobile terminal, so as to solve the problem in the prior art that the music player automatically plays audio after the vehicle-mounted Bluetooth is connected to the mobile terminal.
为了解决上述技术问题,本发明是这样实现的:In order to solve the problems of the technologies described above, the present invention is achieved in that:
第一方面,本发明实施例提供了一种音频播放的控制方法,应用于移动终端,包括:In the first aspect, the embodiment of the present invention provides an audio playback control method applied to a mobile terminal, including:
接收车载端通过蓝牙方式发送的音频播放请求;Receive the audio playback request sent by the vehicle terminal via Bluetooth;
根据所述音频播放请求的接收时间和预设事件的发生时间之间的时间间隔,判断所述音频播放请求是否为所述车载端自动发送的;其中,所述预设事件包括:所述车载端和所述移动终端之间的蓝牙连接的成功建立,或,所述移动终端最近一次通过车载蓝牙进行语音通话的结束;According to the time interval between the receiving time of the audio playing request and the occurrence time of the preset event, it is judged whether the audio playing request is automatically sent by the vehicle-mounted terminal; wherein, the preset event includes: the vehicle-mounted The successful establishment of the Bluetooth connection between the terminal and the mobile terminal, or the end of the last voice call made by the mobile terminal through the vehicle Bluetooth;
若所述音频播放请求为所述车载端自动发送的,则拒绝所述音频播放请求。If the audio play request is automatically sent by the vehicle terminal, the audio play request is rejected.
第二方面,提供了一种移动终端,包括:In a second aspect, a mobile terminal is provided, including:
接收模块,用于接收车载端通过蓝牙方式发送的音频播放请求;The receiving module is used to receive the audio playback request sent by the vehicle terminal through bluetooth;
判断模块,用于根据所述音频播放请求的接收时间和预设事件的发生时间之间的时间间隔,判断所述音频播放请求是否为所述车载端自动发送的;其中,所述预设事件包括:所述车载端和所述移动终端之间的蓝牙连接的成功建立,或,所述移动终端最近一次通过车载蓝牙进行语音通话的结束;A judging module, configured to judge whether the audio playing request is automatically sent by the vehicle terminal according to the time interval between the receiving time of the audio playing request and the occurrence time of a preset event; wherein, the preset event Including: the successful establishment of the Bluetooth connection between the vehicle-mounted terminal and the mobile terminal, or the end of the last voice call made by the mobile terminal through the vehicle-mounted Bluetooth;
第一处理模块,用于当所述音频播放请求为所述车载端自动发送的时,拒绝所述音频播放请求。The first processing module is configured to reject the audio play request when the audio play request is automatically sent by the vehicle terminal.
第三方面,提供了一种移动终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上所述的音频播放的控制方法的步骤。In a third aspect, a mobile terminal is provided, including a processor, a memory, and a computer program stored on the memory and operable on the processor. When the computer program is executed by the processor, the above-mentioned The steps of the control method for audio playback described above.
第四方面,提供了一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如上所述的音频播放的控制方法的步骤。In a fourth aspect, a computer-readable storage medium is provided, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the audio playback control method as described above are implemented.
本发明实施例中,在移动终端接收到车载端通过蓝牙方式发送的音频播放请求时,根据音频播放请求的接收时间和预设事件的发生时间之间的时间间隔,判断接收到的音频播放请求是否为车载端自动发送的,若接收到的音频播放请求是车载端自动发送的,则拒绝该音频播放请求,从而使车载端不能自动拉起移动终端上的音乐播放器进行音频播放,避免了需要用户关闭车载端自动拉起的音乐播放器的麻烦。In the embodiment of the present invention, when the mobile terminal receives the audio playback request sent by the vehicle-mounted terminal through Bluetooth, it judges the received audio playback request according to the time interval between the receiving time of the audio playback request and the occurrence time of the preset event. Whether it is automatically sent by the vehicle-mounted terminal, if the received audio playback request is automatically sent by the vehicle-mounted terminal, the audio playback request will be rejected, so that the vehicle-mounted terminal cannot automatically pull up the music player on the mobile terminal for audio playback, avoiding The trouble of requiring the user to turn off the music player that is automatically pulled up by the car terminal.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention , for those skilled in the art, other drawings can also be obtained according to these drawings without paying creative labor.
图1表示本发明实施例提供的音频播放的控制方法的流程图;Fig. 1 shows the flow chart of the control method of audio playback provided by the embodiment of the present invention;
图2表示本发明实施例提供的移动终端的框图之一;Fig. 2 represents one of the block diagrams of the mobile terminal provided by the embodiment of the present invention;
图3表示本发明实施例提供的移动终端的框图之二;FIG. 3 shows the second block diagram of the mobile terminal provided by the embodiment of the present invention;
图4表示本发明实施例提供的移动终端的框图之三。Fig. 4 shows the third block diagram of the mobile terminal provided by the embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
依据本发明实施例的一个方面,提供了一种音频播放的控制方法,应用于移动终端。According to an aspect of the embodiments of the present invention, a method for controlling audio playback is provided, which is applied to a mobile terminal.
其中,该音频播放的控制方法包括:Wherein, the control method of the audio playback includes:
步骤101、接收车载端通过蓝牙方式发送的音频播放请求。Step 101, receiving an audio playback request sent by the vehicle terminal via Bluetooth.
其中,当车载端与移动终端之间的蓝牙连接成功建立后,车载端可通过蓝牙连接向移动终端发送音频播放请求,以使移动终端根据该音频播放请求启动音乐播放器并播放音频,并通过车载端的扬声器播出该音频。Among them, when the Bluetooth connection between the vehicle-mounted terminal and the mobile terminal is successfully established, the vehicle-mounted terminal can send an audio playback request to the mobile terminal through the Bluetooth connection, so that the mobile terminal can start the music player and play the audio according to the audio playback request, and pass The audio is broadcast from the speaker on the vehicle side.
步骤102、根据音频播放请求的接收时间和预设事件的发生时间之间的时间间隔,判断音频播放请求是否为车载端自动发送的。Step 102, according to the time interval between the receiving time of the audio playing request and the occurrence time of the preset event, determine whether the audio playing request is automatically sent by the vehicle terminal.
由于车载端通过蓝牙方式发送的音频播放请求,有可能是车载端自动发送的,而非是用户主动触发的,在这种情况下,若移动终端根据音频播放请求,启动音乐播放器进行音频播放,但用户却不想听,则还需用户手动停止音频播放,这样会给用户带来不便和困扰。本发明实施例中,为了解决用户这一困扰,在接收到车载端通过蓝牙方式发送的音频播放请求时,会先判断该音频播放请求是否为车载端自动发送的,若确定是车载端自动发送的,则拒绝该音频播放请求;若确定不是车载端自动发送的,则响应该音频播放请求,启动音频播放器进行音频播放。Since the audio playback request sent by the vehicle end via Bluetooth may be automatically sent by the vehicle end, rather than triggered by the user, in this case, if the mobile terminal starts the music player to play the audio according to the audio playback request , but the user does not want to listen, the user needs to manually stop the audio playback, which will cause inconvenience and confusion to the user. In the embodiment of the present invention, in order to solve the problem of the user, when receiving the audio playback request sent by the vehicle-mounted terminal via Bluetooth, it will first determine whether the audio playback request is automatically sent by the vehicle-mounted terminal. If yes, the audio playback request is rejected; if it is determined that the audio playback request is not sent automatically by the vehicle terminal, the audio player is started to play the audio in response to the audio playback request.
其中,通过大量的对比测试发现,车载端通过蓝牙方式自动发送音频播放请求的情况是发生在一预设事件后的固定间隔时间点,其中该预设事件发生于车载端与移动终端开始建立蓝牙连接后,因此,本发明实施例中,可根据音频播放请求的接收时间与该预设事件的发生时间之间的时间间隔,来判断移动终端接收到的音频播放请求是否为车载端自动发送的。Among them, through a large number of comparative tests, it was found that the situation that the vehicle-mounted terminal automatically sends audio playback requests through Bluetooth occurs at a fixed interval time point after a preset event, wherein the preset event occurs when the vehicle-mounted terminal and the mobile terminal start to establish Bluetooth. After connection, therefore, in the embodiment of the present invention, it can be judged whether the audio playback request received by the mobile terminal is automatically sent by the vehicle terminal according to the time interval between the receiving time of the audio playback request and the occurrence time of the preset event .
其中,这里所述的预设事件包括:车载端与移动终端之间的蓝牙连接的成功建立,或,移动终端最近一次通过车载蓝牙进行语音通话的结束。也就是,车载端通过蓝牙方式自动发送音频播放请求的情况是发生在蓝牙连接成功后或通过蓝牙方式进行语音通话结束后的一固定时间间隔时间点。Wherein, the preset event mentioned here includes: the successful establishment of the Bluetooth connection between the vehicle-mounted terminal and the mobile terminal, or the end of the last voice call made by the mobile terminal through the vehicle-mounted Bluetooth. That is, the situation that the vehicle-mounted terminal automatically sends the audio playback request through the Bluetooth method occurs at a fixed time interval after the Bluetooth connection is successful or after the voice call through the Bluetooth method ends.
其中,本发明实施例中,可通过如下方式来确定预设事件和预设事件的发生时间:Wherein, in the embodiment of the present invention, the preset event and the occurrence time of the preset event may be determined in the following manner:
在移动终端与车载端成功建立蓝牙连接后、接收到音频播放请求前,判断移动终端是否通过车载蓝牙进行过语音通话。若移动终端未通过车载蓝牙进行过语音通话,则该预设事件为:车载端与移动终端之间的蓝牙连接的成功建立,对应的发生时间为:车载端与移动终端之间成功建立蓝牙连接时的建立时间;若移动终端通过车载蓝牙进行过语音通话,则该预设事件为:移动终端最近一次通过车载蓝牙进行语音通话的结束,对应的发生时间为:移动终端最近一次通过车载蓝牙进行语音通话结束时的挂断时间。After the mobile terminal successfully establishes a Bluetooth connection with the vehicle terminal and before receiving an audio playback request, it is determined whether the mobile terminal has made a voice call through the vehicle Bluetooth. If the mobile terminal has not made a voice call through the vehicle-mounted Bluetooth, the preset event is: the successful establishment of the Bluetooth connection between the vehicle-mounted terminal and the mobile terminal, and the corresponding occurrence time is: the successful establishment of a Bluetooth connection between the vehicle-mounted terminal and the mobile terminal If the mobile terminal has made a voice call through the vehicle-mounted Bluetooth, the preset event is: the end of the mobile terminal’s latest voice call through the vehicle-mounted Bluetooth, and the corresponding occurrence time is: the mobile terminal’s latest voice call through the vehicle-mounted Hangup time at the end of a voice call.
步骤103、若音频播放请求为车载端自动发送的,则拒绝音频播放请求。Step 103, if the audio play request is automatically sent by the vehicle terminal, reject the audio play request.
本步骤中,在确定该音频播放请求为车载端自动发送至移动终端时,移动终端选择拒绝该音频播放请求,不启动音乐播放器进行音频播放,从而使车载端不能自动拉起移动终端上的音乐播放器进行音频播放,避免了需要用户关闭车载端自动拉起的音乐播放器的麻烦。In this step, when it is determined that the audio playback request is automatically sent to the mobile terminal by the vehicle-mounted terminal, the mobile terminal chooses to reject the audio playback request and does not start the music player for audio playback, so that the vehicle-mounted terminal cannot automatically pull up the mobile terminal. The music player performs audio playback, which avoids the trouble of requiring the user to turn off the music player that is automatically pulled up by the vehicle terminal.
进一步地,由于车载端通过蓝牙方式自动发送音频播放请求是发生在与预设事件之间具有的固定时间间隔的时间点,因此本发明实施例可预先设置一时间间隔,使该时间间隔大于预设事件与车载端通过蓝牙方式自动发送音频播放请求的接收时间之间的时间间隔,这样,在判断音频播放请求是否为车载端自动发送的之前,可先对比本次中音频播放请求的接收时间和预设事件的发生时间之间的时间间隔,与该预设时间间隔的大小。若本次中音频播放请求的接收时间和预设事件的发生时间之间的时间间隔,小于预设时间间隔,说明该音频播放请求可能是车载端自动发送的,此时再进入根据音频播放请求的接收时间和预设事件的发生时间之间的时间间隔,判断音频播放请求是否为车载端自动发送的的步骤。若本次中音频播放请求的接收时间和预设事件的发生时间之间的时间间隔,大于或等于预设时间间隔,说明该音频播放请求并不是车载端自动发送的,则不必进行后续步骤的判断,以避免不必要的数据处理过程。Further, since the vehicle-mounted terminal automatically sends the audio playback request via Bluetooth at a time point with a fixed time interval between the preset event, the embodiment of the present invention can preset a time interval so that the time interval is greater than the preset time interval. Set the time interval between the event and the receiving time of the audio playback request automatically sent by the vehicle end via Bluetooth. In this way, before judging whether the audio playback request is automatically sent by the vehicle end, you can first compare the receiving time of the audio playback request in this time and the time interval between the occurrence time of the preset event, and the size of the preset time interval. If the time interval between the receiving time of the audio playback request and the occurrence time of the preset event is less than the preset time interval, it means that the audio playback request may be automatically sent by the vehicle terminal, and then enter the audio playback request at this time The time interval between the receiving time of the preset event and the occurrence time of the preset event is a step of judging whether the audio playback request is automatically sent by the vehicle terminal. If the time interval between the receiving time of the audio playback request and the occurrence time of the preset event is greater than or equal to the preset time interval, it means that the audio playback request is not automatically sent by the vehicle terminal, and there is no need to perform subsequent steps Judgment to avoid unnecessary data processing.
具体地,步骤102:根据音频播放请求的接收时间和预设事件的发生时间之间的时间间隔,判断音频播放请求是否为车载端自动发送的,包括:Specifically, step 102: According to the time interval between the receiving time of the audio playing request and the occurrence time of the preset event, determine whether the audio playing request is automatically sent by the vehicle terminal, including:
将本次中音频播放请求的接收时间和预设事件的发生时间之间的时间间隔,与已记录的历史信息中的时间间隔进行对比;若本次中音频播放请求的接收时间和预设事件的发生时间之间的时间间隔,与历史信息中预设比例值的时间间隔相匹配,则确定该音频播放请求为车载端自动发送的。Compare the time interval between the receiving time of the audio playback request and the occurrence time of the preset event with the time interval in the recorded historical information; if the receiving time of the audio playback request of this time and the preset event If the time interval between the occurrence times matches the time interval of the preset ratio value in the historical information, it is determined that the audio playback request is automatically sent by the vehicle terminal.
其中,这里所述的历史信息中的时间间隔为:历史中每次接收到车载端通过蓝牙方式发送的音频播放请求时的接收时间与当次中预设事件的发生时间之间的时间间隔。Wherein, the time interval in the historical information mentioned here is: the time interval between the receiving time and the occurrence time of the preset event in the current time when the audio playback request sent by the vehicle terminal via Bluetooth is received each time in the history.
这里所述的历史信息中,记录有至少一次以往接收到车载端通过蓝牙方式发送音频播放请求时的接收时间与当次中预设事件的发生时间之间的时间间隔。其中,这些音频播放请求可能是车载端通过蓝牙方式自动发送的,也可能是用户主动触发的,但对于车载端通过蓝牙方式自动发送的情况,移动终端接收到音频播放请求时的接收时间与当次中预设事件的发生时间之间的时间间隔基本上是固定不变的,且时间较短,因此可将本次中音频播放请求的接收时间和预设事件的发生时间之间的时间间隔,与已记录的历史信息中的时间间隔进行对比,若本次中音频播放请求的接收时间和预设事件的发生时间之间的时间间隔,与历史信息中预设比例值的时间间隔相匹配,则确定该音频播放请求为车载端自动发送的。In the history information described here, there is recorded the time interval between the receiving time when at least one audio playback request was received from the vehicle-mounted terminal via Bluetooth and the occurrence time of the preset event in the current time. Among them, these audio playback requests may be automatically sent by the vehicle terminal through Bluetooth, or may be triggered by the user actively. The time interval between the occurrence time of the preset event in this time is basically fixed and short, so the time interval between the receiving time of the audio playback request and the occurrence time of the preset event in this time can be , compared with the time interval in the recorded historical information, if the time interval between the receiving time of the audio playback request and the occurrence time of the preset event matches the time interval of the preset ratio value in the historical information , it is determined that the audio playback request is automatically sent by the vehicle terminal.
其中,由于车载端与移动终端之间进行信息传输时,会因为多种原因,导致每次所需的时间有所差异,因此,为了更好判断出该音频播放请求是否为车载端自动发送的,本发明实施例中,在进行时间间隔对比时,引入了时间误差±Td。当本次中音频播放请求的接收时间和预设事件的发生时间之间的时间间隔处于历史信息中一时间间隔的±Td内时,则认为两者之间相匹配。例如,本次中音频播放请求的接收时间和预设事件的发生时间之间的时间间隔为4.7s,历史信息中的一时间间隔为5s,Td=0.5s,由于4.7s处于5s±0.5s的范围内,因此两者相匹配。当本次中音频播放请求的接收时间和预设事件的发生时间之间的时间间隔,与历史信息中预设比例值的时间间隔相匹配时,则确定该音频播放请求为车载端自动发送的。其中,这里所述的预设比例值可以是2/5、1/4、1/3、1/2等,具体数值可根据实际需求选择。当然这里所述的预设比例值也可以替换为预设数量值。Among them, when information is transmitted between the vehicle-mounted terminal and the mobile terminal, due to various reasons, the time required each time is different. Therefore, in order to better determine whether the audio playback request is automatically sent by the vehicle-mounted terminal , in the embodiment of the present invention, when performing time interval comparison, a time error ±Td is introduced. When the time interval between the receiving time of the audio playback request and the occurrence time of the preset event is within ±Td of a time interval in the historical information, it is considered that the two match. For example, the time interval between the receiving time of the audio playback request and the occurrence time of the preset event this time is 4.7s, the time interval in the historical information is 5s, Td =0.5s, because 4.7s is at 5s±0.5 s, so the two match. When the time interval between the receiving time of the audio playback request and the occurrence time of the preset event matches the time interval of the preset ratio value in the historical information, it is determined that the audio playback request is automatically sent by the vehicle terminal . Wherein, the preset ratio value mentioned here can be 2/5, 1/4, 1/3, 1/2, etc., and the specific value can be selected according to actual needs. Of course, the preset ratio value described here can also be replaced with a preset quantity value.
其中,由于车载端自动发送音频播放请求时的发送时间与当次中预设事件的发生时间之间的时间间隔一般较小,若时间间隔较大,则可确定该音频播放请求并非是车载端自动发送的,因此在将接收到车载端通过蓝牙方式发送的音频播放请求时的接收时间与当次中预设事件的发生时间之间的时间间隔进行记录之前,可先判断该时间间隔的大小。若该时间间隔小于该预设的时间间隔,则记录该时间间隔;若该时间间隔大于或等于一预设的时间间隔,则对该时间间隔不进行记录,以保证历史信息中记录的时间间隔的可对比性。其中,这里所述的预设的时间间隔可根据实际需求设置,本发明实施例对此不进行限定。Among them, since the time interval between the sending time when the vehicle-mounted terminal automatically sends the audio playback request and the occurrence time of the current preset event is generally small, if the time interval is large, it can be determined that the audio playback request is not from the vehicle-mounted terminal. It is sent automatically, so before recording the time interval between the receiving time when the audio playback request sent by the vehicle terminal via Bluetooth and the occurrence time of the preset event in the current time is recorded, the size of the time interval can be judged first . If the time interval is less than the preset time interval, the time interval is recorded; if the time interval is greater than or equal to a preset time interval, the time interval is not recorded to ensure the time interval recorded in the historical information comparability. Wherein, the preset time interval described here may be set according to actual needs, which is not limited in this embodiment of the present invention.
进一步地,本发明实施例中,上述历史信息中还包括:历史中接收到车载端通过蓝牙方式发送的音频播放请求的次数。Further, in the embodiment of the present invention, the above historical information also includes: the number of times in the history that audio playback requests sent by the vehicle terminal via Bluetooth are received.
其中,当历史信息中记录的次数大于或等于第一预设次数,则说明历史信息中的数据量已满足对比要求,则进入将本次中音频播放请求的接收时间和预设事件的发生时间之间的时间间隔,与已记录的历史信息中的时间间隔进行对比的步骤。若历史信息中记录的次数小于第一预设次数,则说明历史信息中的数据量还不够,无法根据历史信息中的时间间隔来判断该音频播放请求是否为车载端自动发送的。其中,第一预设次数为数值较小的一个数值。Among them, when the number of times recorded in the historical information is greater than or equal to the first preset number of times, it means that the amount of data in the historical information has met the comparison requirements, and then enter the time of receiving the audio playback request and the time of occurrence of the preset event The time interval between steps to compare with the time interval in the recorded historical information. If the number of times recorded in the historical information is less than the first preset number of times, it means that the amount of data in the historical information is not enough, and it is impossible to judge whether the audio playback request is automatically sent by the vehicle terminal according to the time interval in the historical information. Wherein, the first preset number of times is a smaller value.
其中,在本发明实施例中,可对历史信息中的时间间隔的数量设置最大值,当历史信息中的时间间隔的数量达到最大值时,不再继续记录新的时间间隔;当历史信息中的时间间隔的数量未达到最大值时,则继续记录新的时间间隔,即:若历史信息中记录的次数大于第一预设次数且小于第二预设次数,则也将本次中接收到音频播放请求的接收时间和预设事件的发生时间之间的时间间隔进行记录。其中,这里所述的第二预设次数即为最大值。Wherein, in the embodiment of the present invention, the maximum value can be set for the number of time intervals in the historical information, when the number of time intervals in the historical information reaches the maximum value, no longer continue to record new time intervals; when the historical information When the number of time intervals does not reach the maximum value, continue to record new time intervals, that is, if the number of times recorded in the historical information is greater than the first preset number of times and less than the second preset number of times, it will also be received in this time The time interval between the time an audio playback request is received and the time a preset event occurs is recorded. Wherein, the second preset number of times mentioned here is the maximum value.
当然可以理解的是,当历史信息中的时间间隔的数量达到最大值时,也可对历史信息中的时间间隔进行更新,即记录最新的时间间隔,淘汰时间最久的时间间隔。Of course, it can be understood that when the number of time intervals in the historical information reaches the maximum value, the time intervals in the historical information may also be updated, that is, the latest time interval is recorded and the longest time interval is eliminated.
进一步地,当预设事件为:车载端和移动终端成功建立蓝牙连接,对应的发生时间为:车载端与移动终端成功建立蓝牙连接时的建立时间时,本发明实施例中所述的历史信息为第一历史信息。Further, when the preset event is: the vehicle-mounted terminal and the mobile terminal successfully establish a Bluetooth connection, and the corresponding occurrence time is: the establishment time when the vehicle-mounted terminal and the mobile terminal successfully establish a Bluetooth connection, the history information described in the embodiments of the present invention is the first historical information.
这样,在将本次中音频播放请求的接收时间和预设事件的发生时间之间的时间间隔,与已记录的历史信息中的时间间隔进行对比时,具体为:In this way, when comparing the time interval between the receiving time of the audio playback request and the occurrence time of the preset event this time with the time interval in the recorded historical information, it is specifically:
获取已记录的第一历史信息。将本次中接收时间与建立时间之间的第一时间间隔,与第一历史信息中的时间间隔进行对比,若第一时间间隔与第一历史信息中预设比例值的时间间隔相匹配,则确定音频播放请求为车载端自动发送的。Get the first recorded historical information. Comparing the first time interval between the receiving time and the establishment time this time with the time interval in the first historical information, if the first time interval matches the time interval of the preset proportional value in the first historical information, Then it is determined that the audio playback request is automatically sent by the vehicle terminal.
其中,第一历史信息包括:每次接收到车载端通过蓝牙方式发送的音频播放请求时的接收时间,与当次车载端和移动终端之间成功建立蓝牙连接时的建立时间之间的时间间隔。Among them, the first historical information includes: the time interval between the receiving time when the audio playback request sent by the vehicle-mounted terminal via Bluetooth is received each time, and the establishment time when the Bluetooth connection is successfully established between the vehicle-mounted terminal and the mobile terminal. .
其中,第一历史信息为上述历史信息的具体限定,其相关内容与历史信息类似,本发明实施例对此便不再进行赘述。Wherein, the first history information is a specific definition of the above history information, and its related content is similar to that of the history information, which will not be repeated in this embodiment of the present invention.
进一步地,当预设事件为:移动终端最近一次通过车载蓝牙进行语音通话的结束,对应的发生时间为:移动终端最近一次通过车载蓝牙进行语音通话结束时的挂断时间时,本发明实施例中所述的历史信息为第二历史信息。Further, when the preset event is: the end of the last voice call made by the mobile terminal through the vehicle-mounted Bluetooth, and the corresponding occurrence time is: the hang-up time at the end of the last time the mobile terminal performed a voice call through the vehicle-mounted Bluetooth, the embodiment of the present invention The historical information described in is the second historical information.
这样,在将本次中音频播放请求的接收时间和预设事件的发生时间之间的时间间隔,与已记录的历史信息中的时间间隔进行对比时,具体为:In this way, when comparing the time interval between the receiving time of the audio playback request and the occurrence time of the preset event this time with the time interval in the recorded historical information, it is specifically:
获取已记录的第二历史信息,将本次中接收时间与挂断时间之间的第二时间间隔,与第二历史信息中的时间间隔进行对比,若第二时间间隔与第二历史信息中预设比例值的时间间隔相匹配,则确定音频播放请求为车载端自动发送的。Obtain the recorded second historical information, and compare the second time interval between the receiving time and the hang-up time with the time interval in the second historical information, if the second time interval is the same as that in the second historical information If the time interval of the preset ratio value matches, it is determined that the audio playback request is automatically sent by the vehicle terminal.
其中,第二历史信息包括:每次接收到车载端通过蓝牙方式发送的音频播放请求的接收时间与当次移动终端最近一次通过车载蓝牙进行语音通话结束时的挂断时间之间的时间间隔。Wherein, the second history information includes: the time interval between the receiving time of receiving the audio play request sent by the vehicle-mounted terminal through Bluetooth and the hang-up time when the mobile terminal lastly made a voice call through the vehicle-mounted Bluetooth.
其中,第二历史信息为上述历史信息的具体限定,其相关内容与历史信息类似,本发明实施例对此便不再进行赘述。Wherein, the second history information is a specific definition of the above history information, and its related content is similar to the history information, which will not be repeated in this embodiment of the present invention.
进一步地,若移动终端接收到的音频播放请求为车载端自动发送的,则向车载端发送一拒绝播放消息,已告知车载端:移动终端侧拒绝响应该音频播放请求。Further, if the audio playback request received by the mobile terminal is automatically sent by the vehicle-mounted terminal, it will send a rejection message to the vehicle-mounted terminal, which has informed the vehicle-mounted terminal that the mobile terminal side refuses to respond to the audio playback request.
在向车载端发送拒绝播放消息后,若继续接收到车载端发送的音频播放请求,则向车载端仅发送一用于指示移动终端上的音乐播放器处于播放状态的播放消息。After sending the refusal to play message to the vehicle-mounted terminal, if the audio playback request sent by the vehicle-mounted terminal continues to be received, only one play message for indicating that the music player on the mobile terminal is in a playing state is sent to the vehicle-mounted terminal.
其中,正常情况下,移动终端若根据车载端发送的音频播放请求启动音乐播放器进行音频播放,会向车载端发送用于指示移动终端上的音乐播放器处于播放状态的播放消息以及播放的音频数据,而本发明实施例中,此时向车载端仅发送一用于指示移动终端上的音乐播放器处于播放状态的播放消息,即进行虚拟播放,实际上移动终端上的音乐播放器并未启动,而车载端接收到移动终端发送的播放消息后,车载端上的音乐播放器可以处于播放状态,但没有声音。通过虚拟播放避免车载端不停的发送播发请求,减少移动终端的处理量。Among them, under normal circumstances, if the mobile terminal starts the music player for audio playback according to the audio playback request sent by the vehicle terminal, it will send a play message indicating that the music player on the mobile terminal is in the playing state and the played audio to the vehicle terminal. data, and in the embodiment of the present invention, at this moment, only send a play message for indicating that the music player on the mobile terminal is in the playing state to the vehicle-mounted terminal, that is, perform virtual playback, but in fact the music player on the mobile terminal does not Start, and after the vehicle-mounted terminal receives the play message sent by the mobile terminal, the music player on the vehicle-mounted terminal can be in the playing state, but there is no sound. Through virtual broadcasting, it is avoided that the vehicle terminal continuously sends broadcasting requests, and the processing capacity of the mobile terminal is reduced.
进一步地,在向车载端发送播放消息后,若移动终端通过车载蓝牙进行了语音通话,或在向车载端发送该播放消息的预设时间后,向车载端发送一停止播放请求。Further, after sending the play message to the vehicle terminal, if the mobile terminal makes a voice call through the vehicle Bluetooth, or after sending the play message to the vehicle terminal for a preset time, send a stop playing request to the vehicle terminal.
进一步地,在向车载端发送播放消息后,若接收到用户对音乐播放器的播放操作,或接收到车载端发送的暂停播放请求,则控制音乐播放器进行音频数据播放,即由虚拟播放转为正常的真实播放。Further, after sending a play message to the vehicle-mounted terminal, if the user’s playback operation on the music player is received, or a request for pausing playback sent by the vehicle-mounted terminal is received, the music player is controlled to play audio data, that is, the virtual playback is transferred to for normal real play.
综上所述,本发明实施例中,在移动终端接收到车载端通过蓝牙方式发送的音频播放请求时,根据音频播放请求的接收时间和预设事件的发生时间之间的时间间隔,判断接收到的音频播放请求是否为车载端自动发送的,若接收到的音频播放请求是车载端自动发送的,则拒绝该音频播放请求,从而使车载端不能自动拉起移动终端上的音乐播放器进行音频播放,避免了需要用户关闭车载端自动拉起的音乐播放器的麻烦。To sum up, in the embodiment of the present invention, when the mobile terminal receives the audio playback request sent by the vehicle-mounted terminal via Bluetooth, it judges whether to receive the audio playback request according to the time interval between the receiving time of the audio playback request and the occurrence time of the preset event. Whether the audio playback request received is automatically sent by the vehicle-mounted terminal. If the received audio playback request is automatically sent by the vehicle-mounted terminal, the audio playback request will be rejected, so that the vehicle-mounted terminal cannot automatically pull up the music player on the mobile terminal. Audio playback avoids the trouble of requiring the user to turn off the music player that is automatically pulled up by the car terminal.
依据本发明实施例的另一个方面,提供了一种移动终端。According to another aspect of the embodiments of the present invention, a mobile terminal is provided.
如图2所示,该移动终端包括:As shown in Figure 2, the mobile terminal includes:
接收模块201,用于接收车载端通过蓝牙方式发送的音频播放请求。The receiving module 201 is configured to receive an audio playback request sent by the vehicle terminal via Bluetooth.
判断模块202,用于根据音频播放请求的接收时间和预设事件的发生时间之间的时间间隔,判断音频播放请求是否为车载端自动发送的。The judging module 202 is configured to judge whether the audio playing request is automatically sent by the vehicle terminal according to the time interval between the receiving time of the audio playing request and the occurrence time of the preset event.
其中,预设事件包括:车载端与移动终端之间的蓝牙连接的成功建立,或,移动终端最近一次通过车载蓝牙进行语音通话的结束。Wherein, the preset event includes: the successful establishment of the Bluetooth connection between the vehicle-mounted terminal and the mobile terminal, or the end of the last voice call made by the mobile terminal through the vehicle-mounted Bluetooth.
第一处理模块203,用于当音频播放请求为车载端自动发送的时,拒绝音频播放请求。The first processing module 203 is configured to reject the audio play request when the audio play request is automatically sent by the vehicle terminal.
进一步地,如图3所示,该判断模块202包括:Further, as shown in Figure 3, the judging module 202 includes:
对比子模块2021,用于将本次中音频播放请求的接收时间和预设事件的发生时间之间的时间间隔,与已记录的历史信息中的时间间隔进行对比。The comparison sub-module 2021 is used to compare the time interval between the receiving time of the audio playback request and the occurrence time of the preset event in this current time with the time interval in the recorded historical information.
其中,历史信息中的时间间隔为:历史中每次接收到车载端通过蓝牙方式发送的音频播放请求时的接收时间与当次中预设事件的发生时间之间的时间间隔。Wherein, the time interval in the historical information is: the time interval between the receiving time and the occurrence time of the preset event in the current time when the audio playback request sent by the vehicle terminal via Bluetooth is received each time in the history.
第一确定子模块2022,用于当本次中音频播放请求的接收时间和预设事件的发生时间之间的时间间隔,与历史信息中预设比例值的时间间隔相匹配时,确定音频播放请求为车载端自动发送的。The first determination sub-module 2022 is used to determine the audio playback when the time interval between the receiving time of the audio playback request and the occurrence time of the preset event matches the time interval of the preset ratio value in the historical information. The request is sent automatically by the vehicle.
进一步地,如图3所示,该移动终端还包括:Further, as shown in Figure 3, the mobile terminal also includes:
确定模块204,用于确定所述预设事件和所述预设事件的发生时间。A determining module 204, configured to determine the preset event and the occurrence time of the preset event.
进一步地,如图3所示,该确定模块204还包括:Further, as shown in FIG. 3, the determination module 204 also includes:
判断子模块2041,用于在移动终端和车载端成功建立蓝牙连接后、接收到音频播放请求前,判断移动终端是否通过车载蓝牙进行过语音通话。The judging sub-module 2041 is used for judging whether the mobile terminal has made a voice call through the car Bluetooth after the mobile terminal successfully establishes the Bluetooth connection with the vehicle terminal and before receiving an audio playback request.
第二确定子模块2042,用于当移动终端未通过车载蓝牙进行过语音通话时,确定预设事件为:车载端和移动终端成功建立蓝牙连接,发生时间为:根据车载端和移动终端成功建立蓝牙连接时的建立时间。The second determination sub-module 2042 is used to determine that the preset event is: the vehicle-mounted terminal and the mobile terminal successfully establish a Bluetooth connection when the mobile terminal has not made a voice call through the vehicle-mounted Bluetooth, and the occurrence time is: according to the successful establishment of the vehicle-mounted terminal and the mobile terminal The establishment time of the Bluetooth connection.
第三确定子模块2043,用于当移动终端通过车载蓝牙进行过语音通话时,确定预设事件为:移动终端最近一次通过车载蓝牙进行语音通话的结束,发生时间为:移动终端最近一次通过车载蓝牙进行语音通话结束时的挂断时间。The third determination sub-module 2043 is used to determine that the preset event is: when the mobile terminal has made a voice call through the vehicle-mounted Bluetooth, the last time the mobile terminal made a voice call through the vehicle-mounted Bluetooth ends, and the time of occurrence is: The hangup time when the Bluetooth voice call ends.
进一步地,如图3所示,该第一处理模块203还包括:Further, as shown in FIG. 3, the first processing module 203 also includes:
第一处理子模块2031,用于向车载端发送一拒绝播放消息。The first processing sub-module 2031 is configured to send a broadcast rejection message to the vehicle terminal.
第二处理子模块2032,用于在向车载端发送拒绝播放消息后,若继续接收到车载端发送的音频播放请求,则向车载端仅发送一用于指示移动终端上的音乐播放器处于播放状态的播放消息。The second processing submodule 2032 is used to send a message indicating that the music player on the mobile terminal is playing if it continues to receive the audio playback request sent by the vehicle-mounted terminal after sending the message to the vehicle-mounted terminal. The status of the playback message.
综上所述,本发明实施例中,在移动终端接收到车载端通过蓝牙方式发送的音频播放请求时,根据音频播放请求的接收时间和预设事件的发生时间之间的时间间隔,判断接收到的音频播放请求是否为车载端自动发送的,若接收到的音频播放请求是车载端自动发送的,则拒绝该音频播放请求,从而使车载端不能自动拉起移动终端上的音乐播放器进行音频播放,避免了需要用户关闭车载端自动拉起的音乐播放器的麻烦。To sum up, in the embodiment of the present invention, when the mobile terminal receives the audio playback request sent by the vehicle-mounted terminal via Bluetooth, it judges whether to receive the audio playback request according to the time interval between the receiving time of the audio playback request and the occurrence time of the preset event. Whether the audio playback request received is automatically sent by the vehicle-mounted terminal. If the received audio playback request is automatically sent by the vehicle-mounted terminal, the audio playback request will be rejected, so that the vehicle-mounted terminal cannot automatically pull up the music player on the mobile terminal. Audio playback avoids the trouble of requiring the user to turn off the music player that is automatically pulled up by the car terminal.
图4为实现本发明各个实施例的一种移动终端的硬件结构示意图。Fig. 4 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.
该移动终端400包括但不限于:射频单元401、网络模块402、音频输出单元403、输入单元404、传感器405、显示单元406、用户输入单元407、接口单元408、存储器409、处理器410、以及电源411等部件。本领域技术人员可以理解,图4中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。The mobile terminal 400 includes, but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, a processor 410, and Power supply 411 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in Figure 4 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than shown in the figure, or combine some components, or different components layout. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, and a pedometer.
处理器410,用于接收车载端通过蓝牙方式发送的音频播放请求;根据音频播放请求的接收时间和预设事件的发生时间之间的时间间隔,判断音频播放请求是否为车载端自动发送的;其中,预设事件包括:车载端和移动终端之间的蓝牙连接的成功建立,或,移动终端最近一次通过车载蓝牙进行语音通话的结束;若音频播放请求为车载端自动发送的,则拒绝音频播放请求。The processor 410 is configured to receive an audio playback request sent by the vehicle-mounted terminal via Bluetooth; according to the time interval between the receiving time of the audio playback request and the occurrence time of the preset event, determine whether the audio playback request is automatically sent by the vehicle-mounted terminal; Among them, the preset event includes: the successful establishment of the Bluetooth connection between the vehicle terminal and the mobile terminal, or the end of the mobile terminal’s last voice call through the vehicle Bluetooth; if the audio playback request is automatically sent by the vehicle terminal, the audio will be rejected. Play request.
这样,在移动终端接收到车载端通过蓝牙方式发送的音频播放请求时,根据音频播放请求的接收时间和预设事件的发生时间之间的时间间隔,判断接收到的音频播放请求是否为车载端自动发送的,若接收到的音频播放请求是车载端自动发送的,则拒绝该音频播放请求,从而使车载端不能自动拉起移动终端上的音乐播放器进行音频播放,避免了需要用户关闭车载端自动拉起的音乐播放器的麻烦。In this way, when the mobile terminal receives the audio playback request sent by the vehicle-mounted terminal via bluetooth, according to the time interval between the receiving time of the audio playback request and the occurrence time of the preset event, it is judged whether the received audio playback request is an audio playback request from the vehicle-mounted terminal. Automatically sent, if the received audio playback request is automatically sent by the vehicle terminal, the audio playback request will be rejected, so that the vehicle terminal cannot automatically pull up the music player on the mobile terminal for audio playback, avoiding the need for the user to turn off the vehicle Ends the hassle of automatically pulling up the music player.
应理解的是,本发明实施例中,射频单元401可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器410处理;另外,将上行的数据发送给基站。通常,射频单元401包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元401还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 can be used for receiving and sending signals during sending and receiving information or during a call. Specifically, the downlink data from the base station is received and processed by the processor 410; Uplink data is sent to the base station. Generally, the radio frequency unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 401 can also communicate with the network and other devices through a wireless communication system.
移动终端通过网络模块402为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides users with wireless broadband Internet access through the network module 402, such as helping users send and receive emails, browse web pages, and access streaming media.
音频输出单元403可以将射频单元401或网络模块402接收的或者在存储器409中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元403还可以提供与移动终端400执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元403包括扬声器、蜂鸣器以及受话器等。The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 can also provide audio output related to a specific function performed by the mobile terminal 400 (eg, call signal reception sound, message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
输入单元404用于接收音频或视频信号。输入单元404可以包括图形处理器(Graphics Processing Unit,GPU)4041和麦克风4042,图形处理器4041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元406上。经图形处理器4041处理后的图像帧可以存储在存储器409(或其它存储介质)中或者经由射频单元401或网络模块402进行发送。麦克风4042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元401发送到移动通信基站的格式输出。The input unit 404 is used for receiving audio or video signals. The input unit 404 can include a graphics processing unit (Graphics Processing Unit, GPU) 4041 and a microphone 4042, and the graphics processing unit 4041 is used for still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The data is processed. The processed image frames may be displayed on the display unit 406 . The image frames processed by the graphics processor 4041 may be stored in the memory 409 (or other storage media) or sent via the radio frequency unit 401 or the network module 402 . The microphone 4042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 401 for output in the case of a phone call mode.
移动终端400还包括至少一种传感器405,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板4061的亮度,接近传感器可在移动终端400移动到耳边时,关闭显示面板4061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器405还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The mobile terminal 400 also includes at least one sensor 405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 4061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 4061 and the display panel 4061 when the mobile terminal 400 moves to the ear / or backlighting. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is still, and can be used to identify the posture of mobile terminals (such as horizontal and vertical screen switching, related games, etc.) , magnetometer posture calibration), vibration recognition-related functions (such as pedometer, knocking), etc.; the sensor 405 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元406用于显示由用户输入的信息或提供给用户的信息。显示单元406可包括显示面板4061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板4061。The display unit 406 is used to display information input by the user or information provided to the user. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.
用户输入单元407可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元407包括触控面板4071以及其他输入设备4072。触控面板4071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板4071上或在触控面板4071附近的操作)。触控面板4071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器410,接收处理器410发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板4071。除了触控面板4071,用户输入单元407还可以包括其他输入设备4072。具体地,其他输入设备4072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 407 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile terminal. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072 . The touch panel 4071, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 4071 or near the touch panel 4071). operate). The touch panel 4071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and 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 contact coordinates, and sends it to the For the processor 410, receive the command sent by the processor 410 and execute it. In addition, the touch panel 4071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 4071 , the user input unit 407 may also include other input devices 4072 . Specifically, other input devices 4072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
进一步的,触控面板4071可覆盖在显示面板4061上,当触控面板4071检测到在其上或附近的触摸操作后,传送给处理器410以确定触摸事件的类型,随后处理器410根据触摸事件的类型在显示面板4061上提供相应的视觉输出。虽然在图4中,触控面板4071与显示面板4061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板4071与显示面板4061集成而实现移动终端的输入和输出功能,具体此处不做限定。Furthermore, the touch panel 4071 can be covered on the display panel 4061, and when the touch panel 4071 detects a touch operation on or near it, it will be sent to the processor 410 to determine the type of the touch event, and then the processor 410 will The type of event provides a corresponding visual output on the display panel 4061 . Although in FIG. 4, the touch panel 4071 and the display panel 4061 are used as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 4071 and the display panel 4061 can be integrated. The implementation of the input and output functions of the mobile terminal is not specifically limited here.
接口单元408为外部装置与移动终端400连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元408可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端400内的一个或多个元件或者可以用于在移动终端400和外部装置之间传输数据。The interface unit 408 is an interface for connecting an external device to the mobile terminal 400 . For example, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 408 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.
存储器409可用于存储软件程序以及各种数据。存储器409可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器409可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 409 can be used to store software programs as well as various data. The memory 409 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 409 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
处理器410是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器409内的软件程序和/或模块,以及调用存储在存储器409内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器410可包括一个或多个处理单元;优选的,处理器410可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器410中。The processor 410 is the control center of the mobile terminal, which uses various interfaces and lines to connect various parts of the entire mobile terminal, by running or executing software programs and/or modules stored in the memory 409, and calling data stored in the memory 409 , execute various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 410 .
移动终端400还可以包括给各个部件供电的电源411(比如电池),优选的,电源411可以通过电源管理系统与处理器410逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 400 can also include a power supply 411 (such as a battery) for supplying power to various components. Preferably, the power supply 411 can be logically connected to the processor 410 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. and other functions.
另外,移动终端400包括一些未示出的功能模块,在此不再赘述。In addition, the mobile terminal 400 includes some functional modules not shown, which will not be repeated here.
优选的,本发明实施例还提供一种移动终端,包括处理器410,存储器409,存储在存储器409上并可在所述处理器410上运行的计算机程序,该计算机程序被处理器410执行时实现上述音频播放的控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, the embodiment of the present invention also provides a mobile terminal, including a processor 410, a memory 409, a computer program stored in the memory 409 and operable on the processor 410, when the computer program is executed by the processor 410 Each process of the embodiment of the control method for audio playback described above can achieve the same technical effect, so to avoid repetition, details are not repeated here.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述音频播放的控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random AccessMemory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned audio playback control method embodiment is realized, and the same To avoid repetition, the technical effects will not be repeated here. Wherein, the computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。Embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementations, and the above-mentioned specific implementations are only illustrative, rather than restrictive, and those of ordinary skill in the art will Under the enlightenment of the present invention, without departing from the gist of the present invention and the protection scope of the claims, many forms can also be made, all of which belong to the protection of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810062644.1ACN108319442B (en) | 2018-01-23 | 2018-01-23 | A control method for audio playback and mobile terminal |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810062644.1ACN108319442B (en) | 2018-01-23 | 2018-01-23 | A control method for audio playback and mobile terminal |
| Publication Number | Publication Date |
|---|---|
| CN108319442A CN108319442A (en) | 2018-07-24 |
| CN108319442Btrue CN108319442B (en) | 2019-12-10 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810062644.1AActiveCN108319442B (en) | 2018-01-23 | 2018-01-23 | A control method for audio playback and mobile terminal |
| Country | Link |
|---|---|
| CN (1) | CN108319442B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113039516B (en)* | 2018-11-22 | 2024-07-02 | 深圳市欢太科技有限公司 | Method and device for processing application program and electronic equipment |
| CN110086941B (en)* | 2019-04-30 | 2021-03-26 | Oppo广东移动通信有限公司 | Voice playing method and device and terminal equipment |
| CN111556467B (en)* | 2020-03-31 | 2023-08-08 | 惠州市德赛西威汽车电子股份有限公司 | Mobile phone interconnection audio playing processing method |
| CN112286483A (en)* | 2020-10-29 | 2021-01-29 | 维沃移动通信有限公司 | Audio playback control method, device and electronic device |
| CN113325980B (en)* | 2021-05-28 | 2023-02-24 | 维沃移动通信(杭州)有限公司 | Control method, control device, electronic equipment and readable storage medium |
| CN115915037B (en)* | 2021-09-24 | 2025-03-18 | Oppo广东移动通信有限公司 | Call control method, device, electronic device and computer-readable storage medium |
| CN113840033B (en)* | 2021-09-28 | 2023-03-28 | 维沃移动通信有限公司 | Audio data playing method and device |
| CN114125803B (en)* | 2021-11-30 | 2025-08-26 | Oppo广东移动通信有限公司 | Device connection switching method, device, electronic device and computer-readable storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105072564A (en)* | 2015-07-30 | 2015-11-18 | 广东欧珀移动通信有限公司 | A kind of audio playing method and device based on bluetooth connection |
| CN107480181A (en)* | 2017-07-05 | 2017-12-15 | 百度在线网络技术(北京)有限公司 | Audio frequency playing method, device, equipment and server |
| CN107613146A (en)* | 2017-11-10 | 2018-01-19 | 维沃移动通信有限公司 | A volume adjustment method, device and mobile terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8171177B2 (en)* | 2007-06-28 | 2012-05-01 | Apple Inc. | Enhancements to data-driven media management within an electronic device |
| CN102075217B (en)* | 2010-12-22 | 2014-04-30 | 华为终端有限公司 | Method for managing Bluetooth connection and equipment |
| CN103594100A (en)* | 2012-08-13 | 2014-02-19 | 上海博泰悦臻电子设备制造有限公司 | Method and apparatus for playing music in mobile terminal through bluetooth |
| WO2014103015A1 (en)* | 2012-12-28 | 2014-07-03 | パイオニア株式会社 | Portable terminal device, car onboard device, information presentation method, and information presentation program |
| CN105591671A (en)* | 2014-10-24 | 2016-05-18 | 高卫军 | Vehicle-mounted communication device and method thereof |
| CN105530171B (en)* | 2015-12-23 | 2020-08-25 | 腾讯科技(深圳)有限公司 | Method and device for playing instant message voice by vehicle-mounted terminal |
| CN206312566U (en)* | 2016-12-15 | 2017-07-07 | 北京塞宾科技有限公司 | A kind of vehicle intelligent audio devices |
| CN107276615A (en)* | 2017-07-21 | 2017-10-20 | 奇瑞汽车股份有限公司 | A kind of vehicle-mounted radio and its control method with Bluetooth function |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105072564A (en)* | 2015-07-30 | 2015-11-18 | 广东欧珀移动通信有限公司 | A kind of audio playing method and device based on bluetooth connection |
| CN107480181A (en)* | 2017-07-05 | 2017-12-15 | 百度在线网络技术(北京)有限公司 | Audio frequency playing method, device, equipment and server |
| CN107613146A (en)* | 2017-11-10 | 2018-01-19 | 维沃移动通信有限公司 | A volume adjustment method, device and mobile terminal |
| Publication number | Publication date |
|---|---|
| CN108319442A (en) | 2018-07-24 |
| Publication | Publication Date | Title |
|---|---|---|
| CN108319442B (en) | A control method for audio playback and mobile terminal | |
| CN107770760B (en) | A kind of method and mobile terminal of the type identifying bluetooth equipment | |
| CN108551534B (en) | Method and device for multi-terminal voice call | |
| CN107580143A (en) | A display method and mobile terminal | |
| CN108279948A (en) | A kind of application program launching method and mobile terminal | |
| CN110062104A (en) | Application program launching method, device and mobile terminal | |
| CN108521501A (en) | Voice input method and mobile terminal | |
| CN108174017A (en) | A kind of bluetooth opening method and mobile terminal | |
| CN107835495A (en) | A kind of message prompt method, device and mobile terminal | |
| CN110855921A (en) | Video recording control method and electronic equipment | |
| CN107786751A (en) | A kind of method for broadcasting multimedia file and mobile terminal | |
| CN110138963A (en) | A kind of message treatment method and mobile terminal | |
| CN109101151A (en) | A kind of information display processing method and terminal device | |
| CN111313114A (en) | Charging method and electronic equipment | |
| CN108307048B (en) | Message output method and device and mobile terminal | |
| CN108307075B (en) | A kind of incoming call processing method and mobile terminal | |
| CN108347642B (en) | A video playback method and mobile terminal | |
| CN111556196B (en) | Call method, device and electronic device | |
| CN108650392A (en) | A kind of call recording method and mobile terminal | |
| CN108718360A (en) | A charging method and mobile terminal | |
| CN109040472B (en) | Incoming call processing method and device | |
| CN108259807B (en) | A communication method, mobile terminal and computer-readable storage medium | |
| CN108459796B (en) | Function key response method and mobile terminal | |
| CN110351413A (en) | Call request processing method, device and mobile terminal | |
| CN107682770B (en) | A kind of application control method and mobile terminal |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |