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

Control method for playing back, device and terminal Download PDF

Info

Publication number
CN106452644B
CN106452644B CN201610882856.5A CN201610882856A CN106452644B CN 106452644 B CN106452644 B CN 106452644B CN 201610882856 A CN201610882856 A CN 201610882856A CN 106452644 B CN106452644 B CN 106452644B
Authority
CN
China
Prior art keywords
relay device
slave
playback equipment
network delay
determined
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
CN201610882856.5A
Other languages
Chinese (zh)
Other versions
CN106452644A (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 CN201610882856.5A priority Critical patent/CN106452644B/en
Publication of CN106452644A publication Critical patent/CN106452644A/en
Application granted granted Critical
Publication of CN106452644B publication Critical patent/CN106452644B/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention provides a kind of control method for playing back, device and terminal, this method is using the multiple network delays for obtaining multiple playback equipments;Relay device and slave are chosen from multiple playback equipment according to multiple network delay;Control command is sent to the relay device, so that the relay device, which controls the slave, synchronizes broadcasting.Playback equipment is divided into relay device and slave according to the network delay between broadcast control device and playback equipment by the program, to realize the grading control of play system, the network delay between broadcast control device and playback equipment can be reduced, in terms of existing technologies, the synchronism of playing audio-fequency data 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, control equipment and multiple music player devices carry out data communication simultaneously, more to control this Identical music is played simultaneously in a music player devices.Due to controlling the influence of the communication distance between equipment and playback equipment, Or there are the influences of the other factors such as electromagnetic interference, usually there is certain network between control equipment and playback equipment and prolong Late.
When above-mentioned network delay very little, there may be little differences for the playback progress between multiple playback equipment. But for a user, which is often that can not discover, at this time it is considered that the playback progress of multiple playback equipment is Consistent, i.e., multiple playback equipment is in and state is played simultaneously.But when the quantity of playback equipment is very big, equipment is controlled It needs to carry out data communication simultaneously with a large amount of playback equipment.A large amount of data communication makes to control to be produced between equipment and playback equipment Raw network congestion causes the network delay between control equipment and playback equipment to increase, to cause between multiple playback equipments Playback progress exist very big difference.The synchronism thereby resulted between multiple playback equipments is low, needs to improve.
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 The synchronism of playing audio-fequency data.
The embodiment of the present invention provides a kind of control method for playing back, comprising:
Obtain multiple network delays of multiple playback equipments;
Relay device and slave are chosen from multiple playback equipment according to multiple network delay;
Control command is sent to the relay device, so that the relay device, which controls the slave, synchronizes broadcasting.
Correspondingly, the embodiment of the present invention also provides a kind of broadcast control device, comprising:
Module is obtained, for obtaining multiple network delays of multiple playback equipments;
Module is chosen, for choosing relay device from multiple playback equipment according to multiple network delay and subordinate is set It is standby;
Command sending module, for sending control command to the relay device, so that the relay device controls the subordinate Equipment synchronizes broadcasting.
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 is using the multiple network delays for obtaining multiple playback equipments;According to multiple network delay from this Relay device and slave are chosen in multiple playback equipments;Control command is sent to the relay device, so that the transfer is set The standby slave that controls synchronizes broadcasting.The program will according to the network delay between broadcast control device and playback equipment Playback equipment is divided into relay device and slave, so that the relay device controls the slave and synchronizes broadcasting, with This realizes the grading control of play system, can reduce the data traffic between broadcast control device and playback equipment, thus Alleviate between broadcast control device and playback equipment due to the big caused network congestion of data traffic, it is thus possible to reduce and broadcast The network delay between control device and playback equipment is put, playback equipment is can be realized and is played simultaneously, compared with the existing technology For, the synchronism of playing audio-fequency data 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 be in the embodiment of the present invention two smart phone after choosing relay device and slave in multiple playback equipments Play system composition schematic diagram.
Fig. 5 is the structural schematic diagram for the first broadcast control device that the embodiment of the present invention three provides.
Fig. 6 is the structural schematic diagram for second of 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: obtain multiple network delays of multiple playback equipments;Prolonged according to multiple network Relay device and slave are chosen from multiple playback equipment late;Control command is sent to the relay device, so that should Relay device controls the slave and synchronizes broadcasting.
As shown in Figure 1, the control method for playing back, detailed process may include:
S101 obtains multiple network delays of multiple playback equipments.
Specifically, broadcast control device carries out data communication by cable network or wireless network and multiple playback equipments. The broadcast control device can be integrated in the electronic device in terminal, be also possible to broadcasting having data processing function and set It is standby.The playback equipment can be the equipment that speaker, music player etc. have audio playing function.In practical application, due to broadcasting The influence of the communication distance between equipment and broadcast control device is put, or there are the influence of the other factors such as electromagnetic interference, is broadcast It puts and usually there is certain network delay between equipment and broadcast control device.Broadcast control device can be logical by monitoring network Letter state obtains multiple network delays between multiple playback equipment.
S102 chooses relay device and slave according to multiple network delay from multiple playback equipment.
It is more according to this after broadcast control device gets multiple network delays of multiple playback equipment in concrete application A network delay chooses relay device and slave from multiple playback equipment, so that the broadcast control device is more with this A playback equipment forms the play system of a grading control.
In some embodiments, relay device and subordinate are chosen from multiple playback equipment according to multiple network delay Equipment, can with specifically includes the following steps:
Judge whether multiple network delay is both greater than preset threshold;
If so, choosing relay device and slave from multiple playback equipment.
It specifically, respectively will be multiple after broadcast control device gets multiple network delays of multiple playback equipment Network delay is compared with preset threshold, to judge whether multiple network delay is both greater than the preset threshold.The default threshold Value can be a network delay numerical value being stored in advance in the memory of broadcast control device.For example, the preset threshold can To be 200ms.When judging that multiple network delay is both greater than the preset threshold, indicate the broadcast control device with it is multiple Network congestion has occurred between playback equipment.At this point, choosing relay device and slave from multiple playback equipment.
In some embodiments, relay device and slave are chosen from multiple playback equipment, can be specifically included Following steps:
The relay device of preset quantity is determined from multiple playback equipment;
Slave is set by the playback equipment for being not determined to relay device in multiple playback equipment.
Specifically, it when multiple network delay is both greater than the preset threshold, is determined from multiple playback equipment pre- If the relay device of quantity, subordinate then is set by the playback equipment for being not determined to relay device in multiple playback equipment Equipment.The preset quantity can be a numerical value being stored in advance in the memory of the broadcast control device.The preset quantity Less than the quantity of the playback equipment.For example, multiple playback equipment is specifically as follows 12, which can be 3.Then obtain The multiple network delays got are specially 12.When 12 network delays are both greater than preset threshold, set from this 12 broadcastings 3 relay devices are determined in standby, are then set subordinate for other 9 playback equipments for being not determined to relay device and are set It is standby.
In some embodiments, the relay device of preset quantity is determined from multiple playback equipment, can specifically be wrapped Include following steps:
Multiple playback equipment is ranked up according to the ascending sequence of multiple network delay, is set with obtaining playing Standby sequencing queue;
The preset quantity playback equipment forward in the sequencing queue is determined as relay device.
Specifically, multiple playback equipment can be ranked up according to multiple network delay, to obtain playback equipment Sequencing queue.Specific sort method, which can be, is ranked up multiple playback equipment according to network delay is ascending.? To after the sequencing queue of playback equipment, the preset quantity playback equipment forward in the sequencing queue is determined as transfer and is set It is standby.For example, the preset quantity is 3, then preceding 3 playback equipments in the sequencing queue are determined as relay device.
S103 sends control command to the relay device, synchronizes so that the relay device controls the slave It plays.
In concrete application, broadcast control device chooses relay device and slave from multiple playback equipment, to this Relay device sends control command, so that the relay device, which controls the slave, synchronizes broadcasting.Relay device receives After the control command sent to broadcast control device, audio data can be sent to the slave, and control the slave System clock it is synchronous with the holding of the system clock of the relay device so that being able to maintain system between multiple slave Clock is synchronous, so that multiple slave can be realized and be played simultaneously.The slave receives relay device transmission After audio data, the audio data can be played.
Also can control the relay device synchronizes broadcasting to the broadcast control device simultaneously.Specifically, which controls Device can send audio data to the relay device, and control the system clock and the broadcast control device of the relay device System clock keeps synchronizing.After the relay device receives the audio data of broadcast control device transmission, the sound can be played Frequency evidence.
Since the system clock of relay device and the system clock of broadcast control device are synchronous, the system clock of slave It is synchronous with the system clock of the relay device, thus can be kept between broadcast control device, relay device, slave be Clock of uniting is synchronous.It is played simultaneously that is, can be realized between broadcast control device, relay device, slave.
In some embodiments, by the playback equipment that relay device is not determined in multiple playback equipment be set as from After belonging to equipment, broadcast control device can also be grouped the slave, to obtain the preset quantity slave group. The quantity for the slave that each slave group includes may be the same or different.For example, preset quantity is 3, subordinate is set When standby quantity is 9, which can be divided into 3 slave groups.
Control command is sent to the relay device, so that the relay device, which controls the slave, synchronizes broadcasting, Can with specifically includes the following steps:
Send control command to each relay device respectively so that each relay device control one should be from Belong to equipment group and synchronizes broadcasting.
Specifically, broadcast control device sends control command to each relay device respectively.Relay device receives this After control command, one corresponding slave group of control synchronizes broadcasting.Therefore, which can be with It controls the preset quantity slave group while synchronizing broadcasting.
In some embodiments, when the slave quantity that slave group includes is very big, relay device can also be monitored The network delay of each slave in the slave group.Subordinate in relay device and the slave group controlled When network congestion occurring between equipment, which can also choose again relay device and subordinate from the slave group Equipment, to form Multistage Control again.
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, using the multiple nets for obtaining multiple playback equipments Network delay;Relay device and slave are chosen from multiple playback equipment according to multiple network delay;It is set to the transfer Preparation send control command, so that the relay device, which controls the slave, synchronizes broadcasting.The program is controlled according to broadcasting Playback equipment is divided into relay device and slave by the network delay between device and playback equipment, so that the relay device Control the slave and synchronize broadcasting, the grading control of play system is realized with this, can reduce broadcast control device with Data traffic between playback equipment, to alleviate between broadcast control device and playback equipment by the big institute of data traffic Caused network congestion, it is thus possible to reduce the network delay between broadcast control device and playback equipment, enable playback equipment Enough realize is played simultaneously, and in terms of existing technologies, the synchronization of playing audio-fequency data between multiple playback equipments can be improved Property.
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 10, Smart phone 20 and multiple playback equipments 30 form.Server 10 can be the server on network.Playback equipment 30 It can be the equipment that speaker, music player etc. have audio playing function.Smart phone 20 passes through internet and server 10 Data communication is carried out, so that smart phone 20 can obtain audio data from server 10.Meanwhile smart phone 20 passes through nothing Gauze network (such as WiFi) and multiple playback equipments 30 carry out data communication, so that smart phone 20 can be to playback equipment 30 Send order and audio data.
As shown in figure 3, control method for playing back, detailed process be can be such that
S201, smart phone obtain multiple network delays of multiple playback equipments.
Specifically, smart phone can be obtained and is somebody's turn to do by the network communication status between monitoring and multiple playback equipments Multiple network delays between multiple playback equipments.
S202, smart phone judge whether multiple network delay is both greater than preset threshold.
Specifically, after smart phone gets multiple network delays of multiple playback equipment, respectively by multiple network Delay is compared with preset threshold, to judge whether multiple network delay is both greater than the preset threshold.The preset threshold can To be a network delay numerical value in the memory for be stored in advance in smart phone.For example, the preset threshold can be 200ms。
S203, if so, smart phone is according to the ascending sequence of multiple network delay to multiple playback equipment It is ranked up, to obtain the sequencing queue of playback equipment.
Specifically, when judging that multiple network delay is both greater than preset threshold in S202, smart phone can basis Multiple network delay is ranked up multiple playback equipment, to obtain the sequencing queue of playback equipment.Specific sort method It can be and multiple playback equipment is ranked up according to network delay is ascending.
Preset quantity playback equipment forward in the sequencing queue is determined as relay device by S204, smart phone.
Specifically, after the sequencing queue for obtaining playback equipment, smart phone is by preset quantity forward in the sequencing queue A playback equipment is determined as relay device.That is, the smallest preset quantity playback equipment of network delay is determined as relay device. The preset quantity can be a numerical value being stored in advance in the memory of the smart phone.The preset quantity is less than the broadcasting The quantity of equipment.For example, the default value can be 3, then 3 playback equipments forward in the sequencing queue are determined as transfer Equipment.
The playback equipment for being not determined to relay device in multiple playback equipment is set subordinate by S205, smart phone Equipment.
Specifically, after smart phone determines relay device, relay device will be not determined in multiple playback equipment Playback equipment be set as slave.For example, multiple playback equipment is specifically as follows 12, which can be 3. The smallest 3 playback equipments of network delay in 12 playback equipments are then determined as relay device, then will be not determined to Other 9 playback equipments of relay device are set as slave.
S206, smart phone are grouped the slave, to obtain the preset quantity slave group.
Specifically, after smart phone setting slave, which is grouped, to obtain multiple slaves Group.The quantity of obtained slave group is equal to the preset quantity.The quantity for the slave that each slave group includes can With identical, can also be different.For example, preset quantity is 3, it, can be by 9 slaves point when slave quantity is 9 For 3 slave groups.
S207, smart phone sends control command to each relay device respectively, so that each relay device One slave group of control synchronizes broadcasting.
Specifically, after being grouped to slave, smart phone sends control command to each relay device respectively. After relay device receives the control command, one corresponding slave group of control synchronizes broadcasting.At this point, the present count Measuring a relay device can control the preset quantity slave group while synchronizing broadcasting.
In practical application, smart phone can obtain audio data from server, and the audio data that then will acquire is same When be sent to all relay devices.After each relay device receives the audio data of smart phone transmission, by the audio Data are sent to all slaves in the slave group that the relay device is controlled.Then, all relay devices and All slaves can synchronize broadcasting.
In practical application, when the slave quantity that slave group includes is very big, relay device can also monitor this from Belong to the network delay of each slave in equipment group.Slave in relay device and the slave group controlled Between occur network congestion when, which can also choose again relay device from the slave group and subordinate is set It is standby, to form Multistage Control again.
With reference to Fig. 4, Fig. 4 is broadcasting system of the smart phone after choosing relay device and slave in multiple playback equipments System composition schematic diagram.Play system at this time is set by server 10, smart phone 20, multiple relay devices 40 and multiple subordinates Standby 50 composition.By internet progress data communication, smart phone 20 can be from server 10 for server 10 and smart phone 20 Obtain audio data.Smart phone 20 and multiple relay devices 40 pass through wireless network (such as WiFi) progress data communication, intelligence Energy mobile phone 20 can send audio data and order to multiple relay device 40, while also can receive the return of relay device 40 Information so that smart phone 20 can control all relay devices 40 and synchronize broadcasting.Each relay device 40 with The multiple slaves 50 controlled carry out data communication by wireless network (such as WiFi), and relay device 40 can be more to this A slave 50 sends audio data and order, while also can receive the information of the return of slave 50, so that each All slaves 50 that relay device 40 can control in corresponding slave group synchronize broadcasting.
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, obtains multiple playback equipments using smart phone Multiple network delays;Judge whether multiple network delay is both greater than preset threshold;If so, according to network delay to multiple Playback equipment is ranked up;Determine preset quantity relay device;It will be not determined to the playback equipment setting of relay device For slave;Slave is grouped;Control command is sent to each relay device, so that each transfer is set One slave group of standby control synchronizes broadcasting.The program will according to the network delay between smart phone and playback equipment Playback equipment is divided into relay device and slave, and is grouped to slave, so that each relay device control one A slave group synchronizes broadcasting, and the grading control of play system is realized with this, can reduce smart phone and set with broadcasting Data traffic between standby, thus alleviate between smart phone and playback equipment due to data traffic it is big caused by network Congestion, it is thus possible to reduce the network delay between smart phone and playback equipment, can be realized playback equipment and be played simultaneously, In terms of existing technologies, the synchronism of playing audio-fequency data between multiple playback equipments can be improved.
Embodiment three
In order to better implement above method, the embodiment of the present invention also provides a kind of broadcast control device, which can be with It integrates in the terminal, which can be the equipment such as smart phone, tablet computer.
As shown in figure 5, broadcast control device 300 may include: to obtain module 301, choose module 302, order transmission mould Block 303, is described in detail below:
The acquisition module 301, for obtaining multiple network delays of multiple playback equipments;
The selection module 302, for is chosen from multiple playback equipment according to multiple network delay relay device with Slave;
The command sending module 303, for sending control command to the relay device, so that relay device control should Slave synchronizes broadcasting.
Preferably, as shown in fig. 6, the selection module 302 includes: judging submodule 3021, chooses submodule 3022, specifically It is as follows:
The judging submodule 3021, for judging whether multiple network delay is both greater than preset threshold;
The selection submodule 3022, for being chosen from multiple playback equipment when the judging submodule is judged as YES Relay device and slave.
Preferably, which is specifically used for:
The relay device of preset quantity is determined from multiple playback equipment;
Slave is set by the playback equipment for being not determined to relay device in multiple playback equipment.
Preferably, the step of relay device of preset quantity is determined from multiple playback equipment specifically includes:
Multiple playback equipment is ranked up according to the ascending sequence of multiple network delay, is set with obtaining playing Standby sequencing queue;
The preset quantity playback equipment forward in the sequencing queue is determined as relay device.
Preferably, slave is set by the playback equipment for being not determined to relay device in multiple playback equipment After step, further includes:
The slave is grouped, to obtain the preset quantity slave group;
The command sending module 303, is specifically used for:
Send control command to each relay device respectively so that each relay device control one should be from Belong to equipment group and synchronizes broadcasting.
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 provided in an embodiment of the present invention, obtains multiple broadcastings by acquisition module 301 and sets Standby multiple network delays;It chooses module 302 and relay device is chosen from multiple playback equipment according to multiple network delay And slave;Command sending module 303 sends control command to the relay device, so that the relay device controls the subordinate Equipment synchronizes broadcasting.The program divides playback equipment according to the network delay between broadcast control device and playback equipment Broadcasting system is realized with this so that the relay device controls the slave and synchronizes broadcasting for relay device and slave The grading control of system can reduce the data traffic between broadcast control device and playback equipment, to alleviate broadcasting control Due to network congestion that data traffic is big caused between device and playback equipment, it is thus possible to reduce broadcast control device and Network delay between playback equipment can be realized playback equipment and be played simultaneously, and in terms of existing technologies, can be improved The synchronism of playing audio-fequency data between multiple playback equipments.
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: to obtain module 401, choose module 402, command sending module 403, tool Body is described as follows:
The acquisition module 401, for obtaining multiple network delays of multiple playback equipments;
The selection module 402, for is chosen from multiple playback equipment according to multiple network delay relay device with Slave;
The command sending module 403, for sending control command to the relay device, so that relay device control should Slave synchronizes broadcasting.
Preferably, which includes: judging submodule, chooses submodule, specific as follows:
The judging submodule, for judging whether multiple network delay is both greater than preset threshold;
The selection submodule, for choosing transfer from multiple playback equipment when the judging submodule is judged as YES Equipment and subordinate.
Preferably, which is specifically used for:
The relay device of preset quantity is determined from multiple playback equipment;
Slave is set by the playback equipment for being not determined to relay device in multiple playback equipment.
Preferably, the step of relay device of preset quantity is determined from multiple playback equipment specifically includes:
Multiple playback equipment is ranked up according to the ascending sequence of multiple network delay, is set with obtaining playing Standby sequencing queue;
The preset quantity playback equipment forward in the sequencing queue is determined as relay device.
Preferably, slave is set by the playback equipment for being not determined to relay device in multiple playback equipment After step, further includes:
The slave is grouped, to obtain the preset quantity slave group;
The command sending module 403, is specifically used for:
Send control command to each relay device respectively so that each relay device control one should be from Belong to equipment group and synchronizes broadcasting
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:
Obtain multiple network delays of multiple playback equipments;It is selected from multiple playback equipment according to multiple network delay Take relay device and slave;Control command is sent to the relay device, so that the relay device controls the slave Synchronize broadcasting.
Preferably, processor 508, which has, obtains module, chooses module, command sending module, is described in detail below:
Processor 508 is used to obtain multiple network delays of multiple playback equipments by obtaining module;
Processor 508 is used to choose transfer from multiple playback equipment according to multiple network delay by choosing module Equipment and slave;
Processor 508 is used to send control command to the relay device by command sending module, so that the transfer is set The standby slave that controls synchronizes broadcasting.
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 multiple networks by obtaining multiple playback equipments prolong the embodiment of the invention provides a kind of terminal Late;Relay device and slave are chosen from multiple playback equipment according to multiple network delay;It is sent out to the relay device Control command is sent, so that the relay device, which controls the slave, synchronizes broadcasting.The program is set according to terminal and broadcasting Playback equipment is divided into relay device and slave by the network delay between standby, so that the relay device controls the subordinate and sets It is standby to synchronize broadcasting, the grading control of play system is realized with this, the data that can reduce between terminal and playback equipment are logical Traffic, thus alleviate between terminal and playback equipment due to data traffic it is big caused by network congestion, it is thus possible to reduce Network delay between terminal and playback equipment can be realized playback equipment and be played simultaneously, in terms of existing technologies, can To improve the synchronism of playing audio-fequency data between multiple playback equipments.
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 (8)

1. a kind of control method for playing back characterized by comprising
Multiple network delays of multiple playback equipments are obtained by monitoring network communications state;
Judge whether the multiple network delay is both greater than preset threshold;
If so, the relay device of preset quantity is determined from the multiple playback equipment according to the multiple network delay, The preset quantity is greater than 1;
Slave is set by the playback equipment for being not determined to relay device in the multiple playback equipment;
Control command is sent to the relay device, so that the relay device control slave is synchronized and broadcast It puts.
2. control method for playing back according to claim 1, which is characterized in that it is described according to the multiple network delay from institute The step of stating the relay device that preset quantity is determined in multiple playback equipments specifically includes:
The multiple playback equipment is ranked up according to the ascending sequence of the multiple network delay, is set with obtaining playing Standby sequencing queue;
The preset quantity playback equipment forward in the sequencing queue is determined as relay device.
3. control method for playing back according to claim 1, which is characterized in that it is described by the multiple playback equipment not by After being determined as the step of the playback equipment of relay device is set as slave, further includes:
The slave is grouped, to obtain the preset quantity slave group;
It is described to send control command to the relay device, it is synchronized so that the relay device controls the slave The step of broadcasting, specifically includes:
Control command is sent to relay device described in each respectively, so that each described relay device controls described in one Slave group synchronizes broadcasting.
4. a kind of broadcast control device characterized by comprising
Module is obtained, for obtaining multiple network delays of multiple playback equipments by monitoring network communications state;
Module is chosen, is used for:
Judge whether the multiple network delay is both greater than preset threshold;
If so, the relay device of preset quantity is determined from the multiple playback equipment according to the multiple network delay, The preset quantity is greater than 1;
Slave is set by the playback equipment for being not determined to relay device in the multiple playback equipment;
Command sending module, for sending control command to the relay device so that relay device control it is described from Belong to equipment and synchronizes broadcasting.
5. broadcast control device according to claim 4, which is characterized in that it is described according to the multiple network delay from institute The step of stating the relay device that preset quantity is determined in multiple playback equipments specifically includes:
The multiple playback equipment is ranked up according to the ascending sequence of the multiple network delay, is set with obtaining playing Standby sequencing queue;
The preset quantity playback equipment forward in the sequencing queue is determined as relay device.
6. broadcast control device according to claim 4, which is characterized in that it is described by the multiple playback equipment not by After being determined as the step of the playback equipment of relay device is set as slave, further includes:
The slave is grouped, to obtain the preset quantity slave group;
The command sending module, is specifically used for:
Control command is sent to relay device described in each respectively, so that each described relay device controls described in one Slave group synchronizes broadcasting.
7. 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 appointed in claims 1 to 3 Control method for playing back described in one.
8. 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 the computer perform claim requires 1 to 3 described in any item control method for playing back.
CN201610882856.5A 2016-10-08 2016-10-08 Control method for playing back, device and terminal Active CN106452644B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610882856.5A CN106452644B (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
CN201610882856.5A CN106452644B (en) 2016-10-08 2016-10-08 Control method for playing back, device and terminal

Publications (2)

Publication Number Publication Date
CN106452644A CN106452644A (en) 2017-02-22
CN106452644B true CN106452644B (en) 2019-02-01

Family

ID=58172998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610882856.5A Active CN106452644B (en) 2016-10-08 2016-10-08 Control method for playing back, device and terminal

Country Status (1)

Country Link
CN (1) CN106452644B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10783929B2 (en) * 2018-03-30 2020-09-22 Apple Inc. Managing playback groups
US11297369B2 (en) 2018-03-30 2022-04-05 Apple Inc. Remotely controlling playback devices
US10993274B2 (en) 2018-03-30 2021-04-27 Apple Inc. Pairing devices by proxy
CN109525881A (en) * 2018-11-29 2019-03-26 青岛海信电器股份有限公司 Sound draws synchronous method, device and equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103108332B (en) * 2011-11-14 2016-08-10 华为技术有限公司 A kind of simulcast method and device
KR20160048960A (en) * 2013-08-30 2016-05-04 후아웨이 테크놀러지 컴퍼니 리미티드 Method for multiple terminals to play multimedia file cooperatively and related apparatus and system
CN104464767B (en) * 2013-09-17 2018-03-20 惠州超声音响有限公司 The method and audio frequency broadcast system that the audio of synchronous multiple playing devices plays
CN104135704A (en) * 2014-07-11 2014-11-05 黄天旭 Sound box networking method and sound box network
CN104581599B (en) * 2014-12-30 2018-11-27 歌尔股份有限公司 A kind of method and system that multiple speakers are played simultaneously

Also Published As

Publication number Publication date
CN106452644A (en) 2017-02-22

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
CN106502834B (en) Backup method, the apparatus and system of data
CN106448714B (en) A kind of synchronous broadcast method of playback equipment, apparatus and system
CN106453597B (en) The method of adjustment of data synchronizing cycles, apparatus and system
CN103327102A (en) Application program recommending method and device
CN104252341B (en) The client device of the skin change method of application program, device and application program
CN103345355A (en) Screen-locking interface display control method, device and terminal device
CN103559731B (en) Method and terminal for displaying lyrics under screen locking state
CN106452644B (en) Control method for playing back, device and terminal
CN106646440B (en) A kind of falling height detection method and device
CN106452643B (en) Control method for playing back, device, terminal and play system
CN106254903A (en) The synchronous broadcast method of a kind of multi-medium data, Apparatus and system
CN106484326B (en) A kind of data transmission processing method and mobile terminal
CN104717341A (en) Message prompting method and terminal
CN104298558A (en) Information processing method and device
CN104881844A (en) Picture combination method and device and terminal equipment
CN106341713A (en) Multimedia synchronous play method, apparatus and system, and terminal
CN106411447B (en) Control method for playing back, device and terminal
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
CN104142994A (en) Data list acquisition method, 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
CN108829338A (en) A kind of lookup method of application program, device and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

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

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

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

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant