Streaming media content transmission, live broadcast and pull methods

By including the public network service address of the live broadcast user in the streaming address and sending it to the user during live streaming, users can obtain streaming media content directly from the live broadcast user, which solves the problem of CDN bandwidth pressure and delay, and reduces the cost and cost of live broadcasting. Jitter risk.

CN114827650BActive Publication Date: 2024-09-24SHANGHAI BILIBILI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210430785.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-22
Publication Date
2024-09-24
Estimated Expiration
2042-04-22

AI Technical Summary

Technical Problem

During the live streaming process, the existing technology puts great pressure on CDN bandwidth, increases live broadcast costs, and long data transmission links lead to delays and live jitter problems.

Method used

By including the public network service address of the live broadcast user in the pull address and delivering it to the pull user, users can directly access the live broadcast user based on the public network service address, reducing CDN bandwidth usage, shortening the streaming media content transmission link, and reducing network costs. jitter effects.

Benefits of technology

It reduces CDN bandwidth usage, reduces live broadcast costs, shortens streaming content transmission delays, and reduces live broadcast jitter problems caused by network jitter.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114827650B
    Figure CN114827650B
Patent Text Reader

Abstract

The present disclosure provides a method for transmitting, live broadcasting and pulling streaming media content, and relates to the field of computer technology, and in particular to the field of streaming media transmission technology. The implementation scheme is: receiving a pull instruction from a first user, and receiving a public network service opening instruction from a live broadcast user, wherein the pull instruction instructs the first user to pull the streaming media content of the live broadcast user, and the public network service opening instruction instructs the live broadcast user to allow the first user to access based on the public network service address of the live broadcast user; in response to the public network service opening instruction and the pull instruction, obtaining the public network service address; and issuing at least one pull stream address to the first user, so that the first user can access based on one of the at least one pull stream address to obtain the streaming media content, wherein the at least one pull stream address includes the public network service address.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, in particular to the field of streaming media transmission technology, and specifically to a method, device, electronic device, computer-readable storage medium and computer program product for transmitting, live broadcasting and pulling streaming media content. Background Art

[0002] During live streaming, the live user pushes the audio and video data of the live broadcast to the server as a stable and continuous stream to achieve push streaming; users watching the live broadcast pull the stream containing audio and video data from the server to play it, to achieve pull streaming.

[0003] During the streaming process, when the server receives a streaming instruction from a user watching the live broadcast, it distributes a streaming address to the user so that the user can pull audio and video data from the edge server.

[0004] The methods described in this section are not necessarily methods that have been previously conceived or employed. Unless otherwise indicated, it should not be assumed that any method described in this section is considered to be prior art simply because it is included in this section. Similarly, unless otherwise indicated, the issues mentioned in this section should not be considered to have been recognized in any prior art. Summary of the invention

[0005] The present disclosure provides a method, device, electronic device, computer-readable storage medium and computer program product for transmitting, broadcasting and pulling streaming media content.

[0006] According to one aspect of the present disclosure, a method for transmitting streaming media content is provided, comprising: receiving a pull instruction from a first user, and receiving an instruction from a live broadcast user to start a public network service, wherein the pull instruction instructs the first user to pull the streaming media content of the live broadcast user, and the instruction to start a public network service instructs the live broadcast user to allow the first user to access the content based on the public network service address of the live broadcast user; in response to determining that the live broadcast user has started a public network service and receiving a pull instruction from the first user, in response to the instruction to start a public network service and the pull instruction, obtaining the public network service address of the live broadcast user; and issuing at least one stream pulling address to the first user, so that the first user can access the content based on one of the at least one stream pulling address to obtain the streaming media content, wherein the at least one stream pulling address includes the public network service address.

[0007] According to another aspect of the present disclosure, a method for live broadcasting of streaming media content is also provided, including: sending an instruction to start a public network service, so that the server obtains a public network service address in response to the instruction to start a public network service and sends at least one streaming address to a first user who pulls streaming media content, the at least one streaming address including the public network service address, wherein the instruction to start a public network service indicates that the first user is allowed to access based on the public network service address.

[0008] According to another aspect of the present disclosure, a method for pulling streaming media content is also provided, including: sending a pull instruction to a server to pull streaming media content of a live broadcast user; in response to receiving at least one stream pulling address sent by the server, obtaining a first stream pulling address from the at least one stream pulling address, wherein the at least one stream pulling address includes a public network service address of the live broadcast user, and the live broadcast user can be accessed based on the public network service address; and accessing based on the first stream pulling address to obtain the streaming media content.

[0009] According to another aspect of the present disclosure, a streaming media content push device is also provided, including: a receiving unit, configured to receive a pull instruction from a first user, and to receive a public network service start instruction from a live broadcast user, wherein the pull instruction instructs the first user to pull the streaming media content of the live broadcast user, and the public network service start instruction instructs the live broadcast user to allow the first user to access based on the public network service address of the live broadcast user; an acquisition unit, configured to obtain the public network service address in response to the public network service start instruction and the pull instruction; and a distribution unit, configured to send at least one stream pulling address to the first user, so that the first user can access based on one of the at least one stream pulling address to obtain the streaming media content, wherein the at least one stream pulling address includes the public network service address.

[0010] According to another aspect of the present disclosure, a streaming media content live broadcast device is also provided, including: a starting unit, configured to send an instruction to start a public network service, so that the server obtains a public network service address in response to the instruction to start a public network service and sends at least one streaming address to a first user who pulls streaming media content, the at least one streaming address includes the public network service address, wherein the instruction to start a public network service indicates that the first user is allowed to access based on the public network service address.

[0011] According to another aspect of the present disclosure, a streaming media content pulling device is also provided, including: an instruction sending unit, configured to send a pulling instruction to a server to pull the streaming media content of a live broadcast user; an address acquisition unit, configured to obtain a first streaming address from the at least one streaming address in response to receiving at least one streaming address sent by the server, wherein the at least one streaming address includes a public network service address of the live broadcast user, and the live broadcast user can be accessed based on the public network service address; and an access unit, configured to access based on the first streaming address to obtain the streaming media content.

[0012] According to another aspect of the present disclosure, an electronic device is also provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program, and the computer program implements the above method when executed by the at least one processor.

[0013] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing a computer program is also provided, wherein the computer program implements the above method when executed by a processor.

[0014] According to another aspect of the present disclosure, a computer program product is further provided, comprising a computer program, wherein the computer program implements the above method when executed by a processor.

[0015] According to one or more embodiments of the present disclosure, by including the public network service address of the live broadcast user in at least one streaming address and sending it to the user who pulls the streaming media content of the live broadcast user, the user can access the live broadcast user based on the public network service address, and pull the streaming media content of the live broadcast user, which can reduce the CDN bandwidth and thus reduce the cost of live broadcasting. At the same time, since the streaming media content is directly transmitted from the live broadcast user to the user who pulls the streaming media content, compared with the streaming media content being transmitted from the live broadcast user to the server and then from the edge server to the user who pulls the streaming media content, the link for streaming media content transmission is shortened, the delay can be reduced, and the problem of live broadcast jitter caused by network jitter can be reduced.

[0016] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.

[0018] Figure 1 A flow chart of a method for transmitting streaming media content according to an embodiment of the present disclosure is shown;

[0019] Figure 2 A flowchart showing a process of obtaining the public network service address of the live broadcast user in the streaming media content transmission method according to an embodiment of the present disclosure;

[0020] Figure 3 A flowchart showing a process of sending at least one streaming address to a first user in a streaming media content transmission method according to an embodiment of the present disclosure is shown;

[0021] Figure 4 A flowchart showing a process of obtaining a first detection result in a streaming media content transmission method according to an embodiment of the present disclosure;

[0022] Figure 5 A flow chart showing a process of obtaining a first detection result based on distance in a streaming media content transmission method according to an embodiment of the present disclosure;

[0023] Figure 6 A flow chart of a method for live streaming content broadcast according to an embodiment of the present disclosure is shown;

[0024] Figure 7 A flow chart of a method for live streaming content broadcast according to an embodiment of the present disclosure is shown;

[0025] Figure 8 A flow chart of a method for live streaming content broadcast according to an embodiment of the present disclosure is shown;

[0026] Fig. 9 A flow chart of a method for pulling streaming media content according to an embodiment of the present disclosure is shown;

[0027] Fig.10 A schematic diagram showing a data interaction process between a server, a live broadcast user, and a user pulling streaming media in a streaming media content transmission, live broadcast, and pulling method according to an embodiment of the present disclosure;

[0028] Fig.11 A schematic block diagram of a streaming media content transmission device according to an embodiment of the present disclosure is shown;

[0029] Fig.12A schematic block diagram of a streaming media content live broadcast device according to an embodiment of the present disclosure is shown;

[0030] Fig.13 A schematic block diagram of a streaming media content pulling device according to an embodiment of the present disclosure is shown; and

[0031] Fig.14 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0032] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0033] In the present disclosure, unless otherwise specified, the use of the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, timing relationship, or importance relationship of these elements, and such terms are only used to distinguish one element from another element. In some examples, the first element and the second element may refer to the same instance of the element, and in some cases, based on the description of the context, they may also refer to different instances.

[0034] The terms used in the description of various examples in this disclosure are only for the purpose of describing specific examples and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element can be one or more. In addition, the term "and / or" used in this disclosure covers any one of the listed items and all possible combinations.

[0035] In the related art, live broadcast users push streaming media content during the live broadcast to the server. When users watching the live broadcast pull the streaming media content of the live broadcast users, the server sends the CDN (Content Distribution Network) address of the edge server with the streaming media content to the user, allowing the user to access the edge server based on the CDN address and then pull the streaming media content. Since the streaming media content is pulled from the same edge server for multiple users, the CDN bandwidth pressure is relatively large, which increases the cost of live broadcast. At the same time, the aforementioned live broadcast users push the streaming media content to the server. In the process of users pulling the streaming media content from the edge server corresponding to the CDN address sent by the server, the process is complicated and cumbersome, and the data transmission link is long, which increases the possibility of delays in the data transmission process and live broadcast jitter due to network jitter. Increasing the CND bandwidth will increase the cost of live broadcast.

[0036] To this end, the present disclosure provides a streaming media content transmission method and device, a streaming media content live broadcast method and device, and a streaming media content pulling method and device.

[0037] The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0038] See also Figure 1 , a streaming media content transmission method according to an embodiment of the present invention is schematically described. Figure 1 As shown, the streaming media content transmission method 100 includes:

[0039] Step S110: receiving a pull instruction from the first user, and receiving a public network service start instruction from the live broadcast user, wherein the pull instruction instructs the first user to pull the streaming media content of the live broadcast user, and the public network service start instruction instructs the live broadcast user to allow the first user to access based on the public network service address of the live broadcast user;

[0040] Step S120: In response to the start public network service instruction and the pull instruction, obtain the public network service address;

[0041] Step S130: issuing at least one streaming address to the first user, so that the first user can access the streaming media content based on one of the at least one streaming address, wherein the at least one streaming address includes the public network service address.

[0042] By including the public network service address of the live broadcast user in at least one streaming address and sending it to the user who pulls the streaming media content of the live broadcast user, the user can access the live broadcast user based on the public network service address, and pull the streaming media content of the live broadcast user, which can reduce the CDN bandwidth and thus reduce the cost of live broadcasting. At the same time, since the streaming media content is directly transmitted from the live broadcast user to the user who pulls the streaming media content, compared with the streaming media content being transmitted from the live broadcast user to the server and then from the edge server to the user who pulls the streaming media content, the link for streaming media content transmission is shortened, the delay can be reduced, and the problem of live broadcast jitter caused by network jitter can be reduced.

[0043] According to the embodiments of the present disclosure, live broadcast users who have enabled public network services can be scheduled as special edge servers (different from edge servers based on CDN addresses) for users who pull streaming media content of the live broadcast users to pull streaming media content from them, thereby sharing the bandwidth pressure of edge servers based on CDN addresses, thereby reducing CND bandwidth and reducing live broadcast costs.

[0044] In some embodiments, the streaming media content transmission method according to the present disclosure is applied to a server.

[0045] In some embodiments, the live broadcast user is a client that pushes the live broadcast stream, and the client may be, for example, a live broadcast device such as a mobile phone or a tablet computer. In some embodiments, the live broadcast stream may include, for example, streaming media content of at least one of a video stream and an audio stream, which is not limited here.

[0046] In some embodiments, in response to receiving an instruction to start a public network service from a live broadcast user, it is determined that the live broadcast user starts a public network service. In one example, the instruction to start a public network service is automatically sent by the live broadcast user when starting a public network service.

[0047] In some embodiments, in response to determining that the live broadcast user has registered registration information for enabling public network services in a registration center, the registration information is used as an instruction for enabling public network services of the live broadcast user, thereby determining that the live broadcast user enables public network services.

[0048] In some embodiments, the first user is any user who watches the live broadcast of the live broadcast user.

[0049] In some embodiments, when the first user accesses based on the live broadcast address of the live broadcast user, a pull instruction is sent.

[0050] It should be noted that, according to the terms such as "open public network service instruction" and "pull instruction" in the present disclosure, the instruction can be any form of data and is not limited here.

[0051] In some embodiments, obtaining the public network service address of the live broadcast user includes: acquiring the public network service address from the live broadcast user, wherein the public network service address is obtained by the live broadcast user through port mapping based on the public network address and port of the live broadcast user.

[0052] For example, for a live broadcast user in a local area network, by mapping the live broadcast user's port in the local area network to the port of its public network address, users who access the port based on the public network address can access the live broadcast user's port in the local area network.

[0053] In some embodiments, Figure 2 As shown, obtaining the public network service address includes:

[0054] Step S210: obtaining a first address of the first user corresponding to the pull instruction, where the first address indicates a public network address and port of the first user;

[0055] Step S220: sending a first instruction including the first address to the live broadcast user, so that the live broadcast user sends first data in response to receiving the first instruction, and accesses the first user based on the first address;

[0056] Step S230: in response to the live broadcast user accessing the first user, obtaining a second address of the live broadcast user corresponding to the first data, wherein the second address indicates a public network address and port of the live broadcast user; and

[0057] Step S240: Determine the second address as the public network service address.

[0058] According to some embodiments of the present disclosure, if the live broadcast user does not have a public network service address obtained by port mapping based on the public network address and port of the live broadcast user, the server obtains the second address of the live broadcast user for exchanging data with the outside world through a "hole punching" method, and determines the second address as the public network service address of the live broadcast user, thereby achieving the acquisition of the public network service address.

[0059] It should be understood that the embodiments of the present invention include obtaining the public network service address by "obtaining it by port mapping based on the public network address and port of the live broadcast user" or obtaining it by "punching a hole", which is merely exemplary. Those skilled in the art should understand that the public network service address of the live broadcast user can be obtained in any way, as long as the live broadcast user can be accessed based on the public network service address.

[0060] In some embodiments, Figure 3 As shown, sending at least one streaming address to the first user includes:

[0061] Step S310: obtaining a first detection result, where the first detection result indicates whether to send the public network service address to the first user; and

[0062] Step S320: In response to determining that the first detection result indicates that the public network service address is to be sent to the first user, the at least one stream pulling address is sent to the first user.

[0063] Before sending at least one streaming address to the first user who pulls the streaming media content of the live broadcast user, it is first determined whether to send the public network service address of the live broadcast user to the first user, so as to avoid sending the public network service address to an unqualified user, causing the user to pull the streaming media content based on the public network service address, thereby affecting the user's streaming process. At the same time, it is also avoided that the unqualified user pulls the streaming media content from the live broadcast user based on the public network service address, causing pressure on the live broadcast user and affecting the live broadcast user's streaming process.

[0064] In some embodiments, Figure 4 As shown, obtaining the first detection result includes:

[0065] Step S410: obtaining the positions of the live broadcast user and the first user;

[0066] Step S420: obtaining the distance between the live broadcast user and the first user based on the position of the live broadcast user and the position of the first user; and

[0067] Step S430: Based on the distance, obtain the first detection result.

[0068] When the user pulling the streaming content is far away from the live broadcast user (for example, the distance between the user pulling the streaming content and the user's live broadcast is greater than the distance between the user and the edge server based on the CDN address), if the user pulls the streaming content from the live broadcast user based on the public network service address, the streaming content will require more transmission links during the transmission process, which may increase the delay and may cause live broadcast jitter problems due to network jitter.

[0069] In an embodiment of the present disclosure, the distance between the live broadcast user and the first user is obtained based on the location of the live broadcast user and the location of the first user, and the first detection result is obtained based on the distance. This avoids sending the public network service address to a user far away from the live broadcast user, and reduces the probability of delay and live broadcast jitter during data transmission.

[0070] In some embodiments, obtaining the first detection result based on the distance includes: in response to the distance being greater than a distance threshold, obtaining the first detection result, the first detection result indicating that the public network service address is not sent to the first user.

[0071] For example, for a live broadcast user in Nanjing, when the user pulling streaming media content is also in Nanjing and the distance between the two is no more than 2km, a first detection result is obtained, which indicates that the public network service address of the live broadcast user can be sent to the user pulling streaming media content.

[0072] In some embodiments, Figure 5 As shown, based on the distance, obtaining a first detection result includes:

[0073] Step S510: obtaining a current user set of the live broadcast user, each user in the current user set obtaining the streaming media content by accessing the live broadcast user based on the public network service address; and

[0074] Step S520: In response to determining that the user data in the current user set is not greater than the quantity threshold and the distance is not greater than the distance threshold, obtaining the first detection result, the first detection result indicating that the public network service address is sent to the first user.

[0075] When a user who pulls streaming media content accesses a live broadcast user based on a public network service address, the live broadcast user uses its downstream bandwidth to transmit streaming media content to the user, and uses its device processing capabilities to process the data during transmission. Since the device processing and bandwidth capabilities of the live broadcast user are limited, when there are too many users accessing the live broadcast user based on a public network service address, it will put pressure on the device processing capabilities and downstream bandwidth of the live broadcast user. When the device processing capabilities of the live broadcast user reach their limit, it will affect the live broadcast user's streaming process. When the downstream bandwidth of the live broadcast user reaches its limit, it will affect the streaming process of users accessing based on the public network service address.

[0076] According to an embodiment of the present disclosure, when obtaining the first detection result based on the distance, the first detection result is obtained based on the number of users who have accessed the service based on the public network address, thereby avoiding too many users pulling streaming media content from the live broadcast user based on the public network service address, thereby causing pressure on the live broadcast user, affecting the live broadcast user's streaming push process and the user's streaming pull process who accesses the service based on the public network address to pull streaming media content.

[0077] In some embodiments, the current user set is determined by obtaining information sent by each user in the current user set during the process of the user pulling streaming media content.

[0078] For example, after a user who pulls streaming media content accesses a live broadcast user based on a public network service address, in the process of pulling streaming media content from the live broadcast user, the user sends instructions to the server every preset time period, so that the server determines, based on the instructions, that the user pulls streaming media content from the live broadcast user, thereby determining that the user is one of the current user set.

[0079] In some embodiments, the streaming media content transmission method according to the present disclosure further includes: in response to determining that the first user obtains the streaming media content by accessing the live broadcast user based on the public network service address, adding the first user to the current user set.

[0080] After determining that the first user obtains the streaming media content by accessing the live broadcast user based on the public network service address, the first user is added to the current user set, thereby updating the current user set. In the subsequent process of sending at least one streaming address to a second user who pulls streaming media content, it is determined based on the current user set whether to send the public network service address to the second user, thereby further avoiding too many users pulling streaming media content from the live broadcast user based on the public network service address, causing pressure on the live broadcast user, affecting the live broadcast user's streaming push process and the streaming pull process of users who access based on the public network address to pull streaming media content.

[0081] In some embodiments, the at least one streaming address further includes a content distribution network address. Based on the content distribution network, the first user can access an edge server having the streaming media content, thereby obtaining the streaming media content.

[0082] In the process of sending at least one streaming address, in addition to sending the public network service address, the content distribution network address is also sent, so that in the process of pulling streaming media content, when the first user cannot pull streaming media content based on the public network service address, it is automatically transferred to obtaining streaming media content based on the content distribution network address, ensuring that the first user's streaming process is smooth and stable.

[0083] In some embodiments, the streaming media content transmission method further includes:

[0084] Receiving a public network service disabling instruction from the live broadcast user; wherein the public network service disabling instruction instructs the live broadcast user not to allow the second user to access based on the public network service address;

[0085] In response to the instruction to disable the public network service, a content distribution network address is sent to a second user who pulls the streaming content, so that the second user can access the edge server with the streaming content based on the content distribution network address to obtain the streaming content; wherein the disabling of the public network service indicates that the live broadcast user does not allow the second user to access based on the public network service address.

[0086] When the live broadcast user's instruction to disable public network services is obtained, it is determined that the live broadcast user does not allow users who pull his streaming media content to access his public network service address. At this time, the content distribution network address of the edge server is sent to the user who pulls his streaming media content to ensure that the user's streaming process is smooth and stable.

[0087] According to another aspect of the present disclosure, a method for live broadcasting of streaming media content is also provided.

[0088] See also Figure 6 , a method for live streaming content broadcast according to an embodiment of the present invention is schematically described. Figure 6 As shown, the streaming media content live broadcast method 600 includes:

[0089] Step S610: Send an instruction to start the public network service, so that the server obtains the public network service address in response to the instruction to start the public network service and sends at least one streaming address to the first user who pulls the streaming media content, and the at least one streaming address includes the public network service address, wherein the instruction to start the public network service indicates that the first user is allowed to access based on the public network service address.

[0090] By sending a command to start a public network service, the server obtains the public network service address and includes it in at least one streaming address and sends it to the user who pulls the streaming media content, so that the user can access it based on the public network service address. Pulling the streaming media content of the live broadcast user can reduce the CDN bandwidth and thus reduce the cost of live broadcasting. At the same time, since the streaming media content is directly transmitted to the user who pulls the streaming media content, compared with the streaming media content being first transmitted to the server and then transmitted from the edge server to the user who pulls the streaming media content, the streaming media content transmission link is shortened, the delay can be reduced, and the problem of live broadcast jitter caused by network jitter can be reduced.

[0091] According to some embodiments of the present disclosure, the method for streaming media content according to the present disclosure is executed on a client.

[0092] In some embodiments, the server may be any server that executes the streaming media content transmission method according to the present disclosure.

[0093] In some embodiments, the client is any device that pushes the live stream, such as a mobile phone, a tablet computer, or other live streaming devices. In some embodiments, the live stream may include streaming media content of at least one of a video stream and an audio stream, which is not limited here.

[0094] In some embodiments, registration information for enabling public network services is registered at a registration center on the server side to send an instruction to enable public network services, wherein the registration information is the instruction to enable public network services.

[0095] In some embodiments, a public network service is enabled by sending an instruction to a server, wherein the server obtains a public network service address in response to receiving the instruction.

[0096] In some embodiments, the public network service is enabled by sending an instruction to enable the public network service, and at the same time, the server obtains the public network service address contained in the instruction.

[0097] In some embodiments, the public network service address is generated by the live broadcast user, such as Figure 7 As shown, the method for streaming media content according to the present disclosure also includes:

[0098] Step S710: performing port mapping based on the public network address and port to obtain the public network service address; and

[0099] Step S720: Send the public network service address to the server.

[0100] For example, for a live broadcast user in a local area network, by mapping the live broadcast user's port in the local area network to the port of its public network address, users who access the port based on the public network address can access the live broadcast user's port in the local area network.

[0101] In some other embodiments, the public network service address is obtained by the server through interaction with the server and the first user. For example, the method for streaming media content according to the present disclosure further includes:

[0102] In response to receiving a first instruction from the server, first data is sent to the server, and the first user is accessed based on a first address corresponding to the first instruction, wherein the first instruction corresponds to a pull instruction of the first user, the first user pulls the streaming media content by sending the pull instruction to the server, and the first data indicates the public network service address.

[0103] According to some embodiments of the present disclosure, when there is no public network service address obtained by port mapping based on the public network address and port, through interaction with the first user and the server, during the interaction process, the server obtains the address contained in the interaction data in a "hole punching" manner, and uses the address as the public network service address for the first user to pull streaming media content, thereby enabling the server to obtain the public network service address.

[0104] It should be understood that the embodiments of the present invention include obtaining the public network service address by "obtaining it by port mapping based on the public network address and port of the live broadcast user" or obtaining it by "punching a hole", which is merely exemplary. Those skilled in the art should understand that the public network service address of the live broadcast user can be obtained in any way, as long as the live broadcast user can be accessed based on the public network service address.

[0105] In some embodiments, the first user is a client that pulls and plays streaming media content. The client may be, for example, a live broadcast device such as a mobile phone or a tablet computer.

[0106] In some embodiments, Figure 8 As shown, the method for streaming media content according to the present disclosure also includes:

[0107] Step S810: obtaining the number of users in the current user set, each user in the current user set obtaining the streaming media content by accessing based on the public network address; and

[0108] Step S820: In response to the number of users being not less than a quantity threshold, sending a public network service disablement instruction, so that the server, in response to the public network service disablement instruction, sends a content distribution network address to a second user who pulls the streaming media content, thereby enabling the second user to access the edge server with the streaming media content based on the content distribution network address and obtain the streaming media content, wherein the public network service disablement instruction indicates that the second user is prohibited from accessing based on the public network service address.

[0109] When a user accesses the live broadcast user based on the public network service address to pull streaming media content, the live broadcast user uses its downstream bandwidth to transmit the streaming media content to the user, and uses its device processing capabilities to process the data in the transmission process. Since the device processing and bandwidth capabilities of the live broadcast user are limited, when there are too many users accessing the live broadcast user based on the public network service address, it will put pressure on the device processing capabilities and downstream bandwidth of the live broadcast user. When the device processing capabilities of the live broadcast user reach the limit, it will affect the live broadcast user's streaming process. When the downstream bandwidth of the live broadcast user reaches the limit, it will affect the streaming process of the user accessing based on the public network service address.

[0110] According to an embodiment of the present disclosure, statistics are collected on users who access the service based on a public network service address to pull streaming media content. When the number of users exceeds a threshold, an instruction to disable the public network service is sent, so that the server sends a content distribution network address to subsequent users who pull streaming media content based on the instruction to disable the public network service, so that subsequent users who pull streaming media content can access an edge server with the streaming media content based on the content distribution network address and obtain the streaming media content, thereby ensuring that subsequent users who pull streaming media content can pull streaming media content smoothly and avoiding too many users pulling streaming media content from live broadcast users based on the public network service address, thereby affecting the streaming process and the streaming process of users who access the service based on the public network address to pull streaming media content.

[0111] In some embodiments, the second user is any client that pulls the streaming media content after the first user.

[0112] According to another aspect of the present disclosure, a method for pulling streaming media content is also provided.

[0113] See also Fig. 9 , a method for pulling streaming media content according to an embodiment of the present disclosure is schematically described. Fig. 9 As shown, the streaming media content pulling method 900 includes:

[0114] Step S910: Sending a pull instruction to the server to pull the streaming media content of the live broadcast user;

[0115] Step S920: in response to receiving at least one stream pulling address sent by the server, obtaining a first stream pulling address from the at least one stream pulling address, wherein the at least one stream pulling address includes a public network service address of the live broadcast user, and the live broadcast user can be accessed based on the public network service address; and

[0116] Step S930: Access is performed based on the first streaming address to obtain the streaming media content.

[0117] According to some embodiments of the present disclosure, the method for streaming media content according to the present disclosure is executed on a client.

[0118] In some embodiments, the client is any device that pulls streaming media content, such as a mobile phone, a tablet computer, etc. In some embodiments, the streaming media content may include at least one of a video stream and an audio stream, which is not limited here.

[0119] In some embodiments, the pull instruction is instruction data sent to the server to instruct the server to obtain streaming media content, and may include, for example, an address to which the server is allowed to push the streaming address.

[0120] In some embodiments, the server may be any server that executes the streaming media content transmission method according to the present disclosure.

[0121] In some embodiments, acquiring the first stream pulling address from the at least one stream pulling address includes: in response to the at least one stream pulling address including a public network service address, determining the public network service address as the first stream pulling address.

[0122] When at least one of the streaming addresses contains a public network service address, access based on the public network service address to pull streaming media content can reduce CDN bandwidth, thereby reducing live broadcast costs. At the same time, since streaming media content is pulled directly from live broadcast users, compared to streaming media content first transmitted from live broadcast users to servers and then transmitted from edge servers to pull, the streaming media content transmission link is shortened, latency can be reduced, and the problem of live broadcast jitter caused by network jitter can be reduced.

[0123] In some embodiments, the at least one streaming address further includes a content distribution network address, and the method further includes:

[0124] In response to determining that the number of segments of the streaming media content obtained within a preset time is less than a segment number threshold; and

[0125] Based on the content distribution network address, an edge server having the streaming media content is accessed to obtain the streaming media content.

[0126] When access is performed based on a public network service address to pull streaming media content, the number of segments of the streaming media content obtained within a preset time is less than the segment number threshold, indicating that the process of pulling streaming media content based on the public network service address is not smooth. At this time, switch to the content distribution network address and access the edge server based on the content distribution network address to obtain the streaming media content, thereby ensuring a smooth streaming process and the playback quality of the streaming media content.

[0127] In some embodiments, a streaming media content pulling method according to the present disclosure further includes: in response to obtaining the streaming media content, sending a reporting instruction to the server, wherein the reporting instruction indicates that the streaming media content is obtained by accessing the live broadcast user based on the public network service address.

[0128] By sending a reporting instruction to the server, since the reporting instruction indicates that the streaming media content is obtained by accessing the live broadcast user based on the public network service address, the server determines, based on the reporting instruction, that the client accesses the live broadcast user based on the public network service address, thereby being able to count the number of clients accessing the live broadcast user based on the public network service address. If there are too many users pulling streaming media content from the live broadcast user based on the public network service address, this may affect the streaming push process and the streaming pull process of the client accessing based on the public network address to pull streaming media content.

[0129] See also Fig.10 , the streaming media content transmission method, streaming media content live broadcast method and streaming media content pulling method according to the present disclosure are introduced exemplarily. Among them, the server 1010 implements the streaming media content transmission method according to the present disclosure by respectively interacting with the live broadcast user 1020 and the user 1030 pulling the streaming media content; the live broadcast user 1010 implements the streaming media content live broadcast method according to the present disclosure by respectively interacting with the server 1010 and the user 1030 pulling the streaming media content; and the user 1030 pulling the streaming media content implements the streaming media content pulling method according to the present disclosure by respectively interacting with the server 1010 and the live broadcast user 1020, and wherein the arrows indicate the data interaction steps and the direction of data transmission in the data interaction steps.

[0130] like Fig.10 As shown, when the live broadcast user 1020 starts the live broadcast, the streaming media content A is pushed to the server 1010. At the same time, the user 1030 who pulls the streaming media content sends a pull instruction B to the server 1010 to pull the streaming media content. When the server 1010 receives the pull instruction from the user 1030, it sends the streaming address C to the user 1030. After the server 1010 determines that the live broadcast user 1020 starts the public network service, the streaming address sent to the user 1030 includes the public network service address of the live broadcast user 1020. After receiving the streaming address sent by the server 1010, the user 1030 accesses the live broadcast user 1020 based on the public network service address in response to the public network service address included in the streaming address, so that the live broadcast user 1020 pushes the streaming media content E to the user 1030.

[0131] According to another aspect of the present disclosure, a streaming media content transmission device is also provided. Fig.11As shown, the device 1100 includes:

[0132] The receiving unit 1110 is configured to receive a pull instruction from a first user and receive an instruction to start a public network service from a live broadcast user, wherein the pull instruction instructs the first user to pull the streaming media content of the live broadcast user, and the instruction to start a public network service instructs the live broadcast user to allow the first user to access based on the public network service address of the live broadcast user;

[0133] The acquisition unit 1120 is configured to obtain the public network service address in response to the start public network service instruction and the pull instruction; and

[0134] The distribution unit 1130 is configured to send at least one streaming address to the first user, so that the first user can access the streaming media content based on one of the at least one streaming address, wherein the at least one streaming address includes the public network service address.

[0135] According to another aspect of the present disclosure, a streaming media content live broadcast device is also provided. Fig.12 As shown, the apparatus 1200 includes:

[0136] The starting unit 1210 is configured to send an instruction to start the public network service, so that the server obtains the public network service address in response to the instruction to start the public network service and sends at least one streaming address to the first user who pulls the streaming media content, and the at least one streaming address includes the public network service address, wherein the instruction to start the public network service indicates that the first user is allowed to access based on the public network service address.

[0137] According to another aspect of the present disclosure, a streaming media content pulling device is also provided. Fig.13 As shown, the apparatus 1300 includes:

[0138] The instruction sending unit 1310 is configured to send a pull instruction to the server to pull the streaming media content of the live broadcast user;

[0139] The address acquisition unit 1320 is configured to, in response to receiving at least one stream pull address sent by the server, acquire a first stream pull address from the at least one stream pull address, wherein the at least one stream pull address includes a public network service address of the live broadcast user, and the live broadcast user can be accessed based on the public network service address; and

[0140] The access unit 1330 is configured to access based on the first stream pulling address to obtain the streaming media content.

[0141] According to another aspect of the present disclosure, an electronic device is also provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program, and the computer program implements the above method when executed by the at least one processor.

[0142] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing a computer program is also provided, wherein the computer program implements the above method when executed by a processor.

[0143] According to another aspect of the present disclosure, a computer program product is further provided, comprising a computer program, wherein the computer program implements the above method when executed by a processor.

[0144] See also Fig.14 , a block diagram of an electronic device 1400 that can be used as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device can be a computer device of different types, such as a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0145] like Fig.14 As shown, the electronic device 1400 may include at least one processor 1410 , a working memory 1420 , an input unit 1440 , a display unit 1450 , a speaker 1460 , a storage unit 1470 , a communication unit 1480 , and other output units 1490 , which can communicate with each other via a system bus 1430 .

[0146] Processor 1410 may be a single processing unit or multiple processing units, all of which may include a single or multiple computing units or multiple cores. Processor 1410 may be implemented as one or more microprocessors, microcomputers, microcontrollers, digital signal processors, central processing units, state machines, logic circuits, and / or any device that manipulates signals based on operating instructions. Processor 1410 may be configured to obtain and execute computer-readable instructions stored in working memory 1420, storage unit 1470, or other computer-readable media, such as program codes of operating system 1420a, program codes of application programs 1420b, and the like.

[0147] The working memory 1420 and the storage unit 1470 are examples of computer-readable storage media for storing instructions that are executed by the processor 1410 to implement the various functions described above. The working memory 1420 may include both volatile memory and non-volatile memory (e.g., RAM, ROM, etc.). In addition, the storage unit 1470 may include a hard disk drive, a solid-state drive, a removable medium, including external and removable drives, a memory card, a flash memory, a floppy disk, an optical disk (e.g., a CD, a DVD), a storage array, a network attached storage, a storage area network, etc. The working memory 1420 and the storage unit 1470 may all be collectively referred to herein as memory or computer-readable storage media, and may be a non-transitory medium capable of storing computer-readable, processor-executable program instructions as computer program code, which may be executed by the processor 1410 as a specific machine configured to implement the operations and functions described in the examples herein.

[0148] The input unit 1440 may be any type of device capable of inputting information to the electronic device 1400, the input unit 1440 may receive input digital or character information, and generate key signal input related to user settings and / or function control of the electronic device, and may include but is not limited to a mouse, a keyboard, a touch screen, a track pad, a track ball, a joystick, a microphone and / or a remote controller. The output unit may be any type of device capable of presenting information, and may include but is not limited to a display unit 1450, a speaker 1460, and other output units 1490, other output units 1490 may include but are not limited to video / audio output terminals, vibrators and / or printers. The communication unit 1480 allows the electronic device 1400 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks, and may include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver and / or a chipset, such as a Bluetooth™ device, an 802.11 device, a WiFi device, a WiMax device, a cellular communication device and / or the like.

[0149] The application 1420b in the working register 1420 can be loaded to execute the various methods and processes described above, such as Figure 1Steps S110-S120 in . For example, in some embodiments, the streaming media content transmission, live broadcast or pulling method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 1470. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 1400 via the storage unit 1470 and / or the communication unit 1480. When the computer program is loaded and executed by the processor 1410, one or more steps of the streaming media content transmission, live broadcast or pulling method described above may be performed. Alternatively, in other embodiments, the processor 1410 may be configured to execute the method for building a live peer-to-peer network in any other appropriate manner (e.g., by means of firmware).

[0150] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0151] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0152] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0153] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0154] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0155] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

[0156] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0157] Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples, but only by the claims after authorization and their equivalent scope. Various elements in the embodiments or examples can be omitted or replaced by their equivalent elements. In addition, each step can be performed in an order different from that described in the present disclosure. Further, the various elements in the embodiments or examples can be combined in various ways. It is important that with the evolution of technology, many elements described herein can be replaced by equivalent elements that appear after the present disclosure.

Claims

1. A method for transmitting streaming media content, comprising: Receiving a pull instruction from a first user, and receiving an instruction to start a public network service from a live broadcast user, wherein the pull instruction instructs the first user to pull the streaming media content of the live broadcast user, and the instruction to start a public network service instructs the live broadcast user to allow the first user to access the content based on the public network service address of the live broadcast user; In response to the open public network service instruction and the pull instruction, obtain the public network service address; Sending at least one streaming address to the first user, so that the first user can access the streaming media content based on one of the at least one streaming address, wherein the at least one streaming address includes the public network service address; receiving a public network service disabling instruction from the live broadcast user, wherein the public network service disabling instruction instructs the live broadcast user not to allow a second user to access the public network service address; and In response to the public network service disabling instruction, a content distribution network address is sent to a second user who pulls the streaming media content, so that the second user can access the edge server having the streaming media content based on the content distribution network address to obtain the streaming media content. The sending at least one streaming address to the first user includes: Obtaining a first detection result, where the first detection result indicates whether to send the public network service address to the first user; and In response to determining that the first detection result indicates that the public network service address is sent to the first user, the at least one streaming address is sent to the first user, and Wherein, obtaining the first detection result includes: Obtaining the positions of the live broadcast user and the first user; Based on the position of the live broadcast user and the position of the first user, obtaining the distance between the live broadcast user and the first user; and Based on the distance, obtaining the first detection result, The second user pulls the streaming media content after the first user.

2. The method of claim 1, wherein: The obtaining a first detection result based on the distance includes: Obtaining a current user set of the live broadcast user, each user in the current user set obtaining the streaming media content by accessing the live broadcast user based on the public network service address; and In response to determining that the user data in the current user set is not greater than the quantity threshold and the distance is not greater than the distance threshold, the first detection result is obtained, and the first detection result indicates that the public network service address is sent to the first user.

3. The method of claim 2, further comprising: In response to determining that the first user obtains the streaming media content by accessing the live broadcast user based on the public network service address, the first user is added to the current user set.

4. The method according to any one of claims 1 to 3, wherein: The public network service address is obtained by performing port mapping based on the public network address and port of the live broadcast user.

5. The method according to any one of claims 1 to 3, wherein: The obtaining of the public network service address comprises: Obtaining a first address of the first user corresponding to the pull instruction, where the first address indicates a public network address and port of the first user; Sending a first instruction including the first address to the live broadcast user, so that the live broadcast user sends first data in response to receiving the first instruction, and accesses the first user based on the first address; In response to the live broadcast user accessing the first user, acquiring a second address of the live broadcast user corresponding to the first data, the second address indicating a public network address and port of the live broadcast user; and The second address is determined as the public network service address.

6. The method according to any one of claims 1 to 3, wherein: The at least one streaming address also includes a content distribution network address. Based on the content distribution network address, the first user can access an edge server having the streaming media content, thereby obtaining the streaming media content.

7. A method for live streaming content, comprising: Obtaining a first detection result, issuing a public network service address to a first user based on the first detection result, and sending an instruction to enable public network service, so that the server obtains the public network service address in response to the instruction to enable public network service and issues at least one streaming address to the first user who pulls streaming media content, wherein the at least one streaming address includes the public network service address, wherein the instruction to enable public network service indicates that the first user is allowed to access based on the public network service address; and Counting users who access the streaming media content based on the public network service address, and when the number of users exceeds a number threshold, sending a public network service disabling instruction, so that the server responds to the public network service disabling instruction and sends a content distribution network address to a second user who pulls the streaming media content, so that the second user can access the edge server with the streaming media content based on the content distribution network address and obtain the streaming media content, wherein the public network service disabling instruction indicates that the second user is prohibited from accessing based on the public network service address, Wherein, obtaining the first detection result includes: Obtaining the positions of the live broadcast user and the first user; Based on the position of the live broadcast user and the position of the first user, obtaining the distance between the live broadcast user and the first user; and Based on the distance, obtaining the first detection result, The second user pulls the streaming media content after the first user.

8. The method of claim 7, further comprising: Perform port mapping based on the public network address and port to obtain the public network service address; as well as Send the public network service address to the server.

9. The method according to claim 7 or 8, further comprising: In response to receiving a first instruction from the server, first data is sent to the server, and the first user is accessed based on a first address corresponding to the first instruction, wherein the first instruction corresponds to a pull instruction of the first user, the first user pulls the streaming media content by sending the pull instruction to the server, and the first data indicates the public network service address.

10. The method according to any one of claims 7 to 8, further comprising: Acquire the number of users in the current user set, each user in the current user set accesses the streaming media content based on the public network address; as well as In response to the number of users being not less than a number threshold, sending the public network service disabling instruction.

11. A method for pulling streaming media content, comprising: Sending a pull instruction of the first user to the server to pull the streaming media content of the live broadcast user; In response to receiving at least one stream pulling address obtained by the server and sent based on the first detection result, obtaining a first stream pulling address from the at least one stream pulling address, wherein the at least one stream pulling address includes a public network service address of the live broadcast user, and the live broadcast user can be accessed based on the public network service address; and Accessing based on the first streaming address to obtain the streaming media content, Wherein, the at least one stream pulling address further includes a content distribution network address, and the method further includes: In response to determining that the number of segments of the streaming media content obtained within a preset time when accessing to pull the streaming media content based on the public network service address is less than a segment number threshold, accessing an edge server having the streaming media content based on the content distribution network address to obtain the streaming media content, Wherein, obtaining the first detection result includes: Obtaining the positions of the live broadcast user and the first user; Based on the position of the live broadcast user and the position of the first user, obtaining the distance between the live broadcast user and the first user; and Based on the distance, the first detection result is obtained.

12. The method of claim 11, wherein: Acquiring a first stream pulling address from the at least one stream pulling address includes: In response to the at least one stream pulling address including the public network service address, the public network service address is determined as the first stream pulling address.

13. The method according to any one of claims 11 to 12, further comprising: In response to obtaining the streaming media content, a reporting instruction is sent to the server, wherein the reporting instruction indicates that the streaming media content is obtained by accessing the live broadcast user based on the public network service address.

14. A streaming media content transmission device, comprising: A receiving unit is configured to receive a pull instruction from a first user and receive an instruction to start a public network service from a live broadcast user, wherein the pull instruction instructs the first user to pull the streaming media content of the live broadcast user, and the instruction to start a public network service instructs the live broadcast user to allow the first user to access based on the public network service address of the live broadcast user; an acquisition unit, configured to obtain the public network service address in response to the start public network service instruction and the pull instruction; and a distribution unit configured to send at least one streaming address to the first user, so that the first user can access the streaming media content based on one of the at least one streaming address, wherein the at least one streaming address includes the public network service address, The receiving unit is further configured to receive a public network service disabling instruction from the live broadcast user, wherein the public network service disabling instruction indicates that the live broadcast user does not allow a second user to access the public network service address based on the public network service address. The acquisition unit is further configured to obtain a content distribution network address in response to the instruction to disable public network services, and The distribution unit is further configured to send the content distribution network address to a second user who pulls the streaming content, so that the second user can access the edge server with the streaming content based on the content distribution network address to obtain the streaming content. The sending at least one streaming address to the first user includes: Obtaining a first detection result, where the first detection result indicates whether to send the public network service address to the first user; and In response to determining that the first detection result indicates that the public network service address is sent to the first user, the at least one streaming address is sent to the first user, and Wherein, obtaining the first detection result includes: Obtaining the positions of the live broadcast user and the first user; Based on the position of the live broadcast user and the position of the first user, obtaining the distance between the live broadcast user and the first user; and Based on the distance, obtaining the first detection result, The second user pulls the streaming media content after the first user.

15. A device for live streaming content, comprising: A starting unit is configured to obtain a first detection result, issue a public network service address to a first user based on the first detection result, and send a public network service start instruction, so that the server obtains the public network service address in response to the public network service start instruction and issues at least one streaming address to the first user who pulls streaming media content, wherein the at least one streaming address includes the public network service address, wherein the public network service start instruction indicates that the first user is allowed to access based on the public network service address, The startup unit is further configured to send a public network service disabling instruction when the number of users exceeds a number threshold, so that the server responds to the public network service disabling instruction and sends a content distribution network address to a second user who pulls the streaming media content, so that the second user can access the edge server with the streaming media content based on the content distribution network address and obtain the streaming media content, wherein the public network service disabling instruction indicates that the second user is prohibited from accessing based on the public network service address. Wherein, obtaining the first detection result includes: Obtaining the positions of the live broadcast user and the first user; Based on the position of the live broadcast user and the position of the first user, obtaining the distance between the live broadcast user and the first user; and Based on the distance, obtaining the first detection result, The second user pulls the streaming media content after the first user.

16. A streaming media content pulling device, comprising: An instruction sending unit is configured to send a pull instruction of the first user to the server to pull the streaming media content of the live broadcast user; an address selection unit configured to, in response to receiving at least one stream pulling address obtained by the server and sent based on the first detection result, obtain a first stream pulling address from the at least one stream pulling address, wherein the at least one stream pulling address includes a public network service address of the live broadcast user, the live broadcast user can be accessed based on the public network service address, and the at least one stream pulling address also includes a content distribution network address, in response to determining that the number of segments of the streaming media content obtained within a preset time when accessing to pull streaming media content based on the public network service address is less than a segment number threshold, access an edge server having the streaming media content based on the content distribution network address to obtain the streaming media content; and an access unit, configured to access based on the first stream pulling address to obtain the streaming media content, Wherein, obtaining the first detection result includes: Obtaining the positions of the live broadcast user and the first user; Based on the position of the live broadcast user and the position of the first user, obtaining the distance between the live broadcast user and the first user; and Based on the distance, the first detection result is obtained.

17. An electronic device comprising: at least one processor; as well as a memory communicatively coupled to the at least one processor; in The memory stores a computer program, which, when executed by the at least one processor, implements the method according to any one of claims 1 to 13.

18. A non-transitory computer-readable storage medium storing a computer program, wherein: The computer program implements the method according to any one of claims 1-13 when executed by a processor.