CN108810748B - Information processing method, playing device and medium product - Google Patents

Information processing method, playing device and medium product Download PDF

Info

Publication number
CN108810748B
CN108810748B CN201810489073.XA CN201810489073A CN108810748B CN 108810748 B CN108810748 B CN 108810748B CN 201810489073 A CN201810489073 A CN 201810489073A CN 108810748 B CN108810748 B CN 108810748B
Authority
CN
China
Prior art keywords
control instruction
instruction
timestamp
control
earliest
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.)
Expired - Fee Related
Application number
CN201810489073.XA
Other languages
Chinese (zh)
Other versions
CN108810748A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810489073.XA priority Critical patent/CN108810748B/en
Publication of CN108810748A publication Critical patent/CN108810748A/en
Application granted granted Critical
Publication of CN108810748B publication Critical patent/CN108810748B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers

Abstract

The embodiment of the invention discloses an information processing method and playing equipment. Wherein, the method comprises the following steps: receiving a control instruction sent by a user terminal, wherein the control instruction comprises a timestamp when the control instruction is sent; storing the control instruction in an instruction queue, wherein the instruction queue is used for storing the control instruction to be executed; scanning all control instructions in the instruction queue, and reading the control instruction with the earliest timestamp in all the control instructions; executing the control instruction with the earliest time stamp; and deleting the control instruction with the earliest time stamp from the instruction queue. The embodiment of the invention can effectively control the wireless music system.

Description

Information processing method, playing device and medium product
The present application is a divisional application entitled "an information processing method and a playback apparatus" with an application number of "2015107453191" and an application date of 11/4/2015.
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an information processing method, a playback device, and a medium product.
Background
With the improvement of the quality of life of people, more and more users like to place a plurality of sound boxes (i.e., playing devices) at home, and the plurality of sound boxes can constitute a wireless music system. The user terminal (such as a smart phone) provided with the control APP can be connected with the wireless music system through a wireless network, so that the wireless music system is controlled.
However, it has been found in practice that when the user terminal sends a control command to the wireless music system, due to network delay and the like, the following situation is easy to occur: that is, the user terminal sends a plurality of control commands to the wireless music system in sequence, and the wireless music system receives the control commands at the same time, at this time, the wireless music system cannot respond to the control commands at the same time, so that the wireless music system cannot be controlled.
Disclosure of Invention
The embodiment of the invention provides an information processing method and a playing device, which can effectively control a wireless music system.
The first aspect of the embodiments of the present invention discloses an information processing method, including:
receiving a control instruction sent by a user terminal, wherein the control instruction comprises a timestamp when the control instruction is sent;
storing the control instruction in an instruction queue, wherein the instruction queue is used for storing the control instruction to be executed;
scanning all control instructions in the instruction queue, and reading the control instruction with the earliest timestamp in all the control instructions;
executing the control instruction with the earliest time stamp;
and deleting the control instruction with the earliest time stamp from the instruction queue.
With reference to the first aspect, in a first possible implementation manner of the first aspect, after the deleting the control instruction with the earliest timestamp from the instruction queue, the method further includes:
judging whether a target control instruction exists in the remaining control instructions of the instruction queue, wherein the target control instruction and the control instruction with the earliest timestamp are sent by the same user terminal;
and when target control instructions exist in the remaining control instructions in the instruction queue, judging whether the target control instructions and the control instructions with the earliest time stamps form associated control instructions, if so, reading the target control instructions, and executing the target control instructions.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the determining whether the target control instruction and the control instruction with the earliest timestamp form a related control instruction includes:
and judging whether the difference value between the timestamp of the target control instruction and the timestamp of the control instruction with the earliest timestamp is less than or equal to a preset timestamp threshold value, if so, determining that the target control instruction and the control instruction with the earliest timestamp form a related control instruction.
With reference to the first possible implementation manner of the first aspect or the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the method further includes:
and when the target control instruction and the control instruction with the earliest timestamp do not form a related control instruction, reading the control instruction with the earliest timestamp in the rest of control instructions in the instruction queue, and executing the control instruction with the earliest timestamp in the rest of control instructions in the instruction queue.
With reference to any one of the first aspect to the second possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, after the receiving the control instruction sent by the user terminal, the method further includes:
judging whether the time stamp of the control instruction is earlier than the time stamp of the control instruction currently being executed;
and if not, executing the step of storing the control instruction in an instruction queue.
A second aspect of an embodiment of the present invention discloses a playback device, including:
a receiving unit, configured to receive a control instruction sent by a user terminal, where the control instruction includes a timestamp when the control instruction is sent;
the storage unit is used for storing the control instruction in an instruction queue, and the instruction queue is used for storing the control instruction to be executed;
the reading unit is used for scanning all the control instructions in the instruction queue and reading the control instruction with the earliest time stamp in all the control instructions;
an execution unit to execute the control instruction with the earliest timestamp;
and the deleting unit is used for deleting the control instruction with the earliest time stamp from the instruction queue.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the playback device further includes:
a first determining unit, configured to determine whether a target control instruction exists in remaining control instructions in the instruction queue after the deleting unit deletes the control instruction with the earliest timestamp from the instruction queue, where the target control instruction and the control instruction with the earliest timestamp are sent by the same ue;
a second judging unit, configured to, when the first judging unit judges that a target control instruction exists in remaining control instructions in the instruction queue, judge whether the target control instruction and the control instruction with the earliest timestamp form an associated control instruction;
the reading unit is further configured to read the target control instruction when the second determining unit determines that the target control instruction and the control instruction with the earliest timestamp form an associated control instruction;
the execution unit is further configured to execute the target control instruction.
With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the manner that the second determination unit determines whether the target control instruction and the control instruction with the earliest timestamp form a related control instruction is specifically:
and judging whether the difference value between the timestamp of the target control instruction and the timestamp of the control instruction with the earliest timestamp is less than or equal to a preset timestamp threshold value, if so, determining that the target control instruction and the control instruction with the earliest timestamp form a related control instruction.
With reference to the first possible implementation manner of the second aspect or the second possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the reading unit is further configured to read a control instruction with an earliest timestamp from the remaining control instructions in the instruction queue when the second judging unit judges that the target control instruction and the control instruction with the earliest timestamp do not form an associated control instruction;
the execution unit is further configured to execute a control instruction with an earliest timestamp among the remaining control instructions in the instruction queue.
With reference to any one of the second aspect to the second possible implementation manner of the second aspect, in a fourth possible implementation manner of the second aspect, the playback device further includes:
a third judging unit, configured to judge whether a timestamp of the control instruction is earlier than a timestamp of a control instruction currently being executed after the receiving unit receives the control instruction sent by the user terminal;
the storage unit is provided with a time stamp used for storing the control instruction in an instruction queue when the third judging unit judges that the time stamp of the control instruction is not earlier than the time stamp of the control instruction currently being executed.
In the embodiment of the present invention, the playing device may receive a control instruction sent by the user terminal, where the control instruction includes a timestamp when the control instruction is sent, and stores the control instruction in the instruction queue, and further, the playing device may scan all the control instructions in the instruction queue, read a control instruction with an earliest timestamp in all the control instructions, and execute the control instruction with the earliest timestamp; further, the playback device may delete the control instruction with the earliest timestamp from the instruction queue. Therefore, according to the embodiment of the present invention, when the playing device receives a control instruction, the playing device does not immediately execute the control instruction, but stores the control instruction in the instruction queue, reads the control instruction with the earliest timestamp in all the control instructions in the instruction queue, executes the control instruction with the earliest timestamp, and deletes the control instruction with the earliest timestamp after the execution. In this way, no matter how many control instructions the playing device receives at the same time, the playing device executes the control instruction with the earliest time stamp, so that the wireless music system can be effectively controlled.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a network architecture according to an embodiment of the present invention;
FIG. 2 is a flow chart of an information processing method according to an embodiment of the present invention;
FIG. 3 is a flow chart of another information processing method disclosed in the embodiment of the invention;
fig. 4 is a schematic structural diagram of a playing device disclosed in the embodiment of the present invention;
fig. 5 is a schematic structural diagram of another playback device disclosed in the embodiment of the present invention;
fig. 6 is a schematic structural diagram of another playback device disclosed in the embodiment of the present invention.
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. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses an information processing method and playing equipment, which can effectively control a wireless music system. The following are detailed below.
In order to better understand the method for controlling information transmission and the user terminal disclosed in the embodiments of the present invention, a network structure suitable for the embodiments of the present invention is described below. Referring to fig. 1, fig. 1 is a schematic diagram of a network architecture according to an embodiment of the present invention. In the network architecture shown in fig. 1, a plurality of user terminals, a wireless router and a wireless music system composed of a plurality of playing devices may be included, where each user terminal may be in communication connection with the wireless router in a wireless manner (e.g. WI-FI), and all the playing devices in the wireless music system may be in communication connection with each other in a wireless manner (AD-HOC network form or MESH network form), where one playing device (e.g. playing device 1) may be in direct communication connection with the wireless router in a wireless or wired manner, and other playing devices (e.g. playing device 2, playing device 3, playing device 4) may be in indirect communication with the wireless router through the playing device 1, and after the user terminal installed with the control APP establishes wireless connection with the wireless router, the user terminal can indirectly communicate with the wireless music system through the wireless routing device and control all the playback devices in the wireless music system. In the network architecture shown in fig. 1, the user terminal may include, but is not limited to, various user terminals such as a smart phone, a notebook Computer, a Personal Computer (PC), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a smart wearable Device (e.g., a smart watch, a smart bracelet), etc., the playback Device may include, but is not limited to, a sound box, an MP4, an MP3, a multimedia Device, and any Device with a playback function, etc., and the wireless routing Device may include, but is not limited to, a wireless router and any Device with a wireless overlay function, etc. By implementing the network architecture shown in fig. 1, the user terminal can be made to effectively control the wireless music system.
Based on the network architecture shown in fig. 1, the embodiment of the invention discloses an information processing method. Referring to fig. 2, fig. 2 is a schematic flow chart of an information processing method according to an embodiment of the present invention, and as shown in fig. 2, the method may include the following steps.
S201, receiving a control instruction sent by the user terminal.
In the embodiment of the present invention, a user may place a plurality of playback devices (such as sound boxes) at home, and the plurality of playback devices may be deployed at will, for example: in the same floor, a plurality of playing devices are respectively arranged in different rooms, such as a playing device 1 and a playing device 2 are arranged in a living room; the playback device 3 is placed in a bedroom; the playing device 4 is placed in a study; in a multi-storey building, a plurality of playing devices are placed on different floors. The plurality of playing devices may form a wireless music system, and the playing devices in the wireless music system may communicate with each other in a wireless manner and form an internal network, i.e., a MESH network.
The user terminal can establish connection with the wireless music system through the wireless routing equipment, in the network architecture shown in fig. 1, the user terminal and the wireless music system both keep wireless connection with the wireless routing equipment, and the user terminal provided with the control APP can communicate with the wireless music system through the wireless routing equipment. The control APP may store relevant information of all playing devices included in the wireless music system, such as: identification of all playback devices, grouping information of playback devices, song settings (song list, volume level) on each playback device, etc.
In the embodiment of the invention, when a user needs to use the user terminal to control the playing device in the infinite music system, the user terminal can send a control instruction to the playing device needing to be controlled. Meanwhile, the playing device receives a control instruction sent by the user terminal, wherein the control instruction may include, but is not limited to, an instruction to add a song, an instruction to delete a song, and an instruction to pause playing, and the control instruction includes a timestamp when the control instruction is sent. For example, assume that the user terminal is 8: 20, due to network delay and other reasons, the playing device may delay receiving the control instruction, where the control instruction may carry a timestamp, and the timestamp represents a time point 8 when the control instruction is sent: 20.
it should be noted that, in the embodiment of the present invention, timestamps carried by the control instructions received by the default playback device are different.
S202, storing the control command in a command queue.
In the embodiment of the present invention, due to reasons such as network delay, the playback device may simultaneously receive control instructions sent by multiple user terminals in sequence or multiple control instructions sent by the same user terminal in sequence, at this time, the playback device cannot simultaneously execute the control instructions, and the playback device stores the received control instructions in an instruction queue, where the instruction queue is used to store the control instructions to be executed.
In one embodiment, after the playing device receives a control instruction sent by a user terminal, the playing device will first determine whether the timestamp of the control instruction is the timestamp of the control instruction being executed, if not, the playing device will store the control instruction just received in an instruction queue, otherwise, the playing device will directly discard the received control instruction without storing the control instruction, so that the control instruction can be sequentially executed according to the sequence of the timestamps, and the playing device in the wireless music system can be effectively controlled.
S203, scanning all the control instructions in the instruction queue, and reading the control instruction with the earliest time stamp in all the control instructions.
In the embodiment of the present invention, after the playing device stores the control instruction in the instruction queue, the playing device may scan all the control instructions in the instruction queue first, extract timestamps of all the control instructions, determine the control instruction with the earliest timestamp, and read the control instruction with the earliest timestamp.
And S204, executing the control command with the earliest time stamp.
And S205, deleting the control instruction with the earliest time stamp from the instruction queue.
In the embodiment of the invention, after the playing device executes the control instruction with the earliest timestamp, the playing device can delete the control instruction with the earliest timestamp from the instruction queue, so that the storage space of the instruction queue can be saved, and meanwhile, the control instructions to be executed can be ensured to be stored in the instruction queue.
In the embodiment of the present invention, the playing device may execute the steps S201 to S205 in a loop, and no matter how many control instructions are received by the playing device, the playing device may sequentially execute the control instructions according to the sequence of the timestamps, so that the playing device in the wireless music system may be effectively controlled.
In the method flow described in fig. 2, the playing device may receive a control instruction sent by the user terminal, where the control instruction includes a timestamp when the control instruction is sent, and store the control instruction in the instruction queue, and further, the playing device may scan all the control instructions in the instruction queue, read a control instruction with an earliest timestamp in all the control instructions, and execute the control instruction with the earliest timestamp; further, the playback device may delete the control instruction with the earliest timestamp from the instruction queue. Therefore, according to the embodiment of the present invention, when the playing device receives a control instruction, the playing device does not immediately execute the control instruction, but stores the control instruction in the instruction queue, reads the control instruction with the earliest timestamp in all the control instructions in the instruction queue, executes the control instruction with the earliest timestamp, and deletes the control instruction with the earliest timestamp after the execution. In this way, no matter how many control instructions the playing device receives at the same time, the playing device executes the control instruction with the earliest time stamp, so that the wireless music system can be effectively controlled.
Based on the network architecture shown in fig. 1, the embodiment of the invention discloses an information processing method. Referring to fig. 3, fig. 3 is a schematic flow chart of another information processing method according to an embodiment of the present invention, and as shown in fig. 3, the method may include the following steps.
S301, the playing device receives a control instruction sent by the user terminal.
S302, the playing device judges whether the time stamp of the control instruction is earlier than the time stamp of the control instruction currently executed, if not, the steps S303 to S307 are executed, and if so, the flow is ended.
In the embodiment of the present invention, due to network delay and other reasons, the control instruction may be received after being sent, for example: the timestamp that control instruction a was sent is 8 points, and the timestamp that control instruction B was sent is 8: 20, and the time when the playing device receives the control instruction a is 9: 20, the time for receiving the control command B is 9 points.
In the embodiment of the present invention, since the playing device executes the control instructions according to the sequence of the timestamps, after the playing device receives the control instructions sent by the user terminal, the playing device needs to first determine whether the timestamp of the control instruction is earlier than the timestamp of the control instruction currently being executed, if not, the playing device may store the control instruction in the instruction queue, the control instruction is executed after the control instruction earlier than the timestamp is executed, and if so, the playing device may discard the received control instruction and does not store the control instruction.
For example, assume that control instruction B is currently being executed, at which time control instruction a and control instruction C are received, and the timestamp for control instruction a being sent is 8 points, and the timestamp for control instruction B being sent is 8: 20, the timestamp of the control instruction C is 9 points, that is, the timestamp of the control instruction a is earlier than the timestamp of the control instruction B currently being executed, and the timestamp of the control instruction C is later than the timestamp of the control instruction B currently being executed.
And S303, the playing device stores the control instruction in an instruction queue.
S304, the playing device scans all the control instructions in the instruction queue and reads the control instruction with the earliest time stamp in all the control instructions.
S305, the playing device executes the control command with the earliest time stamp.
S306, the playing device deletes the control instruction with the earliest time stamp from the instruction queue.
S307, the playing device judges whether the remaining control instructions in the instruction queue have target control instructions, if so, step S308 is executed, and if not, step S310 is executed.
In the embodiment of the present invention, after the playback device executes the control instruction with the earliest timestamp and deletes the control instruction with the earliest timestamp, the playback device may determine whether a target control instruction exists in the remaining control instructions in the instruction queue, where the target control instruction and the control instruction with the earliest timestamp are sent by the same user terminal, if yes, the playback device may further execute step S308, and if not, the playback device may execute the control instruction with the earliest timestamp in the remaining control instructions in the instruction queue according to the sequence of timestamps.
S308, the playing device judges whether the target control instruction and the control instruction with the earliest time stamp form a related control instruction, if so, step S309 is executed, and if not, step S310 is executed.
In the embodiment of the present invention, after the playback device determines that the target control instruction exists in the remaining control instructions in the instruction queue, the playback device may further determine whether the target control instruction and the control instruction with the earliest timestamp form an associated control instruction, and if the target control instruction and the control instruction with the earliest timestamp form an associated control instruction, in order to ensure that the associated control instruction is continuously executed, the playback device may execute the target control instruction instead of executing the control instruction with the earliest timestamp in the remaining control instructions in the instruction queue according to the order of timestamps; if the target control instruction and the control instruction with the earliest timestamp do not form a related control instruction, the playing device can still execute the control instruction with the earliest timestamp in the remaining control instructions in the instruction queue according to the sequence of the timestamps.
The associated control instruction may be an instruction for the same control object, for example, the user terminal may send the volume control instruction in sequence, and the volume control instructions may form the associated control instruction.
For example, assuming that a control instruction a, a control instruction B, a control instruction C, and a control instruction D are stored in the instruction queue, and a timestamp of the control instruction a is earlier than a timestamp of the control instruction B, a timestamp of the control instruction B is earlier than a timestamp of the control instruction C, and a timestamp of the control instruction C is earlier than a timestamp of the control instruction D, after the playback device executes the control instruction a, the playback device will first determine whether a control instruction transmitted by the same user terminal as the control instruction a exists in the remaining control instruction B, control instruction C, and control instruction D in the instruction queue, if the control instruction D and the control instruction a are control instructions transmitted by the same user terminal, the playback device further determines whether the control instruction D and the control instruction a constitute a related control instruction, if so, the playback device executes the control instruction D first, if not, the playing device executes the control instruction B with the earliest time stamp in the remaining control instructions in the instruction queue.
Optionally, the manner of determining, by the playback device, whether the target control instruction and the control instruction with the earliest timestamp form an associated control instruction is specifically as follows:
and judging whether the difference value between the timestamp of the target control instruction and the timestamp of the control instruction with the earliest timestamp is less than or equal to a preset timestamp threshold value or not, and if so, determining that the target control instruction and the control instruction with the earliest timestamp form a related control instruction.
The preset timestamp threshold may be a time defined by a user, or may be a time set by default in the system, such as 1s, 5s, and the like.
S309, the playing device reads the target control instruction, executes the target control instruction and ends the process.
S310, the playing device reads the control instruction with the earliest timestamp in the rest control instructions in the instruction queue and executes the control instruction with the earliest timestamp in the rest control instructions in the instruction queue.
In the method flow described in fig. 3, after receiving a control instruction sent by a user terminal, if a timestamp of the control instruction is later than a timestamp of a control instruction currently being executed, the playback device stores the control instruction in an instruction queue and executes a control instruction with an earliest timestamp in the instruction queue, further, the playback device may determine whether a target control instruction exists in remaining control instructions in the instruction queue, and when the target control instruction exists in remaining control instructions in the instruction queue, determine whether the target control instruction and the control instruction with the earliest timestamp form an associated control instruction, if so, execute the target control instruction, otherwise, execute the control instruction with the earliest timestamp in remaining control instructions in the instruction queue. Therefore, the embodiment of the invention can effectively control the playing equipment in the wireless music system, and simultaneously can ensure that a plurality of control instructions forming the associated control instruction are continuously executed, thereby improving the user experience.
The following is an embodiment of the apparatus of the present invention, which is used for executing the method in the embodiment of the method of the present invention, and for convenience of description, only the relevant parts of the embodiment of the present invention are shown, and details of the specific technology are not disclosed, please refer to the above embodiment of the method of the present invention.
Based on the network architecture shown in fig. 1, the embodiment of the invention discloses a playing device. Referring to fig. 4, fig. 4 is a schematic structural diagram of a playing device disclosed in the embodiment of the present invention, and as shown in fig. 4, the playing device 400 may include:
a receiving unit 401, configured to receive a control instruction sent by a user terminal, where the control instruction includes a timestamp when the control instruction is sent;
a storage unit 402, configured to store the control instruction in an instruction queue, where the instruction queue is used to store the control instruction to be executed;
a reading unit 403, configured to scan all the control instructions in the instruction queue, and read a control instruction with an earliest timestamp in all the control instructions;
an execution unit 404, configured to execute the control instruction with the earliest timestamp;
a deleting unit 405, configured to delete the control instruction with the earliest timestamp from the instruction queue.
Based on the network architecture shown in fig. 1, the embodiment of the invention discloses a playing device. Referring to fig. 5, fig. 5 is a schematic structural diagram of another playing device disclosed in the embodiment of the present invention, where the playing device shown in fig. 5 is obtained by further optimizing on the basis of the playing device shown in fig. 4, and compared with the playing device shown in fig. 4, the playing device shown in fig. 5 may include, in addition to all units of the playing device shown in fig. 4, further:
a first determining unit 406, configured to determine whether a target control instruction exists in remaining control instructions in the instruction queue after the deleting unit 405 deletes the control instruction with the earliest timestamp from the instruction queue, where the target control instruction and the control instruction with the earliest timestamp are sent by the same ue;
a second judging unit 407, configured to, when the first judging unit 406 judges that there is a target control instruction in the remaining control instructions in the instruction queue, judge whether the target control instruction and the control instruction with the earliest timestamp form an associated control instruction;
the reading unit 403 is further configured to read the target control instruction when the second determining unit 407 determines that the target control instruction and the control instruction with the earliest timestamp form an associated control instruction;
the execution unit 404 is further configured to execute the target control instruction.
As an alternative embodiment, the manner of determining whether the target control instruction and the control instruction with the earliest timestamp form a related control instruction by the second determining unit 407 is specifically:
and judging whether the difference value between the timestamp of the target control instruction and the timestamp of the control instruction with the earliest timestamp is less than or equal to a preset timestamp threshold value, if so, determining that the target control instruction and the control instruction with the earliest timestamp form a related control instruction.
As another optional implementation manner, the reading unit 403 is further configured to read the control instruction with the earliest timestamp from the remaining control instructions in the instruction queue when the second judging unit 407 judges that the target control instruction and the control instruction with the earliest timestamp do not form an associated control instruction;
the execution unit 404 is further configured to execute a control instruction with an earliest timestamp in the remaining control instructions in the instruction queue.
As another alternative, the playing device 400 shown in fig. 5 may further include:
a third determining unit 408, configured to determine, after the receiving unit 401 receives the control instruction sent by the user terminal, whether a timestamp of the control instruction is earlier than a timestamp of the control instruction currently being executed;
the storing unit 402 has a function of storing the control instruction in an instruction queue when the third judging unit 408 judges that the timestamp of the control instruction is not earlier than the timestamp of the currently executing control instruction.
In the playback device 400 described in fig. 4 to 5, the receiving unit 401 may receive a control instruction sent by a user terminal, where the control instruction includes a timestamp when the control instruction is sent, the storage unit 402 stores the control instruction in an instruction queue, further, the reading unit 403 may scan all the control instructions in the instruction queue, read the control instruction with the earliest timestamp in all the control instructions, and the execution unit 404 executes the control instruction with the earliest timestamp; further, the delete unit 405 may delete the control instruction with the earliest timestamp from the instruction queue. Therefore, according to the embodiment of the present invention, when the playing device receives a control instruction, the playing device does not immediately execute the control instruction, but stores the control instruction in the instruction queue, reads the control instruction with the earliest timestamp in all the control instructions in the instruction queue, executes the control instruction with the earliest timestamp, and deletes the control instruction with the earliest timestamp after the execution. In this way, no matter how many control instructions the playing device receives at the same time, the playing device executes the control instruction with the earliest time stamp, so that the wireless music system can be effectively controlled.
Referring to fig. 6, fig. 6 is a schematic structural diagram of another playing device disclosed in the embodiment of the present invention. As shown in fig. 6, the playback device 600 may include: at least one processor 601, such as a CPU, input devices 602, memory 603, and at least one communication bus 604. The communication bus 604 is used to realize communication connection between these components, and the memory 603 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory 603 may also be at least one storage device located remotely from the aforementioned processor 601. Wherein a set of program codes is stored in the memory 603, and the processor 601 calls the program codes stored in the memory 603 for performing the following operations:
receiving a control instruction sent by a user terminal through an input device 602, wherein the control instruction comprises a timestamp when the control instruction is sent;
storing the control instruction in an instruction queue, wherein the instruction queue is used for storing the control instruction to be executed;
scanning all control instructions in the instruction queue, and reading the control instruction with the earliest timestamp in all the control instructions;
executing the control instruction with the earliest time stamp;
and deleting the control instruction with the earliest time stamp from the instruction queue.
As an optional implementation, after the processor 601 deletes the control instruction with the earliest timestamp from the instruction queue, the program code stored in the memory 603 may be further called to perform the following operations:
judging whether a target control instruction exists in the remaining control instructions of the instruction queue, wherein the target control instruction and the control instruction with the earliest timestamp are sent by the same user terminal;
and when target control instructions exist in the remaining control instructions in the instruction queue, judging whether the target control instructions and the control instructions with the earliest time stamps form associated control instructions, if so, reading the target control instructions, and executing the target control instructions.
Optionally, the method for the processor 601 to determine whether the target control instruction and the control instruction with the earliest timestamp form a related control instruction specifically includes:
and judging whether the difference value between the timestamp of the target control instruction and the timestamp of the control instruction with the earliest timestamp is less than or equal to a preset timestamp threshold value, if so, determining that the target control instruction and the control instruction with the earliest timestamp form a related control instruction.
As another alternative, the processor 601 may also call the program code stored in the memory 603 to perform the following operations:
and when the target control instruction and the control instruction with the earliest timestamp do not form a related control instruction, reading the control instruction with the earliest timestamp in the rest of control instructions in the instruction queue, and executing the control instruction with the earliest timestamp in the rest of control instructions in the instruction queue.
As another alternative, after the processor 601 receives a control instruction sent by the user terminal through the input device 602, the processor may also call the program code stored in the memory 603, so as to perform the following operations:
judging whether the time stamp of the control instruction is earlier than the time stamp of the control instruction currently being executed;
and if not, executing the step of storing the control instruction in an instruction queue.
It should be noted that, for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the order of acts described, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and elements referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (12)

1. An information processing method characterized by comprising:
receiving a control instruction sent by a user terminal, wherein the control instruction comprises a timestamp when the control instruction is sent; the user terminal comprises a smart phone, a notebook computer, a Personal Computer (PC), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID) and an intelligent wearable device;
storing the control instruction in an instruction queue, wherein the instruction queue is used for storing the control instruction to be executed;
scanning all control instructions in the instruction queue, and reading the control instruction with the earliest timestamp in all the control instructions;
executing the control instruction with the earliest time stamp;
deleting the control instruction with the earliest time stamp from the instruction queue;
wherein after the deleting the control instruction with the earliest timestamp from the instruction queue, the method further comprises:
judging whether a target control instruction exists in the remaining control instructions of the instruction queue, wherein the target control instruction and the control instruction with the earliest timestamp are sent by the same user terminal;
and when target control instructions exist in the remaining control instructions in the instruction queue, judging whether the target control instructions and the control instructions with the earliest time stamps form associated control instructions, if so, reading the target control instructions, and executing the target control instructions.
2. The method of claim 1, wherein said determining whether the target control instruction and the control instruction with the earliest time stamp form a correlated control instruction comprises:
and judging whether the difference value between the timestamp of the target control instruction and the timestamp of the control instruction with the earliest timestamp is less than or equal to a preset timestamp threshold value, if so, determining that the target control instruction and the control instruction with the earliest timestamp form a related control instruction.
3. The method of claim 1, further comprising:
and when the target control instruction and the control instruction with the earliest timestamp do not form a related control instruction, reading the control instruction with the earliest timestamp in the rest of control instructions in the instruction queue, and executing the control instruction with the earliest timestamp in the rest of control instructions in the instruction queue.
4. The method of claim 2, further comprising: and when the target control instruction and the control instruction with the earliest timestamp do not form a related control instruction, reading the control instruction with the earliest timestamp in the rest of control instructions in the instruction queue, and executing the control instruction with the earliest timestamp in the rest of control instructions in the instruction queue.
5. The method according to any one of claims 1 to 4, wherein after receiving the control instruction sent by the user terminal, the method further comprises:
judging whether the time stamp of the control instruction is earlier than the time stamp of the control instruction currently being executed;
and if not, executing the step of storing the control instruction in an instruction queue.
6. A playback device, comprising:
a receiving unit, configured to receive a control instruction sent by a user terminal, where the control instruction includes a timestamp when the control instruction is sent; the user terminal comprises a smart phone, a notebook computer, a Personal Computer (PC), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID) and an intelligent wearable device;
the storage unit is used for storing the control instruction in an instruction queue, and the instruction queue is used for storing the control instruction to be executed;
the reading unit is used for scanning all the control instructions in the instruction queue and reading the control instruction with the earliest time stamp in all the control instructions;
an execution unit to execute the control instruction with the earliest timestamp;
a deleting unit, configured to delete the control instruction with the earliest timestamp from the instruction queue;
wherein the playback device further includes:
a first determining unit, configured to determine whether a target control instruction exists in remaining control instructions in the instruction queue after the deleting unit deletes the control instruction with the earliest timestamp from the instruction queue, where the target control instruction and the control instruction with the earliest timestamp are sent by the same ue;
a second judging unit, configured to, when the first judging unit judges that a target control instruction exists in remaining control instructions in the instruction queue, judge whether the target control instruction and the control instruction with the earliest timestamp form an associated control instruction;
the reading unit is further configured to read the target control instruction when the second determining unit determines that the target control instruction and the control instruction with the earliest timestamp form an associated control instruction;
the execution unit is further configured to execute the target control instruction.
7. The playback device according to claim 6, wherein the second determination unit determines whether the target control instruction and the control instruction with the earliest timestamp constitute a related control instruction by:
and judging whether the difference value between the timestamp of the target control instruction and the timestamp of the control instruction with the earliest timestamp is less than or equal to a preset timestamp threshold value, if so, determining that the target control instruction and the control instruction with the earliest timestamp form a related control instruction.
8. The playback device according to claim 6, wherein the reading unit is further configured to read a control instruction with an earliest timestamp from among the remaining control instructions in the instruction queue, when the second determination unit determines that the target control instruction and the control instruction with the earliest timestamp do not constitute an associated control instruction;
the execution unit is further configured to execute a control instruction with an earliest timestamp among the remaining control instructions in the instruction queue.
9. The playback device according to claim 7, wherein the reading unit is further configured to read a control instruction with an earliest timestamp from among the remaining control instructions in the instruction queue, when the second determination unit determines that the target control instruction and the control instruction with the earliest timestamp do not constitute an associated control instruction;
the execution unit is further configured to execute a control instruction with an earliest timestamp among the remaining control instructions in the instruction queue.
10. The playback device according to any one of claims 6 to 9, wherein the playback device further comprises:
a third judging unit, configured to judge whether a timestamp of the control instruction is earlier than a timestamp of a control instruction currently being executed after the receiving unit receives the control instruction sent by the user terminal;
the storage unit is provided with a time stamp used for storing the control instruction in an instruction queue when the third judging unit judges that the time stamp of the control instruction is not earlier than the time stamp of the control instruction currently being executed.
11. A computer-readable storage medium, characterized in that it stores a computer program which, when executed by a processor, is capable of performing the method of any one of claims 1 to 5.
12. A playback apparatus, characterized in that the playback apparatus comprises: the device comprises at least one processor, an input device, a memory and at least one communication bus, wherein the communication bus is used for realizing communication connection among the components;
wherein a set of program code is stored in the memory and the processor invokes the program code stored in the memory for performing the method of any of claims 1 to 5.
CN201810489073.XA 2015-11-04 2015-11-04 Information processing method, playing device and medium product Expired - Fee Related CN108810748B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810489073.XA CN108810748B (en) 2015-11-04 2015-11-04 Information processing method, playing device and medium product

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810489073.XA CN108810748B (en) 2015-11-04 2015-11-04 Information processing method, playing device and medium product
CN201510745319.1A CN105392086B (en) 2015-11-04 2015-11-04 A kind of information processing method and playback equipment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201510745319.1A Division CN105392086B (en) 2015-11-04 2015-11-04 A kind of information processing method and playback equipment

Publications (2)

Publication Number Publication Date
CN108810748A CN108810748A (en) 2018-11-13
CN108810748B true CN108810748B (en) 2021-03-12

Family

ID=55423840

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201810489073.XA Expired - Fee Related CN108810748B (en) 2015-11-04 2015-11-04 Information processing method, playing device and medium product
CN201510745319.1A Active CN105392086B (en) 2015-11-04 2015-11-04 A kind of information processing method and playback equipment

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201510745319.1A Active CN105392086B (en) 2015-11-04 2015-11-04 A kind of information processing method and playback equipment

Country Status (1)

Country Link
CN (2) CN108810748B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108810748B (en) * 2015-11-04 2021-03-12 Oppo广东移动通信有限公司 Information processing method, playing device and medium product
CN107105098B (en) * 2017-05-09 2019-07-12 Oppo广东移动通信有限公司 Information processing method, apparatus and system
CN110032176A (en) * 2019-05-16 2019-07-19 广州文远知行科技有限公司 Long-range adapting method, device, equipment and the storage medium of pilotless automobile
CN110191236B (en) * 2019-06-27 2020-11-17 广州酷狗计算机科技有限公司 Song playing queue management method and device, terminal equipment and storage medium
CN111988667B (en) * 2020-08-18 2022-06-21 视若飞信息科技(上海)有限公司 Intelligent terminal media player management method and system
CN113650569B (en) * 2021-07-29 2022-10-11 广州文远知行科技有限公司 Vehicle equipment control method and device, vehicle and storage medium
CN117097935A (en) * 2023-10-18 2023-11-21 深圳市慧为智能科技股份有限公司 Bluetooth screen-throwing control method, system, terminal equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6150599A (en) * 1999-02-02 2000-11-21 Microsoft Corporation Dynamically halting music event streams and flushing associated command queues
CN101464790A (en) * 2007-12-19 2009-06-24 宏正自动科技股份有限公司 Apparatus and method for scheduling commands from host systems
CN101820681A (en) * 2009-02-27 2010-09-01 大唐移动通信设备有限公司 Scheduling method and device of eUE
CN102123073A (en) * 2010-01-07 2011-07-13 华为技术有限公司 Packet reordering method and device
CN103561308A (en) * 2013-11-05 2014-02-05 南京大学 Interactive method for remotely controlling smart television through smart mobile phone
CN104243517A (en) * 2013-06-14 2014-12-24 腾讯科技(深圳)有限公司 Content sharing method and device used between different terminals
CN104486753A (en) * 2014-11-17 2015-04-01 深圳市金立通信设备有限公司 Message control method
CN104917813A (en) * 2015-04-17 2015-09-16 小米科技有限责任公司 Resource request method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100907531B1 (en) * 2007-10-01 2009-07-14 한국전자통신연구원 System and Method for Synchronizing Media and Multi-Devices for SMM-Based Media Services
CN101459693A (en) * 2008-12-29 2009-06-17 中兴通讯股份有限公司 Stream media downloading method and system
CN101763210A (en) * 2009-11-04 2010-06-30 广东威创视讯科技股份有限公司 Distributed digital tablet cooperative processing method, system and digital tablets
CN108810748B (en) * 2015-11-04 2021-03-12 Oppo广东移动通信有限公司 Information processing method, playing device and medium product

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6150599A (en) * 1999-02-02 2000-11-21 Microsoft Corporation Dynamically halting music event streams and flushing associated command queues
CN101464790A (en) * 2007-12-19 2009-06-24 宏正自动科技股份有限公司 Apparatus and method for scheduling commands from host systems
CN101820681A (en) * 2009-02-27 2010-09-01 大唐移动通信设备有限公司 Scheduling method and device of eUE
CN102123073A (en) * 2010-01-07 2011-07-13 华为技术有限公司 Packet reordering method and device
CN104243517A (en) * 2013-06-14 2014-12-24 腾讯科技(深圳)有限公司 Content sharing method and device used between different terminals
CN103561308A (en) * 2013-11-05 2014-02-05 南京大学 Interactive method for remotely controlling smart television through smart mobile phone
CN104486753A (en) * 2014-11-17 2015-04-01 深圳市金立通信设备有限公司 Message control method
CN104917813A (en) * 2015-04-17 2015-09-16 小米科技有限责任公司 Resource request method and device

Also Published As

Publication number Publication date
CN108810748A (en) 2018-11-13
CN105392086B (en) 2018-05-29
CN105392086A (en) 2016-03-09

Similar Documents

Publication Publication Date Title
CN108810748B (en) Information processing method, playing device and medium product
EP3169086A1 (en) Connection method for multimedia playing device, master device, control terminal, and system
US9992614B2 (en) Wireless device pairing management
JP5978901B2 (en) Wireless communication apparatus, program, and communication control method
US20170033753A1 (en) Volume Control Methods and Devices, and Multimedia Playback Control Methods and Devices
WO2019128829A1 (en) Action execution method and apparatus, storage medium and electronic apparatus
CN105163177A (en) Audio data playing method and system based on smart television and smart television
WO2016150191A1 (en) Data sharing method and device
WO2017004928A1 (en) Song catalog setting method, mobile terminal, server, and system
WO2016150189A1 (en) Volume control method, playing device, mobile terminal and system
KR101943430B1 (en) User Device, Driving Method of User Device, Apparatus for Providing Service and Driving Method of Apparatus for Providing Service
CN111258530A (en) Audio playing control method, server and audio playing system
CN105703987A (en) Control method and apparatus for audio and video playing system
KR20090083067A (en) Method and apparatus for data transmission, method and apparatus for performing task
CN104683469A (en) Method and system for immediately sharing and operating application program data
KR20130070947A (en) Server and method for controlling voice recognition of device, and the device
CN114327846A (en) Cluster capacity expansion method and device, electronic equipment and computer readable storage medium
CN103298078A (en) Apparatus and method for actively determining communication link in communication system
CN105049982A (en) Intelligent sound box and music play method based on intelligent sound box
US20150382054A1 (en) Multimedia playing control method, apparatus for the same and system
CN105282856B (en) A kind of method and user terminal of the transmission of control information
CN105409166B (en) Information processing apparatus, information processing method, and information processing system
CN105828135A (en) Playing control method and device in audio-video playing system and playing device
CN112820302A (en) Voiceprint recognition method and device, electronic equipment and readable storage medium
CN105847905A (en) Control method and device of audio and video playing 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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210312

CF01 Termination of patent right due to non-payment of annual fee