Disclosure of Invention
In view of the defects of the prior art, the invention aims to provide a method and a system for playing the audio and video of a mobile terminal through a bluetooth playing device, and aims to solve the technical problems that the existing mobile terminal cannot be used according to the needs of the user when being connected with the bluetooth playing device to output the sound, and the privacy content of the user is easily revealed.
The technical scheme of the invention is as follows:
a method for playing audio and video of a mobile terminal through Bluetooth playing equipment comprises the following steps:
A. when the mobile terminal detects a Bluetooth playing instruction, judging whether the mobile terminal is connected with Bluetooth playing equipment or not;
B. if the mobile terminal is connected, playing the audio and video of the mobile terminal through the connected Bluetooth playing equipment;
C. if not, connecting the Bluetooth playing equipment, popping up an audio and video output path selection interface on the mobile terminal interface, and playing the audio and video of the mobile terminal according to the output path selected by the user.
The method for playing the audio and video of the mobile terminal through the Bluetooth playing device comprises the following steps:
a1, when detecting that the user is in voice call or video call, if detecting the Bluetooth playing instruction, judging whether the mobile terminal is connected with the Bluetooth playing device.
The method for playing the audio and video of the mobile terminal through the Bluetooth playing device is characterized in that the step C specifically comprises the following steps:
c1, if it is detected that the mobile terminal is not connected with the Bluetooth playing device, acquiring an operation instruction of the user, and judging whether the Bluetooth playing device is connected according to the operation instruction of the user;
c2, if the user operation is connecting the Bluetooth playing device, the mobile terminal is connected with the Bluetooth playing device, and pops up an audio and video output path selection interface to play according to the output path selected by the user;
and C3, if the operation of the user is not connected with the Bluetooth playing device, playing the audio and video of the mobile terminal through a preset default output path.
The method for playing the audio and video of the mobile terminal through the Bluetooth playing device includes that the C2 specifically includes the following steps:
and C21, if the operation of the user is to connect the Bluetooth playing device, connecting the mobile terminal with the Bluetooth playing device, and indicating an audio/video output path selection interface, and playing by using the Bluetooth playing device or other devices according to the selection of the user.
The method for playing the audio and video of the mobile terminal through the Bluetooth playing device is characterized in that the mobile terminal is a mobile phone or a tablet computer.
A system for playing audio and video of a mobile terminal through a Bluetooth playing device comprises:
the detection and judgment module is used for judging whether the mobile terminal is connected with the Bluetooth playing device or not when the mobile terminal detects the Bluetooth playing instruction;
the first control module is used for controlling the audio and video of the mobile terminal to be played through the connected Bluetooth playing equipment if the mobile terminal is connected;
and the second control module is used for controlling and connecting the Bluetooth playing equipment if the Bluetooth playing equipment is not connected, popping up an audio and video output path selection interface on the mobile terminal interface, and playing the audio and video of the mobile terminal according to the output path selected by the user.
The system for playing the audio and video of the mobile terminal through the Bluetooth playing device is characterized in that the detection and judgment module is specifically used for judging whether the mobile terminal is connected with the Bluetooth playing device or not if a Bluetooth playing instruction is detected when a user is detected in a voice call or a video call.
The system for playing the audio and video of the mobile terminal through the Bluetooth playing device is characterized in that the first control module specifically comprises:
the instruction acquisition and judgment unit is used for acquiring an operation instruction of a user if the mobile terminal is detected not to be connected with the Bluetooth playing device, and judging whether the Bluetooth playing device is connected or not according to the operation instruction of the user;
the first playing unit is used for connecting the mobile terminal with the Bluetooth playing equipment if the operation of the user is to connect the Bluetooth playing equipment, popping up an audio and video output path selection interface, and playing according to the output path selected by the user;
and the second playing unit is used for playing the audio and video of the mobile terminal through a preset default output path if the operation of the user is that the Bluetooth playing device is not connected.
The system for playing the audio and video of the mobile terminal through the Bluetooth playing device is characterized in that the first playing unit is specifically used for connecting the mobile terminal with the Bluetooth playing device if the operation of the user is to connect the Bluetooth playing device, indicating an audio and video output path selection interface, and playing by using the Bluetooth playing device or other devices according to the selection of the user.
The system for playing the audio and video of the mobile terminal through the Bluetooth playing device is characterized in that the mobile terminal is a mobile phone or a tablet computer.
The invention provides a method and a system for playing mobile terminal audio and video through Bluetooth playing equipment, which adds a user judgment function, thereby avoiding the situation that a mobile phone is automatically connected with wrong Bluetooth playing equipment to play sound, improving the safety of user data and effectively preventing the user data from being leaked.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is described in further detail below. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The present invention also provides a flowchart of a preferred embodiment of a method for playing an audio and video of a mobile terminal through a bluetooth playing device, as shown in fig. 1, wherein the method includes the steps of:
s100, when the mobile terminal detects a Bluetooth playing instruction, judging whether the mobile terminal is connected with a Bluetooth playing device or not, if so, executing a step S200, and if not, executing a step S300;
s200, playing the audio and video of the mobile terminal through the connected Bluetooth playing equipment;
s300, connecting the Bluetooth playing equipment, popping up an audio and video output path selection interface on a mobile terminal interface, and playing the audio and video of the mobile terminal according to the output path selected by a user.
In specific implementation, the mobile terminal includes but is not limited to a mobile phone, a tablet computer and other intelligent terminals. Specifically, when the mobile terminal detects a bluetooth playing instruction, if the mobile terminal is connected with a bluetooth playing device, the mobile terminal directly plays the bluetooth playing device;
if the Bluetooth playing device is not connected before and the Bluetooth playing device is not connected at present, playing through the original path;
if the Bluetooth playing device is not connected before and the user wants to play the audio through the Bluetooth playing device, the APP gives a sound output path selection interface for the user to select. If the Bluetooth playing equipment is selected, the Bluetooth playing equipment is used for playing; if the Bluetooth playing equipment is not selected, the Bluetooth playing equipment is played through the original output path. Through the reasonable design of APP, the user can be prevented from connecting wrong Bluetooth playing equipment, and therefore privacy is prevented from being revealed.
The bluetooth playing device is a playing device with a bluetooth function, and includes but is not limited to bluetooth headsets, bluetooth MP3 and other bluetooth devices.
In a further embodiment, step S100 specifically includes the steps of:
s101, when the user is detected to be in voice call or video call, if a Bluetooth playing instruction is detected, whether the mobile terminal is connected with Bluetooth playing equipment or not is judged.
During specific implementation, when the APP of the mobile terminal carries out voice video or video call by communication chat tools such as WeChat and QQ, a Bluetooth playing instruction of a user is detected, and whether the mobile terminal is connected with Bluetooth playing equipment or not is judged.
In a further embodiment, step S300 specifically includes the steps of:
s301, if the mobile terminal is detected not to be connected with the Bluetooth playing device, acquiring an operation instruction of a user, and judging whether the Bluetooth playing device is connected or not according to the operation instruction of the user;
s302, if the user operates to connect the Bluetooth playing equipment, the mobile terminal is connected with the Bluetooth playing equipment, an audio and video output path selection interface is popped up, and playing is carried out according to an output path selected by the user;
and S303, if the operation of the user is that the Bluetooth playing equipment is not connected, playing the audio and video of the mobile terminal through a preset default output path.
In the specific implementation, the mobile phone is taken as an example for introduction, if it is detected that the mobile phone is not connected with the bluetooth playing device, the operation instruction of the user is obtained, whether the user wants to connect with the bluetooth playing device is judged,
if the user wants to connect the Bluetooth equipment, the user establishes connection with the Bluetooth playing equipment, an audio and video output path selection interface pops up on the mobile phone interface, and audio and video are played according to the output path selected by the user.
And if the user is not connected with the Bluetooth equipment, playing the audio and video of the call through a preset default output path. The user sets a default output path in advance, such as a speaker or a receiver can be selected to output sound.
Specifically, S302 specifically includes the steps of:
s321, if the user operates to connect the Bluetooth playing device, the mobile terminal connects the Bluetooth playing device, points out an audio and video output path selection interface, and uses the Bluetooth playing device to play or uses other devices to play according to the user selection.
In specific implementation, if a user wants to connect a bluetooth device, the user establishes connection with the bluetooth playing device, an audio and video output path selection interface is popped up on a mobile phone interface, according to an output path selected by the user, if the user checks an output path which can be played by the current audio and video, including the name of the bluetooth playing device, the user can acquire whether the bluetooth playing device is suitable for playing the current audio and video according to the name of the bluetooth playing device displayed on the interface, if the current bluetooth playing device is suitable for playing the current audio and video, the bluetooth playing device is selected to play the audio and video, and if the current bluetooth playing device is not suitable for playing the current audio and video, other devices are adopted to play the. Other devices such as the handset or speaker of the mobile terminal itself.
The present invention also provides a flowchart of a specific application embodiment of a method for playing an audio and video of a mobile terminal through a bluetooth playing device, which is described by taking an example of an APP application of a mobile terminal to implement bluetooth playing device control, as shown in fig. 2, the method includes the steps of:
s10, opening the APP;
s20, performing voice or video call, specifically, detecting that the current mobile terminal is in the voice or video call by the APP application;
s30, whether the Bluetooth playing device is connected or not, if yes, executing a step S40, and if not, executing a step S50;
s40, playing through a Bluetooth playing device, specifically, playing the voice or video call of the user through the Bluetooth playing device, and then executing the step S91;
s50, judging whether a Bluetooth playing device needs to be connected, if so, executing a step S60, and if not, executing a step S90;
s60, connecting a Bluetooth playing device;
s70, the APP application provides a sound output path selection interface for a user to select;
s80, judging whether to use the Bluetooth playing device to play, if yes, executing step S40, if no, executing step S90;
s90, playing through the original output path, and then executing the step S91;
and S91, ending.
In an exemplary embodiment, the apparatus may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as a memory comprising instructions, executable by a processor of an apparatus to perform the above method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The present invention also provides a functional block diagram of a preferred embodiment of a system for playing an audio and video of a mobile terminal through a bluetooth playing device, as shown in fig. 3, wherein the system comprises:
the detecting and judgingmodule 100 is configured to, when the mobile terminal detects a bluetooth playing instruction, judge whether the mobile terminal has connected to a bluetooth playing device; as described in the method embodiments.
Thefirst control module 200 is used for controlling the audio and video of the mobile terminal to be played through the connected Bluetooth playing equipment if the mobile terminal is connected; as described in the method embodiments.
Thesecond control module 300 is used for controlling connection with the bluetooth playing device if the bluetooth playing device is not connected, popping up an audio and video output path selection interface on a mobile terminal interface, and playing the audio and video of the mobile terminal according to the output path selected by the user; as described in the method embodiments.
The system for playing the audio and video of the mobile terminal through the Bluetooth playing device is characterized in that the detection and judgment module is specifically used for judging whether the mobile terminal is connected with the Bluetooth playing device or not if a Bluetooth playing instruction is detected when a user is detected in a voice call or a video call; as described in the method embodiments.
The system for playing the audio and video of the mobile terminal through the Bluetooth playing device is characterized in that the first control module specifically comprises:
the instruction acquisition and judgment unit is used for acquiring an operation instruction of a user if the mobile terminal is detected not to be connected with the Bluetooth playing device, and judging whether the Bluetooth playing device is connected or not according to the operation instruction of the user; as described in the method embodiments.
The first playing unit is used for connecting the mobile terminal with the Bluetooth playing equipment if the operation of the user is to connect the Bluetooth playing equipment, popping up an audio and video output path selection interface, and playing according to the output path selected by the user; as described in the method embodiments.
The second playing unit is used for playing the audio and video of the mobile terminal through a preset default output path if the operation of the user is that the Bluetooth playing device is not connected; as described in the method embodiments.
The system for playing the audio and video of the mobile terminal through the Bluetooth playing device is characterized in that the first playing unit is specifically used for connecting the mobile terminal with the Bluetooth playing device if the operation of a user is to connect the Bluetooth playing device, indicating an audio and video output path selection interface, and playing by using the Bluetooth playing device or other devices according to the selection of the user; as described in the method embodiments.
The system for playing the audio and video of the mobile terminal through the Bluetooth playing device is characterized in that the mobile terminal is a mobile phone or a tablet computer; as described in the method embodiments.
In summary, the present invention provides a method and a system for playing an audio/video of a mobile terminal through a bluetooth playing device, wherein the method comprises the following steps: when the mobile terminal detects a Bluetooth playing instruction, judging whether the mobile terminal is connected with Bluetooth playing equipment or not; if the mobile terminal is connected, playing the audio and video of the mobile terminal through the connected Bluetooth playing equipment; if not, connecting the Bluetooth playing equipment, popping up an audio and video output path selection interface on the mobile terminal interface, and playing the audio and video of the mobile terminal according to the output path selected by the user. The invention adds the function of user judgment, thereby avoiding the sound playing of the Bluetooth playing device with the wrong automatic connection of the mobile phone, improving the safety of user data and effectively preventing the user data from leaking.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.