CN106411447B - Control method for playing back, device and terminal - Google Patents

Control method for playing back, device and terminal Download PDF

Info

Publication number
CN106411447B
CN106411447B CN201610882800.XA CN201610882800A CN106411447B CN 106411447 B CN106411447 B CN 106411447B CN 201610882800 A CN201610882800 A CN 201610882800A CN 106411447 B CN106411447 B CN 106411447B
Authority
CN
China
Prior art keywords
playback equipment
audio data
packets
feedback information
clocking error
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.)
Active
Application number
CN201610882800.XA
Other languages
Chinese (zh)
Other versions
CN106411447A (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 CN201610882800.XA priority Critical patent/CN106411447B/en
Publication of CN106411447A publication Critical patent/CN106411447A/en
Application granted granted Critical
Publication of CN106411447B publication Critical patent/CN106411447B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Abstract

The embodiment of the invention provides a kind of control method for playing back, device and terminal, this method uses the packets of audio data for sending to playback equipment and having predetermined time period;It receives the playback equipment and plays the feedback information after the packets of audio data;The clocking error of the playback equipment is obtained according to the feedback information;Synch command is sent to the playback equipment according to the clocking error, it is synchronous which indicates that the playback equipment carries out clock.The information that the program is fed back after playing packets of audio data according to playback equipment obtains the clocking error of the playback equipment, then synch command is sent to the playback equipment, to indicate that it is synchronous that the playback equipment carries out clock, the system clock of the playback equipment can be made identical as the system clock of broadcast control device, in terms of existing technologies, the synchronism between multiple playback equipments can be improved.

Description

Control method for playing back, device and terminal
Technical field
The present invention relates to technical field of electronic equipment, and in particular to a kind of control method for playing back, device and terminal.
Background technique
With the improvement of living standards, audio-visual devices play important role in people's lives.It currently, will be multiple Music player devices (for example, speaker, player, mobile phone etc.) and control equipment are interconnected by wired or wireless network, A play system is formed, identical music is played simultaneously, has been widely used.
In above-mentioned play system, each equipment has independent system clock.Each playback equipment according to its own System clock plays music.However, each playback equipment and the system clock for controlling equipment are not always synchronous.It is each There may be the subtle time differences each other for playback equipment and control equipment.When multiple playback equipments play identical music When, the above-mentioned subtle time difference causes the playback progress of each playback equipment inconsistent, thereby results between multiple playback equipments Synchronism is low.
Summary of the invention
The embodiment of the present invention provides a kind of control method for playing back, device and terminal, can be improved between multiple playback equipments Synchronism.
The embodiment of the present invention provides a kind of control method for playing back, comprising:
The packets of audio data with predetermined time period is sent to playback equipment, includes playing the sound in the packets of audio data The timestamp of frequency data packet;
The feedback information of the playback equipment is received, which plays the sound according to the timestamp for the playback equipment The information fed back after frequency data packet;
The clocking error of the playback equipment is obtained according to the feedback information;
Synch command is sent to the playback equipment according to the clocking error, when which indicates that the playback equipment carries out Clock is synchronous.
Correspondingly, the embodiment of the present invention also provides a kind of broadcast control device, comprising:
Data transmission blocks, for sending the packets of audio data with predetermined time period, the audio number to playback equipment According to the timestamp in packet including the broadcasting packets of audio data;
Receiving module, for receiving the feedback information of the playback equipment, the feedback information be the playback equipment according to this when Between stamp play the information fed back after the packets of audio data;
First obtains module, for obtaining the clocking error of the playback equipment according to the feedback information;
Command sending module, for sending synch command to the playback equipment according to the clocking error, which refers to It is synchronous to show that the playback equipment carries out clock.
Correspondingly, the embodiment of the present invention also provides a kind of terminal, comprising:
Touch screen, for receiving the touch operation of user;
It is stored with the memory of executable program code;
The processor coupled with the memory;
The processor calls the executable program code stored in the memory, executes above-mentioned control method for playing back.
The embodiment of the present invention uses the packets of audio data for sending to playback equipment and having predetermined time period, the audio data It include the timestamp for playing the packets of audio data in packet;The feedback information of the playback equipment is received, which is the broadcasting Equipment plays the information fed back after the packets of audio data according to timestamp;According to the feedback information obtain the playback equipment when Clock error;Synch command is sent to the playback equipment according to the clocking error, when which indicates that the playback equipment carries out Clock is synchronous.The information that the program is fed back after playing packets of audio data according to playback equipment is missed to obtain the clock of the playback equipment Then difference sends synch command to the playback equipment, synchronized with indicating that the playback equipment carries out clock, can make the playback equipment System clock it is identical as the system clock of broadcast control device.When there are multiple playback equipments, multiple playback equipment System clock can keep the system clock of the playback equipment identical namely multiple with the system clock of the broadcast control device It is able to maintain identical, in terms of existing technologies, the synchronism between multiple playback equipments can be improved.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described.It should be evident that drawings in the following description are only some embodiments of the invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the flow diagram for 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 two.
Fig. 3 is the flow diagram of control method for playing back provided by Embodiment 2 of the present invention.
Fig. 4 is the structural schematic diagram for the first broadcast control device that the embodiment of the present invention three provides.
Fig. 5 is the structural schematic diagram for second of broadcast control device that the embodiment of the present invention three provides.
Fig. 6 is the structural schematic diagram for the third broadcast control device that the embodiment of the present invention three provides.
Fig. 7 is the structural schematic diagram for the first terminal that the embodiment of the present invention four provides.
Fig. 8 is the structural schematic diagram for second of terminal that the embodiment of the present invention four provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description.Obviously, described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts Example, shall fall within the protection scope of the present invention.
Description and claims of this specification and term " first " in above-mentioned attached drawing, " second ", " third " etc. (if present) is to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be appreciated that this The object of sample description is interchangeable under appropriate circumstances.In addition, term " includes " and " having " and their any deformation, meaning Figure, which is to cover, non-exclusive includes.For example, containing the process, method of series of steps or containing a series of modules or list The device of member, terminal, system those of are not necessarily limited to be clearly listed step or module or unit, can also include unclear The step of ground is listed or module or unit also may include its intrinsic for these process, methods, device, terminal or 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, will be described in detail respectively below.
Embodiment one
The present embodiment will be described from the angle of broadcast control device, which specifically can integrate in the terminal, should Terminal can be the equipment such as smart phone, tablet computer.
A kind of control method for playing back, comprising: the packets of audio data with predetermined time period, the sound are sent to playback equipment It include the timestamp for playing the packets of audio data in frequency data packet;The feedback information of the playback equipment is received, which is The playback equipment plays the information fed back after the packets of audio data according to the timestamp;The broadcasting is obtained according to the feedback information The clocking error of equipment;Synch command is sent to the playback equipment according to the clocking error, which indicates that the broadcasting is set The standby clock that carries out synchronizes.
As shown in Figure 1, the control method for playing back, detailed process may include:
S101 sends the packets of audio data with predetermined time period to playback equipment, includes broadcasting in the packets of audio data Put the timestamp of the packets of audio data.
In concrete application, broadcast control device can transfer the original sound being stored in the memory of the broadcast control device Frequency evidence.Broadcast control device can also obtain original audio number by wired or wireless network from server or other terminals According to.Broadcast control device can also obtain original audio data from the storage mediums such as CD.The original audio data include but It is not limited to CD, WAV, MP3 (Moving Picture Experts Group Audio Layer III), WMA (Windows Media Audio) etc. formats audio data.The broadcast control device can be integrated in the electronic device in terminal, can also To be playback equipment having data processing function.
After getting original audio data, broadcast control device can be split into the original audio data when having default Between length multiple packets of audio data.It is long that predetermined time period can be the time being arranged when broadcast control device factory Angle value.The predetermined time period is the duration consumed required for playing the packets of audio data.For example, predetermined time period is 500 Millisecond.When splitting into multiple packets of audio data, broadcast control device can be added in each packets of audio data split out and broadcast Put the timestamp of the packets of audio data.The timestamp can be according to determined by the system clock of the broadcast control device one The time point not yet reached.After the completion of fractionation, broadcast control device sends the packets of audio data splitted out to playback equipment. The playback equipment can be the equipment that speaker, music player etc. have audio playing function.
S102 receives the feedback information of the playback equipment, which is that the playback equipment is played according to the timestamp The information fed back after the complete packets of audio data.
Specifically, playback equipment has independent system clock.In practical application, the playback equipment and broadcasting control are filled There may be the subtle time difference between setting, therefore the system clock of the system clock of the playback equipment and the broadcast control device It is not always identical.After playback equipment receives the packets of audio data of broadcast control device transmission, what it is in the playback equipment is When system clock reaches the timestamp, the packets of audio data is played.After playing the packets of audio data, the playback equipment is to the broadcasting Control device sends feedback information.The feedback information indicates that the playback equipment played the packets of audio data.Play control dress It sets and receives the feedback information that the playback equipment is sent.
S103 obtains the clocking error of the playback equipment according to the feedback information.
Specifically, after the feedback information for receiving playback equipment transmission, broadcast control device can be according to the feedback information Obtain the clocking error between the playback equipment and the broadcast control device.According to the feedback information obtain the playback equipment when Clock error can with specifically includes the following steps:
The playback equipment, which is calculated, according to the timestamp and the predetermined time period plays the theoretical complete of the packets of audio data At the time;
The actual finish time that the playback equipment plays the packets of audio data is obtained according to the feedback information;
The clocking error of the playback equipment is obtained according to the theory deadline and the actual finish time.
Specifically, broadcast control device can calculate the playback equipment according to the timestamp and the predetermined time period and play The theoretical deadline of the complete packets of audio data.In practical application, can using the timestamp plus the predetermined time period as The theory deadline.For example, at the time of timestamp label for 1 point 10 seconds, predetermined time period is 500 milliseconds, then the theory Deadline be 1 point 10.5 seconds.
Broadcast control device can in the feedback information for receiving playback equipment, record receive the feedback information when Between.Due to being communicated between broadcast control device and playback equipment by cable network or wireless network, feedback information is with electricity Signal (voltage or electric current) or the form of electromagnetic wave are transmitted.And the transmission speed of electric signal and electromagnetic wave is quickly, electric signal Or passing time of the electromagnetic wave between broadcast control device and playback equipment can be ignored.It is therefore contemplated that playing The time that control device receives the feedback information is actual finish time that playback equipment plays the packets of audio data.
Then, the playback equipment can be obtained according to the theory deadline and the actual finish time and the broadcasting controls Clocking error between device, the i.e. clocking error of the playback equipment.According to the theory deadline and the actual finish time Obtain the playback equipment clocking error can with specifically includes the following steps:
Calculate the time difference between theory deadline and the actual finish time;
Using the time difference as the clocking error of the playback equipment.
Specifically, the time difference between the theory deadline and the actual finish time can be calculated, then with this when Between clocking error of the difference as the playback equipment.Specific calculation is as follows:
t0=t1-t2
Wherein, t0For the time difference that need to be calculated, t1For the theory deadline, t2For the actual finish time.Work as the time difference t0For positive value, i.e., when the theoretical deadline is ahead of actual finish time, indicate the system clock of playback equipment than playing control The system clock of device is slow;As time difference t0For negative value, i.e., the theoretical deadline is delayed when actual finish time, indicates to play The system clock of equipment is faster than the system clock of broadcast control device;As time difference t0When being 0, when indicating the system of playback equipment Clock is identical as the system clock of broadcast control device, i.e., does not have clocking error between playback equipment and broadcast control device.
In some embodiments, after the step of receiving the feedback information of the playback equipment, control method for playing back can be with The following steps are included:
Obtain the network delay between the playback equipment;
The step of obtaining the clocking error of the playback equipment according to the feedback information specifically includes:
The clocking error of the playback equipment is obtained according to the feedback information and the network delay.
In concrete application, due to the influence of the communication distance between playback equipment and broadcast control device, or there is electricity Usually there is certain network delay between playback equipment and broadcast control device in the influence of the other factors such as magnetic disturbance.It plays Control device can obtain the network delay between playback equipment by monitoring network communications state.Get network delay Afterwards, the clocking error of the playback equipment is obtained according to the feedback information and the network delay that receive.According to the feedback information With the network delay obtain the playback equipment clocking error can with specifically includes the following steps:
Calculate the time difference between theory deadline and the actual finish time;
Calculate the difference between the time difference and the network delay;
Using the difference as the clocking error of the playback equipment.
Specifically, the time difference between the theory deadline and the actual finish time is calculated, the time is then calculated Difference between difference and network delay, and using the difference as the clocking error of the playback equipment.Calculate the theory deadline Time difference between the actual finish time can carry out in the following manner:
t0=t1-t2
Wherein, t0For the time difference that need to be calculated, t1For the theory deadline, t2For the actual finish time.
Calculating the difference between the time difference and the network delay can carry out in the following manner:
T=t0-t3
Wherein, T is the difference that need to be calculated, t0For the time difference calculated, t3For the network delay got.As difference T For positive value, i.e. time difference t0Greater than network delay t3When, when indicating the system of the system clock of playback equipment than broadcast control device Clock is slow;When difference T is negative value, i.e. time difference t0Less than network delay t3When, indicate the system clock of playback equipment than playing control The system clock of device is fast;When difference T be 0, i.e. time difference t0Equal to network delay t3When, indicate the system clock of playback equipment It is identical as the system clock of broadcast control device, i.e., there is no clocking error between playback equipment and broadcast control device.
S104 sends synch command to the playback equipment according to the clocking error, which indicates the playback equipment It is synchronous to carry out clock.
Specifically, after broadcast control device gets the clocking error of playback equipment, synchronous life is sent to the playback equipment It enables.The clocking error information can be carried in the synch command.It is synchronous that the synch command indicates that the playback equipment carries out clock.It should After playback equipment receives the synch command, which is adjusted according to the clocking error information carried in the synch command System clock, so that the system clock of the playback equipment is identical as the system clock of the broadcast control device.For example, if the synchronization The clocking error carried in order is 1 second, then the playback equipment tunes up the system clock of itself 1 second;If in the synch command The clocking error of carrying is -1 second, then the playback equipment slows down the system clock of itself 1 second;If being carried in the synch command Clocking error is 0, then the playback equipment is without being adjusted the system clock of itself.
When it is implemented, the present invention is not limited by the execution sequence of described each step, conflict is not being generated In the case of, certain steps can also be carried out using other sequences or be carried out simultaneously.
From the foregoing, it will be observed that control method for playing back provided in an embodiment of the present invention, when using sending to playback equipment with presetting Between length packets of audio data, include the timestamp for playing the packets of audio data in the packets of audio data;Receive the playback equipment Feedback information, the feedback information be the playback equipment information fed back after the packets of audio data is played according to timestamp;Root The clocking error of the playback equipment is obtained according to the feedback information;Synch command is sent to the playback equipment according to the clocking error, It is synchronous that the synch command indicates that the playback equipment carries out clock.The program is fed back after playing packets of audio data according to playback equipment Information obtain the clocking error of the playback equipment, then send synch command to the playback equipment, to indicate that the broadcasting is set The standby clock that carries out is synchronous, and the system clock of the playback equipment can be made identical as the system clock of broadcast control device.Work as presence When multiple playback equipments, the system clock of multiple playback equipment can keep the system clock phase with the broadcast control device Together namely the system clock of multiple playback equipment is able to maintain identical, in terms of existing technologies, multiple broadcast can be improved Put the synchronism between equipment.
Embodiment two
According to control method for playing back described in embodiment one, citing is described in further detail below.
In the present embodiment, it will be specifically integrated in smart phone with broadcast control device, and be based on broadcasting shown in Fig. 2 The control method for playing back of the present embodiment is described in detail in system.
As shown in Fig. 2, for the composition schematic diagram of one of the present embodiment play system.Play system by server 210, Smart phone 211 and multiple playback equipments 212 form.Server 210 can be the server on network.Playback equipment 212 can be the equipment that speaker, music player etc. have audio playing function.Smart phone 211 passes through internet and service Device 210 carries out data communication, so that smart phone 211 can obtain audio data from server 210.Meanwhile smart phone 211 carry out data communication by wireless network (such as WiFi) and multiple playback equipments 212, so that smart phone 211 can be with Packets of audio data is sent to playback equipment 212.
As shown in figure 3, the control method for playing back, detailed process can be such that
S201, smart phone send the packets of audio data with predetermined time period, the packets of audio data to playback equipment In include play the packets of audio data timestamp.
In concrete application, smart phone obtains original audio data from server by internet, then by the original sound Frequency evidence splits into multiple packets of audio data with predetermined time period.The original audio data include but is not limited to CD, WAV、MP3(Moving Picture Experts Group Audio Layer III)、WMA(Windows Media The audio data of formats such as Audio).Predetermined time period can be a time span being arranged when smart phone factory Value.The predetermined time period is the duration consumed required for playing the packets of audio data.For example, predetermined time period is 500 millis Second.When splitting into multiple packets of audio data, smart phone can be added in each packets of audio data split out plays the sound The timestamp of frequency data packet.The timestamp can be according to determined by the system clock of the smart phone one and not yet reach Time point.After the completion of fractionation, smart phone sends the packets of audio data splitted out to playback equipment.
S202, smart phone receive the feedback information of the playback equipment, the feedback information be the playback equipment according to this when Between stamp play the information fed back after the packets of audio data.
Specifically, playback equipment has independent system clock.In practical application, the playback equipment and the smart phone it Between there may be the subtle time differences, therefore the system clock of the playback equipment and the system clock of the smart phone are not always It is identical.After playback equipment receives the packets of audio data of smart phone transmission, reaching in the system clock of the playback equipment should When timestamp, the packets of audio data is played.After playing the packets of audio data, which sends to the smart phone feeds back Information.The feedback information indicates that the playback equipment played the packets of audio data.The smart phone receives playback equipment hair The feedback information sent.
S203, smart phone obtain the network delay between the playback equipment.
In concrete application, due to the influence of the communication distance between playback equipment and the smart phone, or there are electromagnetism , usually there is certain network delay between playback equipment and the smart phone in the influence of the other factors such as interference.Smart phone The network delay between the playback equipment can be obtained by monitoring network communications state.
S204, smart phone calculate the playback equipment according to the timestamp and the predetermined time period and play the audio number According to the theoretical deadline of packet.
Specifically, smart phone can calculate the playback equipment according to the timestamp and the predetermined time period and play this The theoretical deadline of packets of audio data.In practical application, which can be added to the predetermined time period as the reason By the deadline.For example, at the time of timestamp label for 1 point 10 seconds, predetermined time period be 500 milliseconds, then theory completion Time be 1 point 10.5 seconds.
S205, smart phone obtain the playback equipment according to the feedback information and play actually accomplishing for the packets of audio data Time.
Specifically, which can record in the feedback information for receiving playback equipment and receive the feedback letter The time of breath.Due between smart phone and playback equipment pass through wireless network (such as WiFi) communicated, feedback information with The form of electromagnetic wave is transmitted.And the transmission speed of electromagnetic wave is quickly, electromagnetic wave is between playback equipment and smart phone Passing time can be ignored.It is therefore contemplated that the time that the smart phone receives the feedback information is the broadcasting The actual finish time of the complete packets of audio data of device plays.
S206, smart phone calculate the time difference between theory deadline and the actual finish time.
Specifically, the time difference calculated between the theory deadline and the actual finish time can be in the following manner It carries out:
t0=t1-t2
Wherein, t0For the time difference that need to be calculated, t1For the theory deadline, t2For the actual finish time.
S207, smart phone calculate the difference between the time difference and the network delay.
Specifically, it after calculating the time difference, can calculate in the following manner between the time difference and the network delay Difference:
T=t0-t3
Wherein, T is the difference that need to be calculated, t0For the time difference calculated, t3For the network delay got.
S208, clocking error of the smart phone using the difference as the playback equipment.
Specifically, after calculating difference T, clocking error of the smart phone using difference T as playback equipment.As difference T When for positive value, indicate that the system clock of playback equipment is slower than the system clock of smart phone;When difference T is negative value, indicate to broadcast The system clock for putting equipment is faster than the system clock of smart phone;When difference T is 0, indicate the system clock of playback equipment with The system clock of smart phone is identical, i.e., does not have clocking error between playback equipment and smart phone.
S209, smart phone send synch command to the playback equipment according to the clocking error, and synch command instruction should It is synchronous that playback equipment carries out clock.
Specifically, after smart phone gets the clocking error of playback equipment, synch command is sent to the playback equipment.It should The clocking error information can be carried in synch command.It is synchronous that the synch command indicates that the playback equipment carries out clock.The broadcasting After equipment receives the synch command, system which is adjusted according to the clocking error information carried in the synch command Clock, so that the system clock of the playback equipment is identical as the system clock of the smart phone.For example, if being taken in the synch command The clocking error of band is 1 second, then the playback equipment tunes up the system clock of itself 1 second;If carried in the synch command when Clock error is -1 second, then the playback equipment slows down the system clock of itself 1 second;If the clocking error carried in the synch command It is 0, then the playback equipment is without being adjusted the system clock of itself.
When it is implemented, the present invention is not limited by the execution sequence of described each step, conflict is not being generated In the case of, certain steps can also be carried out using other sequences or be carried out simultaneously.
From the foregoing, it will be observed that control method for playing back provided in an embodiment of the present invention, sends sound to playback equipment using smart phone Frequency data packet;Receive the feedback information of the playback equipment;Obtain the network delay of the playback equipment;According to the feedback information and it is somebody's turn to do Network delay obtains the clocking error of the playback equipment;Synch command is sent to the playback equipment, which indicates that this is broadcast It is synchronous to put equipment progress clock.Between the information and the playback equipment and smart phone that the program is fed back according to playback equipment Network delay obtains the clocking error of the playback equipment, then sends synch command to the playback equipment, to indicate the broadcasting Equipment carries out clock and synchronizes, and the system clock of the playback equipment can be made identical as the system clock of smart phone.It is more when existing When a playback equipment, the system clock of multiple playback equipment can keep identical as the system clock of the smart phone, The system clock of i.e. multiple playback equipment be able to maintain it is identical, in terms of existing technologies, can be improved it is multiple broadcasting set Synchronism between standby.
Embodiment three
In order to better implement above method, the embodiment of the present invention also provides a kind of broadcast control device, broadcasting control Device can integrate in the terminal, which can be the equipment such as smart phone, tablet computer.
As shown in figure 4, broadcast control device 300 may include: data transmission blocks 301, receiving module 302, first obtain Modulus block 303, command sending module 304, are described in detail below:
The data transmission blocks 301, for sending the packets of audio data with predetermined time period, the sound to playback equipment It include the timestamp for playing the packets of audio data in frequency data packet;
The receiving module 302, for receiving the feedback information of the playback equipment, the feedback information be the playback equipment according to The timestamp plays the information fed back after the packets of audio data;
The first acquisition module 303, for obtaining the clocking error of the playback equipment according to the feedback information;
The command sending module 304, for sending synch command, synchronization life to the playback equipment according to the clocking error It enables and indicates that the playback equipment carries out clock and synchronizes.
Preferably, as shown in figure 5, the first acquisition module 303 includes: computational submodule 3031, the first acquisition submodule 3032, the second acquisition submodule 3033, specific as follows:
The computational submodule 3031 is played for calculating the playback equipment according to the timestamp and the predetermined time period The theoretical deadline of the packets of audio data;
First acquisition submodule 3032 plays the audio data for obtaining the playback equipment according to the feedback information The actual finish time of packet;
Second acquisition submodule 3033, for obtaining the broadcasting according to the theory deadline and the actual finish time The clocking error of equipment.
Preferably, which is specifically used for:
Calculate the time difference between theory deadline and the actual finish time;
Using the time difference as the clocking error of the playback equipment.
Preferably, as shown in fig. 6, the broadcast control device 300 further include: second obtains module 305, specific as follows:
The second acquisition module 305, for obtaining the network delay between the playback equipment;
The first acquisition module 303, specifically for obtaining the playback equipment according to the feedback information and the network delay Clocking error.
Preferably, which is specifically used for:
Calculate the time difference between theory deadline and the actual finish time;
Calculate the difference between the time difference and the network delay;
Using the difference as the clocking error of the playback equipment.
When it is implemented, the above modules can be used as independent entity to realize, any combination can also be carried out, is made It is realized for same or several entities.The specific implementation of the above modules can be found in the embodiment of the method for front, herein not It repeats again.
From the foregoing, it will be observed that broadcast control device 300 provided in an embodiment of the present invention, by data transmission blocks 301 to broadcasting Equipment sends the packets of audio data with predetermined time period, includes the time for playing the packets of audio data in the packets of audio data Stamp;Receiving module 302 receives the feedback information of the playback equipment, which is that the playback equipment is played according to timestamp The information fed back after the packets of audio data;First acquisition module 303 is missed according to the clock that the feedback information obtains the playback equipment Difference;Command sending module 304 sends synch command to the playback equipment according to the clocking error, which indicates the broadcasting It is synchronous that equipment carries out clock.The information that the program is fed back after playing packets of audio data according to playback equipment sets to obtain the broadcasting Then standby clocking error sends synch command to the playback equipment, synchronized, can be made with indicating that the playback equipment carries out clock The system clock of the playback equipment and the system clock of broadcast control device are identical.It is multiple when there are multiple playback equipments The system clock of playback equipment can keep the playback equipment identical namely multiple with the system clock of the broadcast control device System clock be able to maintain identical, in terms of existing technologies, the synchronism between multiple playback equipments can be improved.
Example IV
The embodiment of the present invention also provides a kind of terminal, which can be the equipment such as smart phone, tablet computer.
As shown in fig. 7, terminal 400 may include: data transmission blocks 401, the acquisition module of receiving module 402, first 403, command sending module 404 are described in detail below:
The data transmission blocks 401, for sending the packets of audio data with predetermined time period, the sound to playback equipment It include the timestamp for playing the packets of audio data in frequency data packet;
The receiving module 402, for receiving the feedback information of the playback equipment, the feedback information be the playback equipment according to The timestamp plays the information fed back after the packets of audio data;
The first acquisition module 403, for obtaining the clocking error of the playback equipment according to the feedback information;
The command sending module 404, for sending synch command, synchronization life to the playback equipment according to the clocking error It enables and indicates that the playback equipment carries out clock and synchronizes.
Preferably, which includes: computational submodule, the first acquisition submodule, the second acquisition submodule Block, specific as follows:
The computational submodule plays the sound for calculating the playback equipment according to the timestamp and the predetermined time period The theoretical deadline of frequency data packet;
First acquisition submodule plays the packets of audio data for obtaining the playback equipment according to the feedback information Actual finish time;
Second acquisition submodule, for obtaining the playback equipment according to the theory deadline and the actual finish time Clocking error.
Preferably, which is specifically used for:
Calculate the time difference between theory deadline and the actual finish time;
Using the time difference as the clocking error of the playback equipment.
Preferably, terminal 400 can also include: the second acquisition module, specific as follows:
The second acquisition module, for obtaining the network delay between the playback equipment;
The first acquisition module 403, specifically for obtaining the playback equipment according to the feedback information and the network delay Clocking error.
Preferably, which is specifically used for:
Calculate the time difference between theory deadline and the actual finish time;
Calculate the difference between the time difference and the network delay;
Using the difference as the clocking error of the playback equipment.
Aforesaid operations are for details, reference can be made to the embodiment of the method for front, and details are not described herein.
The embodiment of the present invention also provides another terminal, as shown in figure 8, the terminal 500 may include radio frequency (RF, Radio Frequency) circuit 501, include one or more memory 502, the input unit of computer readable storage medium 503, display unit 504, sensor 505, voicefrequency circuit 506, Wireless Fidelity (WiFi, Wireless Fidelity) module 507, the components such as processor 508 and the power supply 509 of processing core are included one or more than one.Those skilled in the art Member it is appreciated that terminal structure not structure paired terminal shown in Fig. 8 restriction, may include more more or fewer than illustrating Component perhaps combines certain components or different component layouts.
Radio circuit 501 can be used for receiving and sending messages or communication process in signal send and receive, particularly, by base station Downlink information receive after, transfer to one or more than one processor 508 processing;In addition, the data for being related to uplink are sent To base station.In general, radio circuit 501 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillations Device, subscriber identity module (SIM, Subscriber Identity Module) card, transceiver, coupler, low noise amplification Device (LNA, Low Noise Amplifier), duplexer etc..In addition, radio circuit 501 can also by wireless communication with network It is communicated with other equipment.Any communication standard or agreement, including but not limited to global system for mobile telecommunications can be used in the wireless communication 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 it is more 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 and data.It include that can hold in the application program that memory 502 stores Line program code.Application program can form various functional modules.Processor 508 is stored in answering for memory 502 by operation With program, thereby 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 (for example sound plays function Energy, image player function etc.) etc.;Storage data area can store according to terminal use created data (such as audio data, Phone directory etc.) etc..In addition, memory 502 may include high-speed random access memory, it can also include non-volatile memories Device, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 502 can also include Memory Controller, to provide the access of processor 508 and input unit 503 to memory 502.
Input unit 503 can be used for receiving number, character information or the user's characteristic information (such as fingerprint) of input, and Generate keyboard related with user setting and function control, mouse, operating stick, optics or trackball signal input.Specifically Ground, input unit 503 may include fingerprint recognition mould group.In some embodiments, input unit 503 can also include touch-sensitive table Face.Touch sensitive surface, also referred to as touch screen or Trackpad collect touch operation (such as the user of user on it or nearby Use the operation of any suitable object or attachment such as finger, stylus on touch sensitive surface or near touch sensitive surface), and according to Preset formula drives corresponding attachment device.Optionally, touch sensitive surface may include touch detecting apparatus and touch control Two parts of device.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, it 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 receive order that processor 508 is sent and be executed.Furthermore, it is possible to using resistance-type, The multiple types such as condenser type, infrared ray and surface acoustic wave realize touch sensitive surface.In addition to touch sensitive surface, input unit 503 may be used also To include other input equipments.Specifically, other input equipments can include but is not limited to physical keyboard, function key (such as sound Measure control button, switch key etc.), trace ball, mouse, one of operating stick etc. or a variety of.
Display unit 504 can be used for showing information input by user or be supplied to user information and terminal it is various Graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof.Display Unit 504 may include display panel.Optionally, can using liquid crystal display (LCD, Liquid Crystal Display), The forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) configure display panel.Further , touch sensitive surface can cover display panel, after touch sensitive surface detects touch operation on it or nearby, send processing to Device 508 is followed by subsequent processing device 508 and is provided on a display panel accordingly according to the type of touch event to determine the type of touch event Visual output.Although in fig. 8, touch sensitive surface and display panel are to realize input and input as two independent components Function, but in some embodiments it is possible to touch sensitive surface and display panel are integrated and realizes and outputs and inputs 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 sensor, wherein ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel, proximity sensor can close display panel and/or back when terminal is moved in one's ear Light.As a kind of motion sensor, gravity accelerometer can detect (generally three axis) acceleration in all directions Size can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (such as horizontal/vertical screen switching, Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;It can also configure as terminal The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Voicefrequency circuit 506 can provide the audio interface between user and terminal by loudspeaker, microphone.Voicefrequency circuit The audio data received 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 number after being received by voicefrequency circuit 506 According to then such as another terminal will be sent to through radio circuit 501 after audio data output processor 508 handles, or by sound Frequency is further processed according to output to memory 502.Voicefrequency circuit 506 is also possible that earphone jack, to provide peripheral hardware The communication of earphone and 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., it provides wireless broadband internet access for user. Although Fig. 8 shows wireless fidelity module 507, but it is understood that, and it is not belonging to must be configured into for terminal, completely may be used To omit within the scope of not changing the essence of the invention as needed.
Processor 508 is the control centre of terminal, using the various pieces of various interfaces and the entire terminal of connection, is led to It crosses operation or executes the application program being stored in memory 502, and call the data being stored in memory 502, execute The various functions and processing data of terminal, to carry out integral monitoring to terminal.Optionally, processor 508 may include one or Multiple processing cores;Preferably, processor 508 can integrate application processor and modem processor, wherein application processor Main processing operation system, user interface and application program etc., modem processor mainly handles wireless communication.It is understood that , above-mentioned modem processor can not also be integrated into processor 508.
Terminal further includes the power supply 509 (such as battery) powered to all parts.Preferably, power supply can pass through power supply pipe Reason system and processor 508 are logically contiguous, to realize management charging, electric discharge and power managed by power-supply management system Etc. functions.Power supply 509 can also include one or more direct current or AC power source, recharging system, power failure inspection The random components such as slowdown monitoring circuit, power adapter or inverter, power supply status indicator.
Although being not shown in Fig. 8, terminal can also include camera, bluetooth module etc., and details are not described herein.
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 the process of application program is loaded into memory 502, and is stored in by processor 508 to run Application program in memory 502, to realize various functions:
The packets of audio data with predetermined time period is sent to playback equipment, includes playing the sound in the packets of audio data The timestamp of frequency data packet;The feedback information of the playback equipment is received, which is the playback equipment according to the timestamp Play the information fed back after the packets of audio data;The clocking error of the playback equipment is obtained according to the feedback information;According to this Clocking error sends synch command to the playback equipment, and it is synchronous which indicates that the playback equipment carries out clock.
Preferably, there is processor 508 data transmission blocks, receiving module, first to obtain module, command sending module, It is described in detail below:
Processor 508 is used to send the audio data with predetermined time period to playback equipment by data transmission blocks It wraps, includes the timestamp for playing the packets of audio data in the packets of audio data;
Processor 508 is used to receive the feedback information of the playback equipment by receiving module, which is the broadcasting Equipment plays the information fed back after the packets of audio data according to the timestamp;
Processor 508 is used to obtain the clocking error of the playback equipment according to the feedback information by the first acquisition module;
Processor 508 is used to send synch command to the playback equipment according to the clocking error by command sending module, It is synchronous that the synch command indicates that the playback equipment carries out clock.
Aforesaid operations are for details, reference can be made to the embodiment of the method for front, and details are not described herein.
From the foregoing, it will be observed that having preset time long by sending to playback equipment the embodiment of the invention provides a kind of terminal The packets of audio data of degree includes the timestamp for playing the packets of audio data in the packets of audio data;Receive the anti-of the playback equipment Feedforward information, the feedback information are that the playback equipment plays the information fed back after the packets of audio data according to timestamp;According to this Feedback information obtains the clocking error of the playback equipment;Synch command is sent to the playback equipment according to the clocking error, this is same It is synchronous that step command indicates that the playback equipment carries out clock.The program plays the letter fed back after packets of audio data according to playback equipment Cease to obtain the clocking error of the playback equipment, then send synch command to the playback equipment, with indicate the playback equipment into Row clock is synchronous, and the system clock of the playback equipment can be made identical as the system clock of the terminal.When there are multiple broadcastings to set When standby, the system clock of multiple playback equipment can keep the broadcasting identical namely multiple with the system clock of the terminal The system clock of equipment is able to maintain identical, in terms of existing technologies, the synchronization between multiple playback equipments can be improved Property.
It should be noted that those of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or Part steps are relevant hardware can be instructed to complete by program, which can store in computer-readable storage medium In matter, storage medium may include: read-only memory (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 terminal is provided for the embodiments of the invention above to be described in detail, Used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only used In facilitating the understanding of the method and its core concept of the invention;Meanwhile for those skilled in the art, think of according to the present invention Think, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as pair Limitation of the invention.

Claims (4)

1. a kind of control method for playing back characterized by comprising
The packets of audio data with predetermined time period is split out from original audio data;
The packets of audio data is sent to playback equipment, includes the time of playing audio data packet in the packets of audio data Stamp;
The feedback information of the playback equipment is received, the feedback information is that the playback equipment is played according to the timestamp The information fed back after the packets of audio data;
The reason that the playback equipment plays the packets of audio data is calculated according to the timestamp and the predetermined time period By the deadline;
The actual finish time that the playback equipment plays the packets of audio data is obtained according to the feedback information;
Calculate the time difference between the theoretical deadline and the actual finish time;
Obtain the network delay between the playback equipment;
Calculate the difference between the time difference and the network delay;
Using the difference as the clocking error of the playback equipment;
Send synch command to the playback equipment according to the clocking error, the synch command indicate the playback equipment into Row clock is synchronous.
2. a kind of broadcast control device characterized by comprising
Data transmission blocks, for splitting out the packets of audio data with predetermined time period from original audio data, and to Playback equipment sends the packets of audio data, includes the timestamp of playing audio data packet in the packets of audio data;
Receiving module, for receiving the feedback information of the playback equipment, the feedback information is the playback equipment according to institute It states timestamp and plays the information fed back after the packets of audio data;
First obtains module, is used for:
The reason that the playback equipment plays the packets of audio data is calculated according to the timestamp and the predetermined time period By the deadline;
The actual finish time that the playback equipment plays the packets of audio data is obtained according to the feedback information;
Calculate the time difference between the theoretical deadline and the actual finish time;
Obtain the network delay between the playback equipment;
Calculate the difference between the time difference and the network delay;
Using the difference as the clocking error of the playback equipment;
Command sending module, for sending synch command, the synch command to the playback equipment according to the clocking error It is synchronous to indicate that the playback equipment carries out clock.
3. a kind of terminal characterized by comprising
Touch screen, for receiving the touch operation of user;
It is stored with the memory of executable program code;
The processor coupled with the memory;
The processor calls the executable program code stored in the memory, executes as described in claim 1 Control method for playing back.
4. a kind of storage medium, which is characterized in that computer program is stored in the storage medium, when the computer program When running on computers, so that control method for playing back described in computer perform claim requirement 1.
CN201610882800.XA 2016-10-08 2016-10-08 Control method for playing back, device and terminal Active CN106411447B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610882800.XA CN106411447B (en) 2016-10-08 2016-10-08 Control method for playing back, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610882800.XA CN106411447B (en) 2016-10-08 2016-10-08 Control method for playing back, device and terminal

Publications (2)

Publication Number Publication Date
CN106411447A CN106411447A (en) 2017-02-15
CN106411447B true CN106411447B (en) 2018-12-11

Family

ID=59228467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610882800.XA Active CN106411447B (en) 2016-10-08 2016-10-08 Control method for playing back, device and terminal

Country Status (1)

Country Link
CN (1) CN106411447B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI690878B (en) * 2018-11-02 2020-04-11 緯創資通股份有限公司 Synchronous playback system and synchronous playback method
CN109362099A (en) * 2018-12-05 2019-02-19 南昌黑鲨科技有限公司 Wirelessly communicate delay testing method, device, computer equipment and storage medium
CN112073791A (en) * 2020-08-03 2020-12-11 上海商泰汽车信息系统有限公司 Playing synchronization method and device, storage medium and user side
CN113450794B (en) * 2021-06-25 2023-09-05 北京百度网讯科技有限公司 Navigation broadcasting detection method and device, electronic equipment and medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1960485B (en) * 2006-08-29 2011-12-07 中兴通讯股份有限公司 Method for playing back video and audio synchronistically in mobile media broadcast
CN101271720B (en) * 2008-04-22 2011-06-22 中兴通讯股份有限公司 Synchronization process for mobile phone stream media audio and video
CN101621745A (en) * 2008-07-03 2010-01-06 乐金电子(中国)研究开发中心有限公司 Synchronous play method for mobile phones based on wireless transmission
WO2011092244A1 (en) * 2010-01-27 2011-08-04 Koninklijke Kpn N.V. Method, system and device for synchronization of media streams
CN103338204B (en) * 2013-07-05 2016-12-28 深圳市云动创想科技有限公司 A kind of audio synchronization output method and system
CN105656616B (en) * 2014-12-03 2019-02-05 中国移动通信集团公司 Method, apparatus, transmitting terminal and the receiving end of more data synchronization between devices
CN105721920B (en) * 2014-12-04 2019-04-02 中国移动通信集团公司 A kind of media cooperate with the method, apparatus and terminal of broadcasting in more equipment
CN105992040A (en) * 2015-02-15 2016-10-05 深圳市民展科技开发有限公司 Multichannel audio data transmitting method, audio data synchronization playing method and devices
CN105872660B (en) * 2016-03-30 2018-11-02 北京奇艺世纪科技有限公司 A kind of method and device being played simultaneously

Also Published As

Publication number Publication date
CN106411447A (en) 2017-02-15

Similar Documents

Publication Publication Date Title
CN106411448B (en) Control method for playing back, device and terminal
CN104243671B (en) Volume adjusting method, device and electronic equipment
CN106373600B (en) A kind of audio sync player method, device, system and terminal
CN106452643B (en) Control method for playing back, device, terminal and play system
CN103559731B (en) Method and terminal for displaying lyrics under screen locking state
CN106411447B (en) Control method for playing back, device and terminal
CN104407804B (en) Screenshotss method, apparatus and electronic equipment
CN106448714B (en) A kind of synchronous broadcast method of playback equipment, apparatus and system
KR20150080446A (en) Method, apparatus, equipment and system for controlling turn-on and turn-off of wireless network
CN106453597B (en) The method of adjustment of data synchronizing cycles, apparatus and system
CN106341713B (en) A kind of multimedia synchronous plays method, apparatus, system and terminal
CN106653068B (en) A kind of playback method of audio data, device and terminal
CN106452644B (en) Control method for playing back, device and terminal
CN103458286A (en) Television channel switching method and device
CN105185401A (en) Method and device for synchronizing multi-media file list
CN106254924A (en) The player method of a kind of multi-medium data, system and relevant device
CN106412625B (en) Multimedia synchronous plays method, apparatus, terminal and system
CN106412629B (en) Processing method, device, system and the computer-readable media medium of media data transmission
CN105391870A (en) Timing reminding method and device
CN106454420B (en) A kind of clock synchronizing method and device
CN111081283A (en) Music playing method and device, storage medium and terminal equipment
CN106454421B (en) A kind of clock adjustment, device, terminal and multimedia synchronous play system
CN106411449B (en) Control method for playing back, device and terminal
JP2021525489A (en) Random access resource selection method and terminal device
CN106375823B (en) A kind of clock adjustment, device, terminal and multimedia synchronous play system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

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

Patentee after: OPPO Guangdong Mobile Communications Co., Ltd.

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

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

CP01 Change in the name or title of a patent holder