CN108965428A - The transmission method of live data, device, electronic equipment, system - Google Patents

The transmission method of live data, device, electronic equipment, system Download PDF

Info

Publication number
CN108965428A
CN108965428A CN201810771079.6A CN201810771079A CN108965428A CN 108965428 A CN108965428 A CN 108965428A CN 201810771079 A CN201810771079 A CN 201810771079A CN 108965428 A CN108965428 A CN 108965428A
Authority
CN
China
Prior art keywords
client
data packet
identifier
data
server
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.)
Pending
Application number
CN201810771079.6A
Other languages
Chinese (zh)
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 Huya Information Technology Co Ltd
Original Assignee
Guangzhou Huya 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 Huya Information Technology Co Ltd filed Critical Guangzhou Huya Information Technology Co Ltd
Priority to CN201810771079.6A priority Critical patent/CN108965428A/en
Publication of CN108965428A publication Critical patent/CN108965428A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/104Peer-to-peer [P2P] networks
    • 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
    • H04L65/75Media network packet handling
    • H04L65/762Media network packet handling at the source 
    • 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/80Responding to QoS

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

This application discloses the transmission method of live data, device, electronic equipment, systems, the method includes the steps: spectator client receives the data packet that server is sent, the data packet is split by live data and is encapsulated according to customized format, it include first identifier in the customized format, first identifier is for describing each data packet uniqueness;The spectator client establishes P2P network according to the notice of server;The spectator client interacts the data packet with other clients based on the transmission strategy and the first identifier made an appointment in P2P network.The technical issues of aiming to solve the problem that the transmission for the live video stream that existing P2P transmission mode is not suitable for live-mode.

Description

The transmission method of live data, device, electronic equipment, system
Technical field
This application involves internet areas, more particularly to live streaming field.
Background technique
Live streaming can fast and accurately transmit field data, and strong telepresenc allows more and more people to pass through website or mobile phone To watch live streaming.Real-time live data streams give each spectators client by direct broadcast server active push usually in a manner of plug-flow End.
" plug-flow " is by the process of live data active push to network." plug-flow " is relatively high to network requirement, if net Phenomena such as network is unstable, and live streaming effect will be very poor, and when watching live streaming Caton will occur for spectators.Simultaneously as live data Has the characteristics that real-time sharing, if spectators will be because that can not review due to watching not in time etc. network failure or spectators And miss the data at certain moment.
Traditional P2P technology is generated based on file sharing needs, and P2P mode is frequently used in shared video or audio The scene (such as video resource downloading of the websites such as video on demand) of data.When each network node live data, usually by resource It stores on each network node in the form of a file, and file declustering is transferred to peer node at several subfiles.Due to The mode that traditional P2P technology is normally based on file transmits data, and it is good by documenting in advance to need, and the side of file transmission Formula makes the applicable scene of P2P technology fixed in the presence of limitation, is not particularly suited for the transmission of the live video stream of live-mode.
Summary of the invention
In order to solve the above-mentioned technical problem, the application provides transmission method, device, the electronic equipment, system of live data.
According to the embodiment of the present application in a first aspect, provide a kind of transmission method of live data, comprising steps of
Spectator client receives the data packet that server is sent, and the data packet is split by live data and according to making by oneself The format of justice encapsulates, and includes first identifier in the customized format, the first identifier is for describing each data packet Uniqueness;
The spectator client establishes P2P network according to the notice of server;
The spectator client is in P2P network based on the transmission strategy and the first identifier made an appointment and other visitors The family end interaction data packet.
In some instances, the method also includes:
The spectator client notice server direct broadcasting room mark;The direct broadcasting room mark is corresponding with the live data, So that server establishes P2P network according to the corresponding spectator client of direct broadcasting room identification notification.
In some instances, the size of the data packet is 1KB.
In some instances, the transmission strategy made an appointment includes:
Data packet first is obtained from server in the given time, later, whether there is direct broadcasting room to server inquiry The corresponding client of mark, if it is present to other client request data packets.
According to the second aspect of the embodiment of the present application, any the method in a kind of above-mentioned first aspect of utilization is provided and is established Live broadcast system, including server and main broadcaster's client, spectator client;
Main broadcaster's client is used to live data being sent to server;
The server is used for, after live data is split into several data packets, by the data packet according to customized Format encapsulation, the packet delivery is given to the corresponding spectator client of main broadcaster's client and makes the spectators visitor P2P network is established at family end;It wherein, include first identifier in the customized format, first identifier is for describing each data Packet uniqueness;
The spectator client is used for, in P2P network based on the transmission strategy and the first identifier made an appointment with Other clients interaction data packet.
According to the third aspect of the embodiment of the present application, a kind of transmission method of live data is provided, comprising steps of
Receive the live data of main broadcaster's client;
After live data is split into several data packets, the data packet is encapsulated according to customized format, it is described from It include first identifier in the format of definition, first identifier is for describing each data packet uniqueness;
The packet delivery is given into the corresponding spectator client of main broadcaster's client;
The spectator client is set to establish P2P network;So that the spectator client is based on making an appointment in P2P network Transmission strategy and the first identifier with other clients interact the data packet.
In some instances, the step of making the spectator client establish P2P network includes:
Receive the mark of direct broadcasting room corresponding to main broadcaster's client that spectator client is sent;
P2P network is established according to the corresponding spectator client of direct broadcasting room identification notification.
In some instances, the size of the data packet is 1KB.
In some instances, the transmission strategy made an appointment includes:
In the given time first after server acquisition data packet, it whether there is direct broadcasting room mark to server inquiry Corresponding client is known, if it is present to other client request data packets.
According to the fourth aspect of the application, a kind of transmitting device of live data is provided, comprising:
Receiving module, for receiving the data packet of server transmission, the data packet is split by live data and according to certainly The format of definition encapsulates, and includes first identifier in the customized format, first identifier is for describing each data packet Uniqueness;
Link block establishes P2P network for the notice according to server;
Transmission module, for objective with other based on the transmission strategy and the first identifier made an appointment in P2P network The family end interaction data packet.
According to the 5th of the application the aspect, a kind of transmitting device of live data is provided, comprising:
Receiving module, for receiving the live data of main broadcaster's client;
Package module, after being split into several data packets for live data, by the data packet according to customized lattice Formula encapsulates, and includes first identifier in the customized format, first identifier is for describing each data packet uniqueness;
Sending module, for the packet delivery to be given the corresponding spectator client of main broadcaster's client;
Notification module, for making the spectator client establish P2P network;So that the spectator client is in P2P network In the data packet interacted with other clients based on the transmission strategy and the first identifier made an appointment.
According to the 5th of the application the aspect, a kind of electronic equipment is provided, comprising:
Processor;And
Memory, the memory are configured to store live streaming client-side program, and the live streaming client-side program is configured It is executed at by the processor,
The data packet that server is sent is received, the data packet is split by live data and sealed according to customized format It fills, includes first identifier in the customized format, first identifier is for describing each data packet uniqueness;
P2P network is established according to the notice of server;
The number is interacted with other clients based on the transmission strategy and the first identifier made an appointment in P2P network According to packet.
According to the 5th of the application the aspect, a kind of electronic equipment is provided, comprising:
Processor;And
Memory, the memory are configured to store computer program, and the computer program is configured to described Processor executes,
Receive the live data of main broadcaster's client;
After live data is split into several data packets, the data packet is encapsulated according to customized format, it is described from It include first identifier in the format of definition, first identifier is for describing each data packet uniqueness;
The packet delivery is given into the corresponding spectator client of main broadcaster's client;
The spectator client is set to establish P2P network;So that the spectator client is based on making an appointment in P2P network Transmission strategy and the first identifier with other clients interact the data packet.
The application is successful, and P2P mode applies to live data transmission field.Different from traditional P2P mode, first will Live data is cut into data packet rather than blocks of files, the size of blocks of files may in KB up to a hundred, and for blocks of files, The detachable granularity of data packet is smaller, can be used as smaller transmission unit and transmits in a network, such as after considering cutting It when the size of data packet, can be designed in conjunction with the transmission characteristic of Internetwork link layer, so that the size of data packet and P2P network In each interface channel transmission bandwidth matching.Since the data packet after splitting can pass between each client of P2P network It passs, so even spectators can still review due to being watched not in time etc. network failure or spectators, avoids when missing certain The data at quarter.
Detailed description of the invention
Fig. 1 is a kind of network architecture for live broadcast system that the embodiment of the present application proposes;
Fig. 2 is a kind of flow chart of the transmission method for live data that the embodiment of the present application proposes;
Fig. 3 a- Fig. 3 c is the network built under three kinds of different server architectures in the embodiment of the present application;
Fig. 4 is the part process of data transmission method of the server side based on P2P network in the embodiment of the present application;
Fig. 5 is the part process of data transmission method of the client-side based on P2P network in the embodiment of the present application;
Fig. 6 a is the network architecture diagram in one application scenarios of the application;
Fig. 6 b is the signaling interaction diagram of Fig. 6 a application scenarios lower network equipment;
Fig. 7 is the schematic diagram of the device of unicast data transmission always in the embodiment of the present application;
Fig. 8 is the schematic diagram of an electronic equipment in the embodiment of the present application;
Fig. 9 is the schematic diagram of another live data transmitting device in the embodiment of the present application;
Figure 10 is the schematic diagram of another electronic equipment in the embodiment of the present application.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application. It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
Fig. 1 is a kind of network architecture for live broadcast system that the embodiment of the present application proposes, includes main broadcaster client in the network architecture 100, server 120, spectator client 130 are held, different from traditional live broadcast system, spectator client 130 is set by server It is standby to be mutually built into P2P network.Since under different application environments, user may be different to the functional requirement of the network equipment, because This, the quantity of server and client side's equipment and function can be different in each application scenarios.
In order to enable the P2P network of the embodiment of the present application to break through normal transmission mode (i.e. traditional skill of traditional P2P network Transmit data in art between peer node in a manner of splitting file), the application proposes following technical scheme, and Fig. 2 is part Step:
Live data is sent to server (S200) by main broadcaster's client;
The server is after live data is split into several data packets (S201), by the data packet according to customized Format encapsulate (S202);It wherein, include first identifier in the customized format, first identifier is for describing each data Packet uniqueness;
Packet delivery after encapsulation is given the corresponding spectator client (S203) of main broadcaster's client by server;? That is server is by the packet delivery after encapsulation to the spectator client of the corresponding direct broadcasting room of viewing main broadcaster's client.
Server makes the spectator client establish P2P network (S204);
The spectator client is in P2P network based on the transmission strategy and the first identifier made an appointment and other visitors The family end interaction data packet (S205).
When executing S201 different from traditional P2P mode, in embodiment, first by live data be cut into data packet without It is blocks of files, the size of blocks of files may be in KB up to a hundred, and for blocks of files, and the detachable granularity of data packet is smaller, It can be used as smaller transmission unit to transmit in a network, such as when considering the size of the data packet after cutting, can combine The transmission characteristic of Internetwork link layer designs so that in the size of data packet and P2P network each interface channel transmission bandwidth Matching.For example, the channel established between each peer node can be UDP channel, and the size of each data packet can be 1KB Left and right, is approximately equal to MTU (Internetwork link layer maximum transmission unit), in this way, each data packet can be transmitted by 1 UDP packet, no It needs to occur unpacking based on UDP packet, therefore the mode than splitting file is more efficient, so that having widely applicable field Scape.
Server in Fig. 2 can be undertaken by a variety of entities, this depends on designer and draws to the role of heterogeneous networks equipment Point.For example, Fig. 3 a, Fig. 3 b, Fig. 3 c are the network architectures under three kinds of different scenes, it can be seen that under different business mode, due to Business or the demand of equipment management are different, and the executing subject of S201 step can be undertaken by different server apparatus.In Fig. 3 a, First server undertake collect live data role (the similar role with the direct broadcast server in traditional live broadcast system), second Server undertakes the role of splitting datagram, the server for undertaking splitting datagram role can be known as to be sliced service hereinafter Device, third server is as role's (for example, being similar to traditional CDN server) to peer node packet distribution.Fig. 3 b In, first server is integrated with the function of collecting live data and splitting datagram, and second server is as packet distribution Server.In Fig. 3 c, the function of collection live data, splitting datagram, packet distribution is integrated in one by server.It needs to refer to Out, cited by Fig. 3 a, Fig. 3 b, Fig. 3 c other than example, it is not excluded that have the network architecture or server function of other forms Energy.
In S202 data encapsulated phase, for orderly group after so that the data packet after splitting is received spectator client Be filled with and spectator client between formed peer node after can interaction data packet, server can be each package number, As the field for describing each data packet unique identification, by the word of each data packet uniqueness of description in the embodiment of the present application Section is known as first identifier, and in some instances, the first identifier that the application proposes can be in same live data for distinguishing The unique identification of other data packets.In certain examples, this purpose can be realized by the format of self-defining data packet, it is customized Format in can specify that specific fields as this first identifier.Certainly, it is not excluded that other modes realize this purpose.
In the S203 stage, some examples, in order to which data packet can be widely scattered in each peer node of P2P network, So as to mutual data transmission packet between peer node, server, which can deliver a packet to, pays close attention to the every of some main broadcaster's client A spectator client.Certainly, different distribution policies can also be arranged for different business scenarios in designer, for example, service Device can be simply sent to specified some of spectator clients.
In one example, before S203, spectator client can be to server activly request, tell the server spectators Direct broadcasting room mark where client, the direct broadcasting room mark may include one of identified below or a variety of: shared resource Mark, direct broadcasting room ID, channel number, place direct broadcasting room main broadcaster ID and/or spectator client mark etc..For example, it may be server After receiving the instruction that spectator client sends acquisition live data to server, step S203 is executed, number is broadcast live in the acquisition According to instruction can carry the direct broadcasting room mark of spectator client, server comes true according to direct broadcasting room mark where spectator client Surely which spectator client delivered a packet to.It should be noted that above-mentioned spectator client mark may include: spectators' User name or ID, if spectator client only notifies server spectator client to identify, server can pass through the spectators client End mark determines the direct broadcasting room where the spectator client.
When S204 constructs P2P network, in different application examples, the mode for establishing interface channel can be different. For example, being referred to peer node in the P2P network of the prior art in some examples establishes the mode of UDP channel to realize;Separately In some examples, the new process of actual Scenario Design can be directed to.It is asked for example, spectator client initiates registration to server Ask, by place direct broadcasting room identify and establish (such as the network connection address, port numbers etc.) notice of information necessary to connection to Server, these information can carry in the registration request or to be sent to server in other message.Server base The direct broadcasting room mark where client, under conditions of satisfaction establishes P2P network, server notifies the spectators in same direct broadcasting room It needs to establish P2P network connection between client, forms peer node.For another example spectator client initiates to register to server Request as the direct broadcasting room mark where server searches the spectator client and establishes (such as the net of information necessary to connection Network link address, port numbers etc.), direct broadcasting room mark where server is based on client is meeting the condition for establishing P2P network Under, server notice needs to establish between the spectator client of same direct broadcasting room P2P network connection, forms peer node.
Fig. 6 a is the example that network connection is established under a live scene, and in this example, server is identified according to direct broadcasting room, P2P network will be aggregated into the spectator client of same direct broadcasting room.In other instances, still detailed process can be made various Different deformations.
Server notifies opportunity the application of each spectator client building P2P network and is not construed as limiting, can be in server When receiving the instruction of the acquisition live data of spectator client transmission, it can be and receive the live streaming of spectator client in server Between identify after notify each spectator client, be also possible to reinform after transmitting a period of time data packet to spectator client each Spectator client, when can also be that the request of P2P network is established in the request for receiving spectator client initiation.As an example, may be used To be that spectator client judges whether to meet the preset condition for establishing P2P network, sent out when the condition is satisfied to server The request for sending building P2P network, after server receives above-mentioned request, according to the mark of direct broadcasting room where the spectator client P2P network will be pooled in the spectator client of same direct broadcasting room.
As an example, relevant transmission strategy can be handed down to client when server issues configuration information to client End, it is of course also possible to set relevant transmission strategy in the client in advance.Still by taking live scene as an example, in some examples, Client enters a certain channel, and the transmission strategy hair of P2P network will be established when to the server request relevant configuration information of channel Give client, in some examples, when user end to server is registered, the transmission strategy that server will establish P2P network is sent To client.
Certainly, the real-time transmitted due to live scene to data and stability requirement are high, can first will with server Partial data packet is sent to each client, so that client is broadcast in the premise that can guarantee to play in time in spectator client While straightening multicast data, the data packet of other numbers (first identifier) is received from other clients, avoids big audience client It holds while accessing network congestion problem caused by server.
Any one of network peer node can be to other peer node request data packages, in the S205 stage, equity Node can make an appointment based on first identifier and the transmission made an appointment strategy to other peer node request data packages Transmission strategy can specify that the data packet of which mark can be propagated in P2P network.In order to guarantee the reality of live data broadcasting Shi Xing, transmission strategy are to server inquiry it may be stipulated that: in the given time first after server acquisition data packet The no spectator client corresponding there are direct broadcasting room mark, if it is present to other spectator client request data packages.
In some examples, some peer node misconnections enter some P2P network, interaction data between peer node in order to prevent Bao Shi can also carry direct broadcasting room mark, to the peer node proof of identity in P2P network.
Fig. 4 is the part steps from server-side description technique scheme, and part steps are as follows:
S401 receives the live data of main broadcaster's client;
S402 after live data is split into several data packets, the data packet is encapsulated according to customized format, institute Stating includes first identifier in customized format, and first identifier is for describing each data packet uniqueness;
The packet delivery is given the corresponding spectator client of main broadcaster's client by S403;
S404, makes the spectator client establish P2P network, and the spectator client is based on appointing in advance in P2P network Fixed transmission strategy and the first identifier interact the data packet with other clients.
Other steps performed by server can refer to the description of the application other parts, repeat no more.
Fig. 5 is the part steps from spectator client side description technique scheme, and part steps are as follows:
S501, spectator client receive server send data packet, the data packet by live data split and according to Customized format encapsulates, and includes first identifier in the customized format, first identifier is for describing each data Packet uniqueness;
S502, the spectator client establish P2P network according to the notice of server;
S503, the spectator client in P2P network based on the transmission strategy and the first identifier made an appointment with Other clients interaction data packet.
Other steps performed by spectator client can refer to the description of the application other parts, repeat no more.
Fig. 6 a and Fig. 6 b are an application examples.Main broadcaster's client and direct broadcast server establish TCP company in the network of Fig. 6 a Road is connected, direct broadcast server is connected with slice server, and slice server is connected with CDN server.
It is spectator client registration phase referring to Fig. 6 b, S601.
When spectator client is registered to direct broadcast server, by the IP address of local device, the port numbers of client, place Direct broadcasting room identification notification direct broadcast server.
In S602, direct broadcast server is transmitted to slice server after the live video stream for receiving the transmission of main broadcaster's client. Live video stream carries corresponding direct broadcasting room mark.
In S603, live video stream is cut into the data packet of 1KB size by slice server, and by each package number It is encapsulated afterwards according to customized format, the number is first identifier.
In S604, the data packet after encapsulation is sliced server and is sent to CDN server.
In S605, the live video stream that spectator client obtains required for requesting to CDN, CDN server according to setting in advance Specified data packet is sent to each spectator client by the transmission strategy set.
S606 establishes the channel the P2P stage.
Specifically, in some instances, in order to guarantee timeliness that live data plays, CDN server is by data packet After being sent to client for a period of time, direct broadcast server can be according to the mark of direct broadcasting room where the spectator client, notice The spectator client of same direct broadcasting room establishes P2P interface channel.It, can in order to guarantee the viewing effect of live video stream in this example With after CDN server sends a period of time data packet to each client, each spectator client resettles P2P network.
S607, after establishing P2P network, spectator client is asked according to the transmission strategy made an appointment to other peer nodes Seek the data packet of specified number.
Corresponding with the embodiment of the transmission method of aforementioned live data, present invention also provides the transmission of live data dresses The embodiment set.
Referring to FIG. 7, the transmitting device 700 of live data, comprising:
Receiving module 701, for receiving the data packet of server transmission, the data packet is split and is pressed by live data It is encapsulated according to customized format, includes first identifier in the customized format, first identifier is for describing every number According to packet uniqueness;
Link block 702 establishes P2P network for the notice according to server;
Transmission module 703, in P2P network based on the transmission strategy and the first identifier made an appointment and other The client interaction data packet.
The embodiment of the transmitting device of live data can be using on a client device in Fig. 7.Installation practice can be with By software realization, can also be realized by way of hardware or software and hardware combining.Taking software implementation as an example, it is patrolled as one Device in volume meaning is by the processor of client device where it by computer journey corresponding in nonvolatile memory Sequence instruction is read into memory what operation was formed.For hardware view, as shown in figure 8, being the transmission of the application live data A kind of hardware structure diagram of client device where device, in addition to processor shown in Fig. 8, memory, network interface and it is non-easily Except the property lost memory, the client device in embodiment where device can also be wrapped generally according to the actual functional capability of the equipment Other hardware, such as camera, microphone etc. are included, this is repeated no more.Processor is used to carry out following procedure:
The data packet that server is sent is received, the data packet is split by live data and sealed according to customized format It fills, includes first identifier in the customized format, first identifier is for describing each data packet uniqueness;
P2P network is established according to the notice of server;
The number is interacted with other clients based on the transmission strategy and the first identifier made an appointment in P2P network According to packet.
Refer to Fig. 9, the transmitting device 900 of live data, comprising:
Receiving module 901, for receiving the live data of main broadcaster's client;
Package module 902, after being split into several data packets for live data, by the data packet according to customized Format encapsulates, and includes first identifier in the customized format, first identifier is for describing each data packet uniqueness;
Sending module 903, for the packet delivery to be given the corresponding spectator client of main broadcaster's client;
Notification module 904, for making the spectator client establish P2P network;So that the spectator client is in P2P net The data packet is interacted with other clients based on the transmission strategy and the first identifier made an appointment in network.
The embodiment of the transmitting device of live data can be applied on server apparatus in Figure 10.Installation practice can be with By software realization, can also be realized by way of hardware or software and hardware combining.Taking software implementation as an example, it is patrolled as one Device in volume meaning is by the processor of server apparatus where it by computer journey corresponding in nonvolatile memory Sequence instruction is read into memory what operation was formed.It is the transmission of the application live data as shown in Figure 10 for hardware view A kind of hardware structure diagram of client device where device, in addition to processor shown in Fig. 10, memory, network interface, Yi Jifei Except volatile memory, client device in embodiment where device, can be with generally according to the actual functional capability of the equipment Including other hardware, this is repeated no more.Processor is used to carry out:
Receive the live data of main broadcaster's client;
After live data is split into several data packets, the data packet is encapsulated according to customized format, it is described from It include first identifier in the format of definition, first identifier is for describing each data packet uniqueness;
The packet delivery is given into the corresponding spectator client of main broadcaster's client;
The spectator client is set to establish P2P network;So that the spectator client is based on making an appointment in P2P network Transmission strategy and the first identifier with other clients interact the data packet.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
In the embodiment of the present application, computer readable storage medium can be diversified forms, for example, in different examples In, the machine readable storage medium may is that RAM (Radom Access Memory, random access memory), volatile deposit Reservoir, nonvolatile memory, flash memory, memory driver (such as hard disk drive), solid state hard disk, any kind of storage dish (such as CD, dvd) perhaps similar storage medium or their combination.Special, described computer-readable medium Can also be paper or other be suitably capable of the medium of print routine.Using these media, these programs can be passed through The mode of electricity gets (for example, optical scanner), can be compiled, be explained and processing in an appropriate manner, then can be by It stores in computer media.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize application scheme.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.

Claims (13)

1. a kind of transmission method of live data, which is characterized in that comprising steps of
Spectator client receives the data packet that server is sent, and the data packet is split by live data and according to customized Format encapsulates, and includes first identifier in the customized format, and the first identifier is unique for describing each data packet Property;
The spectator client establishes P2P network according to the notice of server;
The spectator client is in P2P network based on the transmission strategy and the first identifier and other clients made an appointment The interaction data packet.
2. the method according to claim 1, wherein the method also includes:
Direct broadcasting room mark where the spectator client notice server;The direct broadcasting room mark and the live data pair It answers, so that spectator client of the server according to the direct broadcasting room identification notification in same direct broadcasting room establishes P2P network.
3. the method according to claim 1, wherein the size of the data packet is 1KB.
4. the method according to claim 1, wherein the transmission strategy made an appointment includes:
In the given time first after server acquisition data packet, institute is identified with the presence or absence of direct broadcasting room to server inquiry Corresponding spectator client, if it is present to other spectator client request data packages.
5. a kind of live broadcast system established using claim 1-4 the method, which is characterized in that including server and main broadcaster visitor Family end, spectator client;
Main broadcaster's client is used to live data being sent to server;
The server is used for, after live data is split into several data packets, by the data packet according to customized lattice The packet delivery is given the corresponding spectator client of main broadcaster's client and makes the spectator client by formula encapsulation Establish P2P network;It wherein, include first identifier in the customized format, first identifier is for describing each data packet only One property;
The spectator client is used for, based on the transmission strategy and the first identifier made an appointment and other in P2P network The spectator client interaction data packet.
6. a kind of transmission method of live data, which is characterized in that comprising steps of
Receive the live data of main broadcaster's client;
After live data is split into several data packets, the data packet is encapsulated according to customized format, it is described customized Format in include first identifier, first identifier is for describing each data packet uniqueness;
The packet delivery is given into the corresponding spectator client of main broadcaster's client;
The spectator client is set to establish P2P network, the spectator client is in P2P network based on the transmission plan made an appointment Slightly and the first identifier with other clients interacts the data packet.
7. according to the method described in claim 6, it is characterized in that, packet the step of make the spectator client establish P2P network It includes:
It is identified according to the direct broadcasting room of each client, makes to establish P2P network in the spectator client of same direct broadcasting room.
8. according to the method described in claim 6, it is characterized in that, the size of the data packet is 1KB.
9. the method according to the description of claim 7 is characterized in that the transmission strategy made an appointment includes:
Data packet first is obtained from server in the given time, later, is identified to server inquiry with the presence or absence of direct broadcasting room Corresponding client, if it is present to other client request data packets.
10. a kind of transmitting device of live data characterized by comprising
Receiving module, for receiving the data packet of server transmission, the data packet is split by live data and according to customized Format encapsulate, include first identifier in the customized format, first identifier is for describe each data packet unique Property;
Link block establishes P2P network for the notice according to server;
Transmission module, in P2P network based on the transmission strategy and the first identifier made an appointment and other clients The interaction data packet.
11. a kind of transmitting device of live data characterized by comprising
Receiving module, for receiving the live data of main broadcaster's client;
After being split into several data packets for live data, the data packet is sealed according to customized format for package module It fills, includes first identifier in the customized format, first identifier is for describing each data packet uniqueness;
Sending module, for the packet delivery to be given the corresponding spectator client of main broadcaster's client;
Notification module, for making the spectator client establish P2P network;So that spectator client base in P2P network The data packet is interacted with other clients in the transmission strategy and the first identifier made an appointment.
12. a kind of electronic equipment characterized by comprising
Processor;And
Memory, the memory are configured to store live streaming client-side program, the live streaming client-side program be configured to by The processor performs the following operations:
Receive server send data packet, the data packet by live data split and according to customized format encapsulation and At including first identifier in the customized format, first identifier is for describing each data packet uniqueness;
P2P network is established according to the notice of server;
The data are interacted with other clients based on the transmission strategy and the first identifier made an appointment in P2P network Packet.
13. a kind of electronic equipment characterized by comprising
Processor;And
Memory, the memory are configured to store computer program, and the computer program is configured to by the processing Device performs the following operations:
Receive the live data of main broadcaster's client;
After live data is split into several data packets, the data packet is encapsulated according to customized format, it is described customized Format in include first identifier, first identifier is for describing each data packet uniqueness;
The packet delivery is given into the corresponding spectator client of main broadcaster's client;
The spectator client is set to establish P2P network;So that the spectator client is in P2P network based on the biography made an appointment The defeated tactful and described first identifier interacts the data packet with other clients.
CN201810771079.6A 2018-07-13 2018-07-13 The transmission method of live data, device, electronic equipment, system Pending CN108965428A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810771079.6A CN108965428A (en) 2018-07-13 2018-07-13 The transmission method of live data, device, electronic equipment, system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810771079.6A CN108965428A (en) 2018-07-13 2018-07-13 The transmission method of live data, device, electronic equipment, system

Publications (1)

Publication Number Publication Date
CN108965428A true CN108965428A (en) 2018-12-07

Family

ID=64484148

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810771079.6A Pending CN108965428A (en) 2018-07-13 2018-07-13 The transmission method of live data, device, electronic equipment, system

Country Status (1)

Country Link
CN (1) CN108965428A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111526375A (en) * 2019-02-01 2020-08-11 广州虎牙信息科技有限公司 Resource distribution method and device
CN112637627A (en) * 2020-12-18 2021-04-09 咪咕互动娱乐有限公司 User interaction method, system, terminal, server and storage medium in live broadcast
CN112822499A (en) * 2019-11-15 2021-05-18 北京金山云网络技术有限公司 Data communication method, device and system for network live broadcast and electronic equipment
CN113965769A (en) * 2021-10-19 2022-01-21 创盛视联数码科技(北京)有限公司 Live broadcast system for online education

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237429A (en) * 2008-02-25 2008-08-06 蓝汛网络科技(北京)有限公司 Stream media living broadcasting system, method and device based on content distribution network
CN101945129A (en) * 2010-09-10 2011-01-12 北京易视腾科技有限公司 P2P (Peer to Peer) stream media live-broadcast low-delay transmission method and system thereof
US20110197238A1 (en) * 2008-10-07 2011-08-11 Zte Plaza, Keji Road South System and method for implementing media interaction of the iptv
CN105656986A (en) * 2015-11-26 2016-06-08 乐视云计算有限公司 Live video play method, device and system
CN106034242A (en) * 2015-03-09 2016-10-19 杭州施强网络科技有限公司 Audio/video live broadcast streaming media data transmission method in P2P system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101237429A (en) * 2008-02-25 2008-08-06 蓝汛网络科技(北京)有限公司 Stream media living broadcasting system, method and device based on content distribution network
US20110197238A1 (en) * 2008-10-07 2011-08-11 Zte Plaza, Keji Road South System and method for implementing media interaction of the iptv
CN101945129A (en) * 2010-09-10 2011-01-12 北京易视腾科技有限公司 P2P (Peer to Peer) stream media live-broadcast low-delay transmission method and system thereof
CN106034242A (en) * 2015-03-09 2016-10-19 杭州施强网络科技有限公司 Audio/video live broadcast streaming media data transmission method in P2P system
CN105656986A (en) * 2015-11-26 2016-06-08 乐视云计算有限公司 Live video play method, device and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111526375A (en) * 2019-02-01 2020-08-11 广州虎牙信息科技有限公司 Resource distribution method and device
CN112822499A (en) * 2019-11-15 2021-05-18 北京金山云网络技术有限公司 Data communication method, device and system for network live broadcast and electronic equipment
CN112822499B (en) * 2019-11-15 2023-03-07 北京金山云网络技术有限公司 Data communication method, device and system for network live broadcast and electronic equipment
CN112637627A (en) * 2020-12-18 2021-04-09 咪咕互动娱乐有限公司 User interaction method, system, terminal, server and storage medium in live broadcast
CN112637627B (en) * 2020-12-18 2023-09-05 咪咕互动娱乐有限公司 User interaction method, system, terminal, server and storage medium in live broadcast
CN113965769A (en) * 2021-10-19 2022-01-21 创盛视联数码科技(北京)有限公司 Live broadcast system for online education
CN113965769B (en) * 2021-10-19 2023-08-08 创盛视联数码科技(北京)有限公司 Live broadcast system of online education

Similar Documents

Publication Publication Date Title
CN110121059B (en) Monitoring video processing method, device and storage medium
EP3595268A1 (en) Streaming media resource distribution method, system, edge node and central dispatching system
CN109474684B (en) Method, device, terminal equipment and storage medium for acquiring live video stream
CN108833591B (en) method, electronic equipment, device and network architecture for data transmission in P2P network
CN108965428A (en) The transmission method of live data, device, electronic equipment, system
RU2647654C2 (en) System and method of delivering audio-visual content to client device
CN109068186B (en) Method and device for processing packet loss rate
CN110572433B (en) Video scheduling method, system and device
CN108574818B (en) Information display method and device and server
CN108924609B (en) Streaming media data transmission method, electronic equipment, device and storage medium
US20200021859A1 (en) Multicast implementation method and related network device
CN109525854B (en) Live broadcast processing method and device
CN109474715B (en) Resource configuration method and device based on video network
CN110381119B (en) Method, system and device for acquiring log information and storage medium
CN109561137A (en) Establish method, apparatus, terminal device and the medium of P2P network
KR102162851B1 (en) Method and device for determining popular live broadcast video
CN109451001B (en) Communication method and system
CN109510868B (en) Method, device, terminal equipment and storage medium for establishing P2P network
CN108965220B (en) Method and system for synchronizing conference control right
CN104284142A (en) Communication method, device and system
CN109040199A (en) A kind of method, system and storage medium for distributing resource data
CN108900907A (en) Encapsulated data packet method and device, electronic equipment, medium
CN111478882A (en) Terminal detection method and device
CN108881148B (en) Data acquisition method and device
CN110086772B (en) Method and system for acquiring monitoring video

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181207

RJ01 Rejection of invention patent application after publication