[go: up one dir, main page]

WO2018121739A1 - Method and device for transmitting stream data - Google Patents

Method and device for transmitting stream data Download PDF

Info

Publication number
WO2018121739A1
WO2018121739A1 PCT/CN2017/119881 CN2017119881W WO2018121739A1 WO 2018121739 A1 WO2018121739 A1 WO 2018121739A1 CN 2017119881 W CN2017119881 W CN 2017119881W WO 2018121739 A1 WO2018121739 A1 WO 2018121739A1
Authority
WO
WIPO (PCT)
Prior art keywords
client
stream data
node
transmission
transmission node
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.)
Ceased
Application number
PCT/CN2017/119881
Other languages
French (fr)
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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo 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
Priority claimed from CN201611261623.XA external-priority patent/CN106791985A/en
Priority claimed from CN201611265811.XA external-priority patent/CN107070866B/en
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Publication of WO2018121739A1 publication Critical patent/WO2018121739A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data

Definitions

  • the present invention relates to the field of information processing technologies, and in particular, to a method for transmitting stream data and a device for transmitting stream data.
  • the anchor end and the guest end have the right to push the live stream data, and the normal user end does not have the right to push the live stream data.
  • the common user can send a connection request to the anchor end. After the request is successfully completed, the ordinary user end becomes a guest end, thereby having the right to push the live stream data.
  • the anchor only knows that there is a current request for the connection, and the approval operation of the request is not approved. Therefore, the obtained approval result is not accurate enough, and the anchor experience is poor.
  • the present invention has been made in order to provide a method of transmitting stream data and a corresponding stream data transmission apparatus that overcome the above problems or at least partially solve the above problems.
  • a method for transmitting stream data including:
  • a method for transmitting stream data including:
  • a streaming data transmission apparatus including:
  • a first stream data receiving module configured to receive first stream data transmitted from the first client according to the transmission path
  • the application request sending module is configured to send a special permission application request to the first client according to the transmission path, where the application request carries preview information;
  • the approval notification receiving module is configured to receive an approval notification that the first client feeds back according to the preview information.
  • a streaming data transmission apparatus including:
  • the first stream data transmission module is configured to transmit the first stream data from the first client to the third client according to the transmission path;
  • the application request receiving module is configured to receive an application request for the special permission by the third client;
  • the application request forwarding module is configured to forward the application request to the first client according to the transmission path, where the application request carries preview information;
  • the approval notification forwarding module is configured to forward the approval notification fed back by the first client according to the preview information to the third client.
  • a computer program comprising computer readable code, when the computer readable code is run on a computing device, causes the computing device to perform a method of transmitting stream data as described above .
  • a computer readable medium storing a computer program as described above is provided.
  • the application request for the special permission is sent to the first client, and since the application request carries the preview information, the user using the first client can preview the information.
  • the embodiment of the present invention uses the same transmission path to transport stream data and signaling, which eliminates the establishment of different transmission paths of convection data and signaling in the traditional method, and saves path establishment.
  • the target transmission node and its associated transmission node are used to push the stream data.
  • the layer-level stream data is pushed step by step, and finally the stream data is pushed to the access transmission node cluster.
  • Clients that implement streaming data streaming are used to push the stream data.
  • FIG. 1 is a flow chart showing the steps of a method for transmitting stream data according to a first embodiment of the present invention
  • FIG. 2 is a flow chart showing the steps of a method for transmitting stream data according to Embodiment 2 of the present invention
  • FIG. 3 is a schematic flow chart showing the steps of a method for transmitting stream data according to Embodiment 3 of the present invention
  • FIG. 4 is a flow chart showing the steps of a method for transmitting stream data according to Embodiment 4 of the present invention.
  • FIG. 5 is a flow chart showing the steps of a method for transmitting stream data according to Embodiment 5 of the present invention.
  • FIG. 6 is a block diagram showing the structure of a stream data transmission apparatus according to Embodiment 6 of the present invention.
  • FIG. 7 is a block diagram showing the structure of a stream data transmission apparatus according to Embodiment 7 of the present invention.
  • FIG. 8 is a block diagram showing the structure of a stream data transmission apparatus according to Embodiment 8 of the present invention.
  • FIG. 9 is a block diagram showing the structure of a stream data transmission apparatus according to Embodiment 9 of the present invention.
  • FIG. 10 is a block diagram showing the structure of a stream data transmission apparatus according to Embodiment 10 of the present invention.
  • Figure 11 is a block diagram showing the structure of a computing device for performing a method of transmitting stream data according to the present invention
  • Fig. 12 schematically shows a storage unit for holding or carrying program code implementing a transmission method of stream data according to the present invention.
  • FIG. 1 a flow chart of a method for transmitting a stream data according to a first embodiment of the present invention is shown.
  • Step 101 Receive first stream data transmitted from a first client according to a transmission path.
  • the method described in this embodiment of the present invention is applied to a scenario in which video stream data transmitted in a streaming manner exists.
  • the client and the client are connected by a transmission path, and the transmission path flows through one or more transmission nodes, so that a certain client is based on multiple transmission paths.
  • the end is connected to several other clients.
  • the first client accessing the network topology may transmit the first stream data to other clients according to the pre-established transmission path.
  • Stream data transmitted between clients can be transmitted using a Content Delivery Network (CDN).
  • CDN Content Delivery Network
  • the method in the embodiment of the present invention can be applied to multiple application scenarios, such as a live video scene, a video conference scenario, and the like.
  • the live broadcast includes the anchor end, the guest end, and the common user end
  • the first client may be the main broadcast end
  • the first stream data is the video stream data transmitted by the main broadcast end.
  • the dispatch node allocates the transmission path of the normal user to the anchor, the guest, and other common users, that is, the scheduling node adjusts the network topology of the live broadcast. Add the new normal client to the network topology.
  • the scheduling node can allocate a transmission path for the common user according to the geographic location information of the area where the ordinary user terminal is located, the load status of the transmission node, and the like.
  • Step 102 Send a request for a special permission to the first client according to the transmission path, and request the request to carry the preview information.
  • the special permission is in multiple forms, for example, broadcast stream data authority, and other clients may send an application request to the first client, and the application request is approved by the first client user.
  • the client has special privileges only after the application request has been approved.
  • the client may carry the preview information in the application request for preview by the first client user.
  • the preview information may be related to the information of the client user who sends the application request, and may be in various forms, such as video data, audio data, etc.
  • the preview information is audio and video data
  • the preview information may be a live stream data recorded on the spot. It can also be a pre-recorded piece of audio and video data.
  • the application request for the broadcast stream data permission may be sent to the anchor end, and the application request carries the preview information of the ordinary user end user, such as the user's audio and video data.
  • Step 103 Receive an approval notification that the first client feeds back according to the preview information.
  • the first client may display the preview information, and the first client user previews the preview information displayed, and approves the application request according to the preview result. Since the preview information provides a basis for the approval of the application request, carrying the preview information in the application request improves the experience of the approver and makes the approval result more accurate.
  • the first client will feedback the approval notification to the client that sent the application request, and the client has a special permission after the client receives the approval notification.
  • the live broadcast room includes the anchor, the guest, and the ordinary user.
  • the anchor end has the broadcast stream data authority, and the anchor broadcasts the application request for the broadcast stream data authority sent by the ordinary user terminal for approval.
  • the application request sends the video data of the ordinary user in the application request
  • the anchor sends the video after receiving the application request, and the anchor can learn the video by watching the video.
  • User-related information, and the application request is approved based on the video.
  • the anchor will feedback the approval notification to the ordinary user who sends the request.
  • the identity of the client changes, from the ordinary client to the guest, with broadcast stream data permission. .
  • the application request for the special permission is sent to the first client, and since the application request carries the preview information, the user using the first client can preview the information.
  • the embodiment of the present invention uses the same transmission path to transport stream data and signaling, which eliminates the establishment of different transmission paths of convection data and signaling in the traditional method, and saves path establishment.
  • FIG. 2 is a schematic flow chart of a method for transmitting a stream data according to a second embodiment of the present invention, which may specifically include the following steps:
  • Step 201 Receive first stream data transmitted from the first client according to the transmission path.
  • Step 202 Send a request for a special permission to the first client according to the transmission path, and request the request to carry the preview information.
  • a client may send a request for a special permission to the first client according to the pre-established transmission path.
  • the foregoing steps may be performed by the following method: First, the target transmission node passing through the transmission path may be recorded in advance.
  • the uplink destination transmission node transmits the request request to the last target transmission node of the transmission path, that is, to the target transmission node directly connected to the client that sends the application request, and the last destination transmission node
  • the application request is transmitted to its upstream destination transport node, as described above, until the request is transmitted to the first client.
  • the transmission node at the end of the transmission direction is defined as the transmission node at the beginning of the transmission direction.
  • Downlink transmission node For example, the transmission path of the first client to the second client is Node 1 - Node 2 - Node 3, the first client is directly connected to the node 1, the second client is directly connected to the node 3, and the node 2 is defined as the node 1.
  • the downlink transmission node, node 1 is the uplink transmission node of node 2.
  • the set of node identifiers of the target transmission nodes that are sequentially passed in the transmission process of the first stream data node is limited, and the application requesting client receives the first stream data after receiving the first stream data.
  • the set of node identifiers is extracted, and the sent request request carries the set of node identifiers, and the application request may be transmitted to the first client through the at least one intermediate transport node in reverse order according to the set of node identifiers carried in the application request.
  • the application request of the special permission sent by a certain client to the first client carries the preview information, and the first client user can approve the application request according to the preview information.
  • the audio and video data may be collected in real time or may be pre-stored.
  • the method of the embodiment of the present invention may further include: receiving a trigger operation of the user for the special permission, calling the audio and video collection interface to collect the audio and video data of the user, or The audio and video data of the pre-acquired user is extracted from the set position.
  • the method of transmitting the requested application is unicast, and the application request is unicast to the first client according to the transmission path between the client that sends the application request and the first client, and the application is made for the transmission node that passes the transmission path.
  • the requesting unicast operation, the client sending the application request may cause the preview information to carry the first identifier of the unicast transmission type, so that the transmitting node sends the application request to the first client according to the first identifier.
  • the corresponding relationship between the identifier and the transmission mode may be recorded in the transit node, for example, the first identifier corresponds to the unicast transmission mode, and after the transmission node identifies that the preview information of the application request carries the first identifier, the transmission mode of the application request is determined as Unicast.
  • Step 203 Receive an approval notification that the first client feeds back according to the preview information.
  • the first client After the first client user approves the application request for the special permission, the first client will feedback the approval notification to the client that sends the application request, and the client that sends the application request correspondingly receives the approval notification of the first client feedback, This has special permissions.
  • Step 204 Receive client information of a special client with special permission issued by the first client, and display the client information on the current client.
  • the client information of the special client with special permission in the system changes, and the client information may include the number of the special client with special permission, the end identifier, the end state, and At least one of the maximum number of special clients.
  • the first client sends the updated client information of the special client to other clients, and the other clients will update the special client.
  • the client information of the terminal is displayed.
  • the first client transmits the updated client information to the transit node directly connected thereto, and then transmits the updated client information to the access network topology according to multiple transmission paths in the network topology. Other clients and show.
  • step 203 and step 204 may be performed simultaneously or sequentially, and the present invention is not limited thereto.
  • the first client can deliver the client information of the special client according to different timings.
  • the client information of the special client can be delivered immediately after the application request for the current special permission is approved, and the special client can be sent according to the preset time interval.
  • Client information for the client can be delivered immediately after the application request for the current special permission is approved, and the special client can be sent according to the preset time interval.
  • the client information of the special client stored locally by other clients is different from the client information of the newly delivered special client, the client information needs to be updated to display the updated client information.
  • Different version identifiers can be set for different client information.
  • the version identifier is a numerical value, and the value of the version identifier after each update is increased by 1.
  • the locally stored and newly delivered special client clients can be determined by the following methods. Whether the end information is the same: the version identifier of the newly delivered client information is extracted, and compared with the version representation of the locally stored client information. If the comparison result is determined to be inconsistent, the locally stored and newly delivered client is determined. The information is different. The current client updates the locally stored client information and displays the newly delivered client information.
  • the application request for the special permission is sent to the first client, and since the application request carries the preview information, the user using the first client can preview the information.
  • the embodiment of the present invention uses the same transmission path to transport stream data and signaling, which eliminates the establishment of different transmission paths of convection data and signaling in the traditional method, and saves path establishment.
  • FIG. 3 a schematic flowchart of a step of a method for transmitting stream data according to a third embodiment of the present invention is shown, which may specifically include the following steps:
  • Step 301 Receive first stream data that is transmitted from the first client according to the transmission path.
  • Step 302 Send a request for a special permission to the first client according to the transmission path, and request the request to carry the preview information.
  • the special permission is a broadcast stream data authority.
  • Step 303 Receive an approval notification that the first client feeds back according to the preview information.
  • Step 304 The second stream data is transmitted to the target transmission node, so that the second stream data is pushed by the target transmission node to the first client and the at least one second client, and the transmission path is transmitted through multiple targets.
  • each target transmission node has at least one associated transmission node.
  • the first client transmits the first stream data to the current client according to the pre-established transmission path.
  • the transmission node through which the transmission path of the first client and the current client passes is referred to as a target transmission node, and the number of target transmission nodes is plural, and at least one target transmission node has an associated transmission node.
  • the association transmission node may be a transmission node directly connected to the target transmission node, or may be a transmission node indirectly connected to the target transmission node through the directly connected transmission node.
  • the current client has the right to broadcast stream data after receiving the approval notification of the first client feedback.
  • the second stream data may be transmitted to each target transmission node through which the current client and the first client transmit the path, and if the target transit node has an associated transit node, the second stream is The data is pushed from the target transit node to the associated transit node, and finally the second stream data is pushed to the first client and the third client of the access network topology to complete the broadcast transmission of the second stream data.
  • the second stream data may be pushed to the first target transmission node directly connected to the current client, and if the first target transmission node has the associated transmission node, the second stream data is pushed to the first target transmission. While the second target transmission node directly connected by the node, the second stream data is pushed from the first target transmission node to the associated transmission node, and the foregoing steps are performed cyclically, and finally the second stream data is pushed to the first client and the third Client.
  • the data may be unicast or broadcasted.
  • the transport node In order for the transport node to determine the transmission mode required by the current client to transmit data, the second stream data transmitted by the current client may be broadcasted.
  • the second identifier of the mode is used for each target transmission node to identify, and the second stream data is broadcast according to the second identifier, and finally the second stream data is pushed to the first client and the at least one second client.
  • the first client may be the anchor end in the live broadcast room
  • the second client may be the other guest end or the normal user end in the live broadcast room.
  • a normal user can send a request for a broadcast stream data permission to the anchor to send a connection request.
  • the ordinary user becomes a guest with the broadcast stream data authority.
  • the live stream data can be pushed to the target transport node directly connected to the current guest, and the target transport node is located on the transmission path of the current guest and the anchor, from the directly connected target transport node, through other targets.
  • the transit node and the associated transit node finally push the live stream data uploaded by the current guest to the anchor end, other guest end, and the common user end.
  • the client processes the received two video stream data, and finally displays the two parts of the video image simultaneously on the client interface, for example, in the form of picture-in-picture.
  • the first stream data of the first client and the second stream data of the other client are forwarded by using the same transmission path, and the network topology does not change, thereby eliminating the second stream in the traditional method.
  • the establishment of a new transmission path of data saves the path establishment time and ensures the real-time performance of the stream data transmission.
  • the embodiment of the present invention only needs to use one system to control the flow data forwarding of the first client and the flow data forwarding of the second client, thereby reducing system overhead.
  • the application request for the special permission is sent to the first client, and since the application request carries the preview information, the user using the first client can preview the information.
  • the embodiment of the present invention uses the same transmission path to transport stream data and signaling, which eliminates the establishment of different transmission paths of convection data and signaling in the traditional method, and saves path establishment.
  • the embodiment of the present invention uses the target transmission node and its associated transmission node to push the stream data.
  • the associated transmission node has multiple levels
  • the layer-level stream data is pushed step by step, and finally the stream data is pushed to the access transmission node cluster.
  • Clients that implement streaming data streaming are possible.
  • FIG. 4 a flow chart of a method for transmitting a stream data according to Embodiment 4 of the present invention is shown. Specifically, the method may include the following steps:
  • Step 401 Transfer the first stream data from the first client to the third client according to the transmission path.
  • the system includes multiple clients, and the client and the client are connected through a transmission path in a network topology, and a certain client is connected to other clients based on multiple transmission paths.
  • a transmission path is established between the first client and the third client.
  • the first stream data may be transmitted according to the pre-established transmission path.
  • Step 402 Receive a third client request for special permission, and forward the request to the first client according to the transmission path, and request the request to carry the preview information.
  • the special permission is in multiple forms, such as broadcast stream data authority, and the application request is approved by the first client user. If a client sends a request for a special permission to the first client, the client has special permissions only after the request is approved.
  • the embodiment of the present invention limits the third client to carry the preview information in the application request when the application request for the special permission is sent, and the preview information may indicate the related information of the client user who sends the application request.
  • the preview information may be in various forms, such as one or more of video data, audio data, text data, image data, and other forms of data.
  • the preview information may be a live broadcast recorded on the spot.
  • Streaming data can also be a pre-recorded piece of audio and video data.
  • Step 403 Forward the approval notification fed back by the first client according to the preview information to the third client.
  • the first client may display the preview information carried in the application request on the client interface, and approve the application request according to the preview information, when the first client receives the user's request. Once the instructions are approved, an approval notification is generated and the generated approval notification is fed back to the third client. Since the preview information provides a basis for the approval of the application request, carrying the preview information in the application request improves the experience of the approver and makes the approval result more accurate.
  • each target transmission node through which the transmission path passes records its uplink target transmission node, and transmitting the first stream data from the first client to the third client according to the transmission path includes: searching for the last of the transmission path An uplink transmission node of the target transmission node, and transmits the application request to the searched uplink target transmission node; the uplink destination transmission node transmits the application request to its uplink destination transmission node until the application request is transmitted to the first client end.
  • the path direction of the transmission path of the first client and the third client is the first client to the third client, and the first target transit node through which the transmission path flows is connected to the first client, and the last one through which the transmission path flows The target transport node is connected to the third client.
  • the third client When the third client sends an application request to the first client, the third client sends the application request to the target transmission node directly connected thereto, and can search for the uplink destination transmission node of the current target transmission node and push the application request to the In the manner of uplink transmission node, the application request is gradually transmitted, and finally the application request is pushed to the first client.
  • the transmission node that is located at the beginning of the transmission direction is the transmission node at the end of the transmission direction.
  • Uplink transmission node For example, the transmission path of the first client to the second client is Node 1 - Node 2 - Node 3, the first client is directly connected to the node 1, the second client is directly connected to the node 3, and the node 1 is defined as the node 2.
  • the uplink transmission node, node 2 is the downlink transmission node of node 1, and uses the same method to limit other transmission nodes.
  • the uplink target transmission node of the current target transmission node can be found in various ways. For example, when the network topology structure is completed, the uplink transmission node of the transmission node in different transmission paths may be recorded in each transmission node, and specifically, the correspondence between the end identifier of the client connected to the transmission path and the uplink transmission node may be recorded, and secondly, The stream data may carry the client identifier of the second client, and after receiving the second stream data, the transit node may search for the corresponding uplink transport node according to the client identifier carried by the transport node.
  • path 1 is the first client-node 1 - node 2 - node 3 - the third client
  • path 2 is the first client - node 1 - node 4 - node 3 - the fourth client
  • the node 3 records the The corresponding relationship between the end identifier of the third client and the node 2 and the corresponding relationship between the end identifier of the fourth client and the node 4
  • the second stream data transmitted by the third client carries the end identifier of the third client.
  • the transmitting node may determine, according to the end identifier of the third client that is carried by the second stream data that is transmitted, and the corresponding relationship between the stored end identifier and the uplink transmitting node, that the corresponding uplink transmitting node is the node 2.
  • the first stream data transmitted by the first client may carry a set of target transmission nodes through which the transmission path passes, and multiple target transmission nodes in the set are arranged in order of flow, and the third client extracts and transmits after receiving the first stream data.
  • the set of nodes, the second stream data sent by the node carries the set, and after receiving the second stream data, the transmitting node determines the uplink target transmission node of the current target transmission node according to the order of the multiple target transmission nodes in the set.
  • the application request for the special permission is sent to the first client, and since the application request carries the preview information, the user using the first client can preview the information.
  • the embodiment of the present invention uses the same transmission path to transport stream data and signaling, which eliminates the establishment of different transmission paths of convection data and signaling in the traditional method, and saves path establishment.
  • FIG. 5 a schematic flowchart of a step of a method for transmitting stream data according to Embodiment 5 of the present invention is shown, which may specifically include the following steps:
  • Step 501 Transfer the first stream data from the first client to the third client according to the transmission path.
  • Step 502 Receive a third client request for special permission, and forward the application request to the first client according to the transmission path, and the application request carries the preview information.
  • the special permission is a broadcast stream data authority.
  • Step 503 Forward the approval notification fed back by the first client according to the preview information to the third client.
  • Step 504 Receive second stream data that is transmitted by the third client to the target transmission node, where the transmission path passes through multiple target transmission nodes, and each target transmission node has at least one associated transmission node.
  • the transmission path and the transmission path meet, and the two transmission paths have a common transmission node.
  • the transmission path 1 and the transmission path 2 meet at the transmission node 1, and the transmission path is opposite to the transmission path 1.
  • the other transport nodes other than the transport node 1 are referred to as the associated transport nodes of the transport node 1 on the transport path 1.
  • the association transmission node may be a transmission node directly connected to a certain transmission node, or may be a plurality of transmission nodes directly and indirectly connected to a certain transmission node.
  • the step of receiving the second stream data that is transmitted by the third client to the target transit node may include: receiving the second stream data that is transmitted by the third client to the directly connected target transport node, according to the reverse order of the transmission path, The second stream data is sequentially pushed to other target transmission nodes.
  • Step 505 Push the second stream data from each target transmission node to the first client and the at least one second client via the associated transit node.
  • each target transmission node After receiving the second stream data, each target transmission node pushes the second stream data to its associated transmission node, and finally pushes the second stream data to the first client and the second client.
  • some transmission nodes have associated transmission nodes, and the associated transmission nodes may be directly connected transmission nodes or indirectly connected transmission nodes.
  • the associated transmission node may be divided into multiple levels according to the node connection order, such as a primary associated transmission node, a secondary associated transmission node, a tertiary associated transmission node, etc., wherein the primary associated transmission node is directly connected to a certain transmission node.
  • the transit node, the secondary associated transport node is a transport node that is directly connected to the primary associated transport node, and so on.
  • the target transmission node through which the transmission path of the first client and the third client passes may include multiple connections, such as the target transmission node may directly connect with other target transmission nodes, the primary association transmission node, the first client, or the second client. .
  • the present step may be performed by: firstly, pushing the second stream data to the first-level associated transport node or the first client or the second client directly connected to the target transport node.
  • the downlink destination transmission node in the transmission path may be locally recorded on the target transmission node through which the transmission path passes.
  • the target transport node receives the second stream data transmitted by the third client
  • the second stream data is pushed to the first-level associated transport node or the first client or the third client that is directly connected to the target transport node.
  • the method of the embodiment of the present invention may further include: searching for a downlink target transmission node of the target transmission node in the transmission path, and removing the sought downlink destination transmission from the primary association transmission node directly connected to the target transmission node. node. After the above removal step is completed, the target transmission node pushes the second stream data to the other level one associated transmission node except the found downlink destination transmission node.
  • All the primary association transmission nodes of the transmission node may be recorded locally in each transmission node, and the node identifiers of all the primary association transmission nodes may be recorded.
  • the first-level associated transmission node directly connected to the target transmission node may be locally extracted from the target transmission node, and then all the first-level associated transmission nodes are extracted from the extracted one. The discovered downstream target transmission node is removed.
  • the transmission node at the intersection or intersection When the first client intersects or intersects with multiple transmission paths of different clients, the transmission node at the intersection or intersection locally records a plurality of downlink destination transmission nodes for multiple transmission paths.
  • the embodiment of the present invention may transmit the first stream data in a process of transmitting the first stream data by using a certain transmission path, and when the first stream data is transmitted to a target transmission node, the target transmission node is used.
  • the downlink target transmission node in the transmission path is stored locally in the destination transmission node corresponding to the stream identifier of the first stream data.
  • the third client sends the second stream data, where the second stream data carries the stream identifier of the first stream data, and after the second stream data is transmitted to the target transport node, the target transport node
  • the corresponding downlink destination transmission node may be extracted according to the flow identifier of the first stream data.
  • the target transmission node may extract the downlink target transmission node corresponding to the first flow identifier according to the flow identifier of the first flow data carried by the second flow data, and the corresponding relationship between the locally stored first flow identifier and the downlink target transmission node.
  • the downlink transmission node of the target transmission node in the transmission path may be determined in multiple manners, for example, the first stream data carries nodes of all target transmission nodes through which the transmission path passes.
  • the node identifiers of the plurality of target transmission nodes are arranged in an orderly manner according to the flow direction of the first client to the third client.
  • the node identifier of the current target transmission node may be acquired. Determining, according to the node identification sequence carried by the first stream data, that the next target transmission node to be transmitted is a downlink target transmission node.
  • the method further includes: searching for a downlink target transmission node of the target transmission node in the transmission path, where the method specifically includes: limiting the second stream data when the second stream data transmitted by the third client is transmitted to a target transmission node Carrying the node identifier of the target transport node, when the second stream data is transmitted to the next target transport node, after the next target transport node completes the extraction of the node identifier carried by the second stream data, the second stream data is carried The node identifier is changed, and is changed to the node identifier of the next target transmission node, and the second stream data is transmitted according to the above method.
  • the node carried by the second stream data may be extracted.
  • the manner of identification determines the downlink target transmission node of the current target transmission node in the transmission path.
  • the push step is performed iteratively, and the second stream data is received from the second stream data.
  • the N-level associated transport node pushes to the directly connected N+1 level associated transport node or the first client or the second client until it is pushed to the first client and all second clients of the access transport node cluster.
  • the associated transport node of the target transport node may include multiple transport nodes that are directly connected and indirectly connected, multiple transport nodes may have multiple levels of association, so the second stream data transmitted by the third client is pushed to the level one association transmission.
  • the loop After the node, the loop performs an iterative step to push the second stream data to the second-level associated transport node, ..., the N-level associated transport node, and the N+1-level associative transport node until the first client is pushed to the access transport node cluster. And all the second clients, thereby completing the broadcast of the second stream data issued by the third client. Therefore, the embodiment of the present invention uses the target transmission node and the associated transmission node to broadcast the stream data to multiple clients.
  • the method may further include: determining that the second stream data points to the broadcast transfer method.
  • the stream data can also be broadcasted to the first client and the second client, so the target transit node receives the stream.
  • the second stream data After the second stream data is released by the third client, it is required to determine the transmission mode of the second stream data. If it is determined that the second stream data points to the broadcast transmission mode, broadcast transmission is performed; if it is determined that the second stream data does not point to The broadcast transmission mode, that is, determining that the second stream data is unicast, pushes the second stream data from each target transmission node to the first client.
  • the second stream data may be determined to be directed to the broadcast transmission mode by a plurality of methods, for example, by determining a method of including the identifier of the broadcast transmission mode in the data protocol header of the second stream data.
  • the identification of the mode of communication can take many forms, such as numbers, letters, words, graphics, and the like. Different identifiers indicating different transmission modes may be set in advance on the user client, for example, setting the identifier “a” for the broadcast transmission mode, setting the identifier “b” for the unicast transmission mode, and limiting the flow when the client uploads the streaming data. Add the identifier corresponding to the data transmission mode in the data protocol header of the data; or set the end identifier for different clients in advance.
  • the end identifier of the first client is set to “0”, the end identifiers of other clients except the first client are If it is "1”, the end identifier "1" indicates the broadcast transmission mode, and when the client uploads the stream data, the end identifier of the destination client that receives the stream data is added to the data protocol header of the stream data.
  • the third client When the second stream data is broadcasted in advance, the third client performs corresponding processing on the second stream data, so that the released second stream data carries the end identifier of the plurality of destination clients, the number of the plurality of destination clients, or the destination client.
  • the number of ends is information such as multiple identifiers.
  • the target transmission node After the target transmission node recognizes the foregoing information, it is determined that the second stream data is a broadcast transmission mode.
  • the method may further include: determining that the third client has broadcast rights.
  • the second client can be determined to have broadcast rights in a plurality of manners, for example, a feature client set having broadcast rights can be found, and it is determined that the second client exists in the feature client set.
  • the feature client set is a set of clients with broadcast rights, and the feature client set is stored in each transport node. If it is determined that the second client is within the feature client set stored locally by the transit node, then the second client is determined to have broadcast rights.
  • the application request for the special permission is sent to the first client, and since the application request carries the preview information, the user using the first client can preview the information.
  • the embodiment of the present invention uses the same transmission path to transport stream data and signaling, which eliminates the establishment of different transmission paths of convection data and signaling in the traditional method, and saves path establishment.
  • the target transmission node and its associated transmission node are used to push the stream data.
  • the layer-level stream data is pushed step by step, and finally the stream data is pushed to the access transmission node cluster.
  • Clients that implement streaming data streaming are used to push the stream data.
  • FIG. 6 is a block diagram showing the structure of a stream data transmission apparatus according to Embodiment 6 of the present invention.
  • the transmission device of the stream data in FIG. 6 includes:
  • the first stream data receiving module 601 is configured to receive the first stream data transmitted from the first client according to the transmission path.
  • the application request sending module 602 is configured to send a special permission application request to the first client according to the transmission path, where the application request carries preview information.
  • the approval notification receiving module 603 is configured to receive an approval notification that the first client feeds back according to the preview information.
  • the application request for the special permission is sent to the first client, and since the application request carries the preview information, the user using the first client can preview the information.
  • the embodiment of the present invention uses the same transmission path to transport stream data and signaling, which eliminates the establishment of different transmission paths of convection data and signaling in the traditional method, and saves path establishment.
  • FIG. 7 is a block diagram showing the structure of a stream data transmission apparatus according to Embodiment 7 of the present invention.
  • the transmission device of the stream data in FIG. 7 includes:
  • the first stream data receiving module 701 is configured to receive the first stream data transmitted from the first client according to the transmission path.
  • the application request sending module 702 is configured to send a special permission application request to the first client according to the transmission path, where the application request carries preview information.
  • the approval notification receiving module 703 is configured to receive an approval notification that the first client feeds back according to the preview information.
  • the client information receiving module 704 is configured to receive the client information of the special client with the special permission issued by the first client, and display the client information on the current client, where the client information includes the number of the special client, At least one of the end identifier, the end state, and the maximum number of special clients.
  • the device further includes:
  • the triggering operation receiving module is configured to: the preview information is audio and video data, and before receiving the application request for sending the special permission to the first client according to the transmission path, receiving a trigger operation of the special permission by the user;
  • the audio and video data acquisition module is configured to invoke the audio and video collection interface to collect the audio and video data of the user, or extract the pre-acquired audio and video data of the user from the set location.
  • the preview information carries a first identifier of a unicast transmission type, so that the transmitting node sends the application request to the first client according to the first identifier.
  • the device further includes:
  • the client information receiving module is configured to receive the client information of the special client with special permission issued by the first client, and display the client information on the current client, where the client information includes the number of the special client and the end At least one of the identifier, the end state, and the maximum number of special clients.
  • the device further includes:
  • the version identifier extraction module is configured to: before the displaying of the current first client, extracting a version identifier of the newly delivered client information, and comparing the version identifier of the locally stored client information;
  • the comparison result determination module is configured to determine that the comparison result is inconsistent.
  • the application request sending module is specifically configured to transmit the application request to a last target transmission node of the transmission path, and the last target transmission node transmits the application request Up to its uplink destination transmission node, until the application request is transmitted to the first client, each target transmission node through which the transmission path passes records its uplink destination transmission node.
  • the application request sending module is configured to, in reverse, sequentially transmit the application request to the first client via at least one intermediate target transmission node according to the set of the node identifiers.
  • the first stream data carries a set of node identifiers of each target transmission node that passes through the transmission process.
  • the application request for the special permission is sent to the first client, and since the application request carries the preview information, the user using the first client can preview the information.
  • the embodiment of the present invention uses the same transmission path to transport stream data and signaling, which eliminates the establishment of different transmission paths of convection data and signaling in the traditional method, and saves path establishment.
  • FIG. 8 is a block diagram showing the structure of a stream data transmission apparatus according to Embodiment 8 of the present invention.
  • the transmission device of the stream data in FIG. 8 includes:
  • the first stream data receiving module 801 is configured to receive the first stream data transmitted from the first client according to the transmission path.
  • the application request sending module 802 is configured to send a special permission application request to the first client according to the transmission path, where the application request carries preview information.
  • the approval notification receiving module 803 is configured to receive an approval notification that the first client feeds back according to the preview information.
  • the second stream data transmission module 804 is configured to transmit the second stream data to the target transmission node, so that the second stream data is pushed by the target transmission node to the first client by the associated transmission node And at least one second client, the transmission path passes through a plurality of target transmission nodes, and each target transmission node has at least one associated transmission node.
  • the second stream data carries a second identifier of the broadcast transmission mode for each target transmission node to identify, and pushes the second stream data to the first identifier according to the second identifier.
  • the application request for the special permission is sent to the first client, and since the application request carries the preview information, the user using the first client can preview the information.
  • the embodiment of the present invention uses the same transmission path to transport stream data and signaling, which eliminates the establishment of different transmission paths of convection data and signaling in the traditional method, and saves path establishment.
  • the target transmission node and its associated transmission node are used to push the stream data.
  • the layer-level stream data is pushed step by step, and finally the stream data is pushed to the access transmission node cluster.
  • Clients that implement streaming data streaming are used to push the stream data.
  • FIG. 9 is a block diagram showing the structure of a stream data transmission apparatus according to Embodiment 9 of the present invention.
  • the transmission device of the stream data in FIG. 9 includes:
  • the first stream data transmission module 901 is configured to transmit the first stream data from the first client to the third client according to the transmission path.
  • the application request receiving module 902 is configured to receive an application request for the special permission by the third client.
  • the application request forwarding module 903 is configured to forward the application request to the first client according to the transmission path, where the application request carries preview information.
  • the approval notification forwarding module 904 is configured to forward the approval notification fed back by the first client according to the preview information to the third client.
  • the application request for the special permission is sent to the first client, and since the application request carries the preview information, the user using the first client can preview the information.
  • the embodiment of the present invention uses the same transmission path to transport stream data and signaling, which eliminates the establishment of different transmission paths of convection data and signaling in the traditional method, and saves path establishment.
  • FIG. 10 is a block diagram showing the structure of a stream data transmission apparatus according to a tenth embodiment of the present invention.
  • the transmission device of the stream data in FIG. 10 includes:
  • the first stream data transmission module 1001 is configured to transmit the first stream data from the first client to the third client according to the transmission path.
  • the application request receiving module 1002 is configured to receive an application request for the special permission by the third client.
  • the application request forwarding module 1003 is configured to forward the application request to the first client according to the transmission path, where the application request carries preview information.
  • the approval notification forwarding module 1004 is configured to forward the approval notification fed back by the first client according to the preview information to the third client.
  • the second stream data receiving module 1005 is configured to receive second stream data that is transmitted by the third client to the target transmission node, where the transmission path passes through multiple target transmission nodes, and each target transmission node has at least one associated transmission. node.
  • the second stream data pushing module 1006 is configured to push the second stream data from each target transmission node to the first client and the at least one second client via the associated transmission node.
  • the application request forwarding module includes:
  • An uplink transmission node search module configured to search for an uplink transmission node of a last target transmission node of the transmission path, and transmit the application request to the searched uplink target transmission node, where each target transmission node that the transmission path passes has Its upstream target transmission node;
  • An application request transmission module is configured to transmit, by the uplink target transmission node, the application request to its uplink destination transmission node until the application request is transmitted to the first client.
  • the device further includes:
  • a broadcast transmission mode determining module configured to determine the first stream before the second stream data is pushed from the target transmission node to the first client and the at least one second client The second stream data points to the broadcast transmission mode.
  • the device further includes:
  • the second stream data unicast module is configured to: if the second stream data does not point to the broadcast transmission mode, push the second stream data from each target transmission node to the first client.
  • the device further includes:
  • the broadcast authority determining module is configured to determine that the third client has a broadcast right after determining that the second stream data points to a broadcast transmission mode.
  • the broadcast authority determining module includes:
  • a collection lookup module configured to find a feature client set with broadcast rights
  • the third client determining module is configured to determine that the third client exists in the feature client set.
  • the second stream data receiving module includes:
  • a second stream data obtaining module configured to receive second stream data that is transmitted by the third client to the directly connected target transmission node
  • the second stream data reverse transmission module is configured to sequentially push the second stream data to the other target transmission nodes according to the reverse sequence of the transmission path.
  • the second stream data pushing module includes:
  • a second stream data direct transmission module configured to: push the second stream data to a first-level associated transport node or a first client or a second client that is directly connected to the target transport node;
  • a second stream data iterative push module configured to iteratively perform a push step of pushing the second stream data from an N-level associated transport node that receives the second stream data to a directly connected N+1 level associated transport node or The first client or the second client is pushed to the first client and all the second clients of the access transport node cluster.
  • the device further includes:
  • a downlink target transmission node lookup module configured to: before the pushing the second stream data to a primary association transmission node or a first client or a second client directly connected to the target transmission node, searching for the a downlink destination transmission node in the transmission path of the target transmission node, the target transmission node locally recording a downlink destination transmission node in the transmission path;
  • a downlink target transmission node removal module configured to remove the found downlink target transmission node from the primary association transmission node directly connected to the target transmission node.
  • the downlink target transmission node searching module is configured to extract, according to the flow identifier of the first stream data, a corresponding downlink destination transmission node, the downlink target transmission node, and the first The flow identifier of the first-level data is correspondingly stored, and the second stream data carries the flow identifier of the first stream data.
  • the application request for the special permission is sent to the first client, and since the application request carries the preview information, the user using the first client can preview the information.
  • the embodiment of the present invention uses the same transmission path to transport stream data and signaling, which eliminates the establishment of different transmission paths of convection data and signaling in the traditional method, and saves path establishment.
  • the target transmission node and its associated transmission node are used to push the stream data.
  • the layer-level stream data is pushed step by step, and finally the stream data is pushed to the access transmission node cluster.
  • Clients that implement streaming data streaming are used to push the stream data.
  • modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
  • the modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined.
  • Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • Those skilled in the art will appreciate that some or all of the functionality of some or all of the components of the streaming data transmission device in accordance with embodiments of the present invention may be implemented in practice using a microprocessor or digital signal processor (DSP).
  • DSP digital signal processor
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • Figure 11 illustrates a computing device that can implement a method of transmitting streaming data in accordance with the present invention.
  • the computing device conventionally includes a processor 1110 and a computer program product or computer readable medium in the form of a memory 1120.
  • the memory 1120 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
  • the memory 1120 has a storage space 1130 that stores program code 1131 for performing any of the method steps described above.
  • the storage space 1130 storing program code may include respective program codes 1131 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • Such computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such a computer program product is typically a portable or fixed storage unit such as that shown in FIG.
  • the storage unit may have a storage segment, a storage space, and the like that are similarly arranged to the storage 1120 in the computing device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit includes computer readable code 1131 ', ie, code that can be read by a processor, such as 1110, which when executed by the computing device causes the computing device to perform various steps in the methods described above .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Computer Graphics (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A method and device for transmitting stream data. The method comprises: receiving first stream data transmitted from a first client via a transmission path; sending an application request for special permission to the first client via the transmission path, the application request carrying preview information; and receiving a notification of approval fed back by the first client according to the preview information. Because the application request carries preview information, a user using the first client can view the preview information and make a judgment on the application request according to the view result, thereby improving user experience and improving the accuracy of the application request judgment result. In addition, in embodiments of the present invention stream data and signaling are transmitted using a same transmission path, so as to avoid the establishment of different transmission paths for stream data and signaling as in conventional methods, thereby reducing the establishment of paths.

Description

流数据的传输方法和装置Stream data transmission method and device 技术领域Technical field

本发明涉及信息处理技术领域,具体涉及一种流数据的传输方法以及一种流数据的传输装置。The present invention relates to the field of information processing technologies, and in particular, to a method for transmitting stream data and a device for transmitting stream data.

背景技术Background technique

随着互联网的发展,网络直播作为流媒体的重要组成形式被越来越多的用户参与。在直播平台系统中,主播端和嘉宾端具有推送直播流数据的权限,而普通用户端不具有推送直播流数据的权限。With the development of the Internet, webcasting has become an important component of streaming media and more and more users are participating. In the live broadcast platform system, the anchor end and the guest end have the right to push the live stream data, and the normal user end does not have the right to push the live stream data.

在直播平台使用过程中,普通用户端可以向主播端发送连麦请求,待连麦请求成功后,普通用户端变成嘉宾端,从而具有推送直播流数据的权限。During the use of the live broadcast platform, the common user can send a connection request to the anchor end. After the request is successfully completed, the ordinary user end becomes a guest end, thereby having the right to push the live stream data.

但是,在主播对连麦请求的审批过程中,主播只知晓当前有连麦请求,连麦请求的审批操作无审批依据,因此所得的审批结果不够准确,主播体验较差。However, during the approval process of the anchor request to Lianmai, the anchor only knows that there is a current request for the connection, and the approval operation of the request is not approved. Therefore, the obtained approval result is not accurate enough, and the anchor experience is poor.

发明内容Summary of the invention

鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的流数据的传输方法和相应的流数据的传输装置。In view of the above problems, the present invention has been made in order to provide a method of transmitting stream data and a corresponding stream data transmission apparatus that overcome the above problems or at least partially solve the above problems.

依据本发明的一个方面,提供了一种流数据的传输方法,包括:According to an aspect of the present invention, a method for transmitting stream data is provided, including:

接收从第一客户端按照传输路径传输的第一流数据;Receiving first stream data transmitted from the first client according to the transmission path;

按照所述传输路径向所述第一客户端发送特殊权限的申请请求,所述申请请求携带预览信息;Sending, according to the transmission path, an application request for special permission to the first client, where the application request carries preview information;

接收所述第一客户端根据所述预览信息反馈的批准通知。Receiving an approval notification that the first client feeds back according to the preview information.

根据本发明的另一方面,提供了一种流数据的传输方法,包括:According to another aspect of the present invention, a method for transmitting stream data is provided, including:

按照传输路径将第一流数据从第一客户端传送至第三客户端;Transmitting the first stream data from the first client to the third client according to the transmission path;

接收所述第三客户端对特殊权限的申请请求,并按照所述传输路径将所述申请请求转发至所述第一客户端,所述申请请求携带预览信息;Receiving, by the third client, a request for special permission, and forwarding the application request to the first client according to the transmission path, where the application request carries preview information;

将所述第一客户端根据所述预览信息反馈的批准通知转发至所述第三 客户端。And forwarding, by the first client, an approval notification fed back according to the preview information to the third client.

根据本发明的另一方面,提供了一种流数据的传输装置,包括:According to another aspect of the present invention, a streaming data transmission apparatus is provided, including:

第一流数据接收模块,配置为接收从第一客户端按照传输路径传输的第一流数据;a first stream data receiving module, configured to receive first stream data transmitted from the first client according to the transmission path;

申请请求发送模块,配置为按照所述传输路径向所述第一客户端发送特殊权限的申请请求,所述申请请求携带预览信息;The application request sending module is configured to send a special permission application request to the first client according to the transmission path, where the application request carries preview information;

批准通知接收模块,配置为接收所述第一客户端根据所述预览信息反馈的批准通知。The approval notification receiving module is configured to receive an approval notification that the first client feeds back according to the preview information.

根据本发明的另一方面,提供了一种流数据的传输装置,包括:According to another aspect of the present invention, a streaming data transmission apparatus is provided, including:

第一流数据传输模块,配置为按照传输路径将第一流数据从第一客户端传送至第三客户端;The first stream data transmission module is configured to transmit the first stream data from the first client to the third client according to the transmission path;

申请请求接收模块,配置为接收所述第三客户端对特殊权限的申请请求;The application request receiving module is configured to receive an application request for the special permission by the third client;

申请请求转发模块,配置为按照所述传输路径将所述申请请求转发至所述第一客户端,所述申请请求携带预览信息;The application request forwarding module is configured to forward the application request to the first client according to the transmission path, where the application request carries preview information;

批准通知转发模块,配置为将所述第一客户端根据所述预览信息反馈的批准通知转发至所述第三客户端。And the approval notification forwarding module is configured to forward the approval notification fed back by the first client according to the preview information to the third client.

根据本发明的又一方面提供了一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行如上文所述的流数据的传输方法。According to still another aspect of the present invention, a computer program comprising computer readable code, when the computer readable code is run on a computing device, causes the computing device to perform a method of transmitting stream data as described above .

根据本发明的再一方面提供了一种计算机可读介质,其中存储了如上文所述的计算机程序。According to still another aspect of the present invention, a computer readable medium storing a computer program as described above is provided.

依据本发明实施例,按照第一客户端传输第一流数据时的传输路径,向第一客户端发送特殊权限的申请请求,由于申请请求携带预览信息,因此使用第一客户端的用户可以对预览信息进行查看,并根据查看结果对申请请求做出判断,从而提高了用户体验,同时提高了申请请求的判断结果的准确性。同时,本发明实施例使用同一传输路径传输流数据和信令,省去了传统方法中对流数据和信令的不同传输路径的建立,节省了路径建立。According to the embodiment of the present invention, according to the transmission path when the first client transmits the first stream data, the application request for the special permission is sent to the first client, and since the application request carries the preview information, the user using the first client can preview the information. By reviewing and making judgments on the application request based on the viewing result, the user experience is improved, and the accuracy of the judgment result of the application request is improved. At the same time, the embodiment of the present invention uses the same transmission path to transport stream data and signaling, which eliminates the establishment of different transmission paths of convection data and signaling in the traditional method, and saves path establishment.

本发明实施例利用目标传输节点及其关联传输节点对流数据进行推送,当关联传输节点具有多个层级时,按层级对流数据进行逐级推送,最终将流数据推送至接入传输节点集群的多个客户端,实现流数据的广播。In the embodiment of the present invention, the target transmission node and its associated transmission node are used to push the stream data. When the associated transmission node has multiple levels, the layer-level stream data is pushed step by step, and finally the stream data is pushed to the access transmission node cluster. Clients that implement streaming data streaming.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, and the above-described and other objects, features and advantages of the present invention can be more clearly understood. Specific embodiments of the invention are set forth below.

附图说明DRAWINGS

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those skilled in the art from a The drawings are only for the purpose of illustrating the preferred embodiments and are not to be construed as limiting. Throughout the drawings, the same reference numerals are used to refer to the same parts. In the drawing:

图1示出了根据本发明实施例一的一种流数据的传输方法的步骤流程示意图;1 is a flow chart showing the steps of a method for transmitting stream data according to a first embodiment of the present invention;

图2示出了根据本发明实施例二的一种流数据的传输方法的步骤流程示意图;2 is a flow chart showing the steps of a method for transmitting stream data according to Embodiment 2 of the present invention;

图3示出了根据本发明实施例三的一种流数据的传输方法的步骤流程示意图;3 is a schematic flow chart showing the steps of a method for transmitting stream data according to Embodiment 3 of the present invention;

图4示出了根据本发明实施例四的一种流数据的传输方法的步骤流程示意图;4 is a flow chart showing the steps of a method for transmitting stream data according to Embodiment 4 of the present invention;

图5示出了根据本发明实施例五的一种流数据的传输方法的步骤流程示意图;FIG. 5 is a flow chart showing the steps of a method for transmitting stream data according to Embodiment 5 of the present invention;

图6示出了根据本发明实施例六的一种流数据的传输装置的结构框图;6 is a block diagram showing the structure of a stream data transmission apparatus according to Embodiment 6 of the present invention;

图7示出了根据本发明实施例七的一种流数据的传输装置的结构框图;FIG. 7 is a block diagram showing the structure of a stream data transmission apparatus according to Embodiment 7 of the present invention; FIG.

图8示出了根据本发明实施例八的一种流数据的传输装置的结构框图;FIG. 8 is a block diagram showing the structure of a stream data transmission apparatus according to Embodiment 8 of the present invention; FIG.

图9示出了根据本发明实施例九的一种流数据的传输装置的结构框图;FIG. 9 is a block diagram showing the structure of a stream data transmission apparatus according to Embodiment 9 of the present invention; FIG.

图10示出了根据本发明实施例十的一种流数据的传输装置的结构框图;FIG. 10 is a block diagram showing the structure of a stream data transmission apparatus according to Embodiment 10 of the present invention; FIG.

图11示意性地示出了用于执行根据本发明的流数据的传输方法的计算 设备的结构框图;以及Figure 11 is a block diagram showing the structure of a computing device for performing a method of transmitting stream data according to the present invention;

图12示意性地示出了用于保持或者携带实现根据本发明的流数据的传输方法的程序代码的存储单元。Fig. 12 schematically shows a storage unit for holding or carrying program code implementing a transmission method of stream data according to the present invention.

具体实施方式detailed description

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the embodiments of the present invention have been shown in the drawings, the embodiments Rather, these embodiments are provided so that this disclosure will be more fully understood and the scope of the disclosure will be fully disclosed.

参照图1,示出了根据本发明实施例一的一种流数据的传输方法的步骤流程示意图,具体可以包括如下步骤:Referring to FIG. 1 , a flow chart of a method for transmitting a stream data according to a first embodiment of the present invention is shown.

步骤101、接收从第一客户端按照传输路径传输的第一流数据。Step 101: Receive first stream data transmitted from a first client according to a transmission path.

本发明实施例所述的方法应用于存在以流式传输方式传输的视频流数据的场景。The method described in this embodiment of the present invention is applied to a scenario in which video stream data transmitted in a streaming manner exists.

本发明实施例中,连入网络拓扑结构的客户端为多个,客户端与客户端之间通过传输路径连接,传输路径流经一个或多个传输节点,基于多条传输路径使得某一客户端与其他多个客户端连接。In the embodiment of the present invention, there are multiple clients connected to the network topology, and the client and the client are connected by a transmission path, and the transmission path flows through one or more transmission nodes, so that a certain client is based on multiple transmission paths. The end is connected to several other clients.

接入网络拓扑结构的第一客户端可以根据预先建立的传输路径向其他客户端传输第一流数据。可以使用内容分发网络(Content Delivery Network,CDN)对客户端间传输的流数据进行传输。The first client accessing the network topology may transmit the first stream data to other clients according to the pre-established transmission path. Stream data transmitted between clients can be transmitted using a Content Delivery Network (CDN).

本发明实施例所述方法可以应用于多种应用场景,例如应用于视频直播场景、视频会议场景等。当本发明实施例所述方法应用于视频直播场景时,直播间内包括主播端、嘉宾端和普通用户端,第一客户端可以为主播端,第一流数据为主播端传输的视频流数据。The method in the embodiment of the present invention can be applied to multiple application scenarios, such as a live video scene, a video conference scenario, and the like. When the method in the embodiment of the present invention is applied to a live video scene, the live broadcast includes the anchor end, the guest end, and the common user end, and the first client may be the main broadcast end, and the first stream data is the video stream data transmitted by the main broadcast end.

当用户进入某一直播间成为普通用户后,调度节点会为该普通用户端分配其与主播端、嘉宾端和其他普通用户端的传输路径,即调度节点会对直播间的网络拓扑结构进行调整,将新加入的普通用户端添加至网络拓扑结构中。调度节点可以根据普通用户端所在区域的地理位置信息、传输节点的负 载情况等信息,为普通用户端分配传输路径。After the user enters a live broadcast room and becomes an ordinary user, the dispatch node allocates the transmission path of the normal user to the anchor, the guest, and other common users, that is, the scheduling node adjusts the network topology of the live broadcast. Add the new normal client to the network topology. The scheduling node can allocate a transmission path for the common user according to the geographic location information of the area where the ordinary user terminal is located, the load status of the transmission node, and the like.

步骤102、按照传输路径向第一客户端发送特殊权限的申请请求,申请请求携带预览信息。Step 102: Send a request for a special permission to the first client according to the transmission path, and request the request to carry the preview information.

本发明实施例中,特殊权限为多种形式,例如广播流数据权限,其他客户端可以向第一客户端发送申请请求,申请请求由第一客户端用户审批。只有在申请请求被批准后,客户端才具特殊权限。In the embodiment of the present invention, the special permission is in multiple forms, for example, broadcast stream data authority, and other clients may send an application request to the first client, and the application request is approved by the first client user. The client has special privileges only after the application request has been approved.

当前客户端在按照预先建立的传输路径向第一客户端发送特殊权限的申请请求时,会在申请请求中携带预览信息供第一客户端用户预览。预览信息可以指示发送申请请求的客户端用户的相关信息,可以为多种形式,如视频数据、音频数据等,当预览信息为音视频数据时,预览信息可以是现场录制的一段直播流数据,也可以是预先录制的一段音视频数据。When the current client sends a special permission application request to the first client according to the pre-established transmission path, the client may carry the preview information in the application request for preview by the first client user. The preview information may be related to the information of the client user who sends the application request, and may be in various forms, such as video data, audio data, etc. When the preview information is audio and video data, the preview information may be a live stream data recorded on the spot. It can also be a pre-recorded piece of audio and video data.

在视频直播场景中,普通用户端预广播流数据时,可以向主播端发送广播流数据权限的申请请求,申请请求中携带该普通用户端用户的预览信息,如用户的音视频数据。In the video live broadcast scenario, when the normal user terminal pre-broadcasts the data, the application request for the broadcast stream data permission may be sent to the anchor end, and the application request carries the preview information of the ordinary user end user, such as the user's audio and video data.

步骤103、接收第一客户端根据预览信息反馈的批准通知。Step 103: Receive an approval notification that the first client feeds back according to the preview information.

第一客户端接收到携带预览信息的申请请求后,可以对预览信息进行展示,第一客户端用户对展示的预览信息进行预览,并根据预览结果对申请请求做出审批。由于预览信息为申请请求的审批提供了依据,因此在申请请求中携带预览信息提高了审批者的体验效果,使得审批结果更加准确。After receiving the application request carrying the preview information, the first client may display the preview information, and the first client user previews the preview information displayed, and approves the application request according to the preview result. Since the preview information provides a basis for the approval of the application request, carrying the preview information in the application request improves the experience of the approver and makes the approval result more accurate.

如果申请请求得到批准,则第一客户端会向发送申请请求的客户端反馈批准通知,客户端接收到批准通知后客户端身份发生变化,具有特殊权限。If the application request is approved, the first client will feedback the approval notification to the client that sent the application request, and the client has a special permission after the client receives the approval notification.

以视频直播场景为例,直播间包括主播、嘉宾和普通用户,主播端具有广播流数据权限,主播对普通用户端发送的广播流数据权限的申请请求进行审批。普通用户端向主播端发送广播流数据权限的申请请求即发送连麦请求时,在申请请求中携带普通用户的视频数据,主播端接收到申请请求后展示该视频,主播可以通过观看视频了解普通用户的相关信息,并以该视频为依据对申请请求做出审批。Take the video live broadcast scenario as an example. The live broadcast room includes the anchor, the guest, and the ordinary user. The anchor end has the broadcast stream data authority, and the anchor broadcasts the application request for the broadcast stream data authority sent by the ordinary user terminal for approval. When the ordinary user sends a request for the broadcast stream data to the anchor, the application request sends the video data of the ordinary user in the application request, and the anchor sends the video after receiving the application request, and the anchor can learn the video by watching the video. User-related information, and the application request is approved based on the video.

如果申请请求得到批准,则主播端会向发送申请请求的普通用户端反馈 批准通知,普通用户端接收到批准通知后客户端身份发生变化,从普通客户端变成嘉宾端,具有广播流数据权限。If the application request is approved, the anchor will feedback the approval notification to the ordinary user who sends the request. After the ordinary user receives the approval notification, the identity of the client changes, from the ordinary client to the guest, with broadcast stream data permission. .

依据本发明实施例,按照第一客户端传输第一流数据时的传输路径,向第一客户端发送特殊权限的申请请求,由于申请请求携带预览信息,因此使用第一客户端的用户可以对预览信息进行查看,并根据查看结果对申请请求做出判断,从而提高了用户体验,同时提高了申请请求的判断结果的准确性。同时,本发明实施例使用同一传输路径传输流数据和信令,省去了传统方法中对流数据和信令的不同传输路径的建立,节省了路径建立。According to the embodiment of the present invention, according to the transmission path when the first client transmits the first stream data, the application request for the special permission is sent to the first client, and since the application request carries the preview information, the user using the first client can preview the information. By reviewing and making judgments on the application request based on the viewing result, the user experience is improved, and the accuracy of the judgment result of the application request is improved. At the same time, the embodiment of the present invention uses the same transmission path to transport stream data and signaling, which eliminates the establishment of different transmission paths of convection data and signaling in the traditional method, and saves path establishment.

参照图2,示出了根据本发明实施例二的一种流数据的传输方法的步骤流程示意图,具体可以包括如下步骤:2 is a schematic flow chart of a method for transmitting a stream data according to a second embodiment of the present invention, which may specifically include the following steps:

步骤201、接收从第一客户端按照传输路径传输的第一流数据。Step 201: Receive first stream data transmitted from the first client according to the transmission path.

步骤202、按照传输路径向第一客户端发送特殊权限的申请请求,申请请求携带预览信息。Step 202: Send a request for a special permission to the first client according to the transmission path, and request the request to carry the preview information.

某一客户端可以按照预先建立的传输路径向第一客户端发送特殊权限的申请请求,具体地可以通过以下方式执行上述步骤:第一种,可以事先在传输路径经过的各目标传输节点记录其上行目标传输节点,发送申请请求时,将申请请求传输至与传输路径的最后一个目标传输节点,即传输至与发送申请请求的客户端直接连接的目标传输节点,由该最后一个目标传输节点将申请请求传输至其上行目标传输节点,按照上述方法,直至将申请请求传输至第一客户端。A client may send a request for a special permission to the first client according to the pre-established transmission path. Specifically, the foregoing steps may be performed by the following method: First, the target transmission node passing through the transmission path may be recorded in advance. The uplink destination transmission node transmits the request request to the last target transmission node of the transmission path, that is, to the target transmission node directly connected to the client that sends the application request, and the last destination transmission node The application request is transmitted to its upstream destination transport node, as described above, until the request is transmitted to the first client.

在网络拓扑结构中,对于某一传输路径中相邻的两个传输节点,按照第一客户端至其他客户端的传输方向,限定位于传输方向末端的传输节点是位于传输方向起始端的传输节点的下行传输节点。例如,第一客户端到第二客户端的传输路径为节点1-节点2-节点3,第一客户端与节点1直接连接,第二客户端与节点3直接连接,限定节点2为节点1的下行传输节点,节点1为节点2的上行传输节点。In the network topology, for two adjacent transmission nodes in a transmission path, according to the transmission direction of the first client to other clients, the transmission node at the end of the transmission direction is defined as the transmission node at the beginning of the transmission direction. Downlink transmission node. For example, the transmission path of the first client to the second client is Node 1 - Node 2 - Node 3, the first client is directly connected to the node 1, the second client is directly connected to the node 3, and the node 2 is defined as the node 1. The downlink transmission node, node 1 is the uplink transmission node of node 2.

第二种,限定第一客户端发送第一流数据时,让第一流数据节点传输过 程中顺次经过的各目标传输节点的节点标识的集合,发送申请请求客户端在接收到第一流数据后,提取节点标识的集合,并让发送的申请请求携带节点标识的集合,可以按照申请请求携带的节点标识的集合反向顺序将申请请求经过至少一个中间传输节点传输至第一客户端。Secondly, when the first stream data is sent by the first client, the set of node identifiers of the target transmission nodes that are sequentially passed in the transmission process of the first stream data node is limited, and the application requesting client receives the first stream data after receiving the first stream data. The set of node identifiers is extracted, and the sent request request carries the set of node identifiers, and the application request may be transmitted to the first client through the at least one intermediate transport node in reverse order according to the set of node identifiers carried in the application request.

本发明实施例中,某一客户端发送给第一客户端的特殊权限的申请请求携带预览信息,第一客户端用户可以根据预览信息对申请请求做出审批。In the embodiment of the present invention, the application request of the special permission sent by a certain client to the first client carries the preview information, and the first client user can approve the application request according to the preview information.

当预览信息为音视频数据时,音视频数据可以是实时采集的,也可以是预先存储的。在按照传输路径向第一客户端发送特殊权限的申请请求之前,本发明实施例所述方法还可以包括:接收用户对特殊权限的触发操作,调用音视频采集接口采集用户的音视频数据,或者从设定位置提取预先采集的用户的音视频数据。When the preview information is audio and video data, the audio and video data may be collected in real time or may be pre-stored. Before the request for the special permission is sent to the first client according to the transmission path, the method of the embodiment of the present invention may further include: receiving a trigger operation of the user for the special permission, calling the audio and video collection interface to collect the audio and video data of the user, or The audio and video data of the pre-acquired user is extracted from the set position.

发送的申请请求的传播方式为单播,只需按照发送申请请求的客户端与第一客户端间的传输路径将申请请求单播至第一客户端,为使传输路径经过的传输节点对申请请求进行单播操作,发送申请请求的客户端可以让预览信息携带单播传输类型的第一标识,以供传输节点根据该第一标识将所述申请请求发送至所述第一客户端。具体地,可以在传输节点中记录标识与传输方式的对应关系,例如第一标识对应单播传输方式,传输节点在识别到申请请求的预览信息携带第一标识后,确定申请请求的传播方式为单播。The method of transmitting the requested application is unicast, and the application request is unicast to the first client according to the transmission path between the client that sends the application request and the first client, and the application is made for the transmission node that passes the transmission path. The requesting unicast operation, the client sending the application request may cause the preview information to carry the first identifier of the unicast transmission type, so that the transmitting node sends the application request to the first client according to the first identifier. Specifically, the corresponding relationship between the identifier and the transmission mode may be recorded in the transit node, for example, the first identifier corresponds to the unicast transmission mode, and after the transmission node identifies that the preview information of the application request carries the first identifier, the transmission mode of the application request is determined as Unicast.

步骤203、接收第一客户端根据预览信息反馈的批准通知。Step 203: Receive an approval notification that the first client feeds back according to the preview information.

第一客户端用户批准特殊权限的申请请求后,第一客户端会向发送申请请求的客户端反馈批准通知,相应地发送申请请求的客户端会接收到第一客户端反馈的批准通知,自此具有特殊权限。After the first client user approves the application request for the special permission, the first client will feedback the approval notification to the client that sends the application request, and the client that sends the application request correspondingly receives the approval notification of the first client feedback, This has special permissions.

步骤204、接收第一客户端下发的具备特殊权限的特殊客户端的客户端信息,并在当前客户端进行展示。Step 204: Receive client information of a special client with special permission issued by the first client, and display the client information on the current client.

当第一客户端批准特殊权限的申请请求后,系统中具有特殊权限的特殊客户端的客户端信息发生了变化,客户端信息可以包括具备特殊权限的特殊客户端的个数、端标识、端状态和特殊客户端的数量上限中至少一种。After the first client approves the application request of the special permission, the client information of the special client with special permission in the system changes, and the client information may include the number of the special client with special permission, the end identifier, the end state, and At least one of the maximum number of special clients.

为对系统中其他客户端展示的特殊客户端的客户端信息进行更新,第一 客户端会将更新后的特殊客户端的客户端信息下发给其他客户端,其他客户端会对更新后的特殊客户端的客户端信息进行展示。具体地,第一客户端会将更新后的客户端信息传送至与其直接连接的传输节点,然后根据网络拓扑结构中的多条传输路径,将更新后的客户端信息传输至接入网络拓扑结构的其他客户端并展示。需要说明的是,步骤203和步骤204可以同时进行,也可以先后进行,本发明在此不做限制。To update the client information of the special client displayed by other clients in the system, the first client sends the updated client information of the special client to other clients, and the other clients will update the special client. The client information of the terminal is displayed. Specifically, the first client transmits the updated client information to the transit node directly connected thereto, and then transmits the updated client information to the access network topology according to multiple transmission paths in the network topology. Other clients and show. It should be noted that step 203 and step 204 may be performed simultaneously or sequentially, and the present invention is not limited thereto.

第一客户端可以根据不同时机对特殊客户端的客户端信息进行下发,例如,可以在批准当前特殊权限的申请请求后马上下发特殊客户端的客户端信息,可以按照预设时段间隔下发特殊客户端的客户端信息。The first client can deliver the client information of the special client according to different timings. For example, the client information of the special client can be delivered immediately after the application request for the current special permission is approved, and the special client can be sent according to the preset time interval. Client information for the client.

如果其他客户端本地存储的特殊客户端的客户端信息与新下发的特殊客户端的客户端信息不同相同,则需要对客户端信息进行更新,展示更新后的客户端信息。If the client information of the special client stored locally by other clients is different from the client information of the newly delivered special client, the client information needs to be updated to display the updated client information.

可以针对不同客户端信息设置不同的版本标识,例如版本标识为数值,将每次更新后的版本标识的数值增加1,这时可以通过以下方式判断本地存储的和新下发的特殊客户端的客户端信息是否相同:提取新下发的客户端信息的版本标识,并与本地存储的客户端信息的版本表示进行对比,如果判定比对结果不一致,则判定本地存储的和新下发的客户端信息不同,当前客户端对本地存储的客户端信息进行更新,展示新下发的客户端信息。Different version identifiers can be set for different client information. For example, the version identifier is a numerical value, and the value of the version identifier after each update is increased by 1. In this case, the locally stored and newly delivered special client clients can be determined by the following methods. Whether the end information is the same: the version identifier of the newly delivered client information is extracted, and compared with the version representation of the locally stored client information. If the comparison result is determined to be inconsistent, the locally stored and newly delivered client is determined. The information is different. The current client updates the locally stored client information and displays the newly delivered client information.

依据本发明实施例,按照第一客户端传输第一流数据时的传输路径,向第一客户端发送特殊权限的申请请求,由于申请请求携带预览信息,因此使用第一客户端的用户可以对预览信息进行查看,并根据查看结果对申请请求做出判断,从而提高了用户体验,同时提高了申请请求的判断结果的准确性。同时,本发明实施例使用同一传输路径传输流数据和信令,省去了传统方法中对流数据和信令的不同传输路径的建立,节省了路径建立。According to the embodiment of the present invention, according to the transmission path when the first client transmits the first stream data, the application request for the special permission is sent to the first client, and since the application request carries the preview information, the user using the first client can preview the information. By reviewing and making judgments on the application request based on the viewing result, the user experience is improved, and the accuracy of the judgment result of the application request is improved. At the same time, the embodiment of the present invention uses the same transmission path to transport stream data and signaling, which eliminates the establishment of different transmission paths of convection data and signaling in the traditional method, and saves path establishment.

参照图3,示出了根据本发明实施例三的一种流数据的传输方法的步骤流程示意图,具体可以包括如下步骤:Referring to FIG. 3, a schematic flowchart of a step of a method for transmitting stream data according to a third embodiment of the present invention is shown, which may specifically include the following steps:

步骤301、接收从第一客户端按照传输路径传输的第一流数据。Step 301: Receive first stream data that is transmitted from the first client according to the transmission path.

步骤302、按照传输路径向第一客户端发送特殊权限的申请请求,申请请求携带预览信息。Step 302: Send a request for a special permission to the first client according to the transmission path, and request the request to carry the preview information.

本发明实施例中,特殊权限为广播流数据权限。In the embodiment of the present invention, the special permission is a broadcast stream data authority.

步骤303、接收第一客户端根据预览信息反馈的批准通知。Step 303: Receive an approval notification that the first client feeds back according to the preview information.

步骤304、向目标传输节点传输第二流数据,以由各目标传输节点将第二流数据,经关联传输节点推送至第一客户端以及至少一个第二客户端,传输路径经过多个目标传输节点,各目标传输节点具有至少一个关联传输节点。Step 304: The second stream data is transmitted to the target transmission node, so that the second stream data is pushed by the target transmission node to the first client and the at least one second client, and the transmission path is transmitted through multiple targets. Node, each target transmission node has at least one associated transmission node.

本发明实施例中,第一客户端按照预先建立的传输路径向当前客户端传输第一流数据。第一客户端与当前客户端的传输路径经过的传输节点称为目标传输节点,目标传输节点的数目为多个,至少一个目标传输节点具有关联传输节点。关联传输节点可以是与目标传输节点直接连接的传输节点,也可以是通过直接连接的传输节点与目标传输节点间接连接的传输节点。In the embodiment of the present invention, the first client transmits the first stream data to the current client according to the pre-established transmission path. The transmission node through which the transmission path of the first client and the current client passes is referred to as a target transmission node, and the number of target transmission nodes is plural, and at least one target transmission node has an associated transmission node. The association transmission node may be a transmission node directly connected to the target transmission node, or may be a transmission node indirectly connected to the target transmission node through the directly connected transmission node.

当前客户端接收到第一客户端反馈的批准通知后具有广播流数据的权限。当前客户端广播第二流数据时,可以将第二流数据传输至当前客户端与第一客户端的传输路径经过的各目标传输节点上,如果目标传输节点具有关联传输节点,则将第二流数据从目标传输节点推送至关联传输节点,最终将第二流数据推送至接入网络拓扑结构的第一客户端和第三客户端,完成对第二流数据的广播传输。The current client has the right to broadcast stream data after receiving the approval notification of the first client feedback. When the current client broadcasts the second stream data, the second stream data may be transmitted to each target transmission node through which the current client and the first client transmit the path, and if the target transit node has an associated transit node, the second stream is The data is pushed from the target transit node to the associated transit node, and finally the second stream data is pushed to the first client and the third client of the access network topology to complete the broadcast transmission of the second stream data.

具体地,可以将第二流数据推送至与当前客户端直接连接的第一目标传输节点上,如果第一目标传输节点具有关联传输节点,则在将第二流数据推送至与第一目标传输节点直接连接的第二目标传输节点的同时,将第二流数据从第一目标传输节点推送至其关联传输节点,循环执行上述步骤,最终将第二流数据推送至第一客户端和第三客户端。Specifically, the second stream data may be pushed to the first target transmission node directly connected to the current client, and if the first target transmission node has the associated transmission node, the second stream data is pushed to the first target transmission. While the second target transmission node directly connected by the node, the second stream data is pushed from the first target transmission node to the associated transmission node, and the foregoing steps are performed cyclically, and finally the second stream data is pushed to the first client and the third Client.

第一客户端和当前客户端同时推送流数据时,其他用户客户端会接收到两路流数据,这时其他用户客户端会对两路流数据进行合成,并对合成后的流数据进行展示。When the first client and the current client push the streaming data at the same time, other user clients receive two streams of data, and other user clients synthesize the two streams of data, and display the synthesized stream data. .

当前客户端具有广播流数据权限后,可以对数据进行单播或广播,为使 传输节点确定当前客户端传送的数据所需的传输方式,可以让当前客户端传输的第二流数据携带广播传输方式的第二标识,以供各目标传输节点识别,并根据该第二标识对第二流数据进行广播,最终将第二流数据推送至第一客户端以及至少一个第二客户端。After the current client has the broadcast stream data permission, the data may be unicast or broadcasted. In order for the transport node to determine the transmission mode required by the current client to transmit data, the second stream data transmitted by the current client may be broadcasted. The second identifier of the mode is used for each target transmission node to identify, and the second stream data is broadcast according to the second identifier, and finally the second stream data is pushed to the first client and the at least one second client.

在视频直播场景中,第一客户端可以为直播间内的主播端,第二客户端可以为直播间内的其他嘉宾端或普通用户端。普通用户可以向主播发送广播流数据权限的申请请求即发送连麦请求,申请请求被批准后,普通用户成为具有广播流数据权限的嘉宾。嘉宾端广播直播流数据时,可以将直播流数据推送至与当前嘉宾直接连接的目标传输节点,目标传输节点位于当前嘉宾与主播的传输路径上,从直接连接的目标传输节点起,经过其他目标传输节点和关联传输节点,最终将当前嘉宾端上传的直播流数据推送至主播端、其他嘉宾端和普通用户端。In the video live broadcast scenario, the first client may be the anchor end in the live broadcast room, and the second client may be the other guest end or the normal user end in the live broadcast room. A normal user can send a request for a broadcast stream data permission to the anchor to send a connection request. After the application request is approved, the ordinary user becomes a guest with the broadcast stream data authority. When the guest broadcasts the live stream data, the live stream data can be pushed to the target transport node directly connected to the current guest, and the target transport node is located on the transmission path of the current guest and the anchor, from the directly connected target transport node, through other targets. The transit node and the associated transit node finally push the live stream data uploaded by the current guest to the anchor end, other guest end, and the common user end.

如果主播端和嘉宾端同时上传视频流数据,则客户端会对接收的两路视频流数据进行处理,最终将两部分视频图像同时显示在客户端界面,例如以画中画形式一起显示。If the video stream data is simultaneously uploaded by the anchor end and the guest end, the client processes the received two video stream data, and finally displays the two parts of the video image simultaneously on the client interface, for example, in the form of picture-in-picture.

通过上述分析可知,本发明实施例中,使用同一传输路径对第一客户端的第一流数据和其他客户端的第二流数据进行转发,网络拓扑结构未发生变化,省去了传统方法中第二流数据的新传输路径的建立,节省了路径建立时间,保证了流数据传输的实时性。相应地本发明实施例仅需使用一套系统控制第一客户端的流数据转发以及第二客户端的流数据转发,因此降低了系统开销。According to the foregoing analysis, in the embodiment of the present invention, the first stream data of the first client and the second stream data of the other client are forwarded by using the same transmission path, and the network topology does not change, thereby eliminating the second stream in the traditional method. The establishment of a new transmission path of data saves the path establishment time and ensures the real-time performance of the stream data transmission. Correspondingly, the embodiment of the present invention only needs to use one system to control the flow data forwarding of the first client and the flow data forwarding of the second client, thereby reducing system overhead.

依据本发明实施例,按照第一客户端传输第一流数据时的传输路径,向第一客户端发送特殊权限的申请请求,由于申请请求携带预览信息,因此使用第一客户端的用户可以对预览信息进行查看,并根据查看结果对申请请求做出判断,从而提高了用户体验,同时提高了申请请求的判断结果的准确性。同时,本发明实施例使用同一传输路径传输流数据和信令,省去了传统方法中对流数据和信令的不同传输路径的建立,节省了路径建立。According to the embodiment of the present invention, according to the transmission path when the first client transmits the first stream data, the application request for the special permission is sent to the first client, and since the application request carries the preview information, the user using the first client can preview the information. By reviewing and making judgments on the application request based on the viewing result, the user experience is improved, and the accuracy of the judgment result of the application request is improved. At the same time, the embodiment of the present invention uses the same transmission path to transport stream data and signaling, which eliminates the establishment of different transmission paths of convection data and signaling in the traditional method, and saves path establishment.

本发明实施例利用目标传输节点及其关联传输节点对流数据进行推送, 当关联传输节点具有多个层级时,按层级对流数据进行逐级推送,最终将流数据推送至接入传输节点集群的多个客户端,实现流数据的广播。The embodiment of the present invention uses the target transmission node and its associated transmission node to push the stream data. When the associated transmission node has multiple levels, the layer-level stream data is pushed step by step, and finally the stream data is pushed to the access transmission node cluster. Clients that implement streaming data streaming.

参照图4,示出了根据本发明实施例四的一种流数据的传输方法的步骤流程示意图,具体可以包括如下步骤:Referring to FIG. 4, a flow chart of a method for transmitting a stream data according to Embodiment 4 of the present invention is shown. Specifically, the method may include the following steps:

步骤401、按照传输路径将第一流数据从第一客户端传送至第三客户端。Step 401: Transfer the first stream data from the first client to the third client according to the transmission path.

本发明实施例中,系统包括多个客户端,客户端与客户端之间通过网络拓扑结构中的传输路径连接,基于多条传输路径使得某一客户端与其他多个客户端连接。In the embodiment of the present invention, the system includes multiple clients, and the client and the client are connected through a transmission path in a network topology, and a certain client is connected to other clients based on multiple transmission paths.

第一客户端和第三客户端之间建立有传输路径,第一客户端向第三客户端发送第一流数据时,第一流数据可以按照预先建立的传输路径传输。A transmission path is established between the first client and the third client. When the first client sends the first stream data to the third client, the first stream data may be transmitted according to the pre-established transmission path.

步骤402、接收第三客户端对特殊权限的申请请求,并按照传输路径转发至第一客户端,申请请求携带预览信息。Step 402: Receive a third client request for special permission, and forward the request to the first client according to the transmission path, and request the request to carry the preview information.

本发明实施例中,特殊权限为多种形式,例如广播流数据权限,申请请求由第一客户端用户审批。如果某一客户端向第一客户端发送特殊权限的申请请求,则只有在该申请请求被批准后,该客户端才具特殊权限。In the embodiment of the present invention, the special permission is in multiple forms, such as broadcast stream data authority, and the application request is approved by the first client user. If a client sends a request for a special permission to the first client, the client has special permissions only after the request is approved.

为第一客户端用户提供审批依据,本发明实施例限定第三客户端在发送特殊权限的申请请求时,在申请请求中携带预览信息,预览信息可以指示发送申请请求的客户端用户的相关信息。预览信息可以为多种形式,如视频数据、音频数据、文字数据、图像数据和其他形式数据中的一种或多种,当预览信息为音视频数据时,预览信息可以是现场录制的一段直播流数据,也可以是预先录制的一段音视频数据。Providing the approval basis for the first client user, the embodiment of the present invention limits the third client to carry the preview information in the application request when the application request for the special permission is sent, and the preview information may indicate the related information of the client user who sends the application request. . The preview information may be in various forms, such as one or more of video data, audio data, text data, image data, and other forms of data. When the preview information is audio and video data, the preview information may be a live broadcast recorded on the spot. Streaming data can also be a pre-recorded piece of audio and video data.

步骤403、将第一客户端根据预览信息反馈的批准通知转发至第三客户端。Step 403: Forward the approval notification fed back by the first client according to the preview information to the third client.

第一客户端在接收到特殊权限的申请请求后,可以在客户端界面对申请请求携带的预览信息进行展示,以预览信息为审批依据对申请请求进行审批,当第一客户端接收到用户的批准指示后,会生成批准通知,并将生成的批准通知反馈至第三客户端。由于预览信息为申请请求的审批提供了依据, 因此在申请请求中携带预览信息提高了审批者的体验效果,使得审批结果更加准确。After receiving the application request of the special permission, the first client may display the preview information carried in the application request on the client interface, and approve the application request according to the preview information, when the first client receives the user's request. Once the instructions are approved, an approval notification is generated and the generated approval notification is fed back to the third client. Since the preview information provides a basis for the approval of the application request, carrying the preview information in the application request improves the experience of the approver and makes the approval result more accurate.

本发明实施例中,优选地,传输路径经过的各目标传输节点记录有其上行目标传输节点,按照传输路径将第一流数据从第一客户端传送至第三客户端包括:查找传输路径的最后一个目标传输节点的上行传输节点,并将所述申请请求传输至所查找的上行目标传输节点;由上行目标传输节点将申请请求传输至其上行目标传输节点,直至将申请请求传输至第一客户端。In the embodiment of the present invention, preferably, each target transmission node through which the transmission path passes records its uplink target transmission node, and transmitting the first stream data from the first client to the third client according to the transmission path includes: searching for the last of the transmission path An uplink transmission node of the target transmission node, and transmits the application request to the searched uplink target transmission node; the uplink destination transmission node transmits the application request to its uplink destination transmission node until the application request is transmitted to the first client end.

第一客户端与第三客户端的传输路径的路径方向为第一客户端至第三客户端,传输路径流经的第一个目标传输节点与第一客户端连接,传输路径流经的最后一个目标传输节点与第三客户端连接。The path direction of the transmission path of the first client and the third client is the first client to the third client, and the first target transit node through which the transmission path flows is connected to the first client, and the last one through which the transmission path flows The target transport node is connected to the third client.

第三客户端向第一客户端发送申请请求时,第三客户端将申请请求发送至与其直接连接的目标传输节点,可以通过查找当前目标传输节点的上行目标传输节点以及将申请请求推送至该上行传输节点的方式,对申请请求进行逐步传输,最终将申请请求推送至第一客户端。When the third client sends an application request to the first client, the third client sends the application request to the target transmission node directly connected thereto, and can search for the uplink destination transmission node of the current target transmission node and push the application request to the In the manner of uplink transmission node, the application request is gradually transmitted, and finally the application request is pushed to the first client.

在网络拓扑结构中,对于某一传输路径中相邻的两个传输节点,按照第一客户端至其他客户端的传输方向,限定位于传输方向起始端的传输节点是位于传输方向末端的传输节点的上行传输节点。例如,第一客户端到第二客户端的传输路径为节点1-节点2-节点3,第一客户端与节点1直接连接,第二客户端与节点3直接连接,限定节点1为节点2的上行传输节点,节点2为节点1的下行传输节点,使用同样方法对其他传输节点进行限定。In the network topology, for two adjacent transmission nodes in a transmission path, according to the transmission direction of the first client to other clients, the transmission node that is located at the beginning of the transmission direction is the transmission node at the end of the transmission direction. Uplink transmission node. For example, the transmission path of the first client to the second client is Node 1 - Node 2 - Node 3, the first client is directly connected to the node 1, the second client is directly connected to the node 3, and the node 1 is defined as the node 2. The uplink transmission node, node 2 is the downlink transmission node of node 1, and uses the same method to limit other transmission nodes.

可以通过多种方式查找当前目标传输节点的上行目标传输节点。例如,在网络拓扑结构构建完成时,可以在各传输节点记录在不同传输路径中该传输节点的上行传输节点,具体可以记录传输路径连接的客户端的端标识与上行传输节点的对应关系,第二流数据可以携带第二客户端的客户端端标识,传输节点接收到第二流数据后可以根据其携带的客户端标识查找对应的上行传输节点。The uplink target transmission node of the current target transmission node can be found in various ways. For example, when the network topology structure is completed, the uplink transmission node of the transmission node in different transmission paths may be recorded in each transmission node, and specifically, the correspondence between the end identifier of the client connected to the transmission path and the uplink transmission node may be recorded, and secondly, The stream data may carry the client identifier of the second client, and after receiving the second stream data, the transit node may search for the corresponding uplink transport node according to the client identifier carried by the transport node.

如路径1为第一客户端-节点1-节点2-节点3-第三客户端,路径2为第一客户端-节点1-节点4-节点3-第四客户端,在节点3记录第三客户端的端 标识与节点2的对应关系以及第四客户端的端标识与节点4的对应关系,第三客户端传输的第二流数据携带第三客户端的端标识。传输节点可以根据传输的第二流数据携带的第三客户端的端标识,以及存储的端标识与上行传输节点的对应关系,确定对应的上行传输节点为节点2。For example, path 1 is the first client-node 1 - node 2 - node 3 - the third client, path 2 is the first client - node 1 - node 4 - node 3 - the fourth client, and the node 3 records the The corresponding relationship between the end identifier of the third client and the node 2 and the corresponding relationship between the end identifier of the fourth client and the node 4, and the second stream data transmitted by the third client carries the end identifier of the third client. The transmitting node may determine, according to the end identifier of the third client that is carried by the second stream data that is transmitted, and the corresponding relationship between the stored end identifier and the uplink transmitting node, that the corresponding uplink transmitting node is the node 2.

又例如,第一客户端传输的第一流数据可以携带传输路径经过的目标传输节点的集合,集合中多个目标传输节点按照流经顺序排列,第三客户端接收到第一流数据后会提取传输节点的集合,使其发送的第二流数据携带该集合,传输节点接收到第二流数据后,会根据集合中多个目标传输节点的排列顺序,确定当前目标传输节点的上行目标传输节点。For another example, the first stream data transmitted by the first client may carry a set of target transmission nodes through which the transmission path passes, and multiple target transmission nodes in the set are arranged in order of flow, and the third client extracts and transmits after receiving the first stream data. The set of nodes, the second stream data sent by the node carries the set, and after receiving the second stream data, the transmitting node determines the uplink target transmission node of the current target transmission node according to the order of the multiple target transmission nodes in the set.

依据本发明实施例,按照第一客户端传输第一流数据时的传输路径,向第一客户端发送特殊权限的申请请求,由于申请请求携带预览信息,因此使用第一客户端的用户可以对预览信息进行查看,并根据查看结果对申请请求做出判断,从而提高了用户体验,同时提高了申请请求的判断结果的准确性。同时,本发明实施例使用同一传输路径传输流数据和信令,省去了传统方法中对流数据和信令的不同传输路径的建立,节省了路径建立。According to the embodiment of the present invention, according to the transmission path when the first client transmits the first stream data, the application request for the special permission is sent to the first client, and since the application request carries the preview information, the user using the first client can preview the information. By reviewing and making judgments on the application request based on the viewing result, the user experience is improved, and the accuracy of the judgment result of the application request is improved. At the same time, the embodiment of the present invention uses the same transmission path to transport stream data and signaling, which eliminates the establishment of different transmission paths of convection data and signaling in the traditional method, and saves path establishment.

参照图5,示出了根据本发明实施例五的一种流数据的传输方法的步骤流程示意图,具体可以包括如下步骤:Referring to FIG. 5, a schematic flowchart of a step of a method for transmitting stream data according to Embodiment 5 of the present invention is shown, which may specifically include the following steps:

步骤501、按照传输路径将第一流数据从第一客户端传送至第三客户端。Step 501: Transfer the first stream data from the first client to the third client according to the transmission path.

步骤502、接收第三客户端对特殊权限的申请请求,并按照传输路径将申请请求转发至第一客户端,申请请求携带预览信息。Step 502: Receive a third client request for special permission, and forward the application request to the first client according to the transmission path, and the application request carries the preview information.

本发明实施例中,特殊权限为广播流数据权限。In the embodiment of the present invention, the special permission is a broadcast stream data authority.

步骤503、将第一客户端根据预览信息反馈的批准通知转发至第三客户端。Step 503: Forward the approval notification fed back by the first client according to the preview information to the third client.

步骤504、接收第三客户端向目标传输节点传输的第二流数据,传输路径经过多个目标传输节点,各目标传输节点具有至少一个关联传输节点。Step 504: Receive second stream data that is transmitted by the third client to the target transmission node, where the transmission path passes through multiple target transmission nodes, and each target transmission node has at least one associated transmission node.

在网络拓扑结构中,存在传输路径与传输路径交汇,两条传输路径具有共同的传输节点的情况,如传输路径1与传输路径2交汇于传输节点1,这 时相对于传输路径1,传输路径2上除传输节点1外的其他传输节点称为传输路径1上的传输节点1的关联传输节点。关联传输节点可以是与某一传输节点直接连接的传输节点,也可以是与某一传输节点直接连接和间接连接的多个传输节点。In the network topology, there is a case where the transmission path and the transmission path meet, and the two transmission paths have a common transmission node. For example, the transmission path 1 and the transmission path 2 meet at the transmission node 1, and the transmission path is opposite to the transmission path 1. The other transport nodes other than the transport node 1 are referred to as the associated transport nodes of the transport node 1 on the transport path 1. The association transmission node may be a transmission node directly connected to a certain transmission node, or may be a plurality of transmission nodes directly and indirectly connected to a certain transmission node.

所述接收第三客户端向目标传输节点传输的第二流数据的步骤具体可以包括:接收第三客户端向直接连接的目标传输节点传输的第二流数据,按照传输路径的反向顺序,将第二流数据顺次推送到其他目标传输节点。The step of receiving the second stream data that is transmitted by the third client to the target transit node may include: receiving the second stream data that is transmitted by the third client to the directly connected target transport node, according to the reverse order of the transmission path, The second stream data is sequentially pushed to other target transmission nodes.

步骤505、将第二流数据从各目标传输节点,经关联传输节点推送至第一客户端以及至少一个第二客户端。Step 505: Push the second stream data from each target transmission node to the first client and the at least one second client via the associated transit node.

各目标传输节点接收到第二流数据后,会将第二流数据推送至其关联传输节点,最终将第二流数据推送至第一客户端以及第二客户端。After receiving the second stream data, each target transmission node pushes the second stream data to its associated transmission node, and finally pushes the second stream data to the first client and the second client.

在网络拓扑结构,部分传输节点存在关联传输节点,关联传输节点可以是直接连接的传输节点也可以是间接连接的传输节点。可以根据节点连接顺序,将关联传输节点分为多个等级,如一级关联传输节点、二级关联传输节点、三级关联传输节点等,其中一级关联传输节点为与某一传输节点直接连接的传输节点,二级关联传输节点为与一级关联传输节点直接连接的传输节点,其他级别的关联传输节点以此类推。第一客户端与第三客户端的传输路径经过的目标传输节点可以包括多种连接,如目标传输节点可以与其他目标传输节点、一级关联传输节点、第一客户端或第二客户端直接连接。In the network topology, some transmission nodes have associated transmission nodes, and the associated transmission nodes may be directly connected transmission nodes or indirectly connected transmission nodes. The associated transmission node may be divided into multiple levels according to the node connection order, such as a primary associated transmission node, a secondary associated transmission node, a tertiary associated transmission node, etc., wherein the primary associated transmission node is directly connected to a certain transmission node. The transit node, the secondary associated transport node is a transport node that is directly connected to the primary associated transport node, and so on. The target transmission node through which the transmission path of the first client and the third client passes may include multiple connections, such as the target transmission node may directly connect with other target transmission nodes, the primary association transmission node, the first client, or the second client. .

当关联传输节点存在多级设置时,可以通过以下方法执行本步骤:首先,将第二流数据推送至与目标传输节点直接连接的一级关联传输节点或第一客户端或第二客户端。When there is a multi-level setting of the associated transit node, the present step may be performed by: firstly, pushing the second stream data to the first-level associated transport node or the first client or the second client directly connected to the target transport node.

建立第一客户端和第三客户端的传输路径时,可以在传输路径经过的目标传输节点本地记录其在该传输路径中的下行目标传输节点。这时在目标传输节点接收到第三客户端传输的第二流数据之后,在将第二流数据推送至与目标传输节点直接连接的一级关联传输节点或第一客户端或第三客户端之前,本发明实施例所述方法还可以包括:查找目标传输节点在该传输路径中的下行目标传输节点,从与目标传输节点直接连接的一级关联传输节点中, 去除所查找的下行目标传输节点。完成上述去除步骤后,目标传输节点将第二流数据推送至除查找到的下行目标传输节点外的其他一级关联传输节点。When the transmission paths of the first client and the third client are established, the downlink destination transmission node in the transmission path may be locally recorded on the target transmission node through which the transmission path passes. At this time, after the target transport node receives the second stream data transmitted by the third client, the second stream data is pushed to the first-level associated transport node or the first client or the third client that is directly connected to the target transport node. The method of the embodiment of the present invention may further include: searching for a downlink target transmission node of the target transmission node in the transmission path, and removing the sought downlink destination transmission from the primary association transmission node directly connected to the target transmission node. node. After the above removal step is completed, the target transmission node pushes the second stream data to the other level one associated transmission node except the found downlink destination transmission node.

可以事先在各传输节点本地记录该传输节点的所有一级关联传输节点,即上行目标传输节点和所有下行目标传输节点,具体可以记录所有一级关联传输节点的节点标识。完成对目标传输节点在该传输路径中的下行目标传输节点的查找后,可以从目标传输节点本地提取与该目标传输节点直接连接的一级关联传输节点,之后从提取的所有一级关联传输节点中去除所查找的下行目标传输节点。All the primary association transmission nodes of the transmission node, that is, the uplink target transmission node and all the downlink destination transmission nodes may be recorded locally in each transmission node, and the node identifiers of all the primary association transmission nodes may be recorded. After completing the searching of the target transmission node in the downlink destination transmission node in the transmission path, the first-level associated transmission node directly connected to the target transmission node may be locally extracted from the target transmission node, and then all the first-level associated transmission nodes are extracted from the extracted one. The discovered downstream target transmission node is removed.

当第一客户端与不同客户端的多条传输路径存在交叉或交汇时,交叉或交汇处的传输节点本地记录有针对多条传输路径的多个下行目标传输节点。为查找出针对某一传输路径的下行目标传输节点,本发明实施例可以在使用某一传输路径传输第一流数据过程中,在第一流数据传输至某一目标传输节点时,将该目标传输节点在该传输路径中的下行目标传输节点与第一流数据的流标识对应存储在该目标传输节点本地。When the first client intersects or intersects with multiple transmission paths of different clients, the transmission node at the intersection or intersection locally records a plurality of downlink destination transmission nodes for multiple transmission paths. In order to find a downlink destination transmission node for a certain transmission path, the embodiment of the present invention may transmit the first stream data in a process of transmitting the first stream data by using a certain transmission path, and when the first stream data is transmitted to a target transmission node, the target transmission node is used. The downlink target transmission node in the transmission path is stored locally in the destination transmission node corresponding to the stream identifier of the first stream data.

当第一流数据传输至第三客户端后,第三客户端发布第二流数据,第二流数据携带有第一流数据的流标识,当第二流数据传送至目标传输节点后,目标传输节点可以根据第一流数据的流标识,提取对应存储的下行目标传输节点。具体地,目标传输节点可以根据第二流数据携带的第一流数据的流标识,以及本地存储的第一流标识与下行目标传输节点的对应关系,提取与第一流标识对应的下行目标传输节点。After the first stream data is transmitted to the third client, the third client sends the second stream data, where the second stream data carries the stream identifier of the first stream data, and after the second stream data is transmitted to the target transport node, the target transport node The corresponding downlink destination transmission node may be extracted according to the flow identifier of the first stream data. Specifically, the target transmission node may extract the downlink target transmission node corresponding to the first flow identifier according to the flow identifier of the first flow data carried by the second flow data, and the corresponding relationship between the locally stored first flow identifier and the downlink target transmission node.

当第一流数据传输至某一目标传输节点时,可以通过多种方式确定该目标传输节点在该传输路径中的下行传输节点,例如,第一流数据携带该传输路径经过的所有目标传输节点的节点标识,多个目标传输节点的节点标识按照第一客户端至第三客户端的流经方向有序排列,当第一流数据传输至某一目标传输节点后,可以获取当前目标传输节点的节点标识,根据第一流数据携带的节点标识序列,确定待传输的下一目标传输节点为下行目标传输节点。When the first stream data is transmitted to a certain target transmission node, the downlink transmission node of the target transmission node in the transmission path may be determined in multiple manners, for example, the first stream data carries nodes of all target transmission nodes through which the transmission path passes. The node identifiers of the plurality of target transmission nodes are arranged in an orderly manner according to the flow direction of the first client to the third client. After the first stream data is transmitted to a target transmission node, the node identifier of the current target transmission node may be acquired. Determining, according to the node identification sequence carried by the first stream data, that the next target transmission node to be transmitted is a downlink target transmission node.

还可以通过以下方法查找目标传输节点在该传输路径中的下行目标传 输节点,方法具体包括:限定当第三客户端传输的第二流数据传输至某一目标传输节点时,让第二流数据携带该目标传输节点的节点标识,当第二流数据传输至下一目标传输节点时,待下一目标传输节点完成对第二流数据携带的节点标识的提取后,对第二流数据携带的节点标识做更改,更改成所述下一目标传输节点的节点标识,按照上述方法传输第二流数据,当第二流数据传输至当前目标传输节点时,可以通过提取第二流数据携带的节点标识的方式,确定当前目标传输节点在该传输路径中的下行目标传输节点。The method further includes: searching for a downlink target transmission node of the target transmission node in the transmission path, where the method specifically includes: limiting the second stream data when the second stream data transmitted by the third client is transmitted to a target transmission node Carrying the node identifier of the target transport node, when the second stream data is transmitted to the next target transport node, after the next target transport node completes the extraction of the node identifier carried by the second stream data, the second stream data is carried The node identifier is changed, and is changed to the node identifier of the next target transmission node, and the second stream data is transmitted according to the above method. When the second stream data is transmitted to the current target transmission node, the node carried by the second stream data may be extracted. The manner of identification determines the downlink target transmission node of the current target transmission node in the transmission path.

其次,在将第二流数据推送至与目标传输节点连接的一级关联传输节点或第一客户端或第二客户端之后,迭代执行推送步骤,将第二流数据从接收到第二流数据的N级关联传输节点推送至直接连接的N+1级关联传输节点或第一客户端或第二客户端,直至推送至接入传输节点集群的第一客户端和所有第二客户端。Secondly, after the second stream data is pushed to the first-level associated transport node or the first client or the second client connected to the target transport node, the push step is performed iteratively, and the second stream data is received from the second stream data. The N-level associated transport node pushes to the directly connected N+1 level associated transport node or the first client or the second client until it is pushed to the first client and all second clients of the access transport node cluster.

由于目标传输节点的关联传输节点可以包括直接连接和间接连接的多个传输节点,多个传输节点可能存在多级别关联,因此在将第三客户端传输的第二流数据推送至一级关联传输节点后,循环执行迭代步骤,将第二流数据推送至二级关联传输节点、…、N级关联传输节点、N+1级关联传输节点,直至推送至接入传输节点集群的第一客户端和所有第二客户端,从而完成对第三客户端发布的第二流数据的广播。因此本发明实施例利用目标传输节点和关联传输节点,将流数据广播至多个客户端。Since the associated transport node of the target transport node may include multiple transport nodes that are directly connected and indirectly connected, multiple transport nodes may have multiple levels of association, so the second stream data transmitted by the third client is pushed to the level one association transmission. After the node, the loop performs an iterative step to push the second stream data to the second-level associated transport node, ..., the N-level associated transport node, and the N+1-level associative transport node until the first client is pushed to the access transport node cluster. And all the second clients, thereby completing the broadcast of the second stream data issued by the third client. Therefore, the embodiment of the present invention uses the target transmission node and the associated transmission node to broadcast the stream data to multiple clients.

本发明实施例中,在将第二流数据从各目标传输节点经关联传输节点推送至第一客户端以及至少一个第二客户端之前,所述方法还可以包括:判定第二流数据指向广播传输方式。In the embodiment of the present invention, before the second stream data is pushed from the target transmission node to the first client and the at least one second client, the method may further include: determining that the second stream data points to the broadcast transfer method.

由于具有广播流数据权限的第三客户端可以向第一客户端单播流数据至第一客户端,也可广播流数据至第一客户端和第二客户端,因此目标传输节点在接收到第三客户端发布的第二流数据后,需要对第二流数据的传输方式进行判断,如果判断第二流数据指向广播传输方式,则对其进行广播传输;如果判定第二流数据不指向广播传输方式,即确定第二流数据为单播,则将第二流数据从各目标传输节点推送至第一客户端。Since the third client having the broadcast stream data authority can unicast the stream data to the first client to the first client, the stream data can also be broadcasted to the first client and the second client, so the target transit node receives the stream. After the second stream data is released by the third client, it is required to determine the transmission mode of the second stream data. If it is determined that the second stream data points to the broadcast transmission mode, broadcast transmission is performed; if it is determined that the second stream data does not point to The broadcast transmission mode, that is, determining that the second stream data is unicast, pushes the second stream data from each target transmission node to the first client.

可以通过多种方法判定第二流数据指向广播传输方式,例如可以通过确定第二流数据的数据协议头中包括广播传输方式的标识的方法判定。传播方式的标识可以为多种形式,例如数字、字母、文字、图形等。可以预先在用户客户端设定指示不同传输方式的不同标识,例如针对广播传输方式设置标识“a”,针对单播传输方式设置标识“b”,并且限定在客户端上传流数据时,在流数据的数据协议头中添加数据传输方式对应的标识;或者预先为不同客户端设置端标识,如设置第一客户端的端标识为“0”,除第一客户端外的其他客户端的端标识均为“1”,端标识“1”指示广播传输方式,并且限定在客户端上传流数据时,在流数据的数据协议头中添加接收流数据的目的客户端的端标识。The second stream data may be determined to be directed to the broadcast transmission mode by a plurality of methods, for example, by determining a method of including the identifier of the broadcast transmission mode in the data protocol header of the second stream data. The identification of the mode of communication can take many forms, such as numbers, letters, words, graphics, and the like. Different identifiers indicating different transmission modes may be set in advance on the user client, for example, setting the identifier “a” for the broadcast transmission mode, setting the identifier “b” for the unicast transmission mode, and limiting the flow when the client uploads the streaming data. Add the identifier corresponding to the data transmission mode in the data protocol header of the data; or set the end identifier for different clients in advance. For example, if the end identifier of the first client is set to “0”, the end identifiers of other clients except the first client are If it is "1", the end identifier "1" indicates the broadcast transmission mode, and when the client uploads the stream data, the end identifier of the destination client that receives the stream data is added to the data protocol header of the stream data.

以视频直播场景为例,可以预先设定嘉宾端的端标识为正整数,设定指示广播传输方式的目标标识为“0xFFFF”,将嘉宾端及其对应的端标识以及指示广播传输方式的目标标识存储在各个传输节点上。如果传输节点识别到指示广播传输方式的目标标识“0xFFFF”,则确定第二流数据的传播方式为广播,识别到嘉宾标识后确定该客户端具有广播流数据的权限。Take the video live broadcast scenario as an example. You can preset the end identifier of the guest to be a positive integer, set the target identifier indicating the broadcast transmission mode to “0xFFFF”, and identify the guest end and its corresponding end identifier and the target identifier indicating the broadcast transmission mode. Stored on each transport node. If the transmission node identifies the target identifier "0xFFFF" indicating the broadcast transmission mode, it determines that the propagation mode of the second stream data is broadcast, and after identifying the guest identifier, determines that the client has the right to broadcast the stream data.

还可以通过确定第二流数据发送至多个目的客户端的方法,判定第二流数据指向广播传输方式。It is also possible to determine that the second stream data points to the broadcast transmission mode by determining a method in which the second stream data is transmitted to the plurality of destination clients.

预对第二流数据进行广播传输时,第三客户端对第二流数据进行相应处理,使发布的第二流数据携带多个目的客户端的端标识、多个目的客户端的数目或指示目的客户端数目为多个的标识等信息。相应地,目标传输节点识别到上述信息后,确定第二流数据为广播传输方式。When the second stream data is broadcasted in advance, the third client performs corresponding processing on the second stream data, so that the released second stream data carries the end identifier of the plurality of destination clients, the number of the plurality of destination clients, or the destination client. The number of ends is information such as multiple identifiers. Correspondingly, after the target transmission node recognizes the foregoing information, it is determined that the second stream data is a broadcast transmission mode.

本发明实施例中,优选地,在判定第二流数据指向广播传输方式后,所述方法还可以包括:判定第三客户端具有广播权限。In the embodiment of the present invention, preferably, after determining that the second stream data is directed to the broadcast transmission mode, the method may further include: determining that the third client has broadcast rights.

可以通过多种方式判定第二客户端具有广播权限,例如可以查找具备广播权限的特征客户端集合,并确定第二客户端存在该特征客户端集合中。The second client can be determined to have broadcast rights in a plurality of manners, for example, a feature client set having broadcast rights can be found, and it is determined that the second client exists in the feature client set.

特征客户端集合为具有广播权限的客户端的集合,特征客户端集合存储在各传输节点中。如果确定第二客户端在传输节点本地存储的特征客户端集合内,则判定第二客户端具有广播权限。The feature client set is a set of clients with broadcast rights, and the feature client set is stored in each transport node. If it is determined that the second client is within the feature client set stored locally by the transit node, then the second client is determined to have broadcast rights.

依据本发明实施例,按照第一客户端传输第一流数据时的传输路径,向第一客户端发送特殊权限的申请请求,由于申请请求携带预览信息,因此使用第一客户端的用户可以对预览信息进行查看,并根据查看结果对申请请求做出判断,从而提高了用户体验,同时提高了申请请求的判断结果的准确性。同时,本发明实施例使用同一传输路径传输流数据和信令,省去了传统方法中对流数据和信令的不同传输路径的建立,节省了路径建立。According to the embodiment of the present invention, according to the transmission path when the first client transmits the first stream data, the application request for the special permission is sent to the first client, and since the application request carries the preview information, the user using the first client can preview the information. By reviewing and making judgments on the application request based on the viewing result, the user experience is improved, and the accuracy of the judgment result of the application request is improved. At the same time, the embodiment of the present invention uses the same transmission path to transport stream data and signaling, which eliminates the establishment of different transmission paths of convection data and signaling in the traditional method, and saves path establishment.

本发明实施例利用目标传输节点及其关联传输节点对流数据进行推送,当关联传输节点具有多个层级时,按层级对流数据进行逐级推送,最终将流数据推送至接入传输节点集群的多个客户端,实现流数据的广播。In the embodiment of the present invention, the target transmission node and its associated transmission node are used to push the stream data. When the associated transmission node has multiple levels, the layer-level stream data is pushed step by step, and finally the stream data is pushed to the access transmission node cluster. Clients that implement streaming data streaming.

图6示出了根据本发明实施例六的一种流数据的传输装置的结构框图。图6中的流数据的传输装置包括:FIG. 6 is a block diagram showing the structure of a stream data transmission apparatus according to Embodiment 6 of the present invention. The transmission device of the stream data in FIG. 6 includes:

第一流数据接收模块601,配置为接收从第一客户端按照传输路径传输的第一流数据。The first stream data receiving module 601 is configured to receive the first stream data transmitted from the first client according to the transmission path.

申请请求发送模块602,配置为按照所述传输路径向所述第一客户端发送特殊权限的申请请求,所述申请请求携带预览信息。The application request sending module 602 is configured to send a special permission application request to the first client according to the transmission path, where the application request carries preview information.

批准通知接收模块603,配置为接收所述第一客户端根据所述预览信息反馈的批准通知。The approval notification receiving module 603 is configured to receive an approval notification that the first client feeds back according to the preview information.

依据本发明实施例,按照第一客户端传输第一流数据时的传输路径,向第一客户端发送特殊权限的申请请求,由于申请请求携带预览信息,因此使用第一客户端的用户可以对预览信息进行查看,并根据查看结果对申请请求做出判断,从而提高了用户体验,同时提高了申请请求的判断结果的准确性。同时,本发明实施例使用同一传输路径传输流数据和信令,省去了传统方法中对流数据和信令的不同传输路径的建立,节省了路径建立。According to the embodiment of the present invention, according to the transmission path when the first client transmits the first stream data, the application request for the special permission is sent to the first client, and since the application request carries the preview information, the user using the first client can preview the information. By reviewing and making judgments on the application request based on the viewing result, the user experience is improved, and the accuracy of the judgment result of the application request is improved. At the same time, the embodiment of the present invention uses the same transmission path to transport stream data and signaling, which eliminates the establishment of different transmission paths of convection data and signaling in the traditional method, and saves path establishment.

图7示出了根据本发明实施例七的一种流数据的传输装置的结构框图。图7中的流数据的传输装置包括:FIG. 7 is a block diagram showing the structure of a stream data transmission apparatus according to Embodiment 7 of the present invention. The transmission device of the stream data in FIG. 7 includes:

第一流数据接收模块701,配置为接收从第一客户端按照传输路径传输 的第一流数据。The first stream data receiving module 701 is configured to receive the first stream data transmitted from the first client according to the transmission path.

申请请求发送模块702,配置为按照所述传输路径向所述第一客户端发送特殊权限的申请请求,所述申请请求携带预览信息。The application request sending module 702 is configured to send a special permission application request to the first client according to the transmission path, where the application request carries preview information.

批准通知接收模块703,配置为接收所述第一客户端根据所述预览信息反馈的批准通知。The approval notification receiving module 703 is configured to receive an approval notification that the first client feeds back according to the preview information.

客户端信息接收模块704,配置为接收所述第一客户端下发的具备特殊权限的特殊客户端的客户端信息,并在当前客户端进行展示,所述客户端信息包括特殊客户端的个数、端标识、端状态、特殊客户端的数量上限中至少一种。The client information receiving module 704 is configured to receive the client information of the special client with the special permission issued by the first client, and display the client information on the current client, where the client information includes the number of the special client, At least one of the end identifier, the end state, and the maximum number of special clients.

本发明实施例中,优选地,所述装置还包括:In the embodiment of the present invention, preferably, the device further includes:

触发操作接收模块,配置为所述预览信息为音视频数据,在所述按照所述传输路径向所述第一客户端发送特殊权限的申请请求之前,接收用户对特殊权限的触发操作;The triggering operation receiving module is configured to: the preview information is audio and video data, and before receiving the application request for sending the special permission to the first client according to the transmission path, receiving a trigger operation of the special permission by the user;

音视频数据获取模块,配置为调用音视频采集接口采集所述用户的音视频数据,或从设定位置提取预先采集的所述用户的音视频数据。The audio and video data acquisition module is configured to invoke the audio and video collection interface to collect the audio and video data of the user, or extract the pre-acquired audio and video data of the user from the set location.

本发明实施例中,优选地,所述预览信息携带单播传输类型的第一标识,以供传输节点根据该第一标识将所述申请请求发送至所述第一客户端。In the embodiment of the present invention, preferably, the preview information carries a first identifier of a unicast transmission type, so that the transmitting node sends the application request to the first client according to the first identifier.

本发明实施例中,优选地,所述装置还包括:In the embodiment of the present invention, preferably, the device further includes:

客户端信息接收模块,配置为接收所述第一客户端下发的具备特殊权限的特殊客户端的客户端信息,并在当前客户端进行展示,所述客户端信息包括特殊客户端的个数、端标识、端状态、特殊客户端的数量上限中至少一种。The client information receiving module is configured to receive the client information of the special client with special permission issued by the first client, and display the client information on the current client, where the client information includes the number of the special client and the end At least one of the identifier, the end state, and the maximum number of special clients.

本发明实施例中,优选地,所述装置还包括:In the embodiment of the present invention, preferably, the device further includes:

版本标识提取模块,配置为在所述在当前第一客户端进行展示之前,提取新下发的客户端信息的版本标识,并与本地存储的客户端信息的版本标识进行比对;The version identifier extraction module is configured to: before the displaying of the current first client, extracting a version identifier of the newly delivered client information, and comparing the version identifier of the locally stored client information;

比对结果判定模块,配置为判定比对结果为不一致。The comparison result determination module is configured to determine that the comparison result is inconsistent.

本发明实施例中,优选地,所述申请请求发送模块,具体用于将所述申请请求传输至与传输路径的最后一个目标传输节点,由所述最后一个目标传 输节点将所述申请请求传输至其上行目标传输节点,直至将所述申请请求传输至所述第一客户端,所述传输路径经过的各目标传输节点记录有其上行目标传输节点。In the embodiment of the present invention, preferably, the application request sending module is specifically configured to transmit the application request to a last target transmission node of the transmission path, and the last target transmission node transmits the application request Up to its uplink destination transmission node, until the application request is transmitted to the first client, each target transmission node through which the transmission path passes records its uplink destination transmission node.

本发明实施例中,优选地,所述申请请求发送模块,具体配置为按照所述节点标识的集合反向顺次将所述申请请求经至少一个中间目标传输节点传输至所述第一客户端,所述第一流数据携带传输过程中顺次经过的各目标传输节点的节点标识的集合。In an embodiment of the present invention, preferably, the application request sending module is configured to, in reverse, sequentially transmit the application request to the first client via at least one intermediate target transmission node according to the set of the node identifiers. And the first stream data carries a set of node identifiers of each target transmission node that passes through the transmission process.

依据本发明实施例,按照第一客户端传输第一流数据时的传输路径,向第一客户端发送特殊权限的申请请求,由于申请请求携带预览信息,因此使用第一客户端的用户可以对预览信息进行查看,并根据查看结果对申请请求做出判断,从而提高了用户体验,同时提高了申请请求的判断结果的准确性。同时,本发明实施例使用同一传输路径传输流数据和信令,省去了传统方法中对流数据和信令的不同传输路径的建立,节省了路径建立。According to the embodiment of the present invention, according to the transmission path when the first client transmits the first stream data, the application request for the special permission is sent to the first client, and since the application request carries the preview information, the user using the first client can preview the information. By reviewing and making judgments on the application request based on the viewing result, the user experience is improved, and the accuracy of the judgment result of the application request is improved. At the same time, the embodiment of the present invention uses the same transmission path to transport stream data and signaling, which eliminates the establishment of different transmission paths of convection data and signaling in the traditional method, and saves path establishment.

图8示出了根据本发明实施例八的一种流数据的传输装置的结构框图。图8中的流数据的传输装置包括:FIG. 8 is a block diagram showing the structure of a stream data transmission apparatus according to Embodiment 8 of the present invention. The transmission device of the stream data in FIG. 8 includes:

第一流数据接收模块801,配置为接收从第一客户端按照传输路径传输的第一流数据。The first stream data receiving module 801 is configured to receive the first stream data transmitted from the first client according to the transmission path.

申请请求发送模块802,配置为按照所述传输路径向所述第一客户端发送特殊权限的申请请求,所述申请请求携带预览信息。The application request sending module 802 is configured to send a special permission application request to the first client according to the transmission path, where the application request carries preview information.

批准通知接收模块803,配置为接收所述第一客户端根据所述预览信息反馈的批准通知。The approval notification receiving module 803 is configured to receive an approval notification that the first client feeds back according to the preview information.

第二流数据传输模块804,配置为向所述目标传输节点传输第二流数据,以由各目标传输节点将所述第二流数据,经所述关联传输节点推送至所述第一客户端以及至少一个第二客户端,所述传输路径经过多个目标传输节点,各目标传输节点具有至少一个关联传输节点。The second stream data transmission module 804 is configured to transmit the second stream data to the target transmission node, so that the second stream data is pushed by the target transmission node to the first client by the associated transmission node And at least one second client, the transmission path passes through a plurality of target transmission nodes, and each target transmission node has at least one associated transmission node.

本发明实施例中,优选地,所述第二流数据携带广播传输方式的第二标识,以供各目标传输节点识别,并根据该第二标识将所述第二流数据推送至 所述第一客户端以及至少一个第二客户端。In the embodiment of the present invention, preferably, the second stream data carries a second identifier of the broadcast transmission mode for each target transmission node to identify, and pushes the second stream data to the first identifier according to the second identifier. A client and at least one second client.

依据本发明实施例,按照第一客户端传输第一流数据时的传输路径,向第一客户端发送特殊权限的申请请求,由于申请请求携带预览信息,因此使用第一客户端的用户可以对预览信息进行查看,并根据查看结果对申请请求做出判断,从而提高了用户体验,同时提高了申请请求的判断结果的准确性。同时,本发明实施例使用同一传输路径传输流数据和信令,省去了传统方法中对流数据和信令的不同传输路径的建立,节省了路径建立。According to the embodiment of the present invention, according to the transmission path when the first client transmits the first stream data, the application request for the special permission is sent to the first client, and since the application request carries the preview information, the user using the first client can preview the information. By reviewing and making judgments on the application request based on the viewing result, the user experience is improved, and the accuracy of the judgment result of the application request is improved. At the same time, the embodiment of the present invention uses the same transmission path to transport stream data and signaling, which eliminates the establishment of different transmission paths of convection data and signaling in the traditional method, and saves path establishment.

本发明实施例利用目标传输节点及其关联传输节点对流数据进行推送,当关联传输节点具有多个层级时,按层级对流数据进行逐级推送,最终将流数据推送至接入传输节点集群的多个客户端,实现流数据的广播。In the embodiment of the present invention, the target transmission node and its associated transmission node are used to push the stream data. When the associated transmission node has multiple levels, the layer-level stream data is pushed step by step, and finally the stream data is pushed to the access transmission node cluster. Clients that implement streaming data streaming.

图9示出了根据本发明实施例九的一种流数据的传输装置的结构框图。图9中的流数据的传输装置包括:FIG. 9 is a block diagram showing the structure of a stream data transmission apparatus according to Embodiment 9 of the present invention. The transmission device of the stream data in FIG. 9 includes:

第一流数据传输模块901,配置为按照传输路径将第一流数据从第一客户端传送至第三客户端。The first stream data transmission module 901 is configured to transmit the first stream data from the first client to the third client according to the transmission path.

申请请求接收模块902,配置为于接收所述第三客户端对特殊权限的申请请求。The application request receiving module 902 is configured to receive an application request for the special permission by the third client.

申请请求转发模块903,配置为按照所述传输路径将所述申请请求转发至所述第一客户端,所述申请请求携带预览信息。The application request forwarding module 903 is configured to forward the application request to the first client according to the transmission path, where the application request carries preview information.

批准通知转发模块904,配置为将所述第一客户端根据所述预览信息反馈的批准通知转发至所述第三客户端。The approval notification forwarding module 904 is configured to forward the approval notification fed back by the first client according to the preview information to the third client.

依据本发明实施例,按照第一客户端传输第一流数据时的传输路径,向第一客户端发送特殊权限的申请请求,由于申请请求携带预览信息,因此使用第一客户端的用户可以对预览信息进行查看,并根据查看结果对申请请求做出判断,从而提高了用户体验,同时提高了申请请求的判断结果的准确性。同时,本发明实施例使用同一传输路径传输流数据和信令,省去了传统方法中对流数据和信令的不同传输路径的建立,节省了路径建立。According to the embodiment of the present invention, according to the transmission path when the first client transmits the first stream data, the application request for the special permission is sent to the first client, and since the application request carries the preview information, the user using the first client can preview the information. By reviewing and making judgments on the application request based on the viewing result, the user experience is improved, and the accuracy of the judgment result of the application request is improved. At the same time, the embodiment of the present invention uses the same transmission path to transport stream data and signaling, which eliminates the establishment of different transmission paths of convection data and signaling in the traditional method, and saves path establishment.

图10示出了根据本发明实施例十的一种流数据的传输装置的结构框图。图10中的流数据的传输装置包括:Figure 10 is a block diagram showing the structure of a stream data transmission apparatus according to a tenth embodiment of the present invention. The transmission device of the stream data in FIG. 10 includes:

第一流数据传输模块1001,配置为按照传输路径将第一流数据从第一客户端传送至第三客户端。The first stream data transmission module 1001 is configured to transmit the first stream data from the first client to the third client according to the transmission path.

申请请求接收模块1002,配置为接收所述第三客户端对特殊权限的申请请求。The application request receiving module 1002 is configured to receive an application request for the special permission by the third client.

申请请求转发模块1003,配置为按照所述传输路径将所述申请请求转发至所述第一客户端,所述申请请求携带预览信息。The application request forwarding module 1003 is configured to forward the application request to the first client according to the transmission path, where the application request carries preview information.

批准通知转发模块1004,配置为将所述第一客户端根据所述预览信息反馈的批准通知转发至所述第三客户端。The approval notification forwarding module 1004 is configured to forward the approval notification fed back by the first client according to the preview information to the third client.

第二流数据接收模块1005,配置为接收所述第三客户端向所述目标传输节点传输的第二流数据,所述传输路径经过多个目标传输节点,各目标传输节点具有至少一个关联传输节点。The second stream data receiving module 1005 is configured to receive second stream data that is transmitted by the third client to the target transmission node, where the transmission path passes through multiple target transmission nodes, and each target transmission node has at least one associated transmission. node.

第二流数据推送模块1006,配置为将所述第二流数据从各目标传输节点,经所述关联传输节点推送至所述第一客户端以及至少一个第二客户端。The second stream data pushing module 1006 is configured to push the second stream data from each target transmission node to the first client and the at least one second client via the associated transmission node.

本发明实施例中,优选地,所述申请请求转发模块包括:In the embodiment of the present invention, preferably, the application request forwarding module includes:

上行传输节点查找模块,配置为查找传输路径的最后一个目标传输节点的上行传输节点,并将所述申请请求传输至所查找的上行目标传输节点,所述传输路径经过的各目标传输节点记录有其上行目标传输节点;An uplink transmission node search module configured to search for an uplink transmission node of a last target transmission node of the transmission path, and transmit the application request to the searched uplink target transmission node, where each target transmission node that the transmission path passes has Its upstream target transmission node;

申请请求传输模块,用于由所述上行目标传输节点将所述申请请求传输至其上行目标传输节点,直至将所述申请请求传输至所述第一客户端。An application request transmission module is configured to transmit, by the uplink target transmission node, the application request to its uplink destination transmission node until the application request is transmitted to the first client.

本发明实施例中,优选地,所述装置还包括:In the embodiment of the present invention, preferably, the device further includes:

广播传输方式判定模块,配置为在所述将所述第二流数据从各目标传输节点经所述关联传输节点推送至所述第一客户端以及至少一个第二客户端之前,判定所述第二流数据指向广播传输方式。a broadcast transmission mode determining module, configured to determine the first stream before the second stream data is pushed from the target transmission node to the first client and the at least one second client The second stream data points to the broadcast transmission mode.

本发明实施例中,优选地,所述装置还包括:In the embodiment of the present invention, preferably, the device further includes:

第二流数据单播模块,配置为若所述第二流数据不指向广播传输方式,则将所述第二流数据从各目标传输节点推送至所述第一客户端。The second stream data unicast module is configured to: if the second stream data does not point to the broadcast transmission mode, push the second stream data from each target transmission node to the first client.

本发明实施例中,优选地,所述装置还包括:In the embodiment of the present invention, preferably, the device further includes:

广播权限判定模块,配置为在所述确定所述第二流数据指向广播传输方式之后,判定所述第三客户端具备广播权限。The broadcast authority determining module is configured to determine that the third client has a broadcast right after determining that the second stream data points to a broadcast transmission mode.

本发明实施例中,优选地,所述广播权限判定模块包括:In the embodiment of the present invention, preferably, the broadcast authority determining module includes:

集合查找模块,配置为查找具备广播权限的特征客户端集合;a collection lookup module configured to find a feature client set with broadcast rights;

第三客户端确定模块,配置为确定所述第三客户端存在所述特征客户端集合中。The third client determining module is configured to determine that the third client exists in the feature client set.

本发明实施例中,优选地,所述第二流数据接收模块包括:In the embodiment of the present invention, preferably, the second stream data receiving module includes:

第二流数据获取模块,配置为接收所述第三客户端向直接连接的目标传输节点传输的第二流数据;a second stream data obtaining module, configured to receive second stream data that is transmitted by the third client to the directly connected target transmission node;

第二流数据反向传输模块,配置为按照所述传输路径的反向顺序,将所述第二流数据顺次推送到其他目标传输节点。The second stream data reverse transmission module is configured to sequentially push the second stream data to the other target transmission nodes according to the reverse sequence of the transmission path.

本发明实施例中,优选地,所述第二流数据推送模块包括:In the embodiment of the present invention, preferably, the second stream data pushing module includes:

第二流数据直接传输模块,配置为于将所述第二流数据推送至与所述目标传输节点直接连接的一级关联传输节点或第一客户端或第二客户端;a second stream data direct transmission module, configured to: push the second stream data to a first-level associated transport node or a first client or a second client that is directly connected to the target transport node;

第二流数据迭代推送模块,配置为迭代执行推送步骤,将所述第二流数据从接收到所述第二流数据的N级关联传输节点推送至直接连接的N+1级关联传输节点或第一客户端或第二客户端,直至推送至接入传输节点集群的第一客户端和所有第二客户端。a second stream data iterative push module configured to iteratively perform a push step of pushing the second stream data from an N-level associated transport node that receives the second stream data to a directly connected N+1 level associated transport node or The first client or the second client is pushed to the first client and all the second clients of the access transport node cluster.

本发明实施例中,优选地,所述装置还包括:In the embodiment of the present invention, preferably, the device further includes:

下行目标传输节点查找模块,配置为在所述将所述第二流数据推送至与所述目标传输节点直接连接的一级关联传输节点或第一客户端或第二客户端之前,查找所述目标传输节点在所述传输路径中的下行目标传输节点,所述目标传输节点本地记录有在所述传输路径中的下行目标传输节点;a downlink target transmission node lookup module configured to: before the pushing the second stream data to a primary association transmission node or a first client or a second client directly connected to the target transmission node, searching for the a downlink destination transmission node in the transmission path of the target transmission node, the target transmission node locally recording a downlink destination transmission node in the transmission path;

下行目标传输节点去除模块,配置为从与所述目标传输节点直接连接的一级关联传输节点中,去除所查找的下行目标传输节点。And a downlink target transmission node removal module configured to remove the found downlink target transmission node from the primary association transmission node directly connected to the target transmission node.

本发明实施例中,优选地,所述下行目标传输节点查找模块,具体配置为根据所述第一流数据的流标识,提取对应存储的下行目标传输节点,所述 下行目标传输节点与所述第一流数据的流标识对应存储,所述第二流数据携带所述第一流数据的流标识。In the embodiment of the present invention, preferably, the downlink target transmission node searching module is configured to extract, according to the flow identifier of the first stream data, a corresponding downlink destination transmission node, the downlink target transmission node, and the first The flow identifier of the first-level data is correspondingly stored, and the second stream data carries the flow identifier of the first stream data.

依据本发明实施例,按照第一客户端传输第一流数据时的传输路径,向第一客户端发送特殊权限的申请请求,由于申请请求携带预览信息,因此使用第一客户端的用户可以对预览信息进行查看,并根据查看结果对申请请求做出判断,从而提高了用户体验,同时提高了申请请求的判断结果的准确性。同时,本发明实施例使用同一传输路径传输流数据和信令,省去了传统方法中对流数据和信令的不同传输路径的建立,节省了路径建立。According to the embodiment of the present invention, according to the transmission path when the first client transmits the first stream data, the application request for the special permission is sent to the first client, and since the application request carries the preview information, the user using the first client can preview the information. By reviewing and making judgments on the application request based on the viewing result, the user experience is improved, and the accuracy of the judgment result of the application request is improved. At the same time, the embodiment of the present invention uses the same transmission path to transport stream data and signaling, which eliminates the establishment of different transmission paths of convection data and signaling in the traditional method, and saves path establishment.

本发明实施例利用目标传输节点及其关联传输节点对流数据进行推送,当关联传输节点具有多个层级时,按层级对流数据进行逐级推送,最终将流数据推送至接入传输节点集群的多个客户端,实现流数据的广播。In the embodiment of the present invention, the target transmission node and its associated transmission node are used to push the stream data. When the associated transmission node has multiple levels, the layer-level stream data is pushed step by step, and finally the stream data is pushed to the access transmission node cluster. Clients that implement streaming data streaming.

在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general purpose systems can also be used with the teaching based on the teachings herein. The structure required to construct such a system is apparent from the above description. Moreover, the invention is not directed to any particular programming language. It is to be understood that the invention may be embodied in a variety of programming language, and the description of the specific language has been described above in order to disclose the preferred embodiments of the invention.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that the embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of the description.

类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方 式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, the various features of the invention are sometimes grouped together into a single embodiment, in the above description of the exemplary embodiments of the invention, Figure, or a description of it. However, the method disclosed is not to be interpreted as reflecting the intention that the claimed invention requires more features than those recited in the claims. Rather, as the following claims reflect, inventive aspects reside in less than all features of the single embodiments disclosed herein. Therefore, the claims following the specific embodiments are hereby explicitly incorporated into the specific embodiments, and each of the claims as a separate embodiment of the invention.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art will appreciate that the modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components. In addition to such features and/or at least some of the processes or units being mutually exclusive, any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined. Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.

此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features that are included in other embodiments and not in other features, combinations of features of different embodiments are intended to be within the scope of the present invention. Different embodiments are formed and formed. For example, in the following claims, any one of the claimed embodiments can be used in any combination.

本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的流数据的传输设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functionality of some or all of the components of the streaming data transmission device in accordance with embodiments of the present invention may be implemented in practice using a microprocessor or digital signal processor (DSP). The invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein. Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.

例如,图11示出了可以实现根据本发明的流数据的传输方法的计算设备。该计算设备传统上包括处理器1110和以存储器1120形式的计算机程序产品或者计算机可读介质。存储器1120可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存 储器1120具有存储用于执行上述方法中的任何方法步骤的程序代码1131的存储空间1130。例如,存储程序代码的存储空间1130可以包括分别用于实现上面的方法中的各种步骤的各个程序代码1131。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为例如图12所示的便携式或者固定存储单元。该存储单元可以具有与图11的计算设备中的存储器1120类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码1131’,即可以由诸如1110之类的处理器读取的代码,当这些代码由计算设备运行时,导致该计算设备执行上面所描述的方法中的各个步骤。For example, Figure 11 illustrates a computing device that can implement a method of transmitting streaming data in accordance with the present invention. The computing device conventionally includes a processor 1110 and a computer program product or computer readable medium in the form of a memory 1120. The memory 1120 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM. The memory 1120 has a storage space 1130 that stores program code 1131 for performing any of the method steps described above. For example, the storage space 1130 storing program code may include respective program codes 1131 for implementing various steps in the above methods, respectively. The program code can be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such a computer program product is typically a portable or fixed storage unit such as that shown in FIG. The storage unit may have a storage segment, a storage space, and the like that are similarly arranged to the storage 1120 in the computing device of FIG. The program code can be compressed, for example, in an appropriate form. Typically, the storage unit includes computer readable code 1131 ', ie, code that can be read by a processor, such as 1110, which when executed by the computing device causes the computing device to perform various steps in the methods described above .

本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。"an embodiment," or "an embodiment," or "an embodiment," In addition, it is noted that the phrase "in one embodiment" is not necessarily referring to the same embodiment.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that the embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of the description.

应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It is to be noted that the above-described embodiments are illustrative of the invention and are not intended to be limiting, and that the invention may be devised without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as a limitation. The word "comprising" does not exclude the presence of the elements or steps that are not recited in the claims. The word "a" or "an" The invention can be implemented by means of hardware comprising several distinct elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means can be embodied by the same hardware item. The use of the words first, second, and third does not indicate any order. These words can be interpreted as names.

Claims (42)

一种流数据的传输方法,包括:A method for transmitting stream data, comprising: 接收从第一客户端按照传输路径传输的第一流数据;Receiving first stream data transmitted from the first client according to the transmission path; 按照所述传输路径向所述第一客户端发送特殊权限的申请请求,所述申请请求携带预览信息;Sending, according to the transmission path, an application request for special permission to the first client, where the application request carries preview information; 接收所述第一客户端根据所述预览信息反馈的批准通知。Receiving an approval notification that the first client feeds back according to the preview information. 根据权利要求1所述的方法,其中,所述预览信息为音视频数据,在所述按照所述传输路径向所述第一客户端发送特殊权限的申请请求之前,所述方法还包括:The method according to claim 1, wherein the preview information is audio and video data, and the method further includes: before the requesting the special client to send the special permission to the first client according to the transmission path, the method further includes: 接收用户对特殊权限的触发操作;Receiving a user's triggering operation on a special permission; 调用音视频采集接口采集所述用户的音视频数据,或从设定位置提取预先采集的所述用户的音视频数据。The audio and video collection interface is called to collect the audio and video data of the user, or the pre-acquired audio and video data of the user is extracted from the set position. 根据权利要求1所述的方法,其中,所述预览信息携带单播传输类型的第一标识,以供传输节点根据该第一标识将所述申请请求发送至所述第一客户端。The method of claim 1, wherein the preview information carries a first identity of a unicast transmission type for the transmitting node to send the request to the first client according to the first identity. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1 wherein the method further comprises: 接收所述第一客户端下发的具备特殊权限的特殊客户端的客户端信息,并在当前客户端进行展示,所述客户端信息包括特殊客户端的个数、端标识、端状态、特殊客户端的数量上限中至少一种。Receiving, by the first client, the client information of the special client with special permission, and displaying the client information, where the client information includes the number of the special client, the end identifier, the end state, and the special client. At least one of the upper limit. 根据权利要求4所述的方法,其中,在所述在当前第一客户端进行展示之前,所述方法还包括:The method of claim 4, wherein before the presenting the first client, the method further comprises: 提取新下发的客户端信息的版本标识,并与本地存储的客户端信息的版本标识进行比对;Extracting the version identifier of the newly delivered client information and comparing it with the version identifier of the locally stored client information; 判定比对结果为不一致。The result of the comparison is determined to be inconsistent. 根据权利要求1所述的方法,其中,所述传输路径经过多个目标传输节点,各目标传输节点具有至少一个关联传输节点,所述方法还包括:The method of claim 1, wherein the transmission path passes through a plurality of target transmission nodes, and each of the target transmission nodes has at least one associated transmission node, the method further comprising: 向所述目标传输节点传输第二流数据,以由各目标传输节点将所述第二流数据,经所述关联传输节点推送至所述第一客户端以及至少一个第二客户端。Transmitting the second stream data to the target transmission node, so that the second stream data is pushed by the target transmission node to the first client and the at least one second client via the associated transmission node. 根据权利要求6所述的方法,其中,所述第二流数据携带广播传输方式的第二标识,以供各目标传输节点识别,并根据该第二标识将所述第二流数据推送至所述第一客户端以及至少一个第二客户端。The method according to claim 6, wherein the second stream data carries a second identifier of a broadcast transmission mode for each target transmission node to identify, and pushes the second stream data to the location according to the second identifier. The first client and the at least one second client. 根据权利要求1所述的方法,其中,所述传输路径经过的各目标传输节点记录有其上行目标传输节点;The method according to claim 1, wherein each of the target transmission nodes through which the transmission path passes records its uplink target transmission node; 所述按照所述传输路径向所述第一客户端发送特殊权限的申请请求包括:The request for sending the special permission to the first client according to the transmission path includes: 将所述申请请求传输至与传输路径的最后一个目标传输节点,由所述最后一个目标传输节点将所述申请请求传输至其上行目标传输节点,直至将所述申请请求传输至所述第一客户端。Transmitting the request to the last destination transmission node of the transmission path, and transmitting, by the last target transmission node, the application request to its uplink destination transmission node until the application request is transmitted to the first Client. 根据权利要求1所述的方法,其中,所述第一流数据携带传输过程中顺次经过的各目标传输节点的节点标识的集合;The method according to claim 1, wherein the first stream data carries a set of node identifiers of respective target transmission nodes that pass through in the transmission process; 所述按照所述传输路径向所述第一客户端发送特殊权限的申请请求包括:The request for sending the special permission to the first client according to the transmission path includes: 按照所述节点标识的集合反向顺次将所述申请请求经至少一个中间目标传输节点传输至所述第一客户端。Transmitting the application request to the first client via the at least one intermediate target transmission node in reverse according to the set of node identifiers. 一种流数据的传输方法,包括:A method for transmitting stream data, comprising: 按照传输路径将第一流数据从第一客户端传送至第三客户端;Transmitting the first stream data from the first client to the third client according to the transmission path; 接收所述第三客户端对特殊权限的申请请求,并按照所述传输路径将所述申请请求转发至所述第一客户端,所述申请请求携带预览信息;Receiving, by the third client, a request for special permission, and forwarding the application request to the first client according to the transmission path, where the application request carries preview information; 将所述第一客户端根据所述预览信息反馈的批准通知转发至所述第三客户端。And forwarding, by the first client, an approval notification fed back according to the preview information to the third client. 根据权利要求10所述的方法,其中,所述传输路径经过的各目标传输节点记录有其上行目标传输节点,所述按照所述传输路径将所述申请请求转发至所述第一客户端包括:The method according to claim 10, wherein each of the target transmission nodes through which the transmission path passes records its uplink destination transmission node, and the forwarding of the application request to the first client according to the transmission path includes : 查找传输路径的最后一个目标传输节点的上行传输节点,并将所述申请请求传输至所查找的上行目标传输节点;Finding an uplink transmission node of a last target transmission node of the transmission path, and transmitting the application request to the searched uplink target transmission node; 由所述上行目标传输节点将所述申请请求传输至其上行目标传输节点,直至将所述申请请求传输至所述第一客户端。The application request is transmitted by the upstream target transmission node to its upstream destination transmission node until the application request is transmitted to the first client. 根据权利要求10所述的方法,其中,所述传输路径经过多个目标传输节点,各目标传输节点具有至少一个关联传输节点,所述方法还包括:The method of claim 10, wherein the transmission path passes through a plurality of target transmission nodes, each of the target transmission nodes has at least one associated transmission node, and the method further comprises: 接收所述第三客户端向所述目标传输节点传输的第二流数据;Receiving second stream data that is transmitted by the third client to the target transmission node; 将所述第二流数据从各目标传输节点,经所述关联传输节点推送至所述第一客户端以及至少一个第二客户端。And transmitting the second stream data from each target transmission node to the first client and the at least one second client via the associated transmission node. 根据权利要求12所述的方法,其中,在所述将所述第二流数据从各目标传输节点经所述关联传输节点推送至所述第一客户端以及至少一个第二客户端之前,所述方法还包括:The method of claim 12, wherein before said pushing said second stream data from said target transport node via said associated transport node to said first client and said at least one second client The method also includes: 判定所述第二流数据指向广播传输方式。It is determined that the second stream data points to a broadcast transmission mode. 根据权利要求13所述的方法,其中,所述方法还包括:The method of claim 13 wherein the method further comprises: 若所述第二流数据不指向广播传输方式,则将所述第二流数据从各目标传输节点推送至所述第一客户端。And if the second stream data does not point to the broadcast transmission mode, the second stream data is pushed from each target transmission node to the first client. 根据权利要求12所述的方法,其中,在所述确定所述第二流数据指向广播传输方式之后,所述方法还包括:The method of claim 12, wherein after the determining that the second stream data is directed to a broadcast transmission mode, the method further comprises: 判定所述第三客户端具备广播权限。It is determined that the third client has broadcast authority. 根据权利要求15所述的方法,其中,所述判定所述第三客户端具备广播权限包括:The method of claim 15, wherein the determining that the third client has broadcast rights comprises: 查找具备广播权限的特征客户端集合;Find a collection of feature clients with broadcast rights; 确定所述第三客户端存在所述特征客户端集合中。Determining that the third client exists in the feature client set. 根据权利要求12所述的方法,其中,所述接收第三客户端向所述目标传输节点传输的第二流数据包括:The method according to claim 12, wherein the receiving the second stream data transmitted by the third client to the target transmission node comprises: 接收所述第三客户端向直接连接的目标传输节点传输的第二流数据;Receiving second stream data that is transmitted by the third client to the directly connected target transmission node; 按照所述传输路径的反向顺序,将所述第二流数据顺次推送到其他目标传输节点。The second stream data is sequentially pushed to other target transmission nodes in reverse order of the transmission path. 根据权利要求12所述的方法,其中,所述将所述第二流数据从各目标传输节点,经所述关联传输节点推送至所述第一客户端以及至少一个第 二客户端包括:The method of claim 12, wherein the pushing the second stream data from each of the target transport nodes, the associated transport node to the first client, and the at least one second client comprises: 将所述第二流数据推送至与所述目标传输节点直接连接的一级关联传输节点或第一客户端或第二客户端;Pushing the second stream data to a primary association transmission node or a first client or a second client directly connected to the target transmission node; 迭代执行推送步骤,将所述第二流数据从接收到所述第二流数据的N级关联传输节点推送至直接连接的N+1级关联传输节点或第一客户端或第二客户端,直至推送至接入传输节点集群的第一客户端和所有第二客户端。Performing a push step by iteratively, pushing the second stream data from the N-level associated transport node that receives the second stream data to the directly connected N+1 level associated transport node or the first client or the second client, Until the first client and all second clients are pushed to the access transport node cluster. 根据权利要求18所述的方法,其中,所述目标传输节点本地记录有在所述传输路径中的下行目标传输节点,在所述将所述第二流数据推送至与所述目标传输节点直接连接的一级关联传输节点或第一客户端或第二客户端之前,所述方法还包括:The method according to claim 18, wherein said target transmission node locally records a downlink destination transmission node in said transmission path, and said said second stream data is pushed directly to said target transmission node Before the connected primary association node or the first client or the second client, the method further includes: 查找所述目标传输节点在所述传输路径中的下行目标传输节点;Finding a downlink target transmission node of the target transmission node in the transmission path; 从与所述目标传输节点直接连接的一级关联传输节点中,去除所查找的下行目标传输节点。The discovered downlink target transmission node is removed from the primary association transmission node directly connected to the target transmission node. 根据权利要求19所述的方法,其中,所述下行目标传输节点与所述第一流数据的流标识对应存储,所述第二流数据携带所述第一流数据的流标识;The method according to claim 19, wherein the downlink target transmission node is corresponding to the stream identifier of the first stream data, and the second stream data carries a stream identifier of the first stream data; 所述查找所述目标传输节点在所述传输路径中的下行目标传输节点包括:The searching for the downlink target transmission node of the target transmission node in the transmission path includes: 根据所述第一流数据的流标识,提取对应存储的下行目标传输节点。And extracting, according to the flow identifier of the first stream data, a corresponding downlink destination transmission node. 一种流数据的传输装置,包括:A stream data transmission device comprising: 第一流数据接收模块,配置为接收从第一客户端按照传输路径传输的第一流数据;a first stream data receiving module, configured to receive first stream data transmitted from the first client according to the transmission path; 申请请求发送模块,配置为按照所述传输路径向所述第一客户端发送特殊权限的申请请求,所述申请请求携带预览信息;The application request sending module is configured to send a special permission application request to the first client according to the transmission path, where the application request carries preview information; 批准通知接收模块,配置为接收所述第一客户端根据所述预览信息反馈的批准通知。The approval notification receiving module is configured to receive an approval notification that the first client feeds back according to the preview information. 根据权利要求21所述的装置,其中,所述装置还包括:The device of claim 21, wherein the device further comprises: 触发操作接收模块,配置为所述预览信息为音视频数据,在所述按照所述传输路径向所述第一客户端发送特殊权限的申请请求之前,接收用户对特殊权限的触发操作;The triggering operation receiving module is configured to: the preview information is audio and video data, and before receiving the application request for sending the special permission to the first client according to the transmission path, receiving a trigger operation of the special permission by the user; 音视频数据获取模块,配置为调用音视频采集接口采集所述用户的音视频数据,或从设定位置提取预先采集的所述用户的音视频数据。The audio and video data acquisition module is configured to invoke the audio and video collection interface to collect the audio and video data of the user, or extract the pre-acquired audio and video data of the user from the set location. 根据权利要求21所述的装置,其中,所述预览信息携带单播传输类型的第一标识,以供传输节点根据该第一标识将所述申请请求发送至所述第一客户端。The apparatus of claim 21, wherein the preview information carries a first identity of a unicast transmission type for the transmitting node to send the request to the first client according to the first identity. 根据权利要求21所述的装置,其中,所述装置还包括:The device of claim 21, wherein the device further comprises: 客户端信息接收模块,配置为接收所述第一客户端下发的具备特殊权限的特殊客户端的客户端信息,并在当前客户端进行展示,所述客户端信息包括特殊客户端的个数、端标识、端状态、特殊客户端的数量上限中至少一种。The client information receiving module is configured to receive the client information of the special client with special permission issued by the first client, and display the client information on the current client, where the client information includes the number of the special client and the end At least one of the identifier, the end state, and the maximum number of special clients. 根据权利要求24所述的装置,其中,所述装置还包括:The device of claim 24, wherein the device further comprises: 版本标识提取模块,配置为在所述在当前第一客户端进行展示之前,提取新下发的客户端信息的版本标识,并与本地存储的客户端信息的版本标识进行比对;The version identifier extraction module is configured to: before the displaying of the current first client, extracting a version identifier of the newly delivered client information, and comparing the version identifier of the locally stored client information; 比对结果判定模块,配置为判定比对结果为不一致。The comparison result determination module is configured to determine that the comparison result is inconsistent. 根据权利要求21所述的装置,其中,所述装置还包括:The device of claim 21, wherein the device further comprises: 第二流数据传输模块,配置为向所述目标传输节点传输第二流数据,以由各目标传输节点将所述第二流数据,经所述关联传输节点推送至所述第一客户端以及至少一个第二客户端,所述传输路径经过多个目标传输节点,各目标传输节点具有至少一个关联传输节点。a second stream data transmission module, configured to transmit second stream data to the target transmission node, so that the second stream data is pushed by the target transmission node to the first client via the associated transmission node, and At least one second client, the transmission path passes through a plurality of target transmission nodes, and each of the target transmission nodes has at least one associated transmission node. 根据权利要求26所述的装置,其中,所述第二流数据携带广播传输方式的第二标识,以供各目标传输节点识别,并根据该第二标识将所述第二流数据推送至所述第一客户端以及至少一个第二客户端。The apparatus according to claim 26, wherein said second stream data carries a second identifier of a broadcast transmission mode for identification by each target transmission node, and pushes said second stream data to said location according to said second identifier The first client and the at least one second client. 根据权利要求21所述的装置,其中:The device of claim 21 wherein: 所述申请请求发送模块,具体配置为将所述申请请求传输至与传输路径的最后一个目标传输节点,由所述最后一个目标传输节点将所述申请请求传 输至其上行目标传输节点,直至将所述申请请求传输至所述第一客户端,所述传输路径经过的各目标传输节点记录有其上行目标传输节点。The application request sending module is specifically configured to transmit the application request to a last target transmission node of the transmission path, and the last target transmission node transmits the application request to its uplink destination transmission node until The application request is transmitted to the first client, and each target transmission node through which the transmission path passes records its uplink target transmission node. 根据权利要求21所述的装置,其中:The device of claim 21 wherein: 所述申请请求发送模块,具体配置为按照所述节点标识的集合反向顺次将所述申请请求经至少一个中间目标传输节点传输至所述第一客户端,所述第一流数据携带传输过程中顺次经过的各目标传输节点的节点标识的集合。The application request sending module is configured to, in reverse, sequentially transmit the application request to the first client by using at least one intermediate target transmission node according to the set of the node identifiers, where the first stream data carries a transmission process. A set of node identifiers of each of the target transit nodes that pass through in sequence. 一种流数据的传输装置,包括:A stream data transmission device comprising: 第一流数据传输模块,配置为按照传输路径将第一流数据从第一客户端传送至第三客户端;The first stream data transmission module is configured to transmit the first stream data from the first client to the third client according to the transmission path; 申请请求接收模块,配置为接收所述第三客户端对特殊权限的申请请求;The application request receiving module is configured to receive an application request for the special permission by the third client; 申请请求转发模块,配置为按照所述传输路径将所述申请请求转发至所述第一客户端,所述申请请求携带预览信息;The application request forwarding module is configured to forward the application request to the first client according to the transmission path, where the application request carries preview information; 批准通知转发模块,配置为将所述第一客户端根据所述预览信息反馈的批准通知转发至所述第三客户端。And the approval notification forwarding module is configured to forward the approval notification fed back by the first client according to the preview information to the third client. 根据权利要求30所述的装置,其中,所述申请请求转发模块包括:The apparatus of claim 30, wherein the application request forwarding module comprises: 上行传输节点查找模块,配置为查找传输路径的最后一个目标传输节点的上行传输节点,并将所述申请请求传输至所查找的上行目标传输节点,所述传输路径经过的各目标传输节点记录有其上行目标传输节点;An uplink transmission node search module configured to search for an uplink transmission node of a last target transmission node of the transmission path, and transmit the application request to the searched uplink target transmission node, where each target transmission node that the transmission path passes has Its upstream target transmission node; 申请请求传输模块,配置为由所述上行目标传输节点将所述申请请求传输至其上行目标传输节点,直至将所述申请请求传输至所述第一客户端。An application request transmission module is configured to transmit, by the uplink target transmission node, the application request to its uplink destination transmission node until the application request is transmitted to the first client. 根据权利要求30所述的装置,其中,所述装置还包括:The device of claim 30, wherein the device further comprises: 第二流数据接收模块,配置为接收所述第三客户端向所述目标传输节点传输的第二流数据,所述传输路径经过多个目标传输节点,各目标传输节点具有至少一个关联传输节点;a second stream data receiving module, configured to receive second stream data that is transmitted by the third client to the target transmission node, where the transmission path passes through multiple target transmission nodes, and each target transmission node has at least one associated transmission node ; 第二流数据推送模块,配置为将所述第二流数据从各目标传输节点,经所述关联传输节点推送至所述第一客户端以及至少一个第二客户端。The second stream data pushing module is configured to push the second stream data from each target transmission node to the first client and the at least one second client via the associated transit node. 根据权利要求32所述的装置,其中,所述装置还包括:The device of claim 32, wherein the device further comprises: 广播传输方式判定模块,配置为在所述将所述第二流数据从各目标传输节点经所述关联传输节点推送至所述第一客户端以及至少一个第二客户端之前,判定所述第二流数据指向广播传输方式。a broadcast transmission mode determining module, configured to determine the first stream before the second stream data is pushed from the target transmission node to the first client and the at least one second client The second stream data points to the broadcast transmission mode. 根据权利要求33所述的装置,其中,所述装置还包括:The device of claim 33, wherein the device further comprises: 第二流数据单播模块,配置为若所述第二流数据不指向广播传输方式,则将所述第二流数据从各目标传输节点推送至所述第一客户端。The second stream data unicast module is configured to: if the second stream data does not point to the broadcast transmission mode, push the second stream data from each target transmission node to the first client. 根据权利要求32所述的装置,其中,所述装置还包括:The device of claim 32, wherein the device further comprises: 广播权限判定模块,配置为在所述确定所述第二流数据指向广播传输方式之后,判定所述第三客户端具备广播权限。The broadcast authority determining module is configured to determine that the third client has a broadcast right after determining that the second stream data points to a broadcast transmission mode. 根据权利要求35所述的装置,其中,所述广播权限判定模块包括:The apparatus of claim 35, wherein the broadcast authority determination module comprises: 集合查找模块,配置为查找具备广播权限的特征客户端集合;a collection lookup module configured to find a feature client set with broadcast rights; 第三客户端确定模块,用于确定所述第三客户端存在所述特征客户端集合中。And a third client determining module, configured to determine that the third client exists in the feature client set. 根据权利要求32所述的装置,其中,所述第二流数据接收模块包括:The apparatus of claim 32, wherein the second stream data receiving module comprises: 第二流数据获取模块,配置为接收所述第三客户端向直接连接的目标传输节点传输的第二流数据;a second stream data obtaining module, configured to receive second stream data that is transmitted by the third client to the directly connected target transmission node; 第二流数据反向传输模块,配置为按照所述传输路径的反向顺序,将所述第二流数据顺次推送到其他目标传输节点。The second stream data reverse transmission module is configured to sequentially push the second stream data to the other target transmission nodes according to the reverse sequence of the transmission path. 根据权利要求32所述的装置,其中,所述第二流数据推送模块包括:The apparatus according to claim 32, wherein said second stream data pushing module comprises: 第二流数据直接传输模块,配置为将所述第二流数据推送至与所述目标传输节点直接连接的一级关联传输节点或第一客户端或第二客户端;a second stream data direct transmission module, configured to push the second stream data to a first level association transmission node or a first client or a second client directly connected to the target transmission node; 第二流数据迭代推送模块,配置为迭代执行推送步骤,将所述第二流数据从接收到所述第二流数据的N级关联传输节点推送至直接连接的N+1级关联传输节点或第一客户端或第二客户端,直至推送至接入传输节点集群的第一客户端和所有第二客户端。a second stream data iterative push module configured to iteratively perform a push step of pushing the second stream data from an N-level associated transport node that receives the second stream data to a directly connected N+1 level associated transport node or The first client or the second client is pushed to the first client and all the second clients of the access transport node cluster. 根据权利要求38所述的装置,其中,所述装置还包括:The device of claim 38, wherein the device further comprises: 下行目标传输节点查找模块,配置为在所述将所述第二流数据推送至与所述目标传输节点直接连接的一级关联传输节点或第一客户端或第二客户端之前,查找所述目标传输节点在所述传输路径中的下行目标传输节点,所述目标传输节点本地记录有在所述传输路径中的下行目标传输节点;a downlink target transmission node lookup module configured to: before the pushing the second stream data to a primary association transmission node or a first client or a second client directly connected to the target transmission node, searching for the a downlink destination transmission node in the transmission path of the target transmission node, the target transmission node locally recording a downlink destination transmission node in the transmission path; 下行目标传输节点去除模块,配置为从与所述目标传输节点直接连接的一级关联传输节点中,去除所查找的下行目标传输节点。And a downlink target transmission node removal module configured to remove the found downlink target transmission node from the primary association transmission node directly connected to the target transmission node. 根据权利要求39所述的装置,其中:The device of claim 39 wherein: 所述下行目标传输节点查找模块,具体配置为根据所述第一流数据的流标识,提取对应存储的下行目标传输节点,所述下行目标传输节点与所述第一流数据的流标识对应存储,所述第二流数据携带所述第一流数据的流标识。The downlink target transmission node searching module is configured to: according to the flow identifier of the first stream data, extract a corresponding downlink destination transmission node, where the downlink destination transmission node is corresponding to the stream identifier of the first stream data, where The second stream data carries a stream identifier of the first stream data. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据权利要求1-20中的任一项所述的流数据的传输方法。A computer program comprising computer readable code, when the computer readable code is run on a computing device, causing the computing device to perform the method of transmitting stream data according to any one of claims 1-20 . 一种计算机可读介质,其中存储了如权利要求41所述的计算机程序。A computer readable medium storing the computer program of claim 41.
PCT/CN2017/119881 2016-12-30 2017-12-29 Method and device for transmitting stream data Ceased WO2018121739A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201611261623.X 2016-12-30
CN201611265811.X 2016-12-30
CN201611261623.XA CN106791985A (en) 2016-12-30 2016-12-30 The transmission method and device of a kind of flow data
CN201611265811.XA CN107070866B (en) 2016-12-30 2016-12-30 Method and device for transmitting stream data

Publications (1)

Publication Number Publication Date
WO2018121739A1 true WO2018121739A1 (en) 2018-07-05

Family

ID=62707926

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/119881 Ceased WO2018121739A1 (en) 2016-12-30 2017-12-29 Method and device for transmitting stream data

Country Status (1)

Country Link
WO (1) WO2018121739A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112565802A (en) * 2020-11-30 2021-03-26 Oppo广东移动通信有限公司 Live broadcast interaction method, system, server and storage medium
CN113179414A (en) * 2021-03-23 2021-07-27 五八有限公司 Live broadcast interaction method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889676A (en) * 2006-06-01 2007-01-03 上海交通大学 Video frequency session system based on P2P and SIP and realizing method thereof
CN101610382A (en) * 2009-07-16 2009-12-23 中兴通讯股份有限公司 A kind of implementation method of wireless video conference, system and terminal
WO2012133860A1 (en) * 2011-04-01 2012-10-04 ViewSend ICT株式会社 Remote conference system
US20130189664A1 (en) * 2012-01-19 2013-07-25 Electronics And Telecommunications Research Institute Method and apparatus for providing media stream switching based interactive lecture service, and receiving method and apparatus
KR20140132231A (en) * 2013-05-07 2014-11-17 삼성전자주식회사 method and apparatus for controlling mobile in video conference and recording medium thereof
CN104883367A (en) * 2015-05-20 2015-09-02 吴振祎 Method for auxiliary verification login, system, and application client
CN106791985A (en) * 2016-12-30 2017-05-31 北京奇虎科技有限公司 The transmission method and device of a kind of flow data
CN107070866A (en) * 2016-12-30 2017-08-18 北京奇虎科技有限公司 The transmission method and device of a kind of flow data

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889676A (en) * 2006-06-01 2007-01-03 上海交通大学 Video frequency session system based on P2P and SIP and realizing method thereof
CN101610382A (en) * 2009-07-16 2009-12-23 中兴通讯股份有限公司 A kind of implementation method of wireless video conference, system and terminal
WO2012133860A1 (en) * 2011-04-01 2012-10-04 ViewSend ICT株式会社 Remote conference system
US20130189664A1 (en) * 2012-01-19 2013-07-25 Electronics And Telecommunications Research Institute Method and apparatus for providing media stream switching based interactive lecture service, and receiving method and apparatus
KR20140132231A (en) * 2013-05-07 2014-11-17 삼성전자주식회사 method and apparatus for controlling mobile in video conference and recording medium thereof
CN104883367A (en) * 2015-05-20 2015-09-02 吴振祎 Method for auxiliary verification login, system, and application client
CN106791985A (en) * 2016-12-30 2017-05-31 北京奇虎科技有限公司 The transmission method and device of a kind of flow data
CN107070866A (en) * 2016-12-30 2017-08-18 北京奇虎科技有限公司 The transmission method and device of a kind of flow data

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112565802A (en) * 2020-11-30 2021-03-26 Oppo广东移动通信有限公司 Live broadcast interaction method, system, server and storage medium
CN112565802B (en) * 2020-11-30 2023-07-21 Oppo广东移动通信有限公司 Live interactive method, system, server and storage medium
CN113179414A (en) * 2021-03-23 2021-07-27 五八有限公司 Live broadcast interaction method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US12289486B2 (en) Methods, systems, and media for presenting notifications indicating recommended content
CN107070866B (en) Method and device for transmitting stream data
WO2018121405A1 (en) Method and device for transmitting stream data
US20190253474A1 (en) Media production system with location-based feature
US11252479B2 (en) Methods, systems, and media for recommending media content based on attribute grouped viewing sessions
US20150312296A1 (en) Method and device for pushing multimedia resource and display terminal
US9860578B2 (en) Methods, systems, and media for recommending collaborators of media content based on authenticated media content input
RU2012147842A (en) METHOD FOR MANAGING CONFERENCE COMMUNICATION AND RELATED DEVICE AND SYSTEM
CN106453559B (en) A kind of processing method of business object, server, terminal and system
CN106060663A (en) Method and system for monitoring video smoothness in live video streaming process
WO2018145538A1 (en) Message processing method and device for live broadcast platform
US20220264281A1 (en) Peripheral Video Presence Detection
WO2015096802A1 (en) Method, device, and server for message transmission
WO2018121705A1 (en) Stream data bidirectional transmission method and device
WO2018121739A1 (en) Method and device for transmitting stream data
US9998519B2 (en) Techniques for promoting and viewing social content written by nearby people
CN106060573A (en) Live broadcast method and device based on terminal screen content
WO2018121681A1 (en) Method and device for remotely opening stream data transmission
US10498787B2 (en) Communication apparatus, communication method, and program
US10938869B2 (en) Conference system and method for controlling bandwidth thereof
WO2017080216A1 (en) Method for recommending video through bluetooth technology, remote controller, and smart tv
US9270763B2 (en) Method and apparatus for sharing electronic content
CN108668151B (en) Audio and video interaction method and device
CN106791985A (en) The transmission method and device of a kind of flow data
CN107851072A (en) Receiving device, send equipment and data processing method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17885919

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17885919

Country of ref document: EP

Kind code of ref document: A1