CN109889922A - Retransmission method, device, equipment and the storage medium of stream medium data - Google Patents

Retransmission method, device, equipment and the storage medium of stream medium data Download PDF

Info

Publication number
CN109889922A
CN109889922A CN201910294762.XA CN201910294762A CN109889922A CN 109889922 A CN109889922 A CN 109889922A CN 201910294762 A CN201910294762 A CN 201910294762A CN 109889922 A CN109889922 A CN 109889922A
Authority
CN
China
Prior art keywords
medium data
stream medium
time stamp
object time
current stream
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
CN201910294762.XA
Other languages
Chinese (zh)
Other versions
CN109889922B (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shizhen Information Technology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shizhen Information Technology Co 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shizhen Information Technology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201910294762.XA priority Critical patent/CN109889922B/en
Publication of CN109889922A publication Critical patent/CN109889922A/en
Application granted granted Critical
Publication of CN109889922B publication Critical patent/CN109889922B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention discloses a kind of retransmission method of stream medium data, device, equipment and storage mediums, wherein this method comprises: by the currently transmitted information of received current stream medium data with prestore send information compared with pair, obtain comparison result;Based on comparison result, the corresponding object time stamp of current stream medium data is determined;Current stream medium data and stamp of corresponding object time are forwarded to receiving end, so that receiving end is based on object time stamp and plays current stream medium data.The embodiment of the present invention resets timestamp according to same benchmark to the stream medium data of different transmitting terminals, it is ensured that receiving end receives the timestamp monotonic increase of stream medium data and do not repeat, and improves the broadcasting accuracy rate of stream medium data.

Description

Retransmission method, device, equipment and the storage medium of stream medium data
Technical field
The present embodiments relate to technical field of computer multimedia more particularly to a kind of forwarding sides of stream medium data Method, device, equipment and storage medium.
Background technique
With the continuous development of the communication technology, in order to improve communication efficiency, remotely linked up by network implementations multi-party users Grow up with the mode of interaction, this interactive mode make multi-party users do not need it is on the spot in person can realize it is identical mutually It is dynamic.
Currently, side's client would generally receive the video data of multi-party client in the scene of Multi-Party Conference.Example Property referring to Fig. 1, Fig. 1 is the schematic diagram for the video data that a side receiving end receives six side's transmitting terminals, and wherein receiving end G is to receive End, transmitting terminal A- transmitting terminal F are transmitting terminal, send seven road video datas to selective forwarding unit (Selective Forwarding Unit, SFU), SFU is transmitted to receiving end G by four forwarding accesses.In order to reduce delay, four forwardings are logical Road is all to establish in advance, then forwards the SFU four road video datas selected by this four forwarding accesses.
The problem of above scheme, is that transmitting terminal A- transmitting terminal F has the timestamp of oneself, and timestamp may be not It is identical and incoherent.At this point, if first by the video data of transmitting terminal A by forwarding access 1 to be sent to receiving end G, later Again by the video data of transmitting terminal B by forwarding access 1 to be sent to receiving end G, since timestamp is inconsistent, it is more likely that rear to turn The timestamp of the video data of the transmitting terminal B of hair is less than the timestamp of the video data of the transmitting terminal A first forwarded, and then causes to connect The post-processing of receiving end G reception malfunctions.
Summary of the invention
The present invention provides retransmission method, device, equipment and the storage medium of a kind of stream medium data, can solve existing skill Because handling mistake caused by timestamp difference in art.
In a first aspect, the embodiment of the invention provides a kind of retransmission methods of stream medium data, comprising:
By the currently transmitted information of received current stream medium data with prestore send information compared to pair, obtain compare tie Fruit;
Based on the comparison result, the corresponding object time stamp of the current stream medium data is determined;
The current stream medium data and stamp of corresponding object time are forwarded to receiving end, so that receiving end is based on described Object time stamp plays the current stream medium data.
Second aspect, the embodiment of the invention also provides a kind of retransmission unit of stream medium data, which includes:
Comparison module, for by the currently transmitted information of received current stream medium data with prestore send information compared with It is right, obtain comparison result;
Timestamp determining module determines the corresponding target of the current stream medium data for being based on the comparison result Timestamp;
Forwarding module, for the current stream medium data and stamp of corresponding object time to be forwarded to receiving end, so that Receiving end is based on object time stamp and plays the current stream medium data.
Further, the timestamp determining module includes:
Stamp determination unit at the first time, if prestoring hair with described for the currently transmitted information for the comparison result The transmitting terminal mark for including in breath of delivering letters is different, then determines the corresponding target of the current stream medium data according to current clock value Timestamp;
Second timestamp determination unit, if prestoring hair with described for the currently transmitted information for the comparison result The transmitting terminal mark for including in breath of delivering letters is identical, then according to the currently transmitted information and prestores transmission information, determine described in work as The corresponding object time stamp of preceding stream medium data.
Further, the first time stamp determination unit is specifically used for:
Forwarding time stamp is calculated according to the current clock value and network time offset value, the forwarding time stamp is single It adjusts and is incremented by;
Object time stamp is determined as the forwarding time stamp.
Further, the second timestamp determination unit is specifically used for:
The object time stamp is determined according to original time stamp difference, and the original time stamp difference is described currently transmitted Original time stamp and the difference for prestoring the original time stamp in transmission information in information.
Further, the second timestamp determination unit includes:
First difference subelement will be described if being less than or equal to preset difference value threshold value for original time stamp difference Object time stamp is determined as the original time stamp difference and the sum of the object time stamp prestored in transmission information.
Further, the second timestamp determination unit further include:
Second difference subelement, if being greater than preset difference value threshold value for the original time stamp difference, by the mesh Mark timestamp is determined as forwarding time stamp.
Further, described device further include: update module, the update module are used for:
The currently transmitted information of the current stream medium data is determined as new to prestore transmission information.
The third aspect, the embodiment of the invention also provides a kind of equipment, the equipment includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the retransmission method of stream medium data as described above.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program, the program realize the retransmission method of stream medium data as described above when being executed by processor.
The embodiment of the present invention by by the currently transmitted information of received current stream medium data with prestore send information phase It compares, obtains comparison result, be based on comparison result, determine the corresponding object time stamp of current stream medium data, and will currently flow Media data and stamp of corresponding object time are forwarded to receiving end, so that receiving end is based on object time stamp and plays current Streaming Media Data.The embodiment of the present invention resets timestamp according to same benchmark to the stream medium data of different transmitting terminals, avoids multiple The stream medium data of transmitting terminal may be because handling mistake when being forwarded to a receiving end caused by timestamp difference, it is ensured that receives termination It receives the timestamp monotonic increase of stream medium data and does not repeat, improve the broadcasting accuracy rate of stream medium data.
Detailed description of the invention
Fig. 1 is the schematic diagram for the video data that a side receiving end receives six side's transmitting terminals;
Fig. 2 is the flow chart of the retransmission method of the stream medium data in the embodiment of the present invention one;
Fig. 3 is the flow chart of the retransmission method of the stream medium data in the embodiment of the present invention two;
Fig. 4 is the structural schematic diagram of the retransmission unit of the stream medium data in the embodiment of the present invention three;
Fig. 5 is the structural schematic diagram of the equipment in the embodiment of the present invention four.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 2 is the flow chart of the retransmission method of the stream medium data in the embodiment of the present invention one, and the present embodiment is applicable to Realize the case where stream medium data of multiple transmitting terminals is forwarded to a receiving end, this method can be by the forwarding of stream medium data Device executes, which can realize that the device is configured in equipment by the way of software and/or hardware, such as this sets Standby can be computer, tablet computer and smart phone etc..The retransmission unit of stream medium data in the present embodiment is turned with selectivity It is illustrated for bill member (Selective Forwarding Unit, SFU), as shown in Fig. 2, this method specifically can wrap It includes:
S110, by the currently transmitted information of received current stream medium data with prestore send information compared with pair, compared To result.
Wherein, using the continuous time-base media of streaming technology, such as audio number when stream medium data can be to transmit According to, video data or multi-medium data etc., it is not construed as limiting in concrete type the present embodiment of stream medium data, is forwarded in Fig. 1 Video data is only an example.Currently transmitted information indicates the relevant information of current stream medium data, in currently transmitted information It may include the original time stamp and transmitting terminal mark of current stream medium data.Prestoring and sending information is to be stored in local expression The relevant information of a upper stream medium data, prestore send information in may include a upper stream medium data original time stamp, mesh Mark timestamp and transmitting terminal mark.Wherein transmitting terminal mark can use the SSRC (Synchronization of 32 bit values Source) identifier is identified.The object time of a upper stream medium data stabs newly-installed new timestamp of attaching most importance to.This implementation If current stream medium data is first data of the retransmission unit of stream medium data in example, it is empty for prestoring in transmission information. The transmitting terminal of stream medium data in the present embodiment is that transmitting terminal quantity is 6 merely illustrative at least two, Fig. 1.
Specifically, the retransmission unit of stream medium data receives current stream medium data to be forwarded, and work as institute is received Transmitting terminal mark in the currently transmitted information of preceding stream medium data is carried out with the local transmitting terminal mark sent in information that prestores It compares, it is whether identical as the transmitting terminal of a upper stream medium data with the transmitting terminal of the current stream medium data of determination, it obtains comparing knot Fruit.
S120, it is based on comparison result, determines the corresponding object time stamp of current stream medium data.
Wherein, to include currently transmitted information different from the transmitting terminal mark that sends and include in information is prestored and work as comparison result It is preceding send information with prestore transmission information in include transmitting terminal mark it is two kinds identical.Object time stamp is turning for stream medium data Transmitting apparatus is the new timestamp of current stream medium data setting.
Specifically, being based on comparison result, the corresponding object time stamp of current stream medium data is determined, comprising: if compared As a result different from the transmitting terminal mark for sending and including in information is prestored for currently transmitted information, then worked as according to current clock value determination The corresponding object time stamp of preceding stream medium data;If the currently transmitted information of comparison result with prestore send information in include Transmitting terminal mark is identical, then according to currently transmitted information and prestores transmission information, determine the corresponding target of current stream medium data Timestamp.
If comparison result is different from the transmitting terminal mark for sending and including in information is prestored for currently transmitted information, i.e., currently When the transmitting terminal difference of the transmitting terminal of stream medium data and a upper stream medium data, then current stream matchmaker is determined according to current clock value The corresponding object time stamp of volume data, comprising: forwarding time stamp is calculated according to current clock value and network time offset value, Forwarding time stabs monotonic increase;It will stab object time and be determined as forwarding time stamp.Wherein, forwarding time stamp by preset formula into Row calculates, and preset formula can be expressed as T=90* (t+N), and wherein T indicates that forwarding time stamp, t indicate current clock value, N table Show that network time offset value, network time offset value are current clock value and Network Time Protocol (Network Time Protoco, NTP) time offset value.Since forwarding time stamp is related to current clock value, forwarding time stamp dullness is passed Increase.When the transmitting terminal difference of the transmitting terminal and a upper stream medium data of current stream medium data, by the mesh of current stream medium data Time stamp setting is marked as forwarding time stamp.
If comparison result is identical as the transmitting terminal mark for sending and including in information is prestored for currently transmitted information, i.e., currently When the transmitting terminal of stream medium data is identical as the transmitting terminal of a upper stream medium data, then the object time of current stream medium data stabs It can be configured according to the original time stamp of a upper stream medium data.
Further, according to currently transmitted information and transmission information is prestored, determines the corresponding target of current stream medium data Timestamp, comprising: determine that the object time stabs according to original time stamp difference, original time stamp difference is in currently transmitted information Original time stamp sends the difference of the original time stamp in information with prestoring.It will stab object time and be determined as original time stamp difference With the sum of the object time stamp prestored in transmission information, i.e. object time stamp is equal to original time stamp difference and upper Streaming Media number According to object time stamp the sum of.
S130, current stream medium data and stamp of corresponding object time are forwarded to receiving end, so that receiving end is based on mesh It marks timestamp and plays current stream medium data.
Wherein, receiving end is unique.After determining the corresponding object time stamp of current stream medium data, will currently it flow Media data and stamp of corresponding object time are forwarded to receiving end, so that receiving end is based on object time stamp and plays current Streaming Media Data.
The technical solution of the present embodiment, by the way that the currently transmitted information of received current stream medium data and transmission will be prestored Information obtains comparison result compared to, is based on comparison result, determines the corresponding object time stamp of current stream medium data, and will Current stream medium data and stamp of corresponding object time are forwarded to receiving end, so that receiving end is current based on object time stamp broadcasting Stream medium data.The present embodiment resets timestamp according to same benchmark to the stream medium data of different transmitting terminals, avoids more The stream medium data of a transmitting terminal may be because handling mistake when being forwarded to a receiving end caused by timestamp difference, it is ensured that receiving end It receives the timestamp monotonic increase of stream medium data and does not repeat, improve the broadcasting accuracy rate of stream medium data.
Embodiment two
Fig. 3 is the flow chart of the retransmission method of the stream medium data in the embodiment of the present invention two.The present embodiment is in above-mentioned reality On the basis of applying example, further the retransmission method of above-mentioned stream medium data is embodied.Correspondingly, as shown in figure 3, originally The method of embodiment specifically includes:
S210, by the currently transmitted information of received current stream medium data with prestore send information compared with pair, compared To result.
Specifically, the retransmission unit of stream medium data receives current stream medium data to be forwarded, and work as institute is received Transmitting terminal mark in the currently transmitted information of preceding stream medium data is carried out with the local transmitting terminal mark sent in information that prestores It compares, it is whether identical as the transmitting terminal of a upper stream medium data with the transmitting terminal of the current stream medium data of determination, it obtains comparing knot Fruit.
It is identical as the transmitting terminal mark that sends and include in information is prestored whether S220, comparison result are currently transmitted information.
If comparison result is identical as the transmitting terminal mark for sending and including in information is prestored for currently transmitted information, execute S232 is executed if comparison result is different from the transmitting terminal mark for sending and including in information is prestored for currently transmitted information S231。
S231, the corresponding object time stamp of current stream medium data is determined according to current clock value.
Specifically, determining that the current stream medium data corresponding object time stabs according to current clock value, comprising: according to current Forwarding time stamp is calculated in clock value and network time offset value, and forwarding time stabs monotonic increase;Object time it will stab determination For forwarding time stamp.
S232, according to currently transmitted information and transmission information is prestored, determines the current stream medium data corresponding object time Stamp.
Specifically, determining that the object time stabs according to original time stamp difference, original time stamp difference is currently transmitted information In original time stamp with prestore send information in original time stamp difference.
Further, judge whether original time stamp difference is greater than preset difference value threshold value, if original time stamp difference is small In or equal to preset difference value threshold value, then object time stamp is determined as original time stamp difference and prestores the target sent in information The sum of timestamp.If original time stamp difference is greater than preset difference value threshold value, it will stab the object time and be determined as forwarding time stamp.
Wherein, preset difference value threshold value can be set according to the actual situation, such as preset difference value threshold value can be set to 500ms.If original time stamp difference is greater than preset difference value threshold value, illustrates that transmitting terminal does not send data, can be considered as and work as The transmitting terminal of preceding stream medium data is different from the transmitting terminal of a upper stream medium data, then will stab the object time and be determined as forwarding time Stamp.
If original time stamp difference is less than or equal to preset difference value threshold value, the transmission of current stream medium data can be considered as End is identical as the transmitting terminal of a upper stream medium data, then will stab the object time and be determined as original time stamp difference and prestore transmission to believe The sum of object time stamp in breath, i.e. object time stamp are the object time stamp of original time stamp difference and a upper stream medium data The sum of.
S240, the currently transmitted information of current stream medium data is determined as new to prestore transmission information.
Specifically, by being locally stored when prestoring the original time stamp for sending the upper stream medium data in information, target Between stamp and transmitting terminal mark delete, by the original time stamp of current stream medium data, the object time stamp and transmitting terminal mark storage Transmission information is prestored for new.
S250, current stream medium data and stamp of corresponding object time are forwarded to receiving end, so that receiving end is based on mesh It marks timestamp and plays current stream medium data.
It should be noted that the retransmission unit of stream medium data can carry out Streaming Media by the forwarding access of preset quantity The forwarding of data, preset quantity can be set according to the actual situation.Referring to Fig. 1,4 forwarding accesses are set it are only one and show Example.Forwarding time stamp can be associated with forwarding access, and each forwarding access safeguards an independent forwarding time stamp, above-mentioned step When the current stream medium data of the setting corresponding object time stabs in rapid, forwarding time stamp therein can turn for stream medium data Transmitting apparatus stabs for the forwarding time of the forwarding access of its distribution.
Technical solution provided in this embodiment, by by the currently transmitted information of received current stream medium data with prestore Information is sent compared to pair, obtains comparison result, is based on comparison result, determines the corresponding object time stamp of current stream medium data, By the currently transmitted information of current stream medium data be determined as it is new prestore transmission information, and by current stream medium data and correspondence Object time stamp be forwarded to receiving end so that receiving end is based on object time stamp and plays current stream medium data.The present embodiment Timestamp is reset according to same benchmark to the stream medium data of different transmitting terminals, avoids the stream medium data of multiple transmitting terminals May be because handling mistake caused by timestamp difference when being forwarded to a receiving end, it is ensured that receiving end receive stream medium data when Between stab and monotonic increase and do not repeat, improve the broadcasting accuracy rate of stream medium data;And the time of object time stamp and script The interval of stamp is related, ensure that the object time stamp of stream medium data is distributed according to the time interval of its script.
Embodiment three
Fig. 4 is the structural schematic diagram of the retransmission unit of the stream medium data in the embodiment of the present invention three, and the present embodiment can fit The case where being forwarded to a receiving end for realizing the stream medium data of multiple transmitting terminals, this method can be by stream medium data Retransmission unit executes.Streaming Media provided by any embodiment of the invention can be performed in communication device provided by the embodiment of the present invention The retransmission method of data has the corresponding functional module of execution method and beneficial effect.The device specifically includes comparison module 310, timestamp determining module 320 and forwarding module 330, in which:
Comparison module 310, for by the currently transmitted information of received current stream medium data with prestore send information phase It compares, obtains comparison result;
Timestamp determining module 320 determines the current stream medium data corresponding object time for being based on comparison result Stamp;
Forwarding module 330, for current stream medium data and stamp of corresponding object time to be forwarded to receiving end, so as to connect Receiving end is based on object time stamp and plays current stream medium data.
The embodiment of the present invention by by the currently transmitted information of received current stream medium data with prestore send information phase It compares, obtains comparison result, be based on comparison result, determine the corresponding object time stamp of current stream medium data, and will currently flow Media data and stamp of corresponding object time are forwarded to receiving end, so that receiving end is based on object time stamp and plays current Streaming Media Data.The embodiment of the present invention resets timestamp according to same benchmark to the stream medium data of different transmitting terminals, avoids multiple The stream medium data of transmitting terminal may be because handling mistake when being forwarded to a receiving end caused by timestamp difference, it is ensured that receives termination It receives the timestamp monotonic increase of stream medium data and does not repeat, improve the broadcasting accuracy rate of stream medium data.
Further, timestamp determining module 320 includes:
At the first time stamp determination unit, if for comparison result be currently transmitted information and prestore transmission information in include Transmitting terminal identify different, then determine that the current stream medium data corresponding object time stabs according to current clock value;
Second timestamp determination unit, if for comparison result be currently transmitted information and prestore transmission information in include Transmitting terminal mark it is identical, then according to currently transmitted information and prestore transmission information, determine the corresponding mesh of current stream medium data Mark timestamp.
Further, stamp determination unit is specifically used at the first time:
Forwarding time stamp is calculated according to current clock value and network time offset value, forwarding time stabs monotonic increase;
It will stab object time and be determined as forwarding time stamp.
Further, the second timestamp determination unit is specifically used for:
Determine that the object time stabs according to original time stamp difference, original time stamp difference is original in currently transmitted information Timestamp sends the difference of the original time stamp in information with prestoring.
Further, the second timestamp determination unit includes:
First difference subelement, if being less than or equal to preset difference value threshold value for original time stamp difference, by target Timestamp is determined as original time stamp difference and prestores the sum of the object time stamp sent in information.
Further, the second timestamp determination unit further include:
Second difference subelement will stab the object time if being greater than preset difference value threshold value for original time stamp difference It is determined as forwarding time stamp.
Further, device further include: update module, update module are used for:
The currently transmitted information of current stream medium data is determined as new to prestore transmission information.
The retransmission unit of stream medium data provided by the embodiment of the present invention can be performed any embodiment of that present invention and be provided Stream medium data retransmission method, have the corresponding functional module of execution method and beneficial effect.
Example IV
Fig. 5 is the structural schematic diagram of the equipment in the embodiment of the present invention four.Fig. 5, which is shown, to be suitable for being used to realizing that the present invention is real Apply the block diagram of the example devices 412 of mode.The equipment 412 that Fig. 5 is shown is only an example, should not be to the embodiment of the present invention Function and use scope bring any restrictions.
As shown in figure 5, equipment 412 is showed in the form of common apparatus.The component of equipment 412 can include but is not limited to: One or more processor 416, storage device 428 connect different system components (including storage device 428 and processor 416) bus 418.
Bus 418 indicates one of a few class bus structures or a variety of, including storage device bus or storage device control Device processed, peripheral bus, graphics acceleration port, processor or total using the local of any bus structures in a variety of bus structures Line.For example, these architectures include but is not limited to industry standard architecture (Industry Subversive Alliance, ISA) bus, microchannel architecture (Micro Channel Architecture, MAC) bus is enhanced Isa bus, Video Electronics Standards Association (Video Electronics Standards Association, VESA) local are total Line and peripheral component interconnection (Peripheral Component Interconnect, PCI) bus.
Equipment 412 typically comprises a variety of computer system readable media.These media can be it is any can be by equipment The usable medium of 412 access, including volatile and non-volatile media, moveable and immovable medium.
Storage device 428 may include the computer system readable media of form of volatile memory, such as arbitrary access Memory (Random Access Memory, RAM) 430 and/or cache memory 432.Equipment 412 can be wrapped further Include other removable/nonremovable, volatile/non-volatile computer system storage mediums.Only as an example, storage system 434 can be used for reading and writing immovable, non-volatile magnetic media (Fig. 5 do not show, commonly referred to as " hard disk drive ").Although It is not shown in Fig. 5, the disc driver for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") can be provided, and To removable anonvolatile optical disk, such as CD-ROM (Compact Disc Read-Only Memory, CD-ROM), number Optic disk (Digital Video Disc-Read Only Memory, DVD-ROM) or other optical mediums) read-write CD drive Dynamic device.In these cases, each driver can be connected by one or more data media interfaces with bus 418.It deposits Storage device 428 may include at least one program product, which has one group of (for example, at least one) program module, this A little program modules are configured to perform the function of various embodiments of the present invention.
Program/utility 440 with one group of (at least one) program module 442 can store in such as storage dress It sets in 428, such program module 442 includes but is not limited to operating system, one or more application program, other program moulds It may include the realization of network environment in block and program data, each of these examples or certain combination.Program module 442 usually execute function and/or method in embodiment described in the invention.
Equipment 412 can also be logical with one or more external equipments 414 (such as keyboard, direction terminal, display 424 etc.) Letter, can also be enabled a user to one or more terminal interact with the equipment 412 communicate, and/or with make the equipment 412 Any terminal (such as network interface card, modem etc.) communication that can be communicated with one or more of the other computing terminal.This Kind communication can be carried out by input/output (I/O) interface 422.Also, equipment 412 can also by network adapter 420 with One or more network (such as local area network (Local Area Network, LAN), wide area network (Wide Area Network, WAN) and/or public network, for example, internet) communication.As shown in figure 5, network adapter 420 passes through bus 418 and equipment 412 Other modules communication.It should be understood that although not shown in the drawings, other hardware and/or software mould can be used with bonding apparatus 412 Block, including but not limited to: microcode, terminal driver, redundant processor, external disk drive array, disk array (Redundant Arrays of Independent Disks, RAID) system, tape drive and data backup storage system System etc..
The program that processor 416 is stored in storage device 428 by operation, thereby executing various function application and number According to processing, such as realize the retransmission method of stream medium data provided by the embodiment of the present invention, this method comprises:
By the currently transmitted information of received current stream medium data with prestore send information compared to pair, obtain compare tie Fruit;
Based on comparison result, the corresponding object time stamp of current stream medium data is determined;
Current stream medium data and stamp of corresponding object time are forwarded to receiving end, so that receiving end is based on the object time Stamp plays current stream medium data.
Embodiment five
The embodiment of the present invention five additionally provides a kind of computer readable storage medium, is stored thereon with computer program, should The retransmission method of the stream medium data as provided by the embodiment of the present invention is realized when program is executed by processor, this method comprises:
By the currently transmitted information of received current stream medium data with prestore send information compared to pair, obtain compare tie Fruit;
Based on comparison result, the corresponding object time stamp of current stream medium data is determined;
Current stream medium data and stamp of corresponding object time are forwarded to receiving end, so that receiving end is based on the object time Stamp plays current stream medium data.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool There are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion Divide and partially executes or executed on remote computer or terminal completely on the remote computer on the user computer.It is relating to And in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or extensively Domain net (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as provided using Internet service Quotient is connected by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of retransmission method of stream medium data characterized by comprising
By the currently transmitted information of received current stream medium data with prestore send information compared with pair, obtain comparison result;
Based on the comparison result, the corresponding object time stamp of the current stream medium data is determined;
The current stream medium data and stamp of corresponding object time are forwarded to receiving end, so that receiving end is based on the target Timestamp plays the current stream medium data.
2. determining the current Streaming Media the method according to claim 1, wherein being based on the comparison result The corresponding object time stamp of data, comprising:
If the comparison result is identical as the transmitting terminal mark for sending and including in information is prestored for currently transmitted information, basis Current clock value determines the corresponding object time stamp of the current stream medium data;
If the comparison result is identical as the transmitting terminal mark for sending and including in information is prestored for currently transmitted information, basis The currently transmitted information and transmission information is prestored, determines the corresponding object time stamp of the current stream medium data.
3. according to the method described in claim 2, it is characterized in that, determining the current stream medium data according to current clock value Corresponding object time stamp, comprising:
Forwarding time stamp is calculated according to the current clock value and network time offset value, the forwarding time stamp dullness is passed Increase;
Object time stamp is determined as the forwarding time stamp.
4. according to the method described in claim 2, it is characterized in that, according to the currently transmitted information and prestore transmission information, Determine the corresponding object time stamp of the current stream medium data, comprising:
The object time stamp is determined according to original time stamp difference, and the original time stamp difference is the currently transmitted information In original time stamp and it is described prestore send information in original time stamp difference.
5. according to the method described in claim 4, it is characterized in that, determining the object time according to original time stamp difference Stamp, comprising:
If original time stamp difference is less than or equal to preset difference value threshold value, object time stamp is determined as described original Time tolerance and the sum of the object time stamp prestored in transmission information.
6. according to the method described in claim 4, it is characterized in that, determining the object time according to original time stamp difference Stamp, comprising:
If the original time stamp difference is greater than preset difference value threshold value, object time stamp is determined as forwarding time Stamp.
7. determining the current Streaming Media the method according to claim 1, wherein being based on the comparison result After the corresponding object time stamp of data, further includes:
The currently transmitted information of the current stream medium data is determined as new to prestore transmission information.
8. a kind of retransmission unit of stream medium data, which is characterized in that including;
Comparison module, for by the currently transmitted information of received current stream medium data with prestore send information compared with pair, obtain To comparison result;
Timestamp determining module determines the current stream medium data corresponding object time for being based on the comparison result Stamp;
Forwarding module, for the current stream medium data and stamp of corresponding object time to be forwarded to receiving end, so as to receive End group plays the current stream medium data in object time stamp.
9. a kind of equipment, which is characterized in that the equipment includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now retransmission method of the stream medium data as described in any in claim 1-7.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The retransmission method of the stream medium data as described in any in claim 1-7 is realized when execution.
CN201910294762.XA 2019-04-12 2019-04-12 Method, device, equipment and storage medium for forwarding streaming media data Active CN109889922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910294762.XA CN109889922B (en) 2019-04-12 2019-04-12 Method, device, equipment and storage medium for forwarding streaming media data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910294762.XA CN109889922B (en) 2019-04-12 2019-04-12 Method, device, equipment and storage medium for forwarding streaming media data

Publications (2)

Publication Number Publication Date
CN109889922A true CN109889922A (en) 2019-06-14
CN109889922B CN109889922B (en) 2021-09-24

Family

ID=66937241

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910294762.XA Active CN109889922B (en) 2019-04-12 2019-04-12 Method, device, equipment and storage medium for forwarding streaming media data

Country Status (1)

Country Link
CN (1) CN109889922B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112491937A (en) * 2019-09-11 2021-03-12 北京陌陌信息技术有限公司 Data transmission method, device, equipment and storage medium
CN112671696A (en) * 2019-10-16 2021-04-16 华为技术有限公司 Message transmission method and device, computer equipment and computer storage medium
CN114390302A (en) * 2020-10-21 2022-04-22 深圳迈瑞生物医疗电子股份有限公司 Consultation streaming media data processing method and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428250A (en) * 2012-05-23 2013-12-04 联想(北京)有限公司 Equipment matching Method, server and terminal device
CN103685430A (en) * 2012-09-26 2014-03-26 中国电信股份有限公司 A mobile terminal combined display method, a system, and a server
CN105578199A (en) * 2016-02-22 2016-05-11 北京佰才邦技术有限公司 Virtual reality panorama multimedia processing system and method and client device
CN107682715A (en) * 2016-08-01 2018-02-09 腾讯科技(深圳)有限公司 Video synchronization method and device
JP2018117259A (en) * 2017-01-19 2018-07-26 達陞企業股▲ふん▼有限公司 One-to-many audio video streaming method by audio video synchronous take in

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428250A (en) * 2012-05-23 2013-12-04 联想(北京)有限公司 Equipment matching Method, server and terminal device
CN103685430A (en) * 2012-09-26 2014-03-26 中国电信股份有限公司 A mobile terminal combined display method, a system, and a server
CN105578199A (en) * 2016-02-22 2016-05-11 北京佰才邦技术有限公司 Virtual reality panorama multimedia processing system and method and client device
CN107682715A (en) * 2016-08-01 2018-02-09 腾讯科技(深圳)有限公司 Video synchronization method and device
JP2018117259A (en) * 2017-01-19 2018-07-26 達陞企業股▲ふん▼有限公司 One-to-many audio video streaming method by audio video synchronous take in

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112491937A (en) * 2019-09-11 2021-03-12 北京陌陌信息技术有限公司 Data transmission method, device, equipment and storage medium
CN112671696A (en) * 2019-10-16 2021-04-16 华为技术有限公司 Message transmission method and device, computer equipment and computer storage medium
CN112671696B (en) * 2019-10-16 2023-05-12 华为技术有限公司 Message transmission method, device, computer equipment and computer storage medium
CN114390302A (en) * 2020-10-21 2022-04-22 深圳迈瑞生物医疗电子股份有限公司 Consultation streaming media data processing method and related equipment

Also Published As

Publication number Publication date
CN109889922B (en) 2021-09-24

Similar Documents

Publication Publication Date Title
CN103250395B (en) Asynchronous virtual machine clone method and device
WO2019090902A1 (en) Screen sharing method and apparatus, electronic device, and storage medium
EP3447631B1 (en) Writing trajectory synchronization method and system for multiple clients
CN109889922A (en) Retransmission method, device, equipment and the storage medium of stream medium data
CN109496419A (en) Document handling method, device and system
CN104602133A (en) Multimedia file shearing method and terminal as well as server
US20120317243A1 (en) Audio processing method and device for remote desktop protocol
CN108055304B (en) Remote data synchronization method, device, server, equipment and storage medium
CN112069353B (en) Music playing control method and device, storage medium and electronic equipment
TW201534096A (en) System and method for efficiently mixing VoIP data
CN109521956A (en) A kind of cloud storage method, apparatus, equipment and storage medium based on block chain
CN108234518A (en) A kind of method, apparatus, terminal and the storage medium of terminal communication
CN109684114A (en) Message distributing method, device, terminal and medium based on iOS system
CN105959732A (en) Method and device for pushing television program
CN107547346A (en) A kind of message transmitting method and device
CN107196839B (en) Service data processing method and device
CN113346973B (en) Event prompting method and device, electronic equipment and computer readable storage medium
CN103685430A (en) A mobile terminal combined display method, a system, and a server
CN105591879B (en) Data transmission method and device
CN106792125A (en) A kind of video broadcasting method and its terminal, system
CN105047210B (en) A kind of the striding equipment synchronous method and device of shuffle playlist
CN109104774B (en) Data transmission method and system
CN110134419A (en) A kind of method for upgrading system, device, equipment and the storage medium of two-sided cabinet
CN113271474B (en) Method, device, equipment and storage medium for testing streaming media server
CN105634911B (en) Session establishing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant