CN106411903A - Play control method and device, and terminal - Google Patents

Play control method and device, and terminal Download PDF

Info

Publication number
CN106411903A
CN106411903A CN201610882863.5A CN201610882863A CN106411903A CN 106411903 A CN106411903 A CN 106411903A CN 201610882863 A CN201610882863 A CN 201610882863A CN 106411903 A CN106411903 A CN 106411903A
Authority
CN
China
Prior art keywords
link information
source data
play
information
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610882863.5A
Other languages
Chinese (zh)
Other versions
CN106411903B (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 CN201610882863.5A priority Critical patent/CN106411903B/en
Publication of CN106411903A publication Critical patent/CN106411903A/en
Application granted granted Critical
Publication of CN106411903B publication Critical patent/CN106411903B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Circuits Of Receivers In General (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a play control method and device, and a terminal. The method comprises the steps of receiving play control instructions, wherein the play control instructions comprise first link information of played source data and played start time information; clearing currently outputted cache data according to the play control instructions; determining target data needing to be played based on the first link information and the start time information; and outputting and playing the target data. According to the embodiment of the method, the device and the terminal, uniform design is carried out on the processing processes of various play control instructions again, a uniform play control process is formed in a mode of clearing the cache and then setting source data links, time stamp information in data packets does not need to be considerate, and a multi-device synchronous play effect is greatly improved.

Description

A kind of control method for playing back, device and terminal
Technical field
The invention belongs to communication technical field, more particularly, to a kind of control method for playing back, device and terminal.
Background technology
With the continuous development of intelligent terminal, intelligent multimedia system is as one kind of smart home, more next in life More popularize, for ensureing the fluency of multimedia, in media play, substantially all employ quick decoding come to source data Carry out pre decoding, produce caching, from caching, then take out data exported.
Currently existing scheme would generally play the different flow process of control action setting to different, such as Pause-to- Play (suspend-play), Seek (lookup), Next (next) and Prev (upper) have different flow settings.Due to right Broadcasting control in non-switching song can't empty data cached, once generation such as in the case that many equipment are synchronously play The situation of Pause, the timestamp in packet can occur expired, and refresh time stamp just seems difficult again, therefore this kind scheme For many equipment, synchronously the in the case of of playing, is difficult to be suitable for.
Content of the invention
It is an object of the invention to provide a kind of control method for playing back, device and terminal are it is intended to solve dynamic because playing control Make setting procedure difference and the problem that many equipment are synchronously play cannot be suitable for.
For solving above-mentioned technical problem, the embodiment of the present invention provides technical scheme below:
In a first aspect, the present invention provides a kind of control method for playing back, including:
Receive play control instruction, comprise in described broadcasting control instruction play the first link information of source data and The starting time information play;
Current output is emptied according to described broadcasting control instruction data cached;
The target data needing to play is determined based on described first link information and described starting time information;
Export described target data and play.
Second aspect, a kind of broadcast control device, including:
Instruction reception unit, plays control instruction for receiving, and comprises the source data play in described broadcasting control instruction The first link information and broadcasting starting time information;
Caching empties unit, data cached for emptying current output according to described broadcasting control instruction;
Caching determining unit, needs to play for determining based on described first link information and described starting time information Target data;
Output broadcast unit, for exporting described target data and playing.
The third aspect, a kind of terminal, including:
Be stored with the memory of executable program code;
The processor coupling with described memory;
Described processor calls the described executable program code of storage in described memory, and execution such as first aspect carries For control method for playing back.
With respect to prior art, the embodiment of the present invention, when receiving broadcasting control instruction, number is cached to current output According to being emptied, wherein, comprise the first link information of source data and the starting point of broadcasting play in this broadcasting control instruction Temporal information;Determine the target data needing to play subsequently, based on this first link information and starting time information, finally defeated Go out this target data and play;The handling process being directed to all types of broadcasting control instructions carries out reunifying design, passes through First empty caching, then the mode of source data link be set, form unified broadcasting control flow, need not consider in packet when Between stab information, substantially improve many equipment synchronization results of broadcast.
Brief description
Below in conjunction with the accompanying drawings, by the specific embodiment detailed description to the present invention, technical scheme will be made And other beneficial effects are apparent.
Fig. 1 is the schematic flow sheet of control method for playing back provided in an embodiment of the present invention.
Fig. 2 is the schematic diagram of a scenario of broadcasting control system provided in an embodiment of the present invention.
Fig. 3 is another schematic flow sheet of control method for playing back provided in an embodiment of the present invention.
Fig. 4 is the structural representation of broadcast control device provided in an embodiment of the present invention.
Fig. 5 is another structural representation of broadcast control device provided in an embodiment of the present invention.
Fig. 6 is the structural representation of terminal provided in an embodiment of the present invention.
Specific embodiment
Refer to schema, wherein identical element numbers represent identical assembly, and the principle of the present invention is to be implemented in one To illustrate in suitable computing environment.The following description is based on the illustrated specific embodiment of the invention, and it should be by It is considered as limiting the present invention other specific embodiments not detailed herein.
In the following description, the specific embodiment of the present invention is by with reference to the step performed by or multi-section computer And symbol is illustrating, unless otherwise stating clearly.Therefore, these steps and operation will have to mention for several times and be executed by computer, this paper institute The computer execution referring to includes by representing with the computer processing unit of the electronic signal of the data in a structuring pattern Operation.This operation change this data or be maintained at this computer memory system in position at, it is reconfigurable Or in the way of known to the tester of this area, in addition to change the running of this computer.The data structure that this data is maintained For the provider location of this internal memory, it has by particular characteristics defined in this data form.But, the principle of the invention is with above-mentioned literary composition Illustrating, it is not represented as a kind of restriction to word, and this area tester will appreciate that plurality of step and the behaviour of described below Also may be implemented in the middle of hardware.
The principle of the present invention is grasped using many other wide usages or specific purpose computing, communication environment or configuration Make.The example of the known arithmetic system, environment and the configuration that are suitable for the present invention may include the hand-held phone of (but not limited to), System based on personal computer, server, multicomputer system, micro computer, body frame configuration computer and distributed arithmetic ring Border, which includes any said system or device.
It is described in detail respectively below.
In the present embodiment, will be described from the angle of broadcast control device, this broadcast control device specifically can collect Become in multiple playback equipments, such as audio amplifier, all kinds of player etc..
A kind of control method for playing back, including:Receive and play control instruction, in this broadcasting control instruction, comprise the source number play According to the first link information and broadcasting starting time information;Current output caching number is emptied according to this broadcasting control instruction According to;The target data needing to play is determined based on this first link information and starting time information;Export this target data simultaneously Play.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of control method for playing back provided in an embodiment of the present invention.Methods described bag Include:
In step S101, receive play control instruction, comprise in this broadcasting control instruction play source data first The starting time information of link information and broadcasting.
In step s 102, current output is emptied according to this broadcasting control instruction data cached.
It is understood that in wireless music system, having a playback equipment to be responsible for control terminal (as smart mobile phone Deng) communication, other playback equipments that execution is derived from the control command of control terminal and is transmitted in wireless music system, should simultaneously The status information of wireless music system and each playback equipment also can be returned to control terminal by playback equipment, be responsible for these work Playback equipment be referred to as main equipment, other playback equipments be referred to as from equipment.
Such as, the decoding end of playback equipment receives the broadcasting control command that control terminal is sent, and wherein, this broadcasting controls The starting time information of the first link information of the source data and broadcasting play is comprised in instruction.
Further, after playback equipment receives this broadcasting control instruction, the decoding end control output end of playback equipment Empty current output data cached.
It is understood that this playback equipment can include main equipment it is also possible to not include main equipment, do not make concrete herein Limit.
Wherein, the term in description and claims of this specification " first ", " second " etc. are for distinguishing difference Object, rather than be used for describing particular order, in this embodiment, the link information of the source data comprising in control instruction will be play It is referred to as the first link information, the link information of the source data being currently played is referred to as the second link information, does not constitute Limitation of the invention.
In step s 103, the number of targets needing to play is determined based on this first link information and this starting time information According to.
In step S104, export this target data and play.
It is understood that the target data that needs are play is determined based on the first link information and starting time information Mode has a lot, such as, in some embodiments, can specifically include following steps:
(11) obtain the second link information of the source data being currently played.
(12) this second link information and the first link information are compared, obtain comparison result.
(13) target data needing to play is determined based on comparison result and starting time information.
That is, in this embodiment, playback equipment is by link information (second chain of the source data being currently played Connect information) with play the link information (the first link information) of source data that control instruction comprises and compare, thus according to than To result and play the starting time information that comprises of control instruction and obtain that new output is data cached, that is, need the target play Data.
Wherein, in a kind of enforceable mode, being determined based on comparison result and starting time information needs broadcasting Target data (i.e. step (13)) can include:
(131) if the second link information is consistent with the first link information, according to this first link information, from starting time Time point indicated by information starts corresponding source data is decoded, and generates decoded source data.
(132) decoded source data is transmitted to output end, and be defined as the target data needing to play.
Such as, when the second link information is consistent with the first link information, directly according to the first link information (or the second chain Connect information) analogue data from internet, LAN, local memory and external memory storage or after Analog-digital Converter Input, obtains source data, and the time point according to indicated by starting time information starts this source data is decoded thereafter, thus Generate decoded source data, and this decoded source data is transmitted to playback equipment output end, data cached as exporting, Need the target data play.
In another kind of enforceable mode, the target needing to play is determined based on comparison result and starting time information Data (i.e. step (13)) can include:
(1313) if the second link information is inconsistent with the first link information, replace the second chain using the first link information Connect information.
(1314) according to the first link information, the time point indicated by from starting time information starts to corresponding source data It is decoded, generate decoded source data.
(1315) decoded source data is transmitted to output end, and be defined as the target data needing to play.
Such as, when the second link information and the first link information are inconsistent, playback equipment decoding end is currently broadcast first The link information (the second link information) of the source data put is reset, and replaces with the first link information, subsequently, Ke Yigen According to the second link information (i.e. the first link information) after this replacement from internet, LAN, local memory and external storage Device or the input of the analogue data after Analog-digital Converter, obtain source data, thereafter according to indicated by starting time information Time point starts this source data is decoded, thus generating decoded source data, and this decoded source data is transmitted To playback equipment output end, data cached as exporting, that is, need the target data play.
In some embodiments, the number of targets needing to play is determined based on the first link information and starting time information Realize according to following steps can be based on:
(21) if playing the first link information comprising in control instruction is sky, according to the source data being currently played The second link information, obtain corresponding source data.
(22) time point indicated by from starting time information starts source data is decoded, and generates decoded source number According to.
(23) decoded source data is transmitted to output end, and be defined as the target data needing to play.
Such as, in this embodiment, comprise if playback equipment decoding end detects in the broadcasting control instruction receiving The first link information be sky, then it is considered that the link information (the second link information) of currently playing source data need not be again Setting, directly according to this second link information from internet, LAN, local memory and external memory storage or through simulation Numeral conversion after analogue data input, obtain source data, thereafter the time point according to indicated by starting time information start right This source data is decoded, thus generating decoded source data, and this decoded source data is transmitted defeated to playback equipment Go out end, data cached as exporting, that is, need the target data play.
And then, the output end of each playback equipment can be same according to the data (exporting data cached) being cached in caching When output user want play voice data.
From the foregoing, the control method for playing back that the present embodiment provides, when receiving broadcasting control instruction, to current Output data cached is emptied, wherein, comprise in this broadcasting control instruction play the first link information of source data and The starting time information play;Determine the target needing to play subsequently, based on this first link information and starting time information Data, finally exports this target and plays;The handling process being directed to all types of broadcasting control instructions carries out reunifying setting Meter, by first emptying caching, then arranges the mode that source data links, forms unified broadcasting control flow, need not consider data Timestamp information in bag, substantially improves many equipment synchronization results of broadcast.
Citing is described in further detail by method according to described by above-described embodiment below.
Refer to Fig. 2, the schematic diagram of a scenario of the broadcasting control system providing for the present embodiment, wherein this broadcasting control system Including control terminal and multiple playback equipment, wherein playback equipment can include main equipment and the playback equipment of multiple subordinate (referred to as from equipment).
First, each playback equipment in the present embodiment broadcasting control system is simply introduced, such as, with wireless music system As a example system, NTP (Network Time Protocol) or SNTP (Simple Network Time can be passed through Protocol) agreement, the clock of each playback equipment in synchronous radio music system.In wireless music system, one is had to broadcast Equipment of putting is responsible for and control terminal (as smart mobile phone etc.) communication, and execution is derived from the control command of control terminal and is transmitted to wireless Other playback equipments in music system, this playback equipment also can be by the state of wireless music system and each playback equipment simultaneously Information returns to control terminal, and the playback equipment being responsible for these work is referred to as main equipment, and other playback equipments are referred to as from setting Standby.Each executes NTP or SNTP agreement from equipment periodic, and main equipment synchronised clock so that each playback equipment when Clock is basically identical.
In addition, in wireless music system, having a playback equipment to be responsible for the distribution of voice data, referred to as source device.Source The analogue audio frequency from internet, LAN, local memory and external memory storage or after Analog-digital Converter for the equipment is defeated Enter, obtain voice data.Voice data is split into Frame be distributed to each from equipment one by one, each data by source device The reproduction time of frame is identical.Wherein source device and above-mentioned main equipment, can be same playback equipment or different broadcasting Put equipment.
Refer to Fig. 3, Fig. 3 is another schematic flow sheet of control method for playing back provided in an embodiment of the present invention.Described side Method includes:
In step s 201, the decoding end of playback equipment receives the broadcasting control command that control terminal is sent.
Wherein, the first link information of the source data of broadcasting, such as " http are comprised in this broadcasting control instruction:// Yinpinaaa.xx.com " and the starting time information play, can be such as specific temporal information or and time The corresponding identifier of information, starts to export corresponding data from this time point for mark.
In addition, this playback equipment can include main equipment it is also possible to not include main equipment, it is not especially limited herein.
In step S202, it is data cached that the decoding end control output end of playback equipment empties current output.
Such as, after receiving this broadcasting control instruction in playback equipment decoding end, the decoding end of playback equipment controls to be broadcast Putting the output end of equipment, to empty current output data cached, first empties caching, in order to follow-up to all types of broadcasting controls The handling process of system instruction carries out reunifying design.
In step S203, the decoding end of playback equipment is by the second link information of the source data being currently played and One link information is compared.
First, the decoding end of playback equipment by the link information (the second link information) of the source data being currently played with Play the link information (the first link information) of source data that control instruction comprises to compare, thus according to comparison result and Play the starting time information that comprises of control instruction and obtain that new output is data cached, that is, need the target data play.
Wherein, if the second link information is inconsistent with the first link information, the decoding end execution step of playback equipment S204, S205 and S206.
If the second link information is consistent with the first link information, decoding end execution step S205 of playback equipment and S206.
In step S204, the decoding end of playback equipment resets the second link information of the source data of broadcasting, uses First link information replaces the second link information.
In this embodiment, such as, the link information (the second link information) of the source data being currently played is “http://yinpinbbb.xx.com ", with the first link information " http://yinpinaaa.xx.com " differs, then broadcast Put equipment decoding end need to reset broadcasting source data the second link information, the second link information is replaced with first Link information " http://yinpinaaa.xx.com ", obtains the link information of the new source data being currently played.
In step S205, the decoding end of playback equipment according to the link of the source data being currently played, when starting point Between time point indicated by information start corresponding source data is decoded, and decoded source data is transferred to output End, is defined as the target data needing to play.
Such as, if the link information of the source data being currently played (second link information) is " http:// Yinpinaaa.xx.com ", identical with the first link information it is possible to the direct chain according to the source data being currently played Connect information, the analogue data from internet, LAN, local memory and external memory storage or after Analog-digital Converter Input, obtains source data, and the time point according to indicated by starting time information starts this source data is decoded thereafter, thus Generate decoded source data, and this decoded source data is transmitted to playback equipment output end, as the mesh needing broadcasting Mark data.
It is understood that when the second link information and the first link information are different, playback equipment decoding end is first The link information of currently playing source data is reset, is obtained the link letter of the new source data being currently played Breath (i.e. step S204), then just can according to this source data being currently played after resetting link information, from Internet, LAN, local memory and external memory storage or the input of the analogue data after Analog-digital Converter, obtain Source data, thereafter the time point according to indicated by starting time information start this source data is decoded, thus generating decoding Source data afterwards, and this decoded source data is transmitted to playback equipment output end, as the target data needing broadcasting.
In order to be better understood from technical solution of the present invention, taking specific broadcasting control instruction as a example carry out briefly below Bright, refer to table 1, be the various signal playing control instruction uniform format:
Table 1
Due in the prior art, Pause-to-Play (suspend-play), Seek (lookup), Next (next) and Prev (upper one) has different flow settings.Caching number can't be emptied because the broadcasting for non-switching song controls According to, such as once there is the situation of Pause in the case that many equipment are synchronously play, the timestamp in packet can occur expired, Again refresh time stamp just seems difficult, therefore in the present invention program, plays control instruction for each and is provided with unified broadcasting Control flow, each broadcasting corresponding parameter of control instruction one (the first link information) and parameter two (starting time information) Concrete setting refers to table 1.
Such as, the parameter one of Pause-to-Play (suspend-play) can be arranged and the source data that is currently played Link is identical, and parameter two is set to play time when suspending;The parameter one of Seek (lookup) can be arranged with currently The link of the source data play is identical, and parameter two is set to the time point of the target (as song) of lookup;Next (next) and The source data of next of the source data that the parameter one of Prev (upper) could be arranged to be currently played bent (a upper song) Link, parameter two is set to the reproduction time initial point of this source data.
In step S206, the output end of playback equipment exports this target data and plays.
That is, the decoding end of playback equipment is when receiving broadcasting control instruction, by first emptying caching, in basis As the consolidation form of each broadcasting control instruction of table 1, the mode of currently playing source data link is set, forms unified broadcasting Control flow.
From the foregoing, the control method for playing back that the present embodiment provides, when receiving broadcasting control instruction, to current Output data cached is emptied, wherein, comprise in this broadcasting control instruction play the first link information of source data and The starting time information play;Determine the target needing to play subsequently, based on this first link information and starting time information Data, finally exports this target data and plays;The handling process being directed to all types of broadcasting control instructions is united again One design, by first emptying caching, then arranges the mode that source data links, forms unified broadcasting control flow, need not consider Timestamp information in packet, substantially improves many equipment synchronization results of broadcast.It is also possible to greatly simplified stream Journey, reduces the development difficulty of functional development person, enhanced scheme compatibility, is applicable not only to single device and plays, be also applied for set more Standby synchronous broadcasting.
Implement control method for playing back provided in an embodiment of the present invention for ease of more preferable, the embodiment of the present invention also provides one kind Device based on above-mentioned control method for playing back and terminal.Wherein the implication of noun is identical with the method that above-mentioned broadcasting controls, Implement details and may be referred to the explanation in embodiment of the method.
Refer to Fig. 4, Fig. 4 is the structural representation of broadcast control device provided in an embodiment of the present invention, wherein this broadcasting Control device 300 can include instruction reception unit 301, caching empties unit 302, caching determining unit 303 and output are broadcast Put unit 304.
Wherein, instruction reception unit 301, play control instruction for receiving, and comprise to play in described broadcasting control instruction The first link information of source data and broadcasting starting time information;Caching empties unit 302, for according to described broadcasting It is data cached that control instruction empties current output.
It is understood that in wireless music system, having a playback equipment to be responsible for control terminal (as smart mobile phone Deng) communication, other playback equipments that execution is derived from the control command of control terminal and is transmitted in wireless music system, should simultaneously The status information of wireless music system and each playback equipment also can be returned to control terminal by playback equipment, be responsible for these work Playback equipment be referred to as main equipment, other playback equipments be referred to as from equipment.
Such as, the decoding end of playback equipment receives the broadcasting control command that control terminal is sent, and wherein, this broadcasting controls The starting time information of the first link information of the source data and broadcasting play is comprised in instruction.Receive this in playback equipment After playing control instruction, it is data cached that the decoding end control output end of playback equipment empties current output.
It is understood that this playback equipment can include main equipment it is also possible to not include main equipment, do not make concrete herein Limit.
Wherein, the term in description and claims of this specification " first ", " second " etc. are for distinguishing difference Object, rather than be used for describing particular order, in this embodiment, the link information of the source data comprising in control instruction will be play It is referred to as the first link information, the link information of the source data being currently played is referred to as the second link information, does not constitute Limitation of the invention.
Caching determining unit 303, is needed for being determined based on described first link information and described starting time information The target data play;Output broadcast unit 304, for exporting this target data and playing.
It is understood that the target data that needs are play is determined based on the first link information and starting time information Mode has a lot, such as, in some embodiments, please also refer to Fig. 5, the broadcast control device providing for the present embodiment 400 structural representation, wherein, this caching determining unit 303 can include:
First acquisition subelement 3031, for obtaining the second link information of the source data being currently played.
Compare subelement 3032, for described second link information is compared with described first link information, obtain Comparison result.
Determination subelement 3033, needs broadcasting for determining based on described comparison result and described starting time information Target data.
That is, in this embodiment, playback equipment is by link information (second chain of the source data being currently played Connect information) with play the link information (the first link information) of source data that control instruction comprises and compare, thus according to than To result and play the starting time information that comprises of control instruction and obtain that new output is data cached, that is, need the target play Data.
Wherein, in a kind of enforceable mode, described determination subelement 3033 can be specifically for:
If described second link information is consistent with described first link information, according to described first link information, from institute State the time point indicated by starting time information to start corresponding source data is decoded, generate decoded source data, will Described decoded source data is transmitted to output end, and is defined as the target data needing to play.
Such as, when the second link information is consistent with the first link information, directly according to the first link information (or the second chain Connect information) analogue data from internet, LAN, local memory and external memory storage or after Analog-digital Converter Input, obtains source data, and the time point according to indicated by starting time information starts this source data is decoded thereafter, thus Generate decoded source data, and this decoded source data is transmitted to playback equipment output end, data cached as exporting, Need the target data play.
In another kind of enforceable mode, described determination subelement 3033 can be also used for:
If described second link information is inconsistent with described first link information, replace second using the first link information Link information, according to the first link information, the time point indicated by from described starting time information starts to corresponding source data It is decoded, generates decoded source data, described decoded source data is transmitted to output end, and be defined as needing to play Target data.
Such as, when the second link information and the first link information are inconsistent, playback equipment decoding end is currently broadcast first The link information (the second link information) of the source data put is reset, and replaces with the first link information, subsequently, Ke Yigen According to the second link information (i.e. the first link information) after this replacement from internet, LAN, local memory and external storage Device or the input of the analogue data after Analog-digital Converter, obtain source data, thereafter according to indicated by starting time information Time point starts this source data is decoded, thus generating decoded source data, and this decoded source data is transmitted To playback equipment output end, data cached as exporting, that is, need the target data play.
In some embodiments, as shown in figure 5, described caching determining unit 303 can also include:
Second acquisition subelement 3034, if being sky for playing the first link information comprising in control instruction, basis Second link information of the source data being currently played, obtains corresponding source data.
Decoding subunit 3035, starts described source data is entered for the time point indicated by from described starting time information Row decoding, generates decoded source data.
Caching subelement 3036, for transmitting described decoded source data to output end, and is defined as needing to play Target data.
Such as, in this embodiment, comprise if playback equipment decoding end detects in the broadcasting control instruction receiving The first link information be sky, then it is considered that the link information (the second link information) of currently playing source data need not be again Setting, directly according to this second link information from internet, LAN, local memory and external memory storage or through simulation Numeral conversion after analogue data input, obtain source data, thereafter the time point according to indicated by starting time information start right This source data is decoded, thus generating decoded source data, and this decoded source data is transmitted defeated to playback equipment Go out end, data cached as exporting, that is, need the target data play.
And then, the output end of each playback equipment can be same according to the data (exporting data cached) being cached in caching When output user want play voice data.
When being embodied as, above unit can be realized as independent entity it is also possible to be combined, and makees To realize for same or several entities, being embodied as of above unit can be found in embodiment of the method above, and here is not Repeat again.
This broadcast control device specifically can be integrated in multiple playback equipments, such as audio amplifier, all kinds of player etc..
From the foregoing, the broadcast control device that the present embodiment provides, when receiving broadcasting control instruction, to current Output data cached is emptied, wherein, comprise in this broadcasting control instruction play the first link information of source data and The starting time information play;Determine the target needing to play subsequently, based on this first link information and starting time information Data, finally exports this target data and plays;The handling process being directed to all types of broadcasting control instructions is united again One design, by first emptying caching, then arranges the mode that source data links, forms unified broadcasting control flow, need not consider Timestamp information in packet, substantially improves many equipment synchronization results of broadcast.
The present invention also provides a kind of terminal, the such as terminal such as panel computer, mobile phone, audio amplifier, refers to Fig. 6, and Fig. 6 is the present invention The terminal structure schematic diagram that embodiment provides.This terminal 500 can include radio frequency (RF, Radio Frequency) circuit 501, Include the memory 502 of one or more computer-readable recording mediums, input block 503, display unit 504, pass Sensor 504, voicefrequency circuit 506, Wireless Fidelity (WiFi, Wireless Fidelity) module 507, include one or one The part such as the processor 508 of individual above processing core and power supply 509.It will be understood by those skilled in the art that shown in Fig. 6 Terminal structure not structure paired terminal restriction, ratio can be included and illustrate more or less of part, or combine some portions Part, or different part arrangements.
Radio circuit 501 can be used for receiving and sending messages, or the reception of signal and transmission in communication process, especially, by base station Downlink information receive after, transfer to one or more than one processor 508 processed;In addition, up data is activation will be related to To base station.Generally, radio circuit 501 includes but is not limited to antenna, at least one amplifier, tuner, one or more vibration Device, subscriber identity module (SIM, Subscriber Identity Module) card, transceiver, coupler, low noise amplification Device (LNA, Low Noise Amplifier), duplexer etc..Additionally, radio circuit 501 can also pass through radio communication and network With other equipment communication.This radio communication can use arbitrary communication standard or agreement, including but not limited to global system for mobile telecommunications System (GSM, Global System of Mobile communication), general packet radio service (GPRS, General Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division many Location (WCDMA, Wideband Code Division Multiple Access), Long Term Evolution (LTE, Long Term Evolution), Email, Short Message Service (SMS, Short Messaging Service) etc..
Memory 502 can be used for storing application program data.Include and can hold in the application program of memory 502 storage Line code.Application program can form various functions module.Processor 508 passes through to run the application journey being stored in memory 502 Sequence, thus execute various function application and data processing.Memory 502 can mainly include storing program area and data storage Area, wherein, storing program area can application program needed for storage program area, at least one function (such as sound-playing function, Image player function etc.) etc.;Storage data field can store according to terminal using data (the such as voice data, electricity being created Script for story-telling etc.) etc..Additionally, memory 502 can include high-speed random access memory, nonvolatile memory can also be included, For example, at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 502 is gone back Memory Controller can be included, to provide the access to memory 502 of processor 508 and input block 503.
Input block 503 can be used for numeral, character information or the user's characteristic information (such as fingerprint) of receives input, and Produce the keyboard relevant with user setup and function control, mouse, action bars, optics or trace ball signal input.Specifically Ground, in a specific embodiment, input block 503 may include Touch sensitive surface and other input equipments.Touch sensitive surface, Referred to as touch display screen or Trackpad, can collect user thereon or neighbouring touch operation (such as user uses finger, touches Any suitable object or annex operations on Touch sensitive surface or near Touch sensitive surface such as pen), and according to set in advance Formula drives corresponding attachment means.Optionally, Touch sensitive surface may include touch detecting apparatus and two parts of touch controller. Wherein, touch detecting apparatus detect the touch orientation of user, and detect the signal that touch operation brings, and transmit a signal to touch Controller;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives process Device 508, and can the order sent of receiving processor 508 being executed.Furthermore, it is possible to adopt resistance-type, condenser type, infrared ray And the polytype such as surface acoustic wave realizes Touch sensitive surface.Except Touch sensitive surface, input block 503 can also include other inputs Equipment.Specifically, other input equipments can include but is not limited to physical keyboard, function key (such as volume control button, switch Button etc.), fingerprint recognition module, trace ball, mouse, one or more of action bars etc..
Display unit 504 can be used for display and by the information of user input or is supplied to the information of user and the various of terminal Graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination.Display Unit 504 may include display floater.Optionally, can using liquid crystal display (LCD, Liquid Crystal Display), The forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) are configuring display floater.Further , Touch sensitive surface can cover display floater, when Touch sensitive surface detects thereon or after neighbouring touch operation, sends process to Device 508, to determine the type of touch event, provides accordingly according to the type of touch event on a display panel with preprocessor 508 Visual output.Although in figure 6, Touch sensitive surface and display floater are to realize inputting as two independent parts and to input Function, but in some embodiments it is possible to will be integrated to Touch sensitive surface and display floater and realize input and output function.
Terminal may also include at least one sensor 505, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity transducer, and wherein, ambient light sensor can be according to ambient light The brightness to adjust display floater for the light and shade, proximity transducer can cut out display floater and/or the back of the body when terminal moves in one's ear Light.As one kind of motion sensor, Gravity accelerometer can detect (generally three axles) acceleration in all directions Size, can detect that size and the direction of gravity when static, can be used for identify mobile phone attitude application (such as horizontal/vertical screen switching, Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Can also configure as terminal Gyroscope, barometer, hygrometer, thermometer, the other sensors such as infrared ray sensor, will not be described here.
Voicefrequency circuit 506 can provide the COBBAIF between user and terminal by loudspeaker, microphone.Voicefrequency circuit The voice data receiving can be converted into electric signal by 506, be transferred to loudspeaker, be converted to voice signal output by loudspeaker; On the other hand, the voice signal of collection is converted to electric signal by microphone, is converted to audio frequency number by voicefrequency circuit 506 after being received According to then after processing voice data output processor 508, through radio circuit 501 being sent to such as another terminal, or by sound Frequency data output is to memory 502 to process further.Voicefrequency circuit 506 is also possible that earphone jack, to provide peripheral hardware Earphone and the communication of terminal.
Wireless Fidelity (WiFi) belongs to short range wireless transmission technology, and terminal can be helped by wireless fidelity module 507 User sends and receive e-mail, browses webpage and access streaming video etc., and it has provided the user wireless broadband internet and has accessed. Although Fig. 6 shows wireless fidelity module 507, but it is understood that, it is simultaneously not belonging to must be configured into of terminal, completely may be used To omit in the scope of essence not changing invention as needed.
Processor 508 is the control centre of terminal, using the various pieces of various interfaces and the whole terminal of connection, leads to Cross and run or execute the application program being stored in memory 502, and call the data being stored in memory 502, execution The various functions of terminal and processing data, thus carry out integral monitoring to terminal.Optionally, processor 508 may include one or Multiple processing cores;Preferably, processor 508 can integrated application processor and modem processor, wherein, application processor Main process operating system, user interface and application program etc., modem processor mainly processes radio communication.It is appreciated that , above-mentioned modem processor can not also be integrated in processor 508.
Terminal also includes the power supply 509 (such as battery) powered to all parts.Preferably, power supply can pass through power supply pipe Reason system is logically contiguous with processor 508, thus realizing management charging, electric discharge and power managed by power-supply management system Etc. function.Power supply 509 can also include one or more direct current or AC power, recharging system, power failure inspection The random component such as slowdown monitoring circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown in Fig. 6, terminal can also include camera, bluetooth module etc., will not be described here.
Specifically in the present embodiment, the processor 508 in terminal can be according to following instruction, will be one or more The corresponding executable code of process of application program is loaded in memory 502, and to be run by processor 508 and be stored in storage Application program in device 502, thus realize various functions:
Receive play control instruction, comprise in described broadcasting control instruction play the first link information of source data and The starting time information play;Current output is emptied according to described broadcasting control instruction data cached;Based on described first chain Connect information and described starting time information determines the target data needing to play;Export this target data and play.
In some embodiments, processor 508 also runs the application program being stored in memory 502, thus realizing Following function:Obtain the second link information of the source data being currently played;By described second link information and described first Link information is compared, and obtains comparison result;Determine that needs are broadcast based on described comparison result and described starting time information The target data put.
In some embodiments, if described second link information is consistent with described first link information, according to described First link information, the time point indicated by from described starting time information starts corresponding source data is decoded, and generates Decoded source data;Described decoded source data is transmitted to output end, and is defined as the target data needing to play.
In some embodiments, if described second link information is inconsistent with described first link information, using One link information replaces the second link information;According to the first link information, from the time point indicated by described starting time information Start corresponding source data is decoded, generate decoded source data;Described decoded source data is transmitted to output End, and it is defined as the target data needing to play.
In some embodiments, if playing the first link information comprising in control instruction is sky, according to currently just In the second link information of the source data play, obtain corresponding source data;From the time indicated by described starting time information Point starts described source data is decoded, and generates decoded source data;Described decoded source data is transmitted to output End, and it is defined as the target data needing to play.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion described in detail in certain embodiment Point, may refer to the detailed description above with respect to control method for playing back, here is omitted.
Described broadcast control device provided in an embodiment of the present invention, such as computer, panel computer, there is touch function Mobile phone etc., described broadcast control device belongs to same design with the control method for playing back in foregoing embodiments, broadcasts described Put and the either method providing in described control method for playing back embodiment can be run on control device, it implements process and refers to Described control method for playing back embodiment, here is omitted.
It should be noted that for control method for playing back of the present invention, this area common test personnel be appreciated that Realize all or part of flow process of control method for playing back described in the embodiment of the present invention, can be by computer program to control phase Completing, described computer program can be stored in a computer read/write memory medium hardware closing, as being stored in terminal In memory, and by least one computing device in this terminal, may include in the process of implementation as described broadcasting controlling party The flow process of the embodiment of method.Wherein, described storage medium can be magnetic disc, CD, read-only storage (ROM, Read Only Memory), random access memory (RAM, Random Access Memory) etc..
For the described broadcast control device of the embodiment of the present invention, its each functional module can be integrated in a process core In piece or modules are individually physically present it is also possible to two or more modules are integrated in a module.On Stating integrated module both can be to be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.Described collection If become module is realized using in the form of software function module and as independent production marketing or use when it is also possible to be stored in In one computer read/write memory medium, described storage medium is such as read-only storage, disk or CD etc..
A kind of control method for playing back, device and the terminal that above the embodiment of the present invention are provided are described in detail, Specific case used herein is set forth to the principle of the present invention and embodiment, and the explanation of above example is to use Understand the method for the present invention and its core concept in help;Simultaneously for those skilled in the art, according to the think of of the present invention Think, all will change in specific embodiments and applications, in sum, it is right that this specification content should not be construed as The restriction of the present invention.

Claims (10)

1. a kind of control method for playing back is it is characterised in that include:
Receive and play control instruction, in described broadcasting control instruction, comprise the first link information of source data and the broadcasting play Starting time information;
Current output is emptied according to described broadcasting control instruction data cached;
The target data needing to play is determined based on described first link information and described starting time information;
Export described target data and play.
2. control method for playing back according to claim 1 it is characterised in that described based on described first link information and Described starting time information determines the target data needing to play, including:
Obtain the second link information of the source data being currently played;
Described second link information is compared with described first link information, obtains comparison result;
The target data needing to play is determined based on described comparison result and described starting time information.
3. control method for playing back according to claim 2 is it is characterised in that described based on described comparison result and described Starting time information determines the target data needing to play, including:
If described second link information is consistent with described first link information, according to described first link information, from described Time point indicated by point temporal information starts corresponding source data is decoded, and generates decoded source data;
Described decoded source data is transmitted to output end, and is defined as the target data needing to play.
4. control method for playing back according to claim 2 is it is characterised in that described based on described comparison result and described Starting time information determines the target data needing to play, including:
If described second link information is inconsistent with described first link information, replace the second link using the first link information Information;
According to the first link information, the time point indicated by from described starting time information starts corresponding source data is solved Code, generates decoded source data;
Described decoded source data is transmitted to output end, and is defined as the target data needing to play.
5. control method for playing back according to claim 2 it is characterised in that described based on described first link information and Described starting time information determines the target data needing to play, including:
If the first link information comprising in broadcasting control instruction is sky, according to the second chain of the source data being currently played Connect information, obtain corresponding source data;
Time point indicated by from described starting time information starts described source data is decoded, and generates decoded source number According to;
Described decoded source data is transmitted to output end, and is defined as the target data needing to play.
6. a kind of broadcast control device is it is characterised in that include:
Instruction reception unit, plays control instruction for receiving, and comprises the of source data playing in described broadcasting control instruction The starting time information of one link information and broadcasting;
Caching empties unit, data cached for emptying current output according to described broadcasting control instruction;
Caching determining unit, for determining, based on described first link information and described starting time information, the mesh needing to play Mark data;
Output broadcast unit, for exporting described target data and playing.
7. broadcast control device according to claim 6 is it is characterised in that described caching determining unit, including:
First acquisition subelement, for obtaining the second link information of the source data being currently played;
Compare subelement, for described second link information is compared with described first link information, obtain comparison result;
Determination subelement, for determining, based on described comparison result and described starting time information, the number of targets needing to play According to.
8. broadcast control device according to claim 7 is it is characterised in that described determination subelement is used for:
If described second link information is consistent with described first link information, according to described first link information, from described Time point indicated by point temporal information starts corresponding source data is decoded, and generates decoded source data, will be described Decoded source data is transmitted to output end, and is defined as the target data needing to play;
If described second link information is inconsistent with described first link information, replace the second link using the first link information Information, according to the first link information, the time point indicated by from described starting time information starts corresponding source data is carried out Decoding, generates decoded source data, described decoded source data is transmitted to output end, and is defined as the mesh needing to play Mark data.
9. broadcast control device according to claim 6 is it is characterised in that described caching determining unit includes:
Second acquisition subelement, if being sky for playing the first link information comprising in control instruction, basis is current Second link information of the source data play, obtains corresponding source data;
Decoding subunit, starts described source data is decoded for the time point indicated by from described starting time information, Generate decoded source data;
Caching subelement, for transmitting described decoded source data to output end, and is defined as the number of targets needing to play According to.
10. a kind of terminal is it is characterised in that include:
Be stored with the memory of executable program code;
The processor coupling with described memory;
Described processor calls the described executable program code of storage in described memory, and execution such as claim 1 is to right Require the method described in 5 any one.
CN201610882863.5A 2016-10-08 2016-10-08 A kind of control method for playing back, device and terminal Active CN106411903B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610882863.5A CN106411903B (en) 2016-10-08 2016-10-08 A kind of control method for playing back, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610882863.5A CN106411903B (en) 2016-10-08 2016-10-08 A kind of control method for playing back, device and terminal

Publications (2)

Publication Number Publication Date
CN106411903A true CN106411903A (en) 2017-02-15
CN106411903B CN106411903B (en) 2019-08-23

Family

ID=59229257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610882863.5A Active CN106411903B (en) 2016-10-08 2016-10-08 A kind of control method for playing back, device and terminal

Country Status (1)

Country Link
CN (1) CN106411903B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108696762A (en) * 2017-04-12 2018-10-23 中兴通讯股份有限公司 A kind of synchronous broadcast method, device and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101137048A (en) * 2006-08-29 2008-03-05 中兴通讯股份有限公司 Method to reduce living broadcast channel switching time under single broadcast mode
CN101212679A (en) * 2006-12-30 2008-07-02 凌阳科技股份有限公司 AV synchronization method and device for switching multi-channel audio streams during playing of AVI files
CN103702202A (en) * 2013-12-13 2014-04-02 乐视致新电子科技(天津)有限公司 Method and device for realizing fast playing during channel switching

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101137048A (en) * 2006-08-29 2008-03-05 中兴通讯股份有限公司 Method to reduce living broadcast channel switching time under single broadcast mode
CN101212679A (en) * 2006-12-30 2008-07-02 凌阳科技股份有限公司 AV synchronization method and device for switching multi-channel audio streams during playing of AVI files
CN103702202A (en) * 2013-12-13 2014-04-02 乐视致新电子科技(天津)有限公司 Method and device for realizing fast playing during channel switching

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108696762A (en) * 2017-04-12 2018-10-23 中兴通讯股份有限公司 A kind of synchronous broadcast method, device and system

Also Published As

Publication number Publication date
CN106411903B (en) 2019-08-23

Similar Documents

Publication Publication Date Title
CN106254903B (en) A kind of synchronous broadcast method of multi-medium data, apparatus and system
CN103473092B (en) A kind of download the processing method of application, device and terminal unit
CN106126174B (en) A kind of control method and electronic equipment of scene audio
CN106448714B (en) A kind of synchronous broadcast method of playback equipment, apparatus and system
CN103596017B (en) Video downloading method and system
CN105847996A (en) Video playing method and apparatus
CN103559731B (en) Method and terminal for displaying lyrics under screen locking state
CN106254924B (en) A kind of player method of multi-medium data, system and relevant device
CN106653068B (en) A kind of playback method of audio data, device and terminal
CN105959482B (en) A kind of control method and electronic equipment of scene audio
CN103634717A (en) Method, device and terminal equipment utilizing earphone to control
CN104166646B (en) A kind of method and apparatus for inputting uniform resource locator
CN103945241A (en) Streaming data statistical method, system and related device
CN104869465A (en) Video playing control method and device
CN106452643B (en) Control method for playing back, device, terminal and play system
CN105447124A (en) Virtual article sharing method and device
CN103607431B (en) Mobile terminal resource processing method, device and equipment
CN105185401A (en) Method and device for synchronizing multi-media file list
WO2015010611A1 (en) Method, apparatus, and communication system of updating user data
CN105550316A (en) Pushing method and device of audio list
CN104240710B (en) A kind of method, system and the terminal device of information transmission
CN104243394A (en) Multimedia file playing method and device
CN103458064A (en) Method, device and terminal equipment for transmitting address information of multimedia information
CN105094872A (en) Method and apparatus for displaying webpage application
CN105282628B (en) A kind of method and apparatus of video playing

Legal Events

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

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

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

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

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

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant