CN104867513B - A kind of control method for playing back and equipment - Google Patents

A kind of control method for playing back and equipment Download PDF

Info

Publication number
CN104867513B
CN104867513B CN201510188065.8A CN201510188065A CN104867513B CN 104867513 B CN104867513 B CN 104867513B CN 201510188065 A CN201510188065 A CN 201510188065A CN 104867513 B CN104867513 B CN 104867513B
Authority
CN
China
Prior art keywords
slave unit
target slave
broadcasting
instruction
playback
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
CN201510188065.8A
Other languages
Chinese (zh)
Other versions
CN104867513A (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 CN201510188065.8A priority Critical patent/CN104867513B/en
Publication of CN104867513A publication Critical patent/CN104867513A/en
Application granted granted Critical
Publication of CN104867513B publication Critical patent/CN104867513B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a kind of control method for playing back and equipment.Wherein, this method includes:The cache instruction for carrying packets of audio data is sent at least one target slave unit, so that each target slave unit is after the cache instruction is received, the cache instruction is responded, the voice data in the packets of audio data is cached;The cache information that at least one described target slave unit is returned is received, the cache information reaches preset buffer memory threshold value for memory headroom shared by the voice data of prompting caching;The broadcasting control instruction for carrying temporal information is sent at least one described target slave unit, to control at least one described target slave unit according to the temporal information, the broadcasting of the voice data is carried out.The result of broadcast of multiple playback equipments can be improved by implementing the embodiment of the present invention.

Description

A kind of control method for playing back and equipment
Technical field
The present invention relates to Internet technical field, more particularly to a kind of control method for playing back and equipment.
Background technology
With the raising of people's quality of the life, increasing user likes placing multiple playback equipments (such as sound at home Case), this multiple playback equipment constitutes one family music system.Generally, user can select one in this house music system Individual playback equipment is connected with wireless routing device, and this playback equipment receives the control instruction for carrying out self terminal (such as smart mobile phone) Afterwards, control instruction is converted into the control information in internal network, and the control information is sent to other playback equipments, is realized The control of playback equipment in terminal-pair house music system.Found in practice, identical is played when needing multiple playback equipments During song, generally by source device (playback equipment for being responsible for distribution voice data) by internal network by the voice data of song It is sent to slave unit (needing to play the playback equipment of same song).Due to the factor such as internal network congestion and delay, from setting The capacity of the voice data of standby caching is different, can so cause when reproduction time is reached, and the synchronization of song difficult to realize is broadcast Put, or, continuous broadcasting can not be but realized after song synchronization, result of broadcast is poor.
The content of the invention
The embodiments of the invention provide a kind of control method for playing back and equipment, the broadcasting effect of multiple playback equipments can be improved Really.
First aspect of the embodiment of the present invention discloses a kind of control method for playing back, including:
Sent at least one target slave unit and carry the cache instruction of packets of audio data, so that each target is from setting It is standby to respond the cache instruction after the cache instruction is received, the voice data in the packets of audio data is cached;
The cache information that at least one described target slave unit is returned is received, the cache information is used for the sound for pointing out caching Frequency reaches preset buffer memory threshold value according to shared memory headroom;
Sent at least one described target slave unit and carry the broadcasting control instruction of temporal information, with control it is described extremely A few target slave unit carries out the broadcasting of the voice data according to the temporal information.
Second aspect of the embodiment of the present invention discloses a kind of control method for playing back, including:
Receive the cache instruction for carrying packets of audio data that source device is sent;
The cache instruction is responded, the voice data in the packets of audio data is cached;
Whether memory headroom shared by judging the voice data of caching reaches preset buffer memory threshold value;
If so, then sending cache information to the source device, the cache information is used for the voice data institute for pointing out caching Account for memory headroom and reach preset buffer memory threshold value;
The broadcasting control instruction for carrying temporal information that source device is sent is received, and according to the temporal information, is carried out The broadcasting of the voice data.
The third aspect of the embodiment of the present invention discloses a source device, including:
First transmitting element, the cache instruction of packets of audio data is carried for being sent at least one target slave unit, So that each target slave unit is after the cache instruction is received, the cache instruction is responded, by the voice data Voice data caching in bag;
Receiving unit, for receiving the cache information that at least one described target slave unit is returned, the cache information is used Memory headroom shared by voice data in prompting caching reaches preset buffer memory threshold value;
Second transmitting element, is additionally operable to send the broadcasting control for carrying temporal information at least one described target slave unit System instruction, to control at least one described target slave unit according to the temporal information, carries out the broadcasting of the voice data.
Fourth aspect of the embodiment of the present invention discloses a kind of slave unit, including:
First receiving unit, the cache instruction for carrying packets of audio data for receiving source device transmission;
Buffer unit, for responding the cache instruction, the voice data in the packets of audio data is cached;
Judging unit, for judge caching voice data shared by memory headroom whether reach preset buffer memory threshold value;
Transmitting element, preset buffer memory is reached for memory headroom shared by the voice data in judging unit judgement caching During threshold value, cache information is sent to the source device, the cache information is used to point out internal memory shared by the voice data of caching empty Between reach preset buffer memory threshold value;
Second receiving unit, the broadcasting control instruction for carrying temporal information for receiving source device transmission, and according to The temporal information, carries out the broadcasting of the voice data.
In the embodiment of the present invention, the caching that source device carries packets of audio data to the transmission of at least one target slave unit refers to Order, so that each target slave unit is after cache instruction is received, response buffer instruction, by the audio in packets of audio data Data buffer storage, further, after the cache information of at least one target slave unit return is received, source device just can be to At least one target slave unit sends the broadcasting control instruction for carrying temporal information, to control at least one target slave unit to press According to temporal information, the broadcasting of voice data is carried out.By the embodiment of the present invention, when source device receives at least one target from setting It is standby return cache information when, show the voice data of at least one target slave unit caching shared by memory headroom reach it is default Cache threshold, at this time source device sent at least one target slave unit and carry the broadcasting control instruction of temporal information, should At least one target slave unit just can be according to temporal information, and the synchronous continuous broadcasting for carrying out song is multiple so as to improve The result of broadcast of playback equipment.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is a kind of structural representation of system architecture disclosed in the embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet of control method for playing back disclosed in the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of another control method for playing back disclosed in the embodiment of the present invention;
Fig. 4 is the schematic flow sheet of another control method for playing back disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of a source device disclosed in the embodiment of the present invention;
Fig. 6 is the structural representation of another source device disclosed in the embodiment of the present invention;
Fig. 7 is a kind of structural representation of slave unit disclosed in the embodiment of the present invention;
Fig. 8 is the structural representation of another slave unit disclosed in the embodiment of the present invention.
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 is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
The embodiment of the invention discloses a kind of control method for playing back and equipment, the broadcasting effect of multiple playback equipments can be improved Really.It is described in detail individually below.
Fig. 1 is referred to, Fig. 1 is a kind of structural representation of system architecture disclosed in the embodiment of the present invention, as shown in figure 1, The system architecture can include multiple playback equipments, wireless routing device and terminal, wherein, the playback equipment can include but Audio amplifier, MP4, MP3, multimedia equipment and any equipment for possessing playing function etc. are not limited to, wireless routing device can be wrapped Include but be not limited to wireless router and any equipment with wireless coverage function etc., terminal can include smart mobile phone, flat The smart machines such as plate computer, notebook computer, palm PC and mobile internet device (MID).In the system tray shown in Fig. 1 In structure, wirelessly (AD-HOC network form or MESH network form) sets up communication connection between playback equipment, and this is more There is a playback equipment (such as playback equipment 1) to be built with wireless routing device by wireless or wired mode in individual playback equipment Vertical connection, the terminal for being provided with control application is set up after wireless connection with wireless routing device, and terminal can just control broadcasting to set Standby 1, and then control other playback equipments to carry out playback of songs by playback equipment 1.
Based on the system architecture shown in Fig. 1, the embodiment of the invention discloses a kind of control method for playing back.Fig. 2 is referred to, is schemed 2 be a kind of schematic flow sheet of control method for playing back disclosed in the embodiment of the present invention, as shown in Fig. 2 this method can include with Lower step:
S201, sent at least one target slave unit and carry the cache instruction of packets of audio data, so that each mesh Slave unit is marked after cache instruction is received, response buffer instruction caches the voice data in packets of audio data.
In the embodiment of the present invention, user can place multiple playback equipments at home, and this multiple playback equipment can be any Deployment, for example:In same floor, multiple playback equipments are individually positioned in different rooms, such as playback equipment A and broadcasting are set Standby B is placed on parlor;Playback equipment C is placed on bedroom;Playback equipment D is placed on study;In the building of multilayer, broadcast multiple Put equipment and be placed on different floors.This multiple playback equipment may be constructed in one family music system, house music system Playback equipment wirelessly communicated, form an internal network, synchronous same first song played so as to realize It is bent.
Playback equipment in this internal network can synchronously play the Streaming Media music from internet, can also be synchronous The local music on wherein one playback equipment is played, such as:It is stored in the music file inside playback equipment, or connection Music file onto the External memory equipment (such as USB flash disk, mobile hard disk) of playback equipment, or pass through such as AirPlay, bluetooth Or the music that the mode such as Miracast is pushed.In this internal network, each playback equipment can obtain oneself Audio file, after decoding, be packaged into packets of audio data one by one, be sent to other playback equipments in internal network, So as to realizing multiple playback equipments while playing same song, wherein, the playback equipment for being responsible for distributing packets of audio data can be with Referred to as source device, and the playback equipment for receiving the packets of audio data that source device is sent by internal network is properly termed as slave unit, Synchronization, the usual only one of which of source device, and slave unit can have one or more.
In the embodiment of the present invention, user needs to need synchronous sung being provided with to set in the terminal of control application in advance The target slave unit that song is played, wherein, the target slave unit can be one, or multiple.When source device gets sound After frequency file, after the audio file is decoded, packets of audio data one by one is packaged into, and packets of audio data will be carried Cache instruction, which is sent to, needs the synchronous target slave unit for carrying out playback of songs, and each target slave unit refers to receiving caching After order, it is possible to which response buffer is instructed, the voice data in packets of audio data is cached.Wherein, source device here can be with For the playback equipment (such as playback equipment 1) being connected with wireless routing device, or other playback equipments (such as playback equipment 2, Playback equipment 3, playback equipment 4), the embodiment of the present invention is not construed as limiting.When some playback equipment storage in internal network needs When playing the audio file of song, the playback equipment can serve as source device;When all playback equipments in internal network are equal During the audio file for the song to be played that is not stored with, it is generally the case that (broadcasting is set the playback equipment being connected with wireless routing device For 1) as source device, playback equipment 1 passes through external network server and downloads the corresponding audio file of song.
S202, the cache information for receiving the return of at least one target slave unit.
In the embodiment of the present invention, source device carries the caching of packets of audio data being sent at least one target slave unit , it is necessary to receive the cache information of at least one target slave unit return after instruction, the cache information is used to point out caching Memory headroom shared by voice data reaches preset buffer memory threshold value.
In the embodiment of the present invention, in order to ensure the continuity of playback of songs, slave unit usually requires to cache a certain amount of company After continuous voice data (500Kbyte is such as cached, or has received 50 continuous packets), just started to issue audio frequency process mould Block is to restore sound.Therefore, slave unit needs to pre-set a preset buffer memory threshold value (such as 500Kbyte).When target is from setting It is standby to receive the packets of audio data sended over from source device, and the packets of audio data is handled, voice data is obtained, when The voice data of caching reaches after this preset buffer memory threshold values that slave unit is sent out a buffered message source of informing by internal network and set It is standby, and continue buffered audio data.Thus, source device starts to send after the cache instruction for carrying packets of audio data, can successively The voice data for receiving each target slave unit caching reaches the cache information of preset buffer memory threshold values.
S203, sent at least one target slave unit and carry the broadcasting control instruction of temporal information, to control at least One target slave unit carries out the broadcasting of voice data according to temporal information.
In the embodiment of the present invention, the cache information that source device record target slave unit is returned, when receive all targets from After the cache information that equipment is returned, the broadcasting control that source device will carry temporal information to the transmission of all target slave units refers to Order.Here " all target slave units " refer to that source device sends at least one target slave unit of cache instruction, and citing comes Say, it is assumed that source device sends cache instruction to 5 target slave units, then all target slave units are just this 5 target slave units, After source device receives the cache information that this 5 target slave units are sent, source device will be sent out to this 5 target slave units Send the broadcasting control instruction for carrying temporal information.
In the embodiment of the present invention, above-mentioned temporal information can include play time or target duration.Wherein, during the broadcasting Between point or a length of source device is determined according to current internal network transport state during target.
It should be noted that passing through NTP (network time protocol, NTP) or SNTP (simple Network time protocol, SNTP), it is possible to achieve source device and the clock of target slave unit are synchronous.
As an alternative embodiment, when the temporal information include play time when, source device at least one Target slave unit sends the broadcasting control instruction for carrying temporal information, to control at least one target slave unit to believe according to the time Breath, carrying out the specific implementation of the broadcasting of voice data can be:
The broadcasting control instruction for carrying play time is sent at least one target slave unit, to control at least one Target slave unit carries out the broadcasting of voice data when play time is reached.
In this embodiment, the play time is usually some time point after current point in time, it is assumed that when current Between be the morning 8:30:24, the play time that source device is determined according to current internal network transport state is the morning 8:30: 42, then each target slave unit is in the morning 8:30:By the synchronous broadcasting for carrying out voice data when 42.It should be noted that source Equipment also can buffered audio data, therefore, source device can also be in the morning 8:30:42 participate in the synchronous broadcasting of voice data.
As another optional embodiment, when the temporal information includes target duration, source device at least one Target slave unit sends the broadcasting control instruction for carrying temporal information, to control at least one target slave unit to believe according to the time Breath, carrying out the specific implementation of the broadcasting of voice data can be:
The broadcasting control instruction for carrying target duration is sent at least one target slave unit, to control at least one mesh Mark slave unit plays control instruction and starts timing receiving, and when timing duration reaches target duration, carries out voice data Broadcasting.
In this embodiment, target duration can be tens seconds or hundreds of milliseconds, and the embodiment of the present invention is not construed as limiting.Assuming that A length of 30S during the target that source device is determined according to current internal network transport state, then each target slave unit is in reception Start timing to timer is started when playing control instruction, when the timing duration of timer reaches 30S, carry out voice data It is synchronous to play, wherein, the initial value of the timer is 0.
In the method flow described by Fig. 2, source device sends at least one target slave unit and carries voice data The cache instruction of bag, so that each target slave unit is after cache instruction is received, response buffer instruction, by voice data Voice data caching in bag, further, after the cache information of at least one target slave unit return is received, source is set It is standby that the broadcasting control instruction for carrying temporal information can be just sent at least one target slave unit, to control at least one mesh Slave unit is marked according to temporal information, the broadcasting of voice data is carried out.By the embodiment of the present invention, when source device receives at least one During the cache information that individual target slave unit is returned, show that internal memory is empty shared by the voice data of at least one target slave unit caching Between reach preset buffer memory threshold value, at this time source device sends at least one target slave unit and carries the broadcasting control of temporal information System instruction, at least one target slave unit just can be according to temporal information, the synchronous continuous broadcasting for carrying out song, so as to Improve the result of broadcast of multiple playback equipments.
Based on the system architecture shown in Fig. 1, the embodiment of the invention discloses another control method for playing back.Refer to Fig. 3, Fig. 3 is the schematic flow sheet of another control method for playing back disclosed in the embodiment of the present invention.As shown in figure 3, this method can be wrapped Include following steps:
S301, source device receive the playback of songs instruction for carrying at least one target slave unit mark.
In the embodiment of the present invention, user, which can preselect, needs the target slave unit of synchronous progress playback of songs, and obtains Target slave unit is identified, and when user clicks on the playback of songs button in terminal, terminal will be connected to wireless routing device Playback equipment (such as playback equipment 1) send the playback of songs instruction for carrying target slave unit mark, wherein, the target is from setting The standby identity for being designated target slave unit, for unique mark target slave unit, the title or device id of such as equipment.
In the embodiment of the present invention, the source device, to be responsible for the playback equipment of distribution packets of audio data, can be playback equipment 1, or playback equipment 2, playback equipment 3, playback equipment 4 etc., the embodiment of the present invention is not limited, synchronization, source The usual only one of which of equipment, and slave unit can have one or more.
Playback equipment 1 is after playback of songs instruction is received, and whether the playback equipment that will be inquired about in internal network is deposited Contain the audio file of song to be played, when inquire itself be stored with the audio file when, then the playback equipment 1 is known as source Equipment;When inquire some playback equipment (such as playback equipment 2) in other playback equipments be stored with the audio file when, broadcast Put equipment 1 the playback of songs instruction for carrying at least one target slave unit mark is transmitted to after playback equipment 2, broadcasting is set Standby 2 are just properly termed as source device;It is stored with the audio file of song to be played when not inquiring the playback equipment in internal network When, playback equipment 1 downloads audio file from external network server, and now, the playback equipment 1 is known as source device.
As an alternative embodiment, the playback of songs instruction that terminal is sent to playback equipment 1 can include target Slave unit is identified and audio file acquisition approach.Playback equipment 1 is received after playback of songs instruction, according to audio file Acquisition approach determines the storage location of audio file, when it is determined that audio files storage is in some playback equipment of internal network When in (including playback equipment 1), the playback equipment is known as source device;When it is determined that audio files storage is in external network server When middle, playback equipment 1 downloads audio file from external network server, and now, playback equipment 1 is known as source device.
S302, source device response playback of songs instruction, obtain the corresponding audio file of song.
In the embodiment of the present invention, when source device is other playback equipment (such as playback equipment 2, playback equipment 3, playback equipments 4) when, the source device directly obtains the corresponding audio file of song from local;Broadcasting when source device to be connected with routing device During equipment (such as playback equipment 1), the source device can take from the corresponding audio file of local acquisition song or from external network It is engaged in downloading the corresponding audio file of song in device.
S303, source device are decoded to audio file, to obtain voice data, and voice data is packaged into multiple sounds Frequency packet.
In the embodiment of the present invention, source device is after the corresponding audio file of song is got, it is possible at audio Reason module is decoded to audio file, obtains voice data, and voice data is packaged into multiple packets of audio data.
S304, source device identify corresponding target slave unit transmission to each target slave unit and carry packets of audio data Cache instruction.
In the embodiment of the present invention, source device is identified according to each target slave unit, is identified to each target slave unit Corresponding target slave unit sends the cache instruction for carrying packets of audio data so that each target slave unit receive it is slow Deposit after instruction, response buffer instruction caches the voice data in packets of audio data.
S305, source device receive the cache information of at least one target slave unit return.
Whether S306, source device judges receive the cache information that all target slave units are returned in preset time, if It is no, step S307 is performed, if so, performing step S308.
In the embodiment of the present invention, due to the congestion or delay situation of internal network, target slave unit caching preset buffer memory threshold Time needed for the voice data of value is different, therefore, and source device receives the time for the cache information that each target slave unit is sent Also different, in order to be not held off the broadcasting of song, it is necessary to set a preset time, the preset time can be system default Stand-by period, or the stand-by period that user is set, such as 10S or 20S, the embodiment of the present invention are not limited.
When source device judges do not receive the cache information that all target slave units are returned in preset time, step is performed Rapid S307, when source device judges receive the cache information that all target slave units are returned in preset time, performs step S308。
The broadcasting control that S307, source device carry temporal information to the target slave unit transmission of return cache information refers to Order, the target slave unit to control return cache information carries out the broadcasting of voice data according to temporal information.
S308, source device send the broadcasting control instruction for carrying temporal information to all target slave units, to control There is target slave unit according to temporal information, carry out the broadcasting of voice data.
In the method flow described by Fig. 3, source device receive carry at least one target slave unit mark When playback of songs is instructed, response playback of songs instruction obtains the corresponding audio file of song, and audio file is decoded, Voice data is obtained, while voice data is packaged into multiple packets of audio data, further, to each target slave unit mark Know after corresponding target slave unit sends the cache instruction for carrying packets of audio data, receive at least one target slave unit and return The cache information returned, judges whether to receive the cache information of all target slave units returns in preset time, if it is not, then to The target slave unit of return cache information sends the broadcasting control instruction for carrying temporal information.By the embodiment of the present invention, when When internal network transport epidemic situation comparison is busy, source device can be to the target slave unit that cache information is received in preset time Send and play control instruction, the target slave unit to control return cache information carries out broadcasting for voice data according to temporal information Put, delay the broadcasting of song so as to avoid waiting for the long time.
Based on the system architecture shown in Fig. 1, the embodiment of the invention discloses a kind of control method for playing back.Fig. 4 is referred to, is schemed 4 be the schematic flow sheet of another control method for playing back disclosed in the embodiment of the present invention.As shown in figure 4, this method can include Following steps:
S401, the cache instruction for carrying packets of audio data for receiving source device transmission.
In the embodiment of the present invention, each target slave unit can receive source device transmission carry packets of audio data Cache instruction.
S402, response buffer instruction, the voice data in packets of audio data is cached.
In the embodiment of the present invention, each packets of audio data that source device is sent has a sequence number, and slave unit can root The voice data of song is restored according to sequence number, and then the voice data is cached.
Specifically, each target slave unit is receiving the cache instruction for carrying packets of audio data of source device transmission Afterwards, the packets of audio data is directly sent to audio processing modules, after being handled through audio processing modules, obtains voice data, And then sound is restored, wherein, the audio processing modules can include the digital-to-analogue conversion (DAC) of audio, and by mould Intend the circuit that voice data carries out power amplification, with drive the speaker, playback equipment can include one or more loudspeakers.
S403, judge caching voice data shared by memory headroom whether reach preset buffer memory threshold value, if so, perform step S404, step S402 is performed if it is not, returning.
In the embodiment of the present invention, after each target slave unit is cached the voice data in packets of audio data, need Whether memory headroom shared by judging the voice data of caching reaches preset buffer memory threshold value, if so, then showing the audio number of caching According to can continuously play, step S404 is performed, if it is not, showing that target slave unit also needs to certain time continuation buffered audio number According to execution step S402.
S404, to source device send cache information.
In the embodiment of the present invention, cache information reaches preset buffer memory for memory headroom shared by the voice data of prompting caching Threshold value.
S405, the broadcasting control instruction for carrying temporal information for receiving source device transmission, and according to temporal information, carry out The broadcasting of voice data.
In the embodiment of the present invention, each target slave unit receives the broadcasting for carrying temporal information of source device transmission After control instruction, according to temporal information, the same time voice data can be commenced play out.Meanwhile, continue to from source device Voice data, realizes the continuous broadcasting of song.
In the embodiment of the present invention, above-mentioned temporal information can include play time or target duration.Wherein, during the broadcasting Between point or a length of source device is determined according to current internal network transport state during target.
It should be noted that passing through NTP (network time protocol, NTP) or SNTP (simple Network time protocol, SNTP), it is possible to achieve source device and the clock of target slave unit are synchronous.
As an alternative embodiment, when the temporal information includes play time, target slave unit receives source The broadcasting control instruction for carrying temporal information that equipment is sent, and according to temporal information, carry out the tool of the broadcasting of voice data Body implementation can be:
The broadcasting control instruction for carrying play time that source device is sent is received, and when play time is reached, Carry out the broadcasting of voice data.
As another optional embodiment, when the temporal information includes target duration, target slave unit receives source The broadcasting control instruction for carrying temporal information that equipment is sent, and according to temporal information, the broadcasting for carrying out voice data can be with Comprise the following steps:
11) the broadcasting control instruction for carrying target duration that source device is sent is received;
12) start timer and start timing;
13) when the timing duration of timer reaches target duration, the broadcasting of voice data is carried out.
In this embodiment, target slave unit is after broadcasting control instruction is received, it is possible to starts timer and starts Timing, and when the timing duration of timer reaches target duration, carry out the broadcasting of voice data.
In the method flow described by Fig. 4, what target slave unit reception source device was sent carries packets of audio data Cache instruction, response buffer instruction, the voice data in packets of audio data is cached, further, judges the audio number of caching Preset buffer memory threshold value whether is reached according to shared memory headroom, if so, then sending cache information to source device, source device is received and sends The broadcasting control instruction for carrying temporal information, and according to temporal information, carry out the broadcasting of voice data.By of the invention real Example is applied, voice data is cached to preset buffer memory threshold value by each target slave unit, and after sending cache information to source device, The broadcasting control instruction for carrying temporal information that source device is sent is received, and according to temporal information, carries out broadcasting for voice data Put, so as to ensure that multiple target slave units synchronously carry out the continuous broadcasting of song, improve the broadcasting effect of multiple playback equipments Really, while improving Consumer's Experience.
It is apparatus of the present invention embodiment below, apparatus of the present invention embodiment is used to perform the inventive method embodiment two to four The method of realization, for convenience of description, illustrate only the part related to the embodiment of the present invention, particular technique details is not disclosed , it refer to the embodiment of the present invention two, embodiment three and example IV.
Fig. 5 is referred to, Fig. 5 is the structural representation of a source device disclosed in the embodiment of the present invention, as shown in figure 5, should Source device 500 can include:First transmitting element 501, the transmitting element 503 of receiving unit 502 and second, wherein:
First transmitting element 501, the caching that packets of audio data is carried for being sent at least one target slave unit refers to Order, so that each target slave unit is after cache instruction is received, response buffer instruction, by the audio in packets of audio data Data buffer storage.
In the embodiment of the present invention, user can place multiple playback equipments at home, and this multiple playback equipment can be any Deployment, for example:In same floor, multiple playback equipments are individually positioned in different rooms, such as playback equipment A and broadcasting are set Standby B is placed on parlor;Playback equipment C is placed on bedroom;Playback equipment D is placed on study;In the building of multilayer, broadcast multiple Put equipment and be placed on different floors.This multiple playback equipment may be constructed one family wireless music system, family wireless system Playback equipment in system is wirelessly communicated, and forms an internal network, so as to realize that synchronous broadcasting is same Song.
Playback equipment in this internal network can synchronously play the Streaming Media music from internet, can also be synchronous The local music on wherein one playback equipment is played, such as:It is stored in the music file inside playback equipment, or connection Music file onto the External memory equipment (such as USB flash disk, mobile hard disk) of playback equipment, or pass through such as AirPlay, bluetooth Or the music that the mode such as Miracast is pushed.In this internal network, each playback equipment can be by oneself from mutual The Streaming Media music that networking is obtained, or the audio file read from local memory device, after decoding, are packaged into one by one Packets of audio data, is sent to other playback equipments in internal network, so as to realize multiple playback equipments while playing same head Song.
In the embodiment of the present invention, user needs to need synchronous sung being provided with to set in the terminal of control application in advance The target slave unit that song is played, wherein, the target slave unit can be one, or multiple.Playback equipment is being got After packets of audio data, the cache instruction for carrying packets of audio data can be just sent to by the first transmitting element 501 needs synchronization The target slave unit of playback of songs is carried out, each target slave unit is after cache instruction is received, it is possible to response buffer Instruction, the voice data in packets of audio data is cached.
Receiving unit 502, the cache information for receiving the return of at least one target slave unit, cache information is used to point out Memory headroom shared by the voice data of caching reaches preset buffer memory threshold value.
In the embodiment of the present invention, the first transmitting element 501 is carrying audio number to the transmission of at least one target slave unit After the cache instruction of bag, receiving unit 502 can receive the cache information of at least one target slave unit return, and this delays Deposit information be used for point out cache voice data shared by memory headroom reach preset buffer memory threshold value.
In the embodiment of the present invention, in order to ensure the continuity of playback of songs, slave unit usually requires to cache a certain amount of company After continuous voice data (500Kbyte is such as cached, or has received 50 continuous packets), just started to issue audio frequency process mould Block is to restore sound.Therefore, slave unit needs to pre-set a preset buffer memory threshold value (such as 500Kbyte).When target is from setting It is standby to receive the packets of audio data sended over from source device, and the packets of audio data is handled, voice data is obtained, when The voice data of caching reaches after this preset buffer memory threshold values that slave unit is sent out a buffered message source of informing by internal network and set It is standby, and continue buffered audio data.Thus, the first transmitting element 501 starts to send the cache instruction for carrying packets of audio data Afterwards, receiving unit 502 can receive the voice data of each target slave unit caching successively and reach the caching of preset buffer memory threshold values Information.
Second transmitting element 503, the broadcasting that temporal information is carried for being sent at least one target slave unit is controlled Instruction, to control at least one target slave unit according to temporal information, carries out the broadcasting of voice data.
In the embodiment of the present invention, after receiving unit 502 receives the cache information that all target slave units are returned, second Transmitting element 503 will send the broadcasting control instruction for carrying temporal information to all target slave units.Here " all Target slave unit " refers to that the first transmitting element 501 sends at least one target slave unit of cache instruction, for example, assuming that First transmitting element 501 sends cache instructions to 5 target slave units, then all target slave units are just this 5 targets from setting Standby, after receiving unit 502 receives the cache information that this 5 target slave units are sent, the second transmitting element 503 will be to This 5 target slave units send the broadcasting control instruction for carrying temporal information.
In the embodiment of the present invention, above-mentioned temporal information can include play time or target duration.Wherein, during the broadcasting Between point or a length of source device is determined according to current internal network transport state during target.
It should be noted that passing through NTP (network time protocol, NTP) or SNTP (simple Network time protocol, SNTP), it is possible to achieve source device and the clock of target slave unit are synchronous.
As an alternative embodiment, when the temporal information includes play time, above-mentioned second transmitting element 503 carry the broadcasting control instruction of the play time specifically for being sent at least one described target slave unit, with At least one described target slave unit of control carries out the broadcasting of the voice data when the play time is reached.
In this embodiment, the play time is usually some time point after current point in time, it is assumed that when current Between be the morning 8:30:24, the play time that source device is determined according to current internal network transport state is the morning 8:30: 42, then at least one target slave unit is in the morning 8:30:By the synchronous broadcasting for carrying out voice data when 42.Need explanation Be, source device also can buffered audio data, therefore, source device can also be in the morning 8:30:The synchronization of 42 participation voice datas is broadcast Put.
It is used as another optional embodiment, when the temporal information includes target duration, above-mentioned second transmitting element 503 carry the broadcasting control instruction of the target duration specifically for being sent at least one described target slave unit, to control At least one described target slave unit of system starts timing receiving the broadcasting control instruction, and reaches in timing duration described During target duration, the broadcasting of the voice data is carried out.
In this embodiment, target duration can be tens seconds or hundreds of milliseconds, and the embodiment of the present invention is not construed as limiting.Assuming that A length of 30S during the target that source device is determined according to current internal network transport state, then each target slave unit is in reception Start timing to timer is started when playing control instruction, when the timing duration of timer reaches 30S, carry out voice data It is synchronous to play, wherein, the initial value of the timer is 0.
Fig. 6 is referred to, Fig. 6 is the structural representation of another source device disclosed in the embodiment of the present invention;Wherein, Fig. 6 is Further optimize what is obtained on the basis of the source device shown in Fig. 5, compared with the source device shown in Fig. 5, the source shown in Fig. 6 is set For in addition to all units including source device shown in Fig. 5, it can also include:Acquiring unit 504 and decoding unit 505, wherein:
Above-mentioned receiving unit 502, is additionally operable to carry to the transmission of at least one target slave unit in the first transmitting element 501 Before the cache instruction of packets of audio data, the playback of songs instruction for carrying at least one target slave unit mark is received.
In the embodiment of the present invention, user, which can preselect, needs the target slave unit of synchronous progress playback of songs, and obtains Target slave unit is identified, and when user clicks on the playback of songs button in terminal, terminal will be connected to wireless routing device Playback equipment send carry target slave unit mark playback of songs instruction, wherein, the target slave unit is designated target The identity of slave unit, for unique mark target slave unit, the title or device id of such as equipment.
Acquiring unit 504, for responding the playback of songs instruction, obtains the corresponding audio file of song.
In the embodiment of the present invention, acquiring unit 504 can obtain the corresponding audio file of song or from outside from local The corresponding audio file of song is downloaded in the webserver.
Decoding unit 505, for being decoded to the audio file, to obtain voice data, and by the audio number According to being packaged into multiple packets of audio data.
Above-mentioned first transmitting element 501, sends out specifically for identifying corresponding target slave unit to each target slave unit Send the cache instruction for carrying packets of audio data.
As an alternative embodiment, the source device 500 shown in Fig. 6 can also include:
Judging unit 506, for receiving the caching that at least one described target slave unit is returned in the receiving unit 502 After information, and second transmitting element 503 sends at least one described target slave unit and carries temporal information Play before control instruction, judge the cache information that all target slave units are returned whether is received in preset time.
Above-mentioned second transmitting element 503, it is all specifically for judging not receive in preset time in judging unit 506 During the cache information that target slave unit is returned, sent to the target slave unit for returning to the cache information and carry temporal information Control instruction is played, to control the target slave unit for returning to the cache information according to the temporal information, the audio is carried out The broadcasting of data.
In the embodiment of the present invention, due to the congestion or delay situation of internal network, target slave unit caching preset buffer memory threshold Time needed for the voice data of value is different, therefore, and receiving unit 502 receives the cache information that each target slave unit is sent Time is also different, in order to be not held off the broadcasting of song, it is necessary to set a preset time, and the preset time can be silent for system The stand-by period recognized, or the stand-by period that user is set, such as 10S or 20S, the embodiment of the present invention are not limited.When sentencing When disconnected unit 506 judges not receive the cache information of all target slave units returns in preset time, send single by second Member 503 sends the broadcasting control instruction for carrying temporal information to the target slave unit for returning to the cache information, to control to return The target slave unit of the cache information is returned according to the temporal information, the broadcasting of the voice data is carried out.
In the source device shown in Fig. 5 and Fig. 6, the first transmitting element 501 sends at least one target slave unit and taken Cache instruction with packets of audio data, so that each target slave unit is after cache instruction is received, response buffer refers to Order, the voice data in packets of audio data is cached, further, and at least one target is received from setting in receiving unit 502 After the standby cache information returned, the second transmitting element 503 can just send at least one target slave unit and carry the time The broadcasting control instruction of information, to control at least one target slave unit according to temporal information, carries out the broadcasting of voice data.It is logical Cross the embodiment of the present invention, when source device receive at least one target slave unit return cache information when, show this at least one Memory headroom shared by the voice data of individual target slave unit caching reaches preset buffer memory threshold value, at this time source device at least one Target slave unit sends the broadcasting control instruction for carrying temporal information, and at least one target slave unit just can be according to the time Information, the synchronous continuous broadcasting for carrying out song, so as to improve the result of broadcast of multiple playback equipments.
Fig. 7 is referred to, Fig. 7 is a kind of structural representation of slave unit disclosed in the embodiment of the present invention.As shown in fig. 7, should Slave unit 700 can include:First receiving unit 701, buffer unit 702, judging unit 703, transmitting element 704 and second Receiving unit 705, wherein:
First receiving unit 701, the cache instruction for carrying packets of audio data for receiving source device transmission.
Buffer unit 702, for responding the cache instruction, the voice data in the packets of audio data is cached.
In the embodiment of the present invention, each packets of audio data that the first receiving unit 701 is received has a sequence number, delays Memory cell 702 can restore the voice data of song according to sequence number, and then the voice data is cached.
Specifically, the first receiving unit 701 is receiving the cache instruction for carrying packets of audio data of source device transmission Afterwards, the packets of audio data is directly sent to audio processing modules, after being handled through audio processing modules, obtains voice data, Buffer unit 702 can just cache the voice data, and then restore sound, wherein, the audio processing modules can With the digital-to-analogue conversion (DAC) including audio, and by the circuit of analog audio data progress power amplification, raised one's voice with driving Device, playback equipment can include one or more loudspeakers.
Judging unit 703, for judge caching voice data shared by memory headroom whether reach preset buffer memory threshold value.
Transmitting element 704, reaches default for memory headroom shared by the voice data in judging unit judgement caching During cache threshold, cache information is sent to the source device, the cache information is used to point out in shared by the voice data of caching Deposit space and reach preset buffer memory threshold value.
Second receiving unit 705, carries the broadcasting control instruction of temporal information for receive source device transmission, and presses According to the temporal information, the broadcasting of the voice data is carried out.
In the embodiment of the present invention, the second receiving unit 705 receives the broadcasting for carrying temporal information of source device transmission After control instruction, according to temporal information, the same time voice data can be commenced play out.Meanwhile, continue to from source device Voice data, realizes the continuous broadcasting of song.
In the embodiment of the present invention, above-mentioned temporal information can include play time or target duration.Wherein, during the broadcasting Between point or a length of source device is determined according to current internal network transport state during target.
It should be noted that passing through NTP (network time protocol, NTP) or SNTP (simple Network time protocol, SNTP), it is possible to achieve source device and the clock of target slave unit are synchronous.
As an alternative embodiment, when the temporal information includes play time, the second receiving unit 705 has Body is used for the broadcasting control instruction for carrying the play time for receiving source device transmission, and is arrived in the play time Up to when, carry out the broadcasting of the voice data.
Fig. 8 is referred to, Fig. 8 is the structural representation of another slave unit disclosed in the embodiment of the present invention.Wherein, Fig. 8 institutes Further optimization is obtained the slave unit shown on the basis of slave unit shown in Fig. 7, compared with the slave unit shown in Fig. 7, Fig. 8 Shown slave unit is in addition to all units including slave unit shown in Fig. 7, and the second receiving unit 705 shown in Fig. 8 can be wrapped Include:
Receiving subelement 7051, the broadcasting control instruction for carrying the target duration for receiving source device transmission;
Promoter unit 7052, timing is started for starting timer;
Subelement 7053 is played, it is described for when the timing duration of the timer reaches the target duration, carrying out The broadcasting of voice data.
In this embodiment, receiving subelement 7051 is after broadcasting control instruction is received, and promoter unit 7052 is just Timer can be started and start timing, subelement 7053 is played when the timing duration of timer reaches target duration, it is possible to Carry out the broadcasting of voice data.
In the slave unit shown in Fig. 7 and Fig. 8, what the first receiving unit 701 reception source device was sent carries audio The cache instruction of packet, the response buffer of buffer unit 702 instruction, the voice data in packets of audio data is cached, further Ground, judging unit 703 judge caching voice data shared by memory headroom whether reach preset buffer memory threshold value, if so, then sending Unit 704 sends cache information to source device, and what the second receiving unit 705 reception source device was sent carries broadcasting for temporal information Control instruction is put, and according to temporal information, carries out the broadcasting of voice data.By the embodiment of the present invention, each target is from setting Standby that voice data is cached into preset buffer memory threshold value, and after sending cache information to source device, receive that source device sends takes Broadcasting control instruction with temporal information, and according to temporal information, the broadcasting of voice data is carried out, it is multiple so as to ensure Target slave unit synchronously carries out the continuous broadcasting of song, improves the result of broadcast of multiple playback equipments, while improving Consumer's Experience.
It should be noted that for each foregoing embodiment of the method, in order to be briefly described, therefore it is all expressed as to one it is The combination of actions of row, but those skilled in the art should know, the application is not limited by described sequence of movement, because For according to the application, certain some step can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, involved action and unit not necessarily this Shen Please be necessary.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and is not described in some embodiment Part, may refer to the associated description of other embodiment.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Above disclosure is only preferred embodiment of present invention, can not limit the right model of the present invention with this certainly Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.

Claims (16)

1. a kind of control method for playing back, it is characterised in that including:
After the first playback equipment is receiving playback of songs instruction, broadcasting in the first playback equipment inquiry internal network Put equipment whether to be stored with the audio file of song to be played, when the audio text for inquiring the song to be played that itself is stored with During part, then first playback equipment is source device;When some playback equipment inquired in other playback equipments is stored with During the audio file, first playback equipment will carry the playback of songs instruction and be transmitted to other described playback equipments In some playback equipment, and some playback equipment in other described playback equipments is source device;When not inquiring Playback equipment in internal network be stored with the song to be played audio file when, first playback equipment is from extranets Network server downloads the audio file of the song to be played, and now first playback equipment is source device;
The source device receives the playback of songs instruction for carrying at least one target slave unit mark, and wherein, the source Equipment is the responsible playback equipment for distributing packets of audio data;
Sent at least one described target slave unit and carry the cache instruction of packets of audio data, so that each target is from setting It is standby to respond the cache instruction after the cache instruction is received, the voice data in the packets of audio data is cached;
The cache information that at least one described target slave unit is returned is received, the cache information is used for the audio number for pointing out caching Preset buffer memory threshold value is reached according to shared memory headroom;
The broadcasting control instruction for carrying temporal information is sent at least one described target slave unit, to control described at least one Individual target slave unit carries out the broadcasting of the voice data according to the temporal information;Or,
When the internal network transport state is busy, sent to the target slave unit that cache information is received in preset time The broadcasting control instruction of temporal information is carried, to control the target slave unit of return cache information according to the temporal information, Carry out the broadcasting of the voice data;
The temporal information includes play time or target duration, and play time or the target duration is according to current What internal network transport state was determined.
2. according to the method described in claim 1, it is characterised in that the temporal information includes play time, described to institute State at least one target slave unit and send and carry the broadcasting control instruction of temporal information, with control at least one described target from Equipment carries out the broadcasting of the voice data according to the temporal information, including:
The broadcasting control instruction for carrying the play time is sent at least one described target slave unit, it is described to control At least one target slave unit carries out the broadcasting of the voice data when the play time is reached.
3. according to the method described in claim 1, it is characterised in that the temporal information includes target duration, described to described At least one target slave unit, which is sent, carries the broadcasting control instruction of temporal information, to control at least one described target from setting It is standby to carry out the broadcasting of the voice data according to the temporal information, including:
Sent at least one described target slave unit and carry the broadcasting control instruction of the target duration, with control it is described extremely A few target slave unit starts timing receiving the broadcasting control instruction, and reaches the target duration in timing duration When, carry out the broadcasting of the voice data.
4. according to the method described in claim 1, it is characterised in that described sent at least one target slave unit carries sound Before the cache instruction of frequency packet, methods described also includes:
Receive the playback of songs instruction for carrying at least one target slave unit mark;
The playback of songs instruction is responded, the corresponding audio file of song is obtained;
The audio file is decoded, to obtain voice data, and the voice data multiple voice datas are packaged into Bag;
The cache instruction that packets of audio data is carried to the transmission of at least one target slave unit, including:
The cache instruction that corresponding target slave unit transmission carries packets of audio data is identified to each target slave unit.
5. method according to claim 4, it is characterised in that what at least one target slave unit described in the reception was returned After cache information, and the broadcasting control instruction that temporal information is carried to the transmission of at least one described target slave unit Before, methods described also includes:
Judge the cache information that all target slave units are returned whether is received in preset time;
Described sent at least one described target slave unit carries the broadcasting control instruction of temporal information, with control it is described extremely A few target slave unit carries out the broadcasting of the voice data according to the temporal information, including:
When judging not receive the cache information of all target slave units returns in preset time, believe to the caching is returned The target slave unit of breath sends the broadcasting control instruction for carrying temporal information, with control to return the target of the cache information from Equipment carries out the broadcasting of the voice data according to the temporal information.
6. a kind of control method for playing back, it is characterised in that including:
Receive the cache instruction for carrying packets of audio data that source device is sent;Wherein, when the first playback equipment is receiving song After bent play instruction, whether the playback equipment in first playback equipment inquiry internal network is stored with song to be played Audio file, when inquiring the audio file for the song to be played that itself is stored with, then first playback equipment is institute State source device;When inquire some playback equipment in other playback equipments be stored with the audio file when, described first Playback equipment will carry some playback equipment that the playback of songs instruction is transmitted in other described playback equipments, and Some playback equipment in other described playback equipments is the source device;When not inquiring the playback equipment in internal network During the audio file for the song to be played that is stored with, wait to broadcast described in first playback equipment from external network server download Sing song audio file, and now first playback equipment be the source device;And the cache instruction is the source Equipment is sent after receiving the playback of songs instruction for carrying at least one target slave unit mark, and wherein, it is described Source device is the responsible playback equipment for distributing packets of audio data;
The cache instruction is responded, the voice data in the packets of audio data is cached;
Whether memory headroom shared by judging the voice data of caching reaches preset buffer memory threshold value;
If so, then sending cache information to the source device, the cache information is used to point out in shared by the voice data of caching Deposit space and reach preset buffer memory threshold value;
The broadcasting control instruction for carrying temporal information that source device is sent is received, and according to the temporal information, is carried out described The broadcasting of voice data;When the internal network transport state is busy, the broadcasting control instruction be the source device to The target slave unit transmission of cache information is received in preset time;When the temporal information includes play time or target Long, play time or the target duration is determined according to current internal network transport state.
7. method according to claim 6, it is characterised in that the temporal information includes play time, the reception The broadcasting control instruction for carrying temporal information that source device is sent, and according to the temporal information, carry out the voice data Broadcasting, including:
The broadcasting control instruction for carrying the play time that source device is sent is received, and is reached in the play time When, carry out the broadcasting of the voice data.
8. method according to claim 6, it is characterised in that the temporal information includes target duration, the reception source The broadcasting control instruction for carrying temporal information that equipment is sent, and according to the temporal information, carry out the voice data Play, including:
Receive the broadcasting control instruction for carrying the target duration that source device is sent;
Start timer and start timing, and when the timing duration of the timer reaches the target duration, carry out the sound The broadcasting of frequency evidence.
9. a source device, it is characterised in that after the first playback equipment is receiving playback of songs instruction, described first broadcasts Put the playback equipment in equipment query internal network whether to be stored with the audio file of song to be played, when inquiring itself storage When having the audio file of the song to be played, then first playback equipment is source device;When inquiring other playback equipments In some playback equipment be stored with the audio file when, first playback equipment will carry the playback of songs and refer to Order is transmitted to some playback equipment in other described playback equipments, and some broadcasting in other described playback equipments Equipment is source device;When do not inquire the playback equipment in internal network be stored with the song to be played audio file when, First playback equipment downloads the audio file of the song to be played from external network server, and now described first Playback equipment is source device, and wherein, the source device is the responsible playback equipment for distributing packets of audio data;Including:
First transmitting element, the cache instruction of packets of audio data is carried for being sent at least one target slave unit, so that Each target slave unit responds the cache instruction, by the packets of audio data after the cache instruction is received Voice data caching;The cache instruction is that the source device receives the song for carrying at least one target slave unit mark Sent after bent play instruction;
Receiving unit, for receiving the cache information that at least one described target slave unit is returned, the cache information is used to carry Show that memory headroom shared by the voice data of caching reaches preset buffer memory threshold value;
Second transmitting element, the broadcasting control that temporal information is carried for being sent at least one described target slave unit refers to Order, to control at least one described target slave unit according to the temporal information, carries out the broadcasting of the voice data;Or,
Second transmitting element, for when the internal network transport state is busy, believing to caching is received in preset time The target slave unit of breath sends the broadcasting control instruction for carrying temporal information, to control the target slave unit of return cache information According to the temporal information, the broadcasting of the voice data is carried out;
The temporal information includes play time or target duration, and play time or the target duration is according to current What internal network transport state was determined.
10. equipment according to claim 9, it is characterised in that the temporal information includes play time, described second The broadcasting control that transmitting element carries the play time specifically for being sent at least one described target slave unit refers to Order, to control at least one described target slave unit when the play time is reached, carries out the broadcasting of the voice data.
11. equipment according to claim 9, it is characterised in that the temporal information includes target duration, second hair Unit is sent to carry the broadcasting control instruction of the target duration specifically for being sent at least one described target slave unit, with At least one described target slave unit of control starts timing receiving the broadcasting control instruction, and reaches institute in timing duration When stating target duration, the broadcasting of the voice data is carried out.
12. equipment according to claim 9, it is characterised in that
The receiving unit, is additionally operable to carry audio number to the transmission of at least one target slave unit in first transmitting element Before the cache instruction of bag, the playback of songs instruction for carrying at least one target slave unit mark is received;
The source device also includes:
Acquiring unit, for responding the playback of songs instruction, obtains the corresponding audio file of song;
Decoding unit, for being decoded to the audio file, to obtain voice data, and the voice data is packaged into Multiple packets of audio data;
First transmitting element, is carried specifically for identifying corresponding target slave unit transmission to each target slave unit The cache instruction of packets of audio data.
13. equipment according to claim 12, it is characterised in that the source device also includes:
Judging unit, after receiving the cache information that at least one described target slave unit is returned in the receiving unit, And second transmitting element sends the broadcasting control instruction for carrying temporal information at least one described target slave unit Before, judge the cache information that all target slave units are returned whether is received in preset time;
Second transmitting element, specifically for the judging unit judge not receive in preset time all targets from During the cache information that equipment is returned, the broadcasting control for carrying temporal information is sent to the target slave unit for returning to the cache information System instruction, to control the target slave unit for returning to the cache information according to the temporal information, carries out the voice data Play.
14. a kind of slave unit, it is characterised in that including:
First receiving unit, the cache instruction for carrying packets of audio data for receiving source device transmission;Wherein, when first broadcasts Equipment is put after playback of songs instruction is received, whether the playback equipment in the first playback equipment inquiry internal network is deposited The audio file of song to be played is contained, it is when inquiring the audio file for the song to be played that itself is stored with, then described First playback equipment is the source device;It is stored with the audio when inquiring some playback equipment in other playback equipments During file, first playback equipment will carry playback of songs instruction be transmitted to it is a certain in other described playback equipments Some playback equipment in individual playback equipment, and other described playback equipments is the source device;When not inquiring inside Playback equipment in network be stored with the song to be played audio file when, first playback equipment from external network take The audio file for the device download song to be played of being engaged in, and now first playback equipment is the source device;And it is described Cache instruction is sent after the source device receives the playback of songs instruction for carrying at least one target slave unit mark , and wherein, the source device is the responsible playback equipment for distributing packets of audio data;
Buffer unit, for responding the cache instruction, the voice data in the packets of audio data is cached;
Judging unit, for judge caching voice data shared by memory headroom whether reach preset buffer memory threshold value;
Transmitting element, preset buffer memory threshold value is reached for memory headroom shared by the voice data in judging unit judgement caching When, cache information is sent to the source device, the cache information reaches for memory headroom shared by the voice data of prompting caching To preset buffer memory threshold value;
Second receiving unit, the broadcasting control instruction for carrying temporal information for receiving source device transmission, and according to described Temporal information, carries out the broadcasting of the voice data;When the internal network transport state is busy, the broadcasting control instruction It is that the source device is sent to the target slave unit that cache information is received in preset time;The temporal information includes broadcasting Time point or target duration are put, play time or the target duration is according to current internal network transport state determination 's.
15. equipment according to claim 14, it is characterised in that the temporal information includes play time, described the The broadcasting control instruction for carrying the play time that two receiving units are sent specifically for reception source device, and described When play time is reached, the broadcasting of the voice data is carried out.
16. equipment according to claim 14, it is characterised in that the temporal information includes target duration, described second Receiving unit includes:
Receiving subelement, the broadcasting control instruction for carrying the target duration for receiving source device transmission;
Promoter unit, timing is started for starting timer;
Subelement is played, for when the timing duration of the timer reaches the target duration, carrying out the voice data Broadcasting.
CN201510188065.8A 2015-04-20 2015-04-20 A kind of control method for playing back and equipment Active CN104867513B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510188065.8A CN104867513B (en) 2015-04-20 2015-04-20 A kind of control method for playing back and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510188065.8A CN104867513B (en) 2015-04-20 2015-04-20 A kind of control method for playing back and equipment

Publications (2)

Publication Number Publication Date
CN104867513A CN104867513A (en) 2015-08-26
CN104867513B true CN104867513B (en) 2017-09-29

Family

ID=53913300

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510188065.8A Active CN104867513B (en) 2015-04-20 2015-04-20 A kind of control method for playing back and equipment

Country Status (1)

Country Link
CN (1) CN104867513B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106653068B (en) * 2016-10-08 2019-06-14 Oppo广东移动通信有限公司 A kind of playback method of audio data, device and terminal
CN106445458B (en) * 2016-10-08 2020-01-14 Oppo广东移动通信有限公司 Playing control method, device and terminal
CN110739009A (en) * 2019-09-20 2020-01-31 深圳震有科技股份有限公司 Method and device for playing announcement sound by media resource board, computer equipment and storage medium
CN113691673B (en) * 2020-05-13 2023-05-16 北京小米移动软件有限公司 Audio play control method, device and storage medium
CN111935595A (en) * 2020-08-03 2020-11-13 诠航科技有限公司 Audio output control method and device and distributed sound control device
CN112929114B (en) * 2021-01-26 2022-12-13 广州市保伦电子有限公司 Low-delay audio distribution method, module and device based on network card
CN113784486B (en) * 2021-08-11 2024-04-12 深圳市智岩科技有限公司 Equipment control method, device, electronic equipment and storage medium
CN114173426B (en) * 2021-11-30 2023-09-29 广州番禺巨大汽车音响设备有限公司 Wireless sound box playing control method, device and system based on wireless audio transmission
CN115174737B (en) * 2022-06-30 2023-10-13 展讯通信(天津)有限公司 Audio sharing method and device

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100488595B1 (en) * 2004-07-29 2005-05-11 엔에이치엔(주) Method and system for providing joint viewing service of moving picture
US7177312B2 (en) * 2001-07-25 2007-02-13 Vectormax Corporation Server arbitrated reliable multicast system and a process for accessing the same
JP2011010183A (en) * 2009-06-29 2011-01-13 Yamaha Corp Music reproduction system, mobile terminal device and music reproduction program
CN102132575A (en) * 2008-08-29 2011-07-20 索尼计算机娱乐公司 Information processing system and information processing device
CN102387171A (en) * 2010-08-25 2012-03-21 株式会社Ntt都科摩 Multi-port collaborative play method of music, multi-port collaborative music play system and user terminals
CN102456347A (en) * 2010-11-01 2012-05-16 喜讯无限(北京)科技有限责任公司 Realization system and method for split-type multi-channel synchronous play for multimedia file based on wireless transmission technology
CN102546608A (en) * 2011-12-26 2012-07-04 上海聚力传媒技术有限公司 Method, device, equipment and system for synchronously playing media information
CN103401848A (en) * 2013-07-18 2013-11-20 哈尔滨融智达网络科技有限公司 Communication method for various types of equipment
CN103686429A (en) * 2013-12-23 2014-03-26 广州市花都区中山大学国光电子与通信研究院 Audio system and method for realizing shared playing of cloud media
CN103796061A (en) * 2014-03-03 2014-05-14 上海美琦浦悦通讯科技有限公司 System and method for achieving synchronized broadcast and control of media files in multiple intelligent terminals
CN103839558A (en) * 2012-11-23 2014-06-04 三星电子(中国)研发中心 Method and server for synchronous playing and player
CN104052562A (en) * 2013-03-13 2014-09-17 三星电子株式会社 Method and apparatus for allowing playback devices to perform synchronized playback of streaming content
US8930577B2 (en) * 2011-09-13 2015-01-06 Microsoft Corporation Synchronizing streaming video between viewers over a network
WO2015038186A1 (en) * 2013-09-16 2015-03-19 Thomson Licensing Auxiliary content synchronization system and method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100754210B1 (en) * 2006-03-08 2007-09-03 삼성전자주식회사 Method and apparatus for reproducing multi channel sound using cable/wireless device
US8997169B2 (en) * 2012-03-23 2015-03-31 Sony Corporation System, method, and infrastructure for synchronized streaming of content
CN104244110A (en) * 2013-06-18 2014-12-24 好看科技(深圳)有限公司 Play control method and module, terminal and system

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7177312B2 (en) * 2001-07-25 2007-02-13 Vectormax Corporation Server arbitrated reliable multicast system and a process for accessing the same
KR100488595B1 (en) * 2004-07-29 2005-05-11 엔에이치엔(주) Method and system for providing joint viewing service of moving picture
CN102132575A (en) * 2008-08-29 2011-07-20 索尼计算机娱乐公司 Information processing system and information processing device
JP2011010183A (en) * 2009-06-29 2011-01-13 Yamaha Corp Music reproduction system, mobile terminal device and music reproduction program
CN102387171A (en) * 2010-08-25 2012-03-21 株式会社Ntt都科摩 Multi-port collaborative play method of music, multi-port collaborative music play system and user terminals
CN102456347A (en) * 2010-11-01 2012-05-16 喜讯无限(北京)科技有限责任公司 Realization system and method for split-type multi-channel synchronous play for multimedia file based on wireless transmission technology
US8930577B2 (en) * 2011-09-13 2015-01-06 Microsoft Corporation Synchronizing streaming video between viewers over a network
CN102546608A (en) * 2011-12-26 2012-07-04 上海聚力传媒技术有限公司 Method, device, equipment and system for synchronously playing media information
CN103839558A (en) * 2012-11-23 2014-06-04 三星电子(中国)研发中心 Method and server for synchronous playing and player
CN104052562A (en) * 2013-03-13 2014-09-17 三星电子株式会社 Method and apparatus for allowing playback devices to perform synchronized playback of streaming content
CN103401848A (en) * 2013-07-18 2013-11-20 哈尔滨融智达网络科技有限公司 Communication method for various types of equipment
WO2015038186A1 (en) * 2013-09-16 2015-03-19 Thomson Licensing Auxiliary content synchronization system and method
CN103686429A (en) * 2013-12-23 2014-03-26 广州市花都区中山大学国光电子与通信研究院 Audio system and method for realizing shared playing of cloud media
CN103796061A (en) * 2014-03-03 2014-05-14 上海美琦浦悦通讯科技有限公司 System and method for achieving synchronized broadcast and control of media files in multiple intelligent terminals

Also Published As

Publication number Publication date
CN104867513A (en) 2015-08-26

Similar Documents

Publication Publication Date Title
CN104867513B (en) A kind of control method for playing back and equipment
CN104299632B (en) Audio synchronization method, device and corresponding system
JP6290394B2 (en) System and method for playing / pausing content
CN102456347B (en) Realization system and method for split-type multi-channel synchronous play for multimedia file based on wireless transmission technology
KR101655456B1 (en) Ad-hoc adaptive wireless mobile sound system and method therefor
JP6213181B2 (en) Synchronous playback system and synchronous playback method
US7747338B2 (en) Audio system employing multiple mobile devices in concert
CN105139877B (en) Connection method, main equipment, control terminal and the system of multimedia play equipment
CN105161124B (en) A kind of audio frequency playing method and device of more playback equipments
CN104507005B (en) The packet control process and system of wireless sound box
WO2019140746A1 (en) Synchronous playing method of multiple playing devices and playing device
CN101132474A (en) Method and system for implementing audio-visual contents playing by multiple mobile terminals
CN105681444A (en) Method for remotely controlling target wifi loudspeaker box by intelligent terminal
CN104010210A (en) Playing control method, device and system of multiple playing devices
CN105025390B (en) A kind of broadcasting scene store method, system, playback terminal and controlling terminal
CN105812185B (en) A kind of communication connecting method of playback equipment
CN107040848A (en) Synchronization parameter transmission method, device and the equipment of AVDTP agreements
CN104244063A (en) Conversion method and device of multiple playing devices
CN105659525A (en) Transitioning a networked playback device between operating modes
CN111049709B (en) Bluetooth-based interconnected loudspeaker box control method, equipment and storage medium
CN107105337B (en) Wireless multimedia playing method and device
CN105812905B (en) Control method for playing back and device in a kind of audio-video frequency playing system
CN106257928A (en) Audio file acquisition methods, update notification sending method, equipment and system
CN106878384A (en) Data forwarding method, its device, bluetooth equipment and audio frequency transmission method
CN104219563B (en) A kind of channel live methods, devices and systems

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate 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
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: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

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

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.