CN106445458A - Playing control method and device and terminal - Google Patents

Playing control method and device and terminal Download PDF

Info

Publication number
CN106445458A
CN106445458A CN201610882953.4A CN201610882953A CN106445458A CN 106445458 A CN106445458 A CN 106445458A CN 201610882953 A CN201610882953 A CN 201610882953A CN 106445458 A CN106445458 A CN 106445458A
Authority
CN
China
Prior art keywords
playback equipment
delay
duration
packet
package identification
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
CN201610882953.4A
Other languages
Chinese (zh)
Other versions
CN106445458B (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 CN201610882953.4A priority Critical patent/CN106445458B/en
Publication of CN106445458A publication Critical patent/CN106445458A/en
Application granted granted Critical
Publication of CN106445458B publication Critical patent/CN106445458B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10009Improvement or modification of read or write signals
    • G11B20/10222Improvement or modification of read or write signals clock-related aspects, e.g. phase or frequency adjustment or bit synchronisation
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B2020/10935Digital recording or reproducing wherein a time constraint must be met
    • G11B2020/10953Concurrent recording or playback of different streams or files

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

An embodiment of the invention provides a playing control method and device and a terminal. The method includes: acquiring audio data; dividing the audio data into various data packets which comprise data packet identification; transmitting the data packets to playing equipment; transmitting a playing command to the playing equipment, wherein the playing command is associated with the data packet identification so as to control the playing equipment to play the data packet corresponding to the data packet identification. Compared with the prior art, the playing control method has the advantages that the playing command associated with the data packet identification is transmitted to the playing equipment, the multiple playing equipment can simultaneously start playing the data packet corresponding to the data packet identification after receiving the playing command, and the synchronicity among multiple playing equipment can be increased.

Description

Control method for playing back, device and terminal
Technical field
The present invention relates to technical field of electronic equipment is and in particular to a kind of control method for playing back, device and terminal.
Background technology
With growth in the living standard, audio-visual devices play important role in the life of people.Currently, will be multiple Music player devices (for example, audio amplifier, player, mobile phone etc.) and control device are interconnected by wired or wireless network, One Play System of composition, synchronous broadcasting identical music, it has been widely used.
In above-mentioned Play System, each equipment has independent clock system.Each playback equipment according to its own Clock system is playing music.However, the clock system of each playback equipment and control device is not always synchronous.Each Playback equipment and control device there may be the trickle time difference each other.When identical music play by multiple playback equipments When, the above-mentioned trickle time difference leads to the playing progress rate of each playback equipment inconsistent, thereby results between multiple playback equipments Synchronism is low.
Content of the invention
The embodiment of the present invention provides a kind of control method for playing back, device and terminal, can improve between multiple playback equipments Synchronism.
The embodiment of the present invention provides a kind of control method for playing back, including:
Obtain voice data;
This voice data is split into multiple packets, this packet includes package identification;
Send the packet to playback equipment;
Send play command to this playback equipment, this play command is associated with this package identification to be play and this number to indicate Identify corresponding packet according to bag.
Accordingly, the embodiment of the present invention also provides a kind of broadcast control device, including:
Data acquisition module, for obtaining voice data;
Split module, for this voice data is split into multiple packets, this packet includes package identification;
Data transmission blocks, are used for sending the packet to playback equipment;
Order sending module, for sending play command to this playback equipment, this play command is closed with this package identification Connection plays packet corresponding with this package identification to indicate.
Accordingly, the embodiment of the present invention also provides a kind of terminal, including:
Touch-screen, for the touch operation of receive user;
Be stored with the memory of executable program code;
The processor coupling with this memory;
This processor calls this executable program code of storage in this memory, executes above-mentioned control method for playing back.
The embodiment of the present invention is using acquisition voice data;This voice data is split into multiple packets, this packet bag Include package identification;Send the packet to playback equipment;To this playback equipment send play command, this play command with should Package identification is associated plays packet corresponding with this package identification to indicate.The program sends and number to playback equipment According to bag mark association play command so that multiple stage playback equipment receives after this play command, can start simultaneously at broadcasting with The corresponding packet of this package identification, need not calibrate to the clock system of each playback equipment, you can make multiple broadcastings Reach synchronous result of broadcast well between equipment, in terms of existing technologies, can improve between multiple playback equipments Synchronism.
Brief description
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, will make to required in embodiment description below Accompanying drawing is briefly described.It should be evident that drawings in the following description are only some embodiments of the present invention, for For those skilled in the art, on the premise of not paying creative work, can also be obtained other attached according to these accompanying drawings Figure.
Fig. 1 is the schematic flow sheet of the control method for playing back that the embodiment of the present invention one provides.
Fig. 2 is the composition schematic diagram of the Play System in the embodiment of the present invention one;
Fig. 3 is the schematic flow sheet of the control method for playing back that the embodiment of the present invention two provides.
Fig. 4 is the structural representation of the first broadcast control device that the embodiment of the present invention three provides.
Fig. 5 is the structural representation of the second broadcast control device that the embodiment of the present invention three provides.
Fig. 6 is the structural representation of the third broadcast control device that the embodiment of the present invention three provides.
Fig. 7 is the structural representation of the first terminal that the embodiment of the present invention four provides.
Fig. 8 is the structural representation of the second terminal that the embodiment of the present invention four provides.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes.Obviously, described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, the every other enforcement that those skilled in the art are obtained under the premise of not making creative work Example, broadly falls into the scope of protection of the invention.
Term " first " in description and claims of this specification and above-mentioned accompanying drawing, " second ", " the 3rd " etc. (if present) is for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that this The object of sample description can exchange in the appropriate case.Additionally, term " comprising " and " having " and their any deformation, meaning Figure is to cover non-exclusive comprising.For example, contain the process of series of steps, method or contain a series of modules or list The device of unit, terminal, system are not necessarily limited to those steps or module or the unit clearly listed, and can also include unclear The step listed or module or unit it is also possible to include for these processes, method, device, terminal or intrinsic its of system Its step or module or unit.
The embodiment of the present invention provides a kind of control method for playing back, device and terminal, is described in detail respectively below.
Embodiment one
The present embodiment will be described from the angle of broadcast control device, this device specifically can integrated in the terminal, should Terminal can be the equipment such as smart mobile phone, panel computer.
A kind of control method for playing back, including:Obtain voice data;This voice data is split into multiple packets, this number According to including package identification;Send the packet to playback equipment;Send play command to this playback equipment, this broadcasting is ordered Order plays packet corresponding with this package identification with the association of this package identification to indicate.
As shown in figure 1, this control method for playing back, idiographic flow can include:
S101, obtains voice data.
In concrete application, broadcast control device can obtain voice data by number of ways.For example, broadcast control device Voice data can be obtained from server by cable network, the wireless networks such as bluetooth can be passed through and obtain audio frequency from other-end Data, can also obtain voice data from the storage mediums such as CD.This voice data includes but is not limited to CD, WAV, MP3 The form such as (Moving Picture Experts Group Audio Layer III), WMA (Windows Media Audio) Voice data.
S102, this voice data is split into multiple packets, and this packet includes package identification.
Specifically, after broadcast control device gets voice data, this voice data is split into multiple packets.Preferably This voice data can be split into multiple packets of equal length by ground.For example, this voice data being split into audio frequency length is Multiple packets of 100ms.When splitting into multiple packet, package identification can be set in each packet.This data Bag mark is the unique mark that each packet distinguishes over other packets, can be used for marking this packet in this voice data Position.For example, this package identification can be the sequence number of packet.Packet is set in first packet splitting out It is designated 1, setting package identification is 2 in second packet splitting out, etc..
S103, sends the packet to playback equipment.
Specifically, after broadcast control device splits out multiple packets, the plurality of packet is sent to broadcasting successively and sets Standby.In practical application, can be sent by wired mode it is also possible to (Wireless Fidelity wirelessly protects by WiFi Very), the wireless mode such as bluetooth sends.
Refer to Fig. 2, Fig. 2 show the composition schematic diagram of one of the present embodiment Play System.Play System is by taking Business device 105, broadcast control device 106 and multiple playback equipment 107 form.Server 105 can be in the clothes on network Business device.Electronic installation that broadcast control device 106 can be integrated in terminal or there is broadcasting of data processing function Put equipment.Playback equipment 107 can be the equipment that audio amplifier, music player etc. have audio playing function.Broadcast control device 106 pass through internet enters row data communication, so that broadcast control device 106 can obtain from server 105 with server 105 Voice data.Meanwhile, broadcast control device 106 is carried out with multiple playback equipments 107 by communication (such as WiFi) Data communication, so that broadcast control device 106 can send packet to playback equipment 107.
S104, sends play command to this playback equipment, and this play command is associated with this package identification to indicate broadcasting Packet corresponding with this package identification.
Specifically, broadcast control device can send to playback equipment and play life when receiving the play command of user Order.The play command that broadcast control device receives user can be the broadcasting life that receive user passes through button or screen input Order or the timing play command of user setup.The play command that broadcast control device sends to playback equipment can be with Package identification is associated.It is associated and refers to have corresponding relation between this play command and package identification, that is, basis should Play command can determine broadcasting which or which the corresponding packet of package identification.For example, can wrap in this play command Include the sequence number of packet, commence play out the packet corresponding with this sequence number to indicate playback equipment to receive after play command. Multiple packet sequence numbers can also be included in this play command.For example, play command includes packet sequence number 8,9,10, to refer to Show playback data 8, packet 9, packet 10 successively in order.
In certain embodiments, send after play command to playback equipment, control method for playing back can also include following walking Suddenly:
Obtain delay duration;
To this playback equipment forward delay interval order, the instruction of this delay command receives this play command and passes through this time delay Packet corresponding with this package identification is play again after duration.
Specifically, delay duration can be that user pre-sets and is stored in one of memory of broadcast control device Time value.Broadcast control device obtains this delay duration from memory, then to playback equipment forward delay interval order.This time delay Order instruction playback equipment plays number corresponding with this package identification after receiving play command after this delay duration again According to bag.For example, the package identification of play command association is packet sequence number 8, and this delay duration is 200ms.Then playback equipment After receiving play command, commence play out packet 8 after 200ms again.
In certain embodiments, delay duration can be got by calculating.Obtain delay duration can specifically wrap Include following steps:
Obtain preset duration;
Obtain the network delay and this playback equipment between;
According to this preset duration and this network delay computation delay duration.
Specifically, preset duration can be that user pre-sets and is stored in one of memory of broadcast control device Time value.Broadcast control device obtains this preset duration by transferring the time value in memory.Due to broadcast control device The impact of the communication distance and playback equipment between, or there is the impact of the other factors such as electromagnetic interference, broadcast control device It is usually present certain network delay and playback equipment between.Broadcast control device can be obtained by monitoring network communications state Take the network delay and playback equipment between.After getting preset duration and network delay, according to this preset duration and this network This delay duration of Delay computing.
In certain embodiments, can be specifically included according to this preset duration and this network delay computation delay duration following Step:
Calculate the difference between this preset duration and this network delay;
Using this difference as delay duration.
Specifically, can be by calculating the difference between this preset duration and this network delay, using this difference as time delay Duration.For example, preset duration is 500ms, and network delay is 100ms, then can calculate preset duration and network delay it Between difference be 400ms.Then, using 400ms as this delay duration.
In certain embodiments, this playback equipment can include multiple stage playback equipment, and obtaining preset duration can specifically wrap Include following steps:
Obtain the multiple network delays and this multiple stage playback equipment between;
One maximum in the plurality of network delay is set to preset duration.
Specifically, the playback equipment in Play System can include multiple stage playback equipment.Broadcast control device can be distinguished Network communication status between monitoring and this multiple stage playback equipment, the multiple networks to obtain and this multiple stage playback equipment between prolong Late.Then, the plurality of network delay is compared, determine wherein network delay maximum one, by this maximum network Postpone to be set to preset duration.For example, playback equipment includes 3.Broadcast control device get with this 3 playback equipments it Between network delay be respectively 500ms, 400ms, 300ms, then can determine that in this 3 network delays that maximum one is 500ms.Subsequently, preset duration is set to 500ms.
To after playback equipment forward delay interval order, the network delay between broadcast control device and playback equipment can be reduced Caused impact, and then the synchronism play between multiple stage playback equipment can be improved.
When being embodied as, the present invention is not limited by the execution sequence of each described step, is not producing conflict In the case of, some steps can also be carried out or be carried out simultaneously using other orders.
From the foregoing, it will be observed that control method for playing back provided in an embodiment of the present invention, using acquisition voice data;By this voice data Split into multiple packets, this packet includes package identification;Send the packet to playback equipment;To this playback equipment Send play command, this play command is associated with this package identification and plays data corresponding with this package identification to indicate Bag.The program sends, to playback equipment, the play command that associates with package identification so that multiple stage playback equipment receives this broadcasts After putting order, broadcasting packet corresponding with this package identification can be started simultaneously at, need not be to the clock of each playback equipment System is calibrated, you can make to reach synchronous result of broadcast well between multiple playback equipments, in terms of existing technologies, The synchronism between multiple playback equipments can be improved.
Embodiment two
Citing is described in further detail by control method for playing back according to described by embodiment one below.
In the present embodiment, specifically will be integrated in smart mobile phone with broadcast control device, to play control in smart mobile phone It is described in detail as a example the control method for playing back of device processed.
As shown in figure 3, this control method for playing back, idiographic flow can be as follows:
S201, smart mobile phone obtains voice data.
In concrete application, smart mobile phone can obtain voice data by number of ways.For example, smart mobile phone can pass through Cable network obtains voice data from server, can also pass through the wireless networks such as bluetooth from other smart mobile phones, individual calculus The terminals such as machine obtain voice data.
S202, this voice data is split into multiple packets by smart mobile phone, and this packet includes package identification.
Specifically, after smart mobile phone gets voice data, this voice data is split into multiple packets.Preferably, This voice data can be split into multiple packets of equal length.For example, this voice data being split into audio frequency length is Multiple packets of 100ms.When splitting into multiple packet, package identification can be set in each packet.This data Bag mark can be the sequence number of packet.For example, in first packet splitting out, setting package identification is 1, is tearing open In second packet separating, setting package identification is 2, etc..
S203, smart mobile phone sends the packet to playback equipment.
Specifically, after smart mobile phone splits out multiple packets, the plurality of packet is sent to multiple broadcastings successively and sets Standby.In practical application, can be sent by wired mode it is also possible to (Wireless Fidelity wirelessly protects by WiFi Very), the wireless mode such as bluetooth sends.The plurality of playback equipment can be that audio amplifier, music player etc. have audio playing function Equipment.
S204, smart mobile phone to this playback equipment send play command, this play command associate with this package identification with Packet corresponding with this package identification is play in instruction.
Specifically, smart mobile phone can send to the plurality of playback equipment and play when receiving the play command of user Order.The play command that smart mobile phone receives user can be that receive user passes through button or the play command of screen input, It can also be the timing play command of user setup.The play command that smart mobile phone sends to playback equipment can be with packet mark Sensible association.It is associated and refer to have corresponding relation between this play command and package identification, that is, according to this play command Can determine broadcasting which or which the corresponding packet of package identification.For example, packet can be included in this play command Sequence number, commence play out the packet corresponding with this sequence number to indicate playback equipment to receive after play command.This broadcasting is ordered Multiple packet sequence numbers can also be included in order.For example, play command includes packet sequence number 8,9,10, to indicate in order Playback data 8, packet 9, packet 10 successively.
S205, smart mobile phone obtains the multiple network delays and multiple stage playback equipment between.
Specifically, due to the impact of the communication distance between smart mobile phone and playback equipment, or there is electromagnetic interference etc. The impact of other factors, is usually present certain network delay between smart mobile phone and playback equipment.Smart mobile phone can be real-time Network communication status between monitoring and multiple stage playback equipment, the multiple networks to obtain and this multiple stage playback equipment between prolong Late.
S206, smart mobile phone is set to preset duration by one maximum in the plurality of network delay.
Specifically, after smart mobile phone gets the multiple network delays and multiple stage playback equipment between, by the plurality of network Delay is compared, and then determine wherein network delay maximum one, when being set to default by this maximum network delay Long.For example, playback equipment includes 3.Smart mobile phone the gets network delay and this 3 playback equipments between is respectively 500ms, 400ms, 300ms, then can determine that maximum in this 3 network delays one is 500ms.Subsequently, arrange and preset Shi Changwei 500ms.
S207, smart mobile phone obtains the network delay and this playback equipment between.
Specifically, smart mobile phone can with the network communication status between monitor in real time and every playback equipment, to obtain with Network delay between every playback equipment.Because network delay is dynamic change, obtaining multiple network delays in S205 is For arranging preset duration, now obtain the network delay and every playback equipment between again, can more accurately calculate Delay duration required for every playback equipment.
When synchronism between to multiple stage playback equipment is less demanding, step S207 can also be omitted, with step S205 In the multiple network delays and multiple stage playback equipment between that get as the net between smart mobile phone and each playback equipment Network postpones.
S208, smart mobile phone calculates the difference between this preset duration and this network delay.
Specifically, after smart mobile phone gets the network delay and every playback equipment between, calculate this preset duration with Difference between each network delay getting.For example, playback equipment includes 3.What smart mobile phone got is broadcast with this 3 The network delay put between equipment is respectively 450ms, 350ms, 300ms.Preset duration and this 3 broadcastings then can be calculated Difference between the network delay of equipment is respectively 50ms, 150ms, 200ms.
S209, smart mobile phone is using this difference as delay duration.
Specifically, smart mobile phone calculates the multiple differences between preset duration and the multiple network delays getting Afterwards, the plurality of difference is respectively set to the delay duration required for this multiple stage playback equipment.For example, network delay is The delay duration of the playback equipment of 450ms is set to 50ms, by the delay duration setting of the playback equipment for 350ms for the network delay For 150ms, the delay duration of the playback equipment for 300ms for the network delay is set to 200ms.
S210, smart mobile phone receives this broadcasting to this multiple stage playback equipment forward delay interval order, the instruction of this delay command Order and play packet corresponding with this package identification after this delay duration again.
Specifically, after arranging the delay duration of every playback equipment, smart mobile phone sends to every playback equipment respectively and prolongs When order, to indicate that this playback equipment receives after play command, commence play out again when this delay duration and this broadcasting life The corresponding packet of package identification of order association.For example, the delay command that the playback equipment for 450ms sends to network delay Indicate that this playback equipment receives play command and commences play out corresponding packet after 50ms again;To network delay it is The delay command that the playback equipment of 350ms sends indicates that this playback equipment receives play command and starts after 150ms again Play corresponding packet;The delay command sending to the playback equipment for 300ms for the network delay indicates that this playback equipment receives Commence play out corresponding packet to play command and after 200ms again.For the bigger playback equipment of network delay, intelligence Delay duration in the delay command that mobile phone sends to this playback equipment is less;For the less playback equipment of network delay, intelligence Delay duration in the delay command that energy mobile phone sends to this playback equipment is bigger.Therefore, receive in multiple playback equipments and broadcast When putting order, the moment that can control the plurality of playback equipment actual play identical data packet is identical.
When being embodied as, the present invention is not limited by the execution sequence of each described step, is not producing conflict In the case of, some steps can also be carried out or be carried out simultaneously using other orders.
From the foregoing, it will be observed that control method for playing back provided in an embodiment of the present invention, using acquisition voice data;By this voice data Split into multiple packets, this packet includes package identification;Send the packet to playback equipment;To this playback equipment Send play command, this play command is associated with this package identification and plays data corresponding with this package identification to indicate Bag;Obtain the multiple network delays and multiple stage playback equipment between;Calculate and arrange the delay duration of this multiple stage playback equipment;To This multiple stage playback equipment forward delay interval order, the instruction of this delay command receives this play command and after this delay duration Play packet corresponding with this package identification again.The program to multiple stage playback equipment send play command after, immediately to This multiple stage playback equipment forward delay interval order, to indicate that every playback equipment receives play command and after delay duration Play corresponding packet again, it is possible to reduce impact that the network delay between smart mobile phone and playback equipment causes is so that many The moment of platform playback equipment actual play identical data packet is identical, in terms of existing technologies, can improve multiple broadcasting Put the synchronism between equipment.
Embodiment three
In order to preferably implement above method, the embodiment of the present invention also provides a kind of broadcast control device, and this device is permissible Integrated in the terminal, this terminal can be the equipment such as smart mobile phone, panel computer.
As shown in figure 4, broadcast control device 300 can include:Data acquisition module 301, fractionation module 302, data are sent out Send module 303, order sending module 304, be described in detail below:
This data acquisition module 301, for obtaining voice data;
This fractionation module 302, for this voice data is split into multiple packets, this packet includes packet mark Know;
This data transmission blocks 303, is used for sending the packet to playback equipment;
This order sending module 304, for sending play command, this play command and this packet mark to this playback equipment Know association and play packet corresponding with this package identification to indicate.
Preferably, as shown in figure 5, this broadcast control device 300 also includes:Duration acquisition module 305, specific as follows:
This duration acquisition module 305, for obtaining delay duration;
This order sending module 304, is additionally operable to this playback equipment forward delay interval order, the instruction of this delay command receives This play command and play packet corresponding with this package identification after this delay duration again.
Preferably, as shown in fig. 6, this duration acquisition module 305 includes:First acquisition submodule 3051, second obtains son Module 3052, calculating sub module 3053, specific as follows:
This first acquisition submodule 3051, for obtaining preset duration;
This second acquisition submodule 3052, for obtaining the network delay and this playback equipment between;
This calculating sub module 3053, for according to this preset duration and this network delay computation delay duration.
Preferably, this calculating sub module 3053 specifically for:
Calculate the difference between this preset duration and this network delay;
Using this difference as delay duration.
Preferably, this playback equipment includes multiple stage playback equipment, this first acquisition submodule 3051 specifically for:
Obtain the multiple network delays and this multiple stage playback equipment between;
One maximum in the plurality of network delay is set to preset duration.
When being embodied as, above modules can be realized as independent entity it is also possible to be combined, and makees To realize for same or several entities.Being embodied as of above modules can be found in embodiment of the method above, and here is not Repeat again.
From the foregoing, it will be observed that broadcast control device 300 provided in an embodiment of the present invention, sound is obtained by data acquisition module 301 Frequency evidence;Split module 302 and this voice data is split into multiple packets, this packet includes package identification;Data is sent out Module 303 is sent to send the packet to playback equipment;Order sending module 304 sends play command to this playback equipment, should Play command is associated with this package identification and plays packet corresponding with this package identification to indicate.The program is to broadcasting Equipment sends the play command that associates with package identification so that after multiple stage playback equipment receives this play command, Ke Yitong When commence play out packet corresponding with this package identification, the clock system of each playback equipment need not be calibrated, that is, Can make between multiple playback equipments, to reach synchronous result of broadcast well, in terms of existing technologies, multiple broadcasting can be improved Put the synchronism between equipment.
Example IV
The embodiment of the present invention also provides a kind of terminal, and this terminal can be the equipment such as smart mobile phone, panel computer.
As shown in fig. 7, terminal 400 can include:Data acquisition module 401, fractionation module 402, data transmission blocks 403rd, order sending module 404, is described in detail below:
This data acquisition module 401, for obtaining voice data;
This fractionation module 402, for this voice data is split into multiple packets, this packet includes packet mark Know;
This data transmission blocks 403, is used for sending the packet to playback equipment;
This order sending module 404, for sending play command, this play command and this packet mark to this playback equipment Know association and play packet corresponding with this package identification to indicate.
Preferably, terminal 400 also includes:Duration acquisition module, specific as follows:
This duration acquisition module, for obtaining delay duration;
This order sending module 404, is additionally operable to this playback equipment forward delay interval order, the instruction of this delay command receives This play command and play packet corresponding with this package identification after this delay duration again.
Preferably, this duration acquisition module includes:First acquisition submodule, the second acquisition submodule, calculating sub module, tool Body is as follows:
This first acquisition submodule, for obtaining preset duration;
This second acquisition submodule, for obtaining the network delay and this playback equipment between;
This calculating sub module, for according to this preset duration and this network delay computation delay duration.
Preferably, this calculating sub module specifically for:
Calculate the difference between this preset duration and this network delay;
Using this difference as delay duration.
Preferably, this playback equipment includes multiple stage playback equipment, this first acquisition submodule specifically for:
Obtain the multiple network delays and this multiple stage playback equipment between;
One maximum in the plurality of network delay is set to preset duration.
Aforesaid operations specifically can be found in embodiment of the method above, will not be described here.
The embodiment of the present invention also provides another kind of terminal, as shown in figure 8, this terminal 500 can include radio frequency (RF, Radio Frequency) circuit 501, the memory 502 including one or more computer-readable recording mediums, input block 503rd, display unit 504, sensor 505, voicefrequency circuit 506, Wireless Fidelity (WiFi, Wireless Fidelity) module 507th, the parts such as processor 508 and the power supply 509 of or more than one processing core are included.People in the art Member, it is appreciated that the restriction of the terminal structure not structure paired terminal shown in Fig. 8, can include more more or less of than illustrating Part, or combine some parts, or different part arrangements.
Radio circuit 501 can be used for receiving and sending messages, or the reception of signal and transmission in communication process, especially, by base station Downlink information receive after, transfer to one or more than one processor 508 processed;In addition, up data is activation will be related to To base station.Generally, radio circuit 501 includes but is not limited to antenna, at least one amplifier, tuner, one or more vibration Device, subscriber identity module (SIM, Subscriber Identity Module) card, transceiver, coupler, low noise amplification Device (LNA, Low Noise Amplifier), duplexer etc..Additionally, radio circuit 501 can also pass through radio communication and network With other equipment communication.This radio communication can use arbitrary communication standard or agreement, including but not limited to global system for mobile telecommunications System (GSM, Global System of Mobile communication), general packet radio service (GPRS, General Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division many Location (WCDMA, Wideband Code Division Multiple Access), Long Term Evolution (LTE, Long Term Evolution), Email, Short Message Service (SMS, Short Messaging Service) etc..
Memory 502 can be used for storing application program data.Include and can hold in the application program of memory 502 storage Line program code.Application program can form various functions module.Processor 508 passes through operation and is stored in answering of memory 502 With program, thus executing various function application and data processing.Memory 502 can mainly include storing program area and storage number According to area, wherein, storing program area can application program needed for storage program area, at least one function (such as sound plays work( Energy, image player function etc.) etc.;Storage data field can store according to terminal using created data (such as voice data, Phone directory etc.) etc..Additionally, memory 502 can include high-speed random access memory, non-volatile memories can also be included Device, for example, at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 502 can also include Memory Controller, to provide the access to memory 502 of processor 508 and input block 503.
Input block 503 can be used for numeral, character information or the user's characteristic information (such as fingerprint) of receives input, and Produce the keyboard relevant with user setup and function control, mouse, action bars, optics or trace ball signal input.Specifically Ground, input block 503 can include fingerprint recognition module.In certain embodiments, input block 503 can also include touch-sensitive table Face.Touch sensitive surface, also referred to as touch-screen or Trackpad, can collect user thereon or neighbouring touch operation (such as user Using the operation on Touch sensitive surface or near Touch sensitive surface of any suitable object such as finger, stylus or annex), and according to Formula set in advance drives corresponding attachment means.Optionally, Touch sensitive surface may include touch detecting apparatus and touch control Two parts of device.Wherein, touch detecting apparatus detect the touch orientation of user, and detect the signal that touch operation brings, and will believe Number send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact seat Mark, then gives processor 508, and can the order sent of receiving processor 508 being executed.Furthermore, it is possible to using resistance-type, The polytypes such as condenser type, infrared ray and surface acoustic wave realize Touch sensitive surface.Except Touch sensitive surface, input block 503 also may be used To include other input equipments.Specifically, other input equipments can include but is not limited to physical keyboard, function key (such as sound Amount control button, switch key etc.), trace ball, mouse, one or more of action bars etc..
Display unit 504 can be used for display and by the information of user input or is supplied to the information of user and the various of terminal Graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination.Display Unit 504 may include display floater.Optionally, can using liquid crystal display (LCD, Liquid Crystal Display), The forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) are configuring display floater.Further , Touch sensitive surface can cover display floater, when Touch sensitive surface detects thereon or after neighbouring touch operation, sends process to Device 508, to determine the type of touch event, provides accordingly according to the type of touch event on a display panel with preprocessor 508 Visual output.Although in fig. 8, Touch sensitive surface and display floater are to realize inputting as two independent parts and to input Function, but in some embodiments it is possible to will be integrated to Touch sensitive surface and display floater and realize input and output function.
Terminal may also include at least one sensor 505, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity transducer, and wherein, ambient light sensor can be according to ambient light The brightness to adjust display floater for the light and shade, proximity transducer can cut out display floater and/or the back of the body when terminal moves in one's ear Light.As one kind of motion sensor, Gravity accelerometer can detect (generally three axles) acceleration in all directions Size, can detect that size and the direction of gravity when static, can be used for identify mobile phone attitude application (such as horizontal/vertical screen switching, Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Can also configure as terminal Gyroscope, barometer, hygrometer, thermometer, the other sensors such as infrared ray sensor, will not be described here.
Voicefrequency circuit 506 can provide the COBBAIF between user and terminal by loudspeaker, microphone.Voicefrequency circuit The voice data receiving can be converted into electric signal by 506, be transferred to loudspeaker, be converted to voice signal output by loudspeaker; On the other hand, the voice signal of collection is converted to electric signal by microphone, is converted to audio frequency number by voicefrequency circuit 506 after being received According to then after processing voice data output processor 508, through radio circuit 501 being sent to such as another terminal, or by sound Frequency data output is to memory 502 to process further.Voicefrequency circuit 506 is also possible that earphone jack, to provide peripheral hardware Earphone and the communication of terminal.
Wireless Fidelity (WiFi) belongs to short range wireless transmission technology, and terminal can be helped by wireless fidelity module 507 User sends and receive e-mail, browses webpage and access streaming video etc., and it has provided the user wireless broadband internet and has accessed. Although Fig. 8 shows wireless fidelity module 507, but it is understood that, it is simultaneously not belonging to must be configured into of terminal, completely may be used To omit in the scope of essence not changing invention as needed.
Processor 508 is the control centre of terminal, using the various pieces of various interfaces and the whole terminal of connection, leads to Cross and run or execute the application program being stored in memory 502, and call the data being stored in memory 502, execution The various functions of terminal and processing data, thus carry out integral monitoring to terminal.Optionally, processor 508 may include one or Multiple processing cores;Preferably, processor 508 can integrated application processor and modem processor, wherein, application processor Main process operating system, user interface and application program etc., modem processor mainly processes radio communication.It is appreciated that , above-mentioned modem processor can not also be integrated in processor 508.
Terminal also includes the power supply 509 (such as battery) powered to all parts.Preferably, power supply can pass through power supply pipe Reason system is logically contiguous with processor 508, thus realizing management charging, electric discharge and power managed by power-supply management system Etc. function.Power supply 509 can also include one or more direct current or AC power, recharging system, power failure inspection The random component such as slowdown monitoring circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown in Fig. 8, terminal can also include camera, bluetooth module etc., will not be described here.
Specifically in the present embodiment, the processor 508 in terminal can be according to following instruction, will be one or more The corresponding executable program code of process of application program is loaded in memory 502, and to be run by processor 508 and be stored in Application program in memory 502, thus realize various functions:
Obtain voice data;This voice data is split into multiple packets, this packet includes package identification;Should Packet is sent to playback equipment;To this playback equipment send play command, this play command associate with this package identification with Packet corresponding with this package identification is play in instruction.
Preferably, processor 508 has data acquisition module, splits module, data transmission blocks, order sending module, It is described in detail below:
Processor 508 is used for obtaining voice data by data acquisition module;
Processor 508 is used for, by splitting module, this voice data is split into multiple packets, and this packet includes counting According to bag mark;
Processor 508 is used for sending the packet to playback equipment by data transmission blocks;
Processor 508 be used for by order sending module to this playback equipment send play command, this play command with should Package identification association plays packet corresponding with this package identification to indicate.
Aforesaid operations specifically can be found in embodiment of the method above, will not be described here.
From the foregoing, it will be observed that embodiments providing a kind of terminal, by obtaining voice data;This voice data is split Become multiple packets, this packet includes package identification;Send the packet to playback equipment;Send to this playback equipment Play command, this play command is associated with this package identification and plays packet corresponding with this package identification to indicate. The program sends, to playback equipment, the play command associating with package identification so that multiple stage playback equipment receives this broadcasting life After order, broadcasting packet corresponding with this package identification can be started simultaneously at, need not be to the clock system of each playback equipment Calibrated, you can make between multiple playback equipments, to reach synchronous result of broadcast well, in terms of existing technologies, permissible Improve the synchronism between multiple playback equipments.
It should be noted that one of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or Part steps can be by program to complete come the hardware to instruct correlation, and this program can be stored in computer-readable storage medium In matter, storage medium can include:Read-only storage (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
A kind of control method for playing back, device and the terminal that above the embodiment of the present invention are provided are described in detail, Specific case used herein is set forth to the principle of the present invention and embodiment, and the explanation of above example is to use Understand the method for the present invention and its core concept in help;Simultaneously for those skilled in the art, according to the think of of the present invention Think, all will change in specific embodiments and applications, in sum, it is right that this specification content should not be construed as The restriction of the present invention.

Claims (11)

1. a kind of control method for playing back is it is characterised in that include:
Obtain voice data;
Described voice data is split into multiple packets, described packet includes package identification;
Described packet is sent to playback equipment;
Send play command to described playback equipment, described play command is associated with described package identification to indicate broadcasting and institute State the corresponding packet of package identification.
2. control method for playing back according to claim 1 is it is characterised in that described transmission to described playback equipment plays life After the step of order, described control method for playing back also includes:
Obtain delay duration;
To described playback equipment forward delay interval order, described delay command instruction receives described play command and through described Packet corresponding with described package identification is play again after delay duration.
3. control method for playing back according to claim 2 is it is characterised in that the step of described acquisition delay duration is specifically wrapped Include:
Obtain preset duration;
Obtain the network delay and described playback equipment between;
According to described preset duration and described network delay computation delay duration.
4. control method for playing back according to claim 3 it is characterised in that described according to described preset duration with described net The step of network Delay computing delay duration specifically includes:
Calculate the difference between described preset duration and described network delay;
Using described difference as delay duration.
5. control method for playing back according to claim 3 it is characterised in that described playback equipment include multiple stage play set Standby, the described step obtaining preset duration specifically includes:
Obtain the multiple network delays and described multiple stage playback equipment between;
One maximum in the plurality of network delay is set to preset duration.
6. a kind of broadcast control device is it is characterised in that include:
Data acquisition module, for obtaining voice data;
Split module, for described voice data is split into multiple packets, described packet includes package identification;
Data transmission blocks, for being sent to playback equipment by described packet;
Order sending module, for sending play command, described play command and described package identification to described playback equipment Association plays packet corresponding with described package identification to indicate.
7. broadcast control device according to claim 6 is it is characterised in that described broadcast control device also includes:
Duration acquisition module, for obtaining delay duration;
Described order sending module, is additionally operable to described playback equipment forward delay interval order, described delay command instruction receives Described play command and play packet corresponding with described package identification after described delay duration again.
8. broadcast control device according to claim 7 is it is characterised in that described duration acquisition module specifically includes:
First acquisition submodule, for obtaining preset duration;
Second acquisition submodule, for obtaining the network delay and described playback equipment between;
Calculating sub module, for according to described preset duration and described network delay computation delay duration.
9. broadcast control device according to claim 8 it is characterised in that described calculating sub module specifically for:
Calculate the difference between described preset duration and described network delay;
Using described difference as delay duration.
10. broadcast control device according to claim 8 it is characterised in that described playback equipment include multiple stage play set Standby, described first acquisition submodule specifically for:
Obtain the multiple network delays and described multiple stage playback equipment between;
One maximum in the plurality of network delay is set to preset duration.
A kind of 11. terminals are it is characterised in that include:
Touch-screen, for the touch operation of receive user;
Be stored with the memory of executable program code;
The processor coupling with described memory;
Described processor calls the described executable program code of storage in described memory, appoints in execution such as claim 1 to 5 Control method for playing back described in one.
CN201610882953.4A 2016-10-08 2016-10-08 Playing control method, device and terminal Active CN106445458B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610882953.4A CN106445458B (en) 2016-10-08 2016-10-08 Playing control method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610882953.4A CN106445458B (en) 2016-10-08 2016-10-08 Playing control method, device and terminal

Publications (2)

Publication Number Publication Date
CN106445458A true CN106445458A (en) 2017-02-22
CN106445458B CN106445458B (en) 2020-01-14

Family

ID=58172759

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610882953.4A Active CN106445458B (en) 2016-10-08 2016-10-08 Playing control method, device and terminal

Country Status (1)

Country Link
CN (1) CN106445458B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108271095A (en) * 2017-12-20 2018-07-10 建荣半导体(深圳)有限公司 A kind of major and minor Bluetooth audio equipment and its synchronous playing system and method
CN110677710A (en) * 2019-10-16 2020-01-10 江苏网进科技股份有限公司 Synchronous control method and terminal control system of multimedia terminal

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102739661A (en) * 2012-06-18 2012-10-17 李洋 Method and system for network audio sync output on basis of data statistics
CN103905876A (en) * 2014-03-13 2014-07-02 北京奇艺世纪科技有限公司 Video data and audio data synchronized playing method and device and equipment
CN104616675A (en) * 2013-11-05 2015-05-13 华为终端有限公司 Method for switching playing equipment and mobile terminal
CN104867513A (en) * 2015-04-20 2015-08-26 广东欧珀移动通信有限公司 Play control method and equipment
CN105611381A (en) * 2015-12-29 2016-05-25 深圳市民展科技开发有限公司 Multi-device audio synchronous playing system and method based on wireless network
CN105992025A (en) * 2015-02-15 2016-10-05 深圳市民展科技开发有限公司 Audio synchronous playing-based system time calibration method, audio synchronous playing method and devices
US20160291929A1 (en) * 2014-06-10 2016-10-06 Tencent Technology (Shenzhen) Company Limited Audio playback control method, and terminal device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102739661A (en) * 2012-06-18 2012-10-17 李洋 Method and system for network audio sync output on basis of data statistics
CN104616675A (en) * 2013-11-05 2015-05-13 华为终端有限公司 Method for switching playing equipment and mobile terminal
CN103905876A (en) * 2014-03-13 2014-07-02 北京奇艺世纪科技有限公司 Video data and audio data synchronized playing method and device and equipment
US20160291929A1 (en) * 2014-06-10 2016-10-06 Tencent Technology (Shenzhen) Company Limited Audio playback control method, and terminal device
CN105992025A (en) * 2015-02-15 2016-10-05 深圳市民展科技开发有限公司 Audio synchronous playing-based system time calibration method, audio synchronous playing method and devices
CN104867513A (en) * 2015-04-20 2015-08-26 广东欧珀移动通信有限公司 Play control method and equipment
CN105611381A (en) * 2015-12-29 2016-05-25 深圳市民展科技开发有限公司 Multi-device audio synchronous playing system and method based on wireless network

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108271095A (en) * 2017-12-20 2018-07-10 建荣半导体(深圳)有限公司 A kind of major and minor Bluetooth audio equipment and its synchronous playing system and method
CN110677710A (en) * 2019-10-16 2020-01-10 江苏网进科技股份有限公司 Synchronous control method and terminal control system of multimedia terminal

Also Published As

Publication number Publication date
CN106445458B (en) 2020-01-14

Similar Documents

Publication Publication Date Title
CN106411448A (en) Play control method and device, and terminal
CN103716331B (en) Method, terminal, server and system for numerical value transfer
CN104967896A (en) Method for displaying bulletscreen comment information, and apparatus thereof
CN103559731B (en) Method and terminal for displaying lyrics under screen locking state
CN106341713B (en) A kind of multimedia synchronous plays method, apparatus, system and terminal
CN104427083A (en) Volume adjusting method and device
CN106301462A (en) Radio frequency control circuit and mobile terminal
CN106170034B (en) A kind of sound effect treatment method and mobile terminal
CN105208056A (en) Information exchange method and terminal
CN106452643A (en) Playing control method and device, terminal and playing system
CN105516784A (en) Virtual good display method and device
CN106453597A (en) Data synchronization cycle adjustment method, device and system
CN103533127A (en) Call control method of terminal and terminal
CN106484326A (en) A kind of data transmission processing method and mobile terminal
CN106411447A (en) Play control method and device, and terminal
CN106412625B (en) Multimedia synchronous plays method, apparatus, terminal and system
CN103200077B (en) The method of data interaction during a kind of voice call, Apparatus and system
CN106452644A (en) Playing control method and device, and terminal
CN104348944A (en) Caller identification method and caller identification terminal
CN105391870A (en) Timing reminding method and device
CN104135396B (en) Show the method for network speed information, device and terminal
CN106445458A (en) Playing control method and device and terminal
CN104918130A (en) Methods for transmitting and playing multimedia information, devices and system
CN106454953A (en) Flow control method and apparatus, and terminal
CN106412250A (en) Drop statistical method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: OPPO Guangdong Mobile Communications Co., Ltd.

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

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant