Multimedia application playing control method and system based on remote Bluetooth equipmentTechnical Field
The invention relates to the technical field of mobile terminals, in particular to a multimedia application playing control method and system based on remote Bluetooth equipment.
Background
With the rapid development of intelligent mobile terminals, audio and video applications on mobile terminals are increasing, such as radio, recorder, video player and music player; even a user can install a plurality of audio and video players on the mobile terminal. When the remote Bluetooth equipment is used for controlling the audio and video application of the mobile terminal, the current processing mode of the mobile terminal is mostly that if the audio/video application is currently in a foreground or a background, the application is directly controlled; and if no audio/video application exists in the foreground or the background, controlling the application which last uses the audio service.
If the audio/video application (a certain music player) that the user desires to control is not currently started, nor is the application that last used the audio, the user cannot control the application directly through the remote bluetooth device. For example, a user clicks a play control in a vehicle-mounted music player with bluetooth, and desires to start the music player of the mobile terminal and play music, and as a result, an application to which the mobile terminal may respond is a radio or a recorder; at this time, the user needs to manually start the music player on the mobile terminal and then control the application through the mobile terminal, so that the operation steps are complicated, and inconvenience is brought to remote control of the audio application of the mobile terminal through the bluetooth device.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
In view of the defects of the prior art, the present invention aims to provide a method and a system for controlling playing of a multimedia application based on a remote bluetooth device, and aims to solve the technical problems that when the remote bluetooth device controls the multimedia application on a mobile terminal in the prior art, a user needs to manually start a multimedia player on the mobile terminal and then controls the application through the mobile terminal, the operation steps are complicated, and inconvenience is brought to remote control of an audio application of the mobile terminal through the bluetooth device.
The technical scheme of the invention is as follows:
a multimedia application playing control method based on remote Bluetooth equipment is disclosed, wherein the method comprises the following steps:
A. the remote Bluetooth equipment sends a multimedia playing instruction to the mobile terminal;
B. the mobile terminal acquires a multimedia playing event corresponding to the multimedia playing instruction and judges whether a multimedia application which is registered to respond to the multimedia playing event is started or not;
C. if the multimedia application registered to respond to the multimedia playing event is detected to be started, the started multimedia application executes a multimedia playing instruction;
D. if the multimedia application which is registered to respond to the multimedia playing event is detected not to be started, the preset multimedia application which responds to the multimedia playing event preferentially is obtained and started, and the multimedia application which responds to the multimedia playing event preferentially executes the multimedia playing instruction.
The multimedia application playing control method based on the remote Bluetooth equipment comprises the following steps before the step A:
and S, presetting all multimedia application registration response multimedia playing events in the mobile terminal.
The multimedia application playing control method based on the remote Bluetooth device, wherein the step B specifically comprises the steps of:
b1, the multimedia playing instruction of the remote Bluetooth equipment received by the mobile terminal is simulated into a multimedia playing event;
b2, the mobile terminal acquires all multimedia applications and judges whether the multimedia applications register the multimedia playing event.
The multimedia application playing control method based on the remote Bluetooth device, wherein the step D specifically comprises the steps of:
d1, detecting that the multimedia application registered to respond to the multimedia playing event is not started, judging whether the preset multimedia application preferentially responding to the multimedia event exists by the mobile terminal;
d2, if the preset multimedia application which responds to the multimedia event with priority is detected, the mobile terminal allocates the multimedia playing event to the preset multimedia application which responds to the multimedia playing event with priority, and the application which responds to the multimedia playing event with priority is started to execute the multimedia playing event;
d3, if the preset multimedia application which responds to the multimedia event preferentially is not detected, displaying all the multimedia applications which are registered to respond to the multimedia playing event on the screen of the mobile terminal, receiving a user instruction to select to start the multimedia application, and executing the multimedia playing event by the started multimedia application.
The method for controlling the playing of the multimedia application based on the remote bluetooth device, wherein the step D3 further includes the steps of:
d31, the mobile terminal receives the multimedia application of user instruction setting priority response to the multimedia playing event.
A multimedia application playback control system based on a remote bluetooth device, wherein the system comprises:
the playing command sending module is used for sending a multimedia playing command to the mobile terminal by the remote Bluetooth equipment;
the multimedia playing event acquisition module is used for acquiring a multimedia playing event corresponding to the multimedia playing instruction by the mobile terminal and judging whether a multimedia application which is registered to respond to the multimedia playing event is started or not;
the first playing instruction execution module is used for executing a multimedia playing instruction by the started multimedia application if the multimedia application registered to respond to the multimedia playing event is detected to be started;
and the second playing instruction execution module is used for acquiring and starting a preset multimedia application which preferentially responds to the multimedia playing event if detecting that the multimedia application which is registered to respond to the multimedia playing event is not started, and executing the multimedia playing instruction by the multimedia application which preferentially responds to the multimedia playing event.
The multimedia application playing control system based on the remote Bluetooth equipment, wherein the system further comprises:
the preset module is used for presetting all multimedia application registration response multimedia playing events in the mobile terminal.
The multimedia application playing control system based on the remote bluetooth device, wherein the multimedia playing event acquiring module specifically includes:
the multimedia playing event simulation unit is used for simulating a multimedia playing instruction of the remote Bluetooth equipment received by the mobile terminal into a multimedia playing event;
and the judging unit is used for acquiring all multimedia applications by the mobile terminal and judging whether the multimedia applications register the multimedia playing events or not.
The multimedia application playing control system based on the remote bluetooth device, wherein the second playing instruction execution module specifically includes:
the mobile terminal is used for judging whether the preset multimedia application which preferentially responds to the multimedia event exists or not;
the first playing instruction allocation and execution unit is used for allocating the multimedia playing event to the preset multimedia application which responds to the multimedia playing event preferentially if the preset multimedia application which responds to the multimedia event preferentially is detected, and executing the multimedia playing event after the application which responds to the multimedia playing event preferentially is started;
and the second playing instruction distribution and execution unit is used for displaying all multimedia applications registered to respond to the multimedia playing event on the screen of the mobile terminal if the preset multimedia application which preferentially responds to the multimedia event is not detected, receiving a user instruction to select to start the multimedia application, and executing the multimedia playing event by the started multimedia application.
The multimedia application playing control system based on the remote bluetooth device, wherein the second playing instruction allocating and executing unit further includes:
and the priority setting unit is used for receiving a user instruction by the mobile terminal to set the multimedia application which responds to the multimedia playing event preferentially.
The invention provides a multimedia application playing control method and system based on remote Bluetooth equipment, which can enable a user to select an audio application expected to be started, and the user does not need to start the expected application first; meanwhile, an entry of the priority level of the audio application on the mobile terminal responding to the remote Bluetooth equipment control is provided for the user, the user can set the application which is expected to be controlled by the remote Bluetooth equipment according to own preference, and once the setting is successful, the audio application started by the subsequent remote Bluetooth equipment is defaulted to the audio application with the highest priority level set by the user.
Drawings
Fig. 1 is a flowchart of a method for controlling playing of a multimedia application based on a remote bluetooth device according to a preferred embodiment of the present invention.
Fig. 2 is a flowchart of an embodiment of the present invention, which is a multimedia application playing control method based on a remote bluetooth device.
Fig. 3 is a functional block diagram of a multimedia application playing control system based on a remote bluetooth device according to a preferred embodiment of the present invention.
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 multimedia application playing control system based on a remote bluetooth device, as shown in fig. 1, the method includes:
and S100, the remote Bluetooth equipment sends a multimedia playing instruction to the mobile terminal.
In specific implementation, the remote bluetooth device includes, but is not limited to, a bluetooth speaker, a bluetooth headset, and other bluetooth devices. The mobile terminal includes, but is not limited to, a smart device such as a mobile phone and a tablet. After the remote Bluetooth device and the mobile terminal are paired and connected through Bluetooth, the remote Bluetooth device sends a multimedia playing instruction to the mobile terminal, wherein the multimedia playing instruction includes but is not limited to an audio playing instruction or a video playing instruction.
In a further embodiment, step S100 further includes, before step S:
and step S1, presetting all multimedia application registration response multimedia playing events in the mobile terminal.
In specific implementation, all multimedia applications of the mobile terminal are registered in advance to respond to the multimedia playing event, so that all the multimedia applications have the function of executing the multimedia playing instruction when the mobile terminal receives the multimedia playing instruction. The multimedia applications include, but are not limited to, a radio application, a recording application, an audio player application, a video player application, and various network video players downloaded via a network in the mobile terminal.
Step S200, the mobile terminal obtains a multimedia playing event corresponding to the multimedia playing instruction, judges whether a multimedia application which is registered to respond to the multimedia playing event is started or not, if so, executes step S300, and if not, executes step S400.
In specific implementation, after the mobile terminal obtains the multimedia playing instruction, the mobile terminal obtains the multimedia playing event converted according to the multimedia playing instruction, obtains whether an application for registering the multimedia playing event is started or not, and respectively executes different operations according to the starting condition.
In a further embodiment, step S200 specifically includes:
step S201, a multimedia playing instruction of the remote Bluetooth equipment received by the mobile terminal is simulated into a multimedia playing event;
step S202, the mobile terminal acquires all multimedia applications and judges whether the multimedia applications register multimedia playing events.
In specific implementation, if a mobile terminal adopting an Android system is taken as an example, the mobile terminal simulates a received multimedia playing command of the remote bluetooth device into a media _ button _ play event, and checks whether a multimedia application registered to respond to the media _ button _ play event is started.
Step S300, the started multimedia application executes a multimedia playing instruction.
In specific implementation, if a multimedia application responding to the media _ button _ play event is already started, the media _ button _ play event is assigned to the application, and the application executes a multimedia play instruction.
And step S400, acquiring and starting a preset multimedia application which responds to the multimedia playing event preferentially, and executing a multimedia playing instruction by the multimedia application which responds to the multimedia playing event preferentially.
In specific implementation, if no multimedia application responding to the media _ button _ play event is started, the mobile terminal acquires a multimedia application which is preset in the multimedia applications in the registered multimedia play events and responds to the multimedia play event preferentially, starts the application, and executes a multimedia play instruction by the multimedia application which responds to the multimedia play event preferentially. For example, if the user presets the audio player in the mobile terminal to respond to the multimedia playing event preferentially, the mobile terminal controls the audio player to start, and the audio player plays the corresponding multimedia playing instruction sequentially. The method provides a target audio application which can be flexibly selected to be controlled by the remote Bluetooth device for the user, and increases the autonomy and flexibility of the user for controlling the mobile terminal audio application by using the remote Bluetooth device. The distribution principle of remote Bluetooth control commands in the prior art is more rigid, and users do not have controllable space and cannot process the commands according to own preferences.
In a further embodiment, step S400 specifically includes:
step S401, detecting that the multimedia application which is registered to respond to the multimedia playing event is not started, the mobile terminal judges whether the preset multimedia application which responds to the multimedia event preferentially exists;
step S402, if a preset multimedia application which responds to the multimedia event with priority is detected, the mobile terminal allocates the multimedia playing event to the preset multimedia application which responds to the multimedia playing event with priority, and the application which responds to the multimedia playing event with priority is started to execute the multimedia playing event;
step S403, if no preset multimedia application that preferentially responds to the multimedia event is detected, displaying all the multimedia applications registered to respond to the multimedia play event on the screen of the mobile terminal, receiving a user instruction to select to start the multimedia application, and executing the multimedia play event by the started multimedia application.
In specific implementation, it is checked whether a multimedia application registered in response to the media _ button _ play event has been started. If no multimedia application is started, judging whether a multimedia application with a priority response to the media _ button _ play event exists, if so, distributing the multimedia application to the starting of the multimedia application, and responding to the play event. If not, all the multimedia applications registered in the mobile terminal in response to the media button play are listed. The user may select from the list a selection that is desired to launch the played multimedia application.
In a further embodiment, step S403 further includes:
step S431, the mobile terminal receives a multimedia application that the user instructs to set a priority response to the multimedia playing event.
In specific implementation, the user may select from the list, expect to start the played multimedia application, and set the multimedia application that responds to the media _ button _ play event preferentially. And after the setting is successful, the subsequent multimedia application started by the remote Bluetooth equipment is defaulted to be the multimedia application with the highest priority set by the user.
According to the invention, when the user uses the remote Bluetooth equipment to control the mobile terminal, the user can increase the self-setting, set the favorite application into the audio application with the priority response, so that the user experience is better, and the defect that the Bluetooth remote control audio video protocol cannot carry the control application target is avoided.
In a further embodiment, the present invention further provides a flowchart of a specific application embodiment of a multimedia application playing control method based on a remote bluetooth device, where the multimedia application is an audio application, and a multimedia playing event is recorded as a media _ button event, as shown in fig. 2, the method includes:
step S10, monitoring an audio and video control command of the remote Bluetooth equipment;
step S20, judging whether the audio and video application of the registered media _ button event is started, if yes, executing step S30, and if not, executing step S40;
step S30, distributing the media _ button event to the currently started audio application, and then executing step S90;
step S40, whether the audio and video application of the priority response media _ button event is set, if yes, executing step S60, and if not, executing step S50;
step S50, listing all audio and video applications registered to respond to the media _ button event;
step S60, distributing the media _ button event to the application which is set as the priority response remote Bluetooth control, and then executing step S90;
step S70, selecting the application which is expected to respond to the media _ button event at present, and setting the application which affects the event preferentially;
step S80, starting a user to select an audio and video application to respond to the media _ button event;
and step S90, end.
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 multimedia application playing control system based on a remote bluetooth device, as shown in fig. 3, the system includes:
a playingcommand sending module 100, configured to send a multimedia playing command to the mobile terminal by using a remote bluetooth device; as described in the method embodiments.
A multimedia playingevent obtaining module 200, configured to obtain, by the mobile terminal, a multimedia playing event corresponding to the multimedia playing instruction, and determine whether a multimedia application registered to respond to the multimedia playing event is started; as described in the method embodiments.
A first playinstruction execution module 300, configured to execute a multimedia play instruction by a started multimedia application if it is detected that the multimedia application registered to respond to the multimedia play event is started; as described in the method embodiments.
A second playinginstruction executing module 400, configured to, if it is detected that the multimedia application registered to respond to the multimedia playing event is not started, obtain and start a preset multimedia application that preferentially responds to the multimedia playing event, and execute the multimedia playing instruction by the multimedia application that preferentially responds to the multimedia playing event; as described in the method embodiments.
The multimedia application playing control system based on the remote Bluetooth equipment, wherein the system further comprises:
the preset module is used for presetting all multimedia application registration response multimedia playing events in the mobile terminal; as described in the method embodiments.
The multimedia application playing control system based on the remote bluetooth device, wherein the multimedia playing event acquiring module specifically includes:
the multimedia playing event simulation unit is used for simulating a multimedia playing instruction of the remote Bluetooth equipment received by the mobile terminal into a multimedia playing event; as described in the method embodiments.
The mobile terminal comprises a judging unit, a processing unit and a processing unit, wherein the judging unit is used for acquiring all multimedia applications by the mobile terminal and judging whether the multimedia applications register multimedia playing events or not; as described in the method embodiments.
The multimedia application playing control system based on the remote bluetooth device, wherein the second playing instruction execution module specifically includes:
the mobile terminal is used for judging whether the preset multimedia application which preferentially responds to the multimedia event exists or not; as described in the method embodiments.
The first playing instruction allocation and execution unit is used for allocating the multimedia playing event to the preset multimedia application which responds to the multimedia playing event preferentially if the preset multimedia application which responds to the multimedia event preferentially is detected, and executing the multimedia playing event after the application which responds to the multimedia playing event preferentially is started; as described in the method embodiments.
The second playing instruction distribution and execution unit is used for displaying all multimedia applications registered to respond to the multimedia playing event on the screen of the mobile terminal if the preset multimedia application which preferentially responds to the multimedia event is not detected, receiving a user instruction to select to start the multimedia application, and executing the multimedia playing event by the started multimedia application; as described in the method embodiments.
The multimedia application playing control system based on the remote bluetooth device, wherein the second playing instruction allocating and executing unit further includes:
the priority setting unit is used for receiving a user instruction by the mobile terminal to set a multimedia application which responds to the multimedia playing event preferentially; as described in the method embodiments.
In summary, the present invention provides a multimedia application playing control method and system based on a remote bluetooth device, the method includes: the remote Bluetooth equipment sends a multimedia playing instruction to the mobile terminal; the mobile terminal acquires a multimedia playing event corresponding to the multimedia playing instruction and judges whether a multimedia application which is registered to respond to the multimedia playing event is started or not; if the multimedia application registered to respond to the multimedia playing event is detected to be started, the started multimedia application executes a multimedia playing instruction; if the multimedia application which is registered to respond to the multimedia playing event is detected not to be started, the preset multimedia application which responds to the multimedia playing event preferentially is obtained and started, and the multimedia application which responds to the multimedia playing event preferentially executes the multimedia playing instruction. The invention can enable the user to select the audio application expected to be started, and the user does not need to start the expected application first; meanwhile, an entry of the priority level of the audio application on the mobile terminal responding to the remote Bluetooth equipment control is provided for the user, the user can set the application which is expected to be controlled by the remote Bluetooth equipment according to own preference, and once the setting is successful, the audio application started by the subsequent remote Bluetooth equipment is defaulted to the audio application with the highest priority level set by the user.
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.