CN113590079A - Music playing control method and device and computer readable storage medium - Google Patents

Music playing control method and device and computer readable storage medium Download PDF

Info

Publication number
CN113590079A
CN113590079A CN202110895321.2A CN202110895321A CN113590079A CN 113590079 A CN113590079 A CN 113590079A CN 202110895321 A CN202110895321 A CN 202110895321A CN 113590079 A CN113590079 A CN 113590079A
Authority
CN
China
Prior art keywords
music
playing
communication channel
equipment
audio file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110895321.2A
Other languages
Chinese (zh)
Other versions
CN113590079B (en
Inventor
冼国豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fiio Electronics Technology Co ltd
Original Assignee
Fiio Electronics Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fiio Electronics Technology Co ltd filed Critical Fiio Electronics Technology Co ltd
Priority to CN202110895321.2A priority Critical patent/CN113590079B/en
Publication of CN113590079A publication Critical patent/CN113590079A/en
Application granted granted Critical
Publication of CN113590079B publication Critical patent/CN113590079B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Abstract

The application provides a music playing control method, a music playing control device and a computer readable storage medium. The music playing control method applied to the first equipment comprises the following steps: sending a control request corresponding to a second music playing application in the second equipment to the second equipment through a preset communication channel; receiving returned current playing information of the second music playing application, wherein the current playing information comprises a music file list and playing states of music files in the music file list; sending a play control instruction corresponding to the current play information to the second device; receiving an audio file in a second format returned by the second equipment based on the playing control instruction through a preset communication channel, and converting the audio file into an audio file in a first format; and controlling a first music playing application in the first equipment to play the audio file in the second format. According to the method and the device, when the first device remotely controls the second device and obtains the music data of the second device, the two devices can simultaneously operate respective interfaces, and operation conflict cannot be generated.

Description

Music playing control method and device and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a music playing control method and apparatus, and a computer-readable storage medium.
Background
The mobile terminal equipment can acquire the music file and the associated data in the other mobile terminal equipment through remote control, namely, the other mobile terminal equipment is connected and controlled through a local area network or Bluetooth, short-distance data transmission is carried out through a simple communication rule, and the data of the other mobile terminal equipment is acquired and play control is carried out. The existing remote control software has high requirements on the type, system version and authority of the mobile device and whether the auxiliary function is opened, and in the remote control process, two mobile terminal devices in remote control cannot operate an interface at the same time, otherwise, operation conflict is generated.
Therefore, the existing music playing control method between devices has the technical problem that the control device and the controlled device cannot operate simultaneously when acquiring data.
Disclosure of Invention
In order to solve the above technical problem, the present invention provides a music playing control method, device and computer readable storage medium, the specific scheme is as follows:
in a first aspect, an embodiment of the present application provides a music playing control method, which is applied to a first device, and the method includes:
sending a control request corresponding to a second music playing application in second equipment to the second equipment through a preset communication channel;
receiving current playing information of the second music playing application returned by the second device, wherein the current playing information comprises a music file list and playing states of music files in the music file list;
sending a play control instruction corresponding to the current play information to the second device;
receiving an audio file in a second format returned by the second device based on the playing control instruction through the preset communication channel, and converting the audio file into an audio file in a first format;
and controlling a first music playing application in the first equipment to play the audio file in the second format.
According to a specific embodiment disclosed in the present application, before the step of sending the control request corresponding to the second music playing application in the second device to the second device via the preset communication channel, the method further includes:
judging whether the first equipment and the second equipment are both preset type operating systems or not;
if the first equipment and the second equipment are the preset type operating systems, establishing the preset communication channel through a TCP/IP Socket protocol or an Rfcomm protocol;
and if the first equipment and/or the second equipment are not the preset type operating system, establishing the preset communication channel through a TCP/IP Socket protocol.
According to a specific embodiment disclosed in the present application, the step of receiving, through the preset communication channel, the audio file in the second format returned by the second device based on the play control instruction, and converting the audio file into the audio file in the first format includes:
receiving a target data packet returned by the second device based on the playing control instruction through the preset communication channel, wherein the target data packet corresponds to an audio file in a second format;
judging whether the target data packet received within preset time is complete or not;
if the target data packets received within the preset time are complete, converting all the target data packets into audio files in a first format;
and if the target data packet received within the preset time is incomplete, outputting a receiving abnormal signal.
According to a specific embodiment disclosed in the present application, the step of determining whether the target data packet received within a preset time is complete includes:
acquiring marking information contained in the last target data packet received within preset time, wherein the marking information comprises the sequence of the current target data packet in all the target data packets and the number of all the target data packets;
judging whether the sequence of the current target data packet in all the target data packets is the same as the number of all the target data packets;
if the target data packets are the same, judging that the target data packets received within preset time are complete;
and if not, judging that the target data packet received within the preset time is incomplete.
In a second aspect, an embodiment of the present application provides a music playing control method, which is applied to a second device, and the method includes:
receiving a control request sent by a first device through a preset communication channel, wherein the preset communication channel is a dedicated communication channel between a second device and the first device, and the control request indicates to control a second music playing application in the second device;
sending current playing information of the second music playing application to the first device, wherein the current playing information comprises a music file list and playing states of music files in the music file list;
receiving a play control instruction which is sent by the first equipment and corresponds to the current play information;
and sending an audio file in a second format corresponding to the playing control instruction to the first equipment through the preset communication channel.
According to a specific embodiment disclosed in the present application, before the step of receiving, via a preset communication channel corresponding to the first device, a control request sent by the first device and corresponding to a second music playing application in the second device, the method further includes:
respectively establishing a preset communication channel between the second equipment and each first equipment;
the step of sending the audio file in the second format corresponding to the play control instruction to the first device through the preset communication channel includes:
and respectively sending the corresponding audio files through the preset communication channels corresponding to the first devices.
According to a specific embodiment disclosed in the present application, the step of sending the corresponding audio file through the preset communication channels corresponding to the first devices respectively includes:
if the number of the received playing control instructions is more than one, judging whether the playing control instructions conflict or not;
if not, sending an audio file in a second format corresponding to the playing control instruction to the corresponding first equipment through each preset communication channel;
and if so, sending the audio file in the second format corresponding to the playing control instruction to the first equipment with the highest priority.
In a third aspect, an embodiment of the present application provides a music playing control apparatus, which is applied to a first device, and includes:
the first sending module is used for sending a control request corresponding to a second music playing application in second equipment to the second equipment through a preset communication channel;
a first receiving module, configured to receive current playing information of the second music playing application, where the current playing information includes a music file list and a playing state of each music file in the music file list, and the current playing information is returned by the second device;
a second sending module, configured to send a play control instruction corresponding to the current play information to the second device;
the second receiving module is used for receiving the audio file in the second format returned by the second equipment based on the playing control instruction through the preset communication channel and converting the audio file into the audio file in the first format;
and the playing control module is used for controlling a first music playing application in the first equipment to play the audio file in the second format.
In a fourth aspect, an embodiment of the present application provides a music playing control apparatus, which is applied to a second device, and includes:
a first receiving module, configured to receive, via a preset communication channel, a control request sent by a first device, where the preset communication channel is a dedicated communication channel between the second device and the first device, and the control request indicates to control a second music playing application in the second device;
a first sending module, configured to send current playing information of the second music playing application to the first device, where the current playing information includes a music file list and a playing state of each music file in the music file list;
a second receiving module, configured to receive a play control instruction sent by the first device and corresponding to the current play information;
and the second sending module is used for sending the audio file in the second format corresponding to the playing control instruction to the first equipment through the preset communication channel.
In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored, and the computer program, when executed on a processor, implements the music playing control method described in any one of the first and second aspects.
Compared with the prior art, the method has the following beneficial effects:
the method and the device establish the preset communication channels between the second equipment and each first equipment respectively, and data transmission is carried out between the first equipment and the second equipment through the corresponding preset communication channels. The first device sends a control request to the second device through a preset communication channel, then receives returned current playing information of the second music playing application and sends a playing control instruction corresponding to the current playing information to the second device, and further receives an audio file in a second format returned by the second device based on the playing control instruction through the preset communication channel, converts the audio file into the audio file in the first format, and then controls the first music playing application in the first device to play the audio file in the second format. According to the method and the device, when the first device remotely controls the second device and obtains the music data of the second device, the two devices can simultaneously operate respective interfaces, and operation conflict cannot be generated.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings required to be used in the embodiments will be briefly described below, and it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention. Like components are numbered similarly in the various figures.
Fig. 1 is a schematic flowchart of a music playing control method applied to a first device according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a music playing control method applied to a second device according to an embodiment of the present application;
fig. 3 is a block diagram of a music playing control apparatus applied to a first device according to an embodiment of the present application;
fig. 4 is a block diagram of a music playing control apparatus applied to a second device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present invention, are only intended to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments of the present invention.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1, a music playing control method applied to a first device according to an embodiment of the present application is shown in fig. 1, where the method mainly includes:
step S101, sending a control request corresponding to a second music playing application in a second device to the second device through a preset communication channel.
The preset communication channel is a dedicated communication channel for connection and data transmission between the second device and the first device. Before a preset communication channel between the first device and the second device is established, it may be determined whether both the first device and the second device are a preset type operating system, for example, an Android system or an iOS system. If the first equipment and the second equipment are both preset type operating systems, establishing a preset communication channel through a TCP/IP Socket protocol or an Rfcomm protocol; and if the first equipment and/or the second equipment are not the preset type operating system, establishing a preset communication channel through a TCP/IP Socket protocol. Most of the existing mobile terminal control software needs to perform remote control under the same operating system, for example, android d controls android d, iOS controls iOS, and therefore, the existing mobile terminal control software has great limitation. According to the method, the corresponding preset communication channels are established by adopting different protocols for data transmission according to different preset type operating systems, so that good compatibility among the devices can be realized.
Before a preset communication channel is established between the first device and the second device, connection is required to be performed. The manner in which the first device connects to the second device includes, but is not limited to, bluetooth and a local area network. In the Bluetooth mode, a second device can be selected from a connectable device list displayed by a first device for connection; in the local area network mode, the connection can be performed by inputting the IP address of the second device in the control interface of the first device. After the first device sends a control request to the second device, if the second device allows control, a preset communication channel between the first device and the second device is established according to the technical means.
After the first device and the second device establish a preset communication channel, a user clicks a first music playing application on the first device to enter a corresponding display interface, and a control request can be sent to the second device according to user input or automatically. The control request sent by the first device is for requesting control of a second music playing application running in the second device. Specifically, the types of the first music playing application and the second music playing application may be different applications. The account information associated with different types of music playing applications is different, for example, a member account is logged in by the second music playing application, and a non-member account is logged in by the first music playing application, so that the user can play the music file which is not stored in association with the first music playing application on the first music playing application by controlling the second device and acquiring the music data associated with the second music playing application through the above technical means.
Step S102, receiving current playing information of the second music playing application returned by the second device, where the current playing information includes a music file list and a playing state of each music file in the music file list.
After the first device sends the control request to the second device and the second device allows control, the first device receives a music file list of the second music playing application and the playing state of each music file in the music file list, wherein the number of the music file list is at least one. For example, there are a plurality of music file lists such as "history play" and "favorite music" on the second music playing application, the two music file lists each include 10 song display information, and the second music playing application is playing the 2 nd song of the "favorite music". Then the first device will receive the following types of data: a. the two music file lists and each music file list respectively comprise 10 song display information; b. first type of play state: the second music playing application is playing song 2 in "favorite music"; c. the second type of playing state, that is, other music files in the second music playing application are in an unplayed state.
Step S103, sending a play control instruction corresponding to the current play information to the second device.
In specific implementation, the first device displays, on the display interface of the first music playing application, the received current playing information of the second music playing application, for example, three types of data, i.e., a, b, and c in step S102, so that the user performs music playing control on the second music playing application according to the current playing state of the second music playing application.
Compared with the existing remote control method, the method and the device only analyze and execute the data sent by the second equipment, and screen mirroring is not needed. Therefore, in the application, the first device and the second device execute different instructions or operations during control, and operation conflict is not generated to influence the other device.
And step S104, receiving the audio file in the second format returned by the second device based on the play control instruction through the preset communication channel, and converting the audio file into the audio file in the first format.
In specific implementation, a target data packet returned by the second device based on the play control instruction may be received through the preset communication channel, where the target data packet corresponds to the audio file in the second format. And then judging whether the received target data packet is complete within the preset time. If the received target data packets are complete within the preset time, converting all the target data packets into audio files in a first format; and if the target data packet received within the preset time is incomplete, outputting a receiving abnormal signal. Since the first music playing application running on the first device and the second music playing application running on the second device may be of different types, the formats of audio files that the two types of music playing applications can receive or play may be different, and it is necessary to convert the audio files of the two different formats.
In specific implementation, the following steps can be further performed to determine whether the target data packet received within the preset time is complete: the method comprises the steps of firstly obtaining marking information contained in the last target data packet received within preset time, wherein the marking information comprises the sequence of the current target data packet in all the target data packets and the number of all the target data packets. And then judging whether the sequence of the current target data packet in all the target data packets is the same as the number of all the target data packets. If the data packets are the same, judging that the received target data packet is complete within the preset time; if not, the target data packet received within the preset time is judged to be incomplete.
Step S105, controlling a first music playing application in the first device to play the audio file in the second format.
The first device receives the audio file returned by the second device, and simultaneously can also receive the current volume data associated with the audio file. Through the technical means, the first device can not only perform playing control on the second device according to the received current playing information of the second music playing application, but also further receive an audio file returned by the second device according to the playing control instruction. The audio file with the corresponding volume is played on the first device, so that a user can feel the sound of music played on the second device more intuitively, and the user can send more accurate music playing control to the second device through the first device.
Referring to fig. 2, a music playing control method applied to a second device provided in the embodiment of the present application is shown in fig. two, where the method mainly includes:
step S201, receiving a control request sent by a first device through a preset communication channel, where the preset communication channel is a dedicated communication channel between the second device and the first device, and the control request indicates to control a second music playing application in the second device.
In particular, there may be a situation where multiple first devices control the same second device within the same time frame. At this time, the second device simultaneously connected to the plurality of first devices may respectively establish a preset communication channel with each of the first devices.
Step S202, sending current playing information of the second music playing application to the first device, where the current playing information includes a music file list and a playing state of each music file in the music file list.
Step S203, receiving a play control instruction sent by the first device corresponding to the current play information.
The specific implementation process of step S202 and step S203 may refer to step S102 and step S103, which are not described in detail here.
Step S204, sending an audio file in a second format corresponding to the play control instruction to the first device through the preset communication channel.
In specific implementation, after the second device establishes the corresponding preset communication channels with the plurality of first devices, the corresponding audio files can be sent through the corresponding preset communication channels of the first devices. When the number of the preset communication channels is greater than one, at the same time point, the second device may receive a plurality of play control instructions, and at this time, the priority order among the play control instructions needs to be further judged, and the corresponding play control instructions are responded according to the priority order. The method comprises the following specific steps: if the number of the received playing control instructions is more than one, judging whether the playing control instructions conflict or not; if not, sending the audio file in the second format corresponding to the playing control instruction to the corresponding first equipment through each preset communication channel; and if so, sending the audio file in the second format corresponding to the playing control instruction to the first equipment with the highest priority.
The priority order of the respective play control instructions may be associated with the permission level of the corresponding first device. For example: after the second device allows the first device to perform control, each first device may be assigned an authority level value, where the higher the authority level value is, the higher the priority order of the corresponding play control instruction is, and this is not specifically limited herein.
In a specific implementation, the second device may send the audio file in the second format to the first device in the form of a target data packet. Tag information including the order of the current target data packet in all the target data packets and the number of all the target data packets may be added to each target data packet, and then each target data packet is sent to the first device in order based on a preset communication channel. For example, if the data corresponding to the audio file needs to be divided into 10 destination packets and sent in sequence, the first destination packet will carry the subscript 1, and there are 10 destination packets, and so on. When the index of the last destination packet received by the first device reaches 10, it represents that the audio file received by the first device is complete.
Before dividing the audio file in the second format into a plurality of data packets, it may be determined whether the length of the initial target data corresponding to the audio file is greater than a maximum data length allowed to pass through a preset communication channel. If the length of the initial target data is larger than the maximum data length allowed by a preset communication channel, the initial target data is divided into at least two target data packets smaller than the maximum data length; and if the length of the initial target data is less than or equal to the maximum data length allowed by the preset communication channel, determining the initial target data as a target data packet.
According to the music playing control method, the corresponding preset communication channels are established by adopting different protocols for data transmission according to different preset type operating systems, and good compatibility among the devices can be realized. The first device analyzes and executes the data sent by the second device, screen mirroring is not needed, different instructions or operations are executed when the first device and the second device are controlled, and operation conflict cannot be generated to affect the other device. And the second device can respectively establish preset communication channels with the first devices, and respectively send corresponding audio files through the preset communication channels, so that the control of the plurality of first devices on the second device is realized.
Corresponding to the above method embodiment, referring to fig. 3, the present invention further provides a music playing control apparatus 300 applied to a first device, where the music playing control apparatus 300 applied to the first device includes:
a first sending module 301, configured to send a control request corresponding to a second music playing application in a second device to the second device via a preset communication channel;
a first receiving module 302, configured to receive current playing information of the second music playing application, where the current playing information includes a music file list and a playing state of each music file in the music file list, and the current playing information is returned by the second device;
a second sending module 303, configured to send a play control instruction corresponding to the current play information to the second device;
a second receiving module 304, configured to receive, through the preset communication channel, an audio file in a second format that is returned by the second device based on the play control instruction, and convert the audio file into an audio file in a first format;
a playing control module 305, configured to control a first music playing application in the first device to play the audio file in the second format.
In correspondence with the above method embodiment, referring to fig. 4, the present invention also provides a music playing control apparatus 400 applied to a second device, where the music playing control apparatus 400 applied to the second device includes:
a first receiving module 401, configured to receive, via a preset communication channel, a control request sent by a first device, where the preset communication channel is a dedicated communication channel between a second device and the first device, and the control request indicates to control a second music playing application in the second device;
a first sending module 402, configured to send current playing information of the second music playing application to the first device, where the current playing information includes a music file list and a playing state of each music file in the music file list;
a second receiving module 403, configured to receive a play control instruction sent by the first device and corresponding to the current play information;
a second sending module 404, configured to send, to the first device through the preset communication channel, an audio file in a second format corresponding to the play control instruction.
According to the music playing control device and the computer readable storage medium, the corresponding preset communication channels are established by adopting different protocols for data transmission according to different preset type operating systems, and good compatibility among devices can be realized. The first device analyzes and executes the data sent by the second device, screen mirroring is not needed, different instructions or operations are executed when the first device and the second device are controlled, and operation conflict cannot be generated to affect the other device. And the second device can respectively establish preset communication channels with the first devices, and respectively send corresponding audio files through the preset communication channels, so that the control of the plurality of first devices on the second device is realized.
For a specific implementation process of the provided computer-readable storage medium, reference may be made to the specific implementation process of the music playing control method provided in the foregoing embodiment, and details are not repeated here.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention or a part of the technical solution that contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (10)

1. A music playing control method is applied to a first device, and comprises the following steps:
sending a control request corresponding to a second music playing application in second equipment to the second equipment through a preset communication channel;
receiving current playing information of the second music playing application returned by the second device, wherein the current playing information comprises a music file list and playing states of music files in the music file list;
sending a play control instruction corresponding to the current play information to the second device;
receiving an audio file in a second format returned by the second device based on the playing control instruction through the preset communication channel, and converting the audio file into an audio file in a first format;
and controlling a first music playing application in the first equipment to play the audio file in the second format.
2. The method of claim 1, wherein prior to the step of sending a control request corresponding to a second music playing application within the second device to the second device via a preset communication channel, the method further comprises:
judging whether the first equipment and the second equipment are both preset type operating systems or not;
if the first equipment and the second equipment are the preset type operating systems, establishing the preset communication channel through a TCP/IP Socket protocol or an Rfcomm protocol;
and if the first equipment and/or the second equipment are not the preset type operating system, establishing the preset communication channel through a TCP/IP Socket protocol.
3. The method according to claim 1, wherein the step of receiving the audio file in the second format returned by the second device based on the play control instruction through the preset communication channel and converting the audio file into the audio file in the first format comprises:
receiving a target data packet returned by the second device based on the playing control instruction through the preset communication channel, wherein the target data packet corresponds to an audio file in a second format;
judging whether the target data packet received within preset time is complete or not;
if the target data packets received within the preset time are complete, converting all the target data packets into audio files in a first format;
and if the target data packet received within the preset time is incomplete, outputting a receiving abnormal signal.
4. The method of claim 3, wherein the step of determining whether the target data packet received within a predetermined time is complete comprises:
acquiring marking information contained in the last target data packet received within preset time, wherein the marking information comprises the sequence of the current target data packet in all the target data packets and the number of all the target data packets;
judging whether the sequence of the current target data packet in all the target data packets is the same as the number of all the target data packets;
if the target data packets are the same, judging that the target data packets received within preset time are complete;
and if not, judging that the target data packet received within the preset time is incomplete.
5. A music playing control method is applied to a second device, and comprises the following steps:
receiving a control request sent by a first device through a preset communication channel, wherein the preset communication channel is a dedicated communication channel between a second device and the first device, and the control request indicates to control a second music playing application in the second device;
sending current playing information of the second music playing application to the first device, wherein the current playing information comprises a music file list and playing states of music files in the music file list;
receiving a play control instruction which is sent by the first equipment and corresponds to the current play information;
and sending an audio file in a second format corresponding to the playing control instruction to the first equipment through the preset communication channel.
6. The method of claim 5, wherein prior to the step of receiving, via a preset communication channel corresponding to the first device, a control request from the first device to send a second music playing application corresponding to the second device, the method further comprises:
respectively establishing a preset communication channel between the second equipment and each first equipment;
the step of sending the audio file in the second format corresponding to the play control instruction to the first device through the preset communication channel includes:
and respectively sending the corresponding audio files through the preset communication channels corresponding to the first devices.
7. The method according to claim 6, wherein the number of the preset communication channels is greater than one, and the step of sending the corresponding audio file through the preset communication channel corresponding to each first device respectively comprises:
if the number of the received playing control instructions is more than one, judging whether the playing control instructions conflict or not;
if not, sending an audio file in a second format corresponding to the playing control instruction to the corresponding first equipment through each preset communication channel;
and if so, sending the audio file in the second format corresponding to the playing control instruction to the first equipment with the highest priority.
8. A music playback control apparatus, applied to a first device, the apparatus comprising:
the first sending module is used for sending a control request corresponding to a second music playing application in second equipment to the second equipment through a preset communication channel;
a first receiving module, configured to receive current playing information of the second music playing application, where the current playing information includes a music file list and a playing state of each music file in the music file list, and the current playing information is returned by the second device;
a second sending module, configured to send a play control instruction corresponding to the current play information to the second device;
the second receiving module is used for receiving the audio file in the second format returned by the second equipment based on the playing control instruction through the preset communication channel and converting the audio file into the audio file in the first format;
and the playing control module is used for controlling a first music playing application in the first equipment to play the audio file in the second format.
9. A music playback control apparatus, applied to a second device, the apparatus comprising:
a first receiving module, configured to receive, via a preset communication channel, a control request sent by a first device, where the preset communication channel is a dedicated communication channel between the second device and the first device, and the control request indicates to control a second music playing application in the second device;
a first sending module, configured to send current playing information of the second music playing application to the first device, where the current playing information includes a music file list and a playing state of each music file in the music file list;
a second receiving module, configured to receive a play control instruction sent by the first device and corresponding to the current play information;
and the second sending module is used for sending the audio file in the second format corresponding to the playing control instruction to the first equipment through the preset communication channel.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed on a processor, implements the music playback control method of any one of claims 1 to 4 or the music playback control method of any one of claims 5 to 7.
CN202110895321.2A 2021-08-05 2021-08-05 Music playing control method, device and computer readable storage medium Active CN113590079B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110895321.2A CN113590079B (en) 2021-08-05 2021-08-05 Music playing control method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110895321.2A CN113590079B (en) 2021-08-05 2021-08-05 Music playing control method, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113590079A true CN113590079A (en) 2021-11-02
CN113590079B CN113590079B (en) 2024-03-22

Family

ID=78255335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110895321.2A Active CN113590079B (en) 2021-08-05 2021-08-05 Music playing control method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113590079B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105282856A (en) * 2015-11-04 2016-01-27 广东欧珀移动通信有限公司 Method for controlling information transmission and user terminal
CN105530277A (en) * 2014-09-30 2016-04-27 宇龙计算机通信科技(深圳)有限公司 Method and device for cooperative work of devices
CN105744334A (en) * 2016-02-18 2016-07-06 海信集团有限公司 Method and equipment for audio and video synchronization and synchronous playing
WO2017031864A1 (en) * 2015-08-25 2017-03-02 广东欧珀移动通信有限公司 Playing control method and apparatus for multimedia playing device
CN108540842A (en) * 2018-04-18 2018-09-14 广州华多网络科技有限公司 Audio-frequence player device, audio frequency playing method, equipment and storage medium
CN108804070A (en) * 2018-05-30 2018-11-13 Oppo广东移动通信有限公司 Method for playing music, device, storage medium and electronic equipment
CN108986815A (en) * 2018-09-28 2018-12-11 联想(北京)有限公司 Sound control method, device and electronic equipment
CN113132782A (en) * 2020-01-16 2021-07-16 百度在线网络技术(北京)有限公司 Streaming media transmission method, streaming media playing device and electronic device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530277A (en) * 2014-09-30 2016-04-27 宇龙计算机通信科技(深圳)有限公司 Method and device for cooperative work of devices
WO2017031864A1 (en) * 2015-08-25 2017-03-02 广东欧珀移动通信有限公司 Playing control method and apparatus for multimedia playing device
CN105282856A (en) * 2015-11-04 2016-01-27 广东欧珀移动通信有限公司 Method for controlling information transmission and user terminal
CN105744334A (en) * 2016-02-18 2016-07-06 海信集团有限公司 Method and equipment for audio and video synchronization and synchronous playing
CN108540842A (en) * 2018-04-18 2018-09-14 广州华多网络科技有限公司 Audio-frequence player device, audio frequency playing method, equipment and storage medium
CN108804070A (en) * 2018-05-30 2018-11-13 Oppo广东移动通信有限公司 Method for playing music, device, storage medium and electronic equipment
CN108986815A (en) * 2018-09-28 2018-12-11 联想(北京)有限公司 Sound control method, device and electronic equipment
CN113132782A (en) * 2020-01-16 2021-07-16 百度在线网络技术(北京)有限公司 Streaming media transmission method, streaming media playing device and electronic device

Also Published As

Publication number Publication date
CN113590079B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
KR101303474B1 (en) Remote control signal learning and processing by a host device and accessory
US20230308976A1 (en) Seamless bluetooth switching system
CN107342083B (en) Method and apparatus for providing voice service
CN110351715B (en) AT instruction processing method, terminal adapter and computer readable storage medium
US10922113B2 (en) Method for vehicle based data transmission and operation among a plurality of subscribers through formation of virtual machines
CN104601205A (en) Content sharing method and device
CN110708694A (en) Method, system, storage medium and electronic device for realizing simultaneous online public and private networks
KR101588993B1 (en) Protocol translating adapter
CN103108237B (en) Display unit and transcriber
CN108513365B (en) Control method and device of intelligent equipment, intelligent equipment and medium
JP2015220533A (en) On-vehicle information system, on-vehicle device, information terminal, application execution method
CN114390044A (en) File uploading method, system, device and storage medium
CN113590079B (en) Music playing control method, device and computer readable storage medium
CN110602338B (en) Audio processing method, device, system, storage medium and equipment
CN112533188A (en) Output processing method and device of playing source
EP2833605B1 (en) Mobile terminal control apparatus
CN111881005A (en) Information display method, device, equipment and storage medium
US9961188B2 (en) Vehicle to device communication over wired audio connection
CN114374614A (en) Network topology configuration method and device
CN113676761A (en) Multimedia resource playing method and device and main control equipment
CN111193717A (en) FTP black and white list control method and device and electronic equipment
KR101464145B1 (en) A method, a system, a server, a client, a computer program and a computer program product for determining a user guide in a computer network
KR20140076693A (en) A contents transmission system
US11265412B2 (en) Cooperation system, cooperation method, and computer program product
US20230262792A1 (en) Wireless device and operating method of wireless communication system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant