Live broadcast processing method, device, equipment and computer readable storage medium
By receiving the address reset request of the anchor terminal and updating the streaming address and streaming address, the problem of the viewer terminal being difficult to obtain the correct live content after the streaming address is leaked is solved, and the live information security is achieved.
Patent Information
- Application Number
- CN202110696582.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-23
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2041-06-23
AI Technical Summary
In live streaming, after the streaming address is leaked, it is difficult for the audience terminal to quickly obtain the correct streaming address, resulting in the wrong live streaming content being viewed, affecting the information security of the live streaming.
Provide a live broadcast processing method, including receiving an address reset request from the anchor terminal, obtaining the updated push-stream address and pull-stream address, and sending it to the anchor terminal and the audience terminal to ensure the correct push and pull of the live broadcast data stream.
In the case of leaking streaming address, quickly replace the new streaming streaming address and streaming address to ensure that the audience terminal obtains the correct live broadcast content and ensures the security of the live broadcast information.
Smart Images

Figure CN115515018B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to live broadcast technology, and in particular to a live broadcast processing method, device, equipment and computer-readable storage medium. Background Art
[0002] With the development of streaming media technology and the widespread popularity of live streaming, live streaming has gradually entered people's lives as a popular form of entertainment. Live streaming can be divided into video live streaming, audio live streaming and push streaming live streaming. Audio and video live streaming refers to the live streaming of voice and video. Compared with video live streaming, the threshold for enabling anchors for audio live streaming is lower, and audio has lower requirements for bandwidth and CDN, so the financial pressure will also be reduced. Push streaming live streaming is the process of transmitting the live video signal to the network. The particularity of push streaming live streaming is that the generation of live audio and video real-time streams is a third-party channel. The third-party channel generates the live stream through the push streaming address provided by the anchor, and the audience watches it through various pull streaming apps; the leakage of the push streaming address may cause the live content to be prohibited and not meet expectations. Summary of the invention
[0003] The embodiments of the present application provide a live broadcast processing method, device and computer-readable storage medium, which can ensure that the viewer terminal can quickly obtain the correct streaming address and watch the correct live broadcast content when the streaming address is leaked.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] The present application provides a live broadcast processing method, including:
[0006] receiving an address reset request sent by an anchor terminal, wherein the address reset request carries a live broadcast identifier, and the address reset request is triggered when the anchor terminal determines that the streaming address is leaked;
[0007] In response to the address reset request, obtaining the updated streaming address and the updated streaming address of the live broadcast identifier;
[0008] Sending an address reset response carrying the updated streaming address and the updated streaming address to the anchor terminal, so that the live streaming data stream is pushed based on the updated streaming address;
[0009] The updated stream pulling address is sent to the viewer terminal, so that the viewer terminal pulls the live data stream based on the updated stream pulling address.
[0010] The present application provides a live broadcast processing method, including:
[0011] In response to the received address reset operation, an address reset request is sent to the central control server, wherein the address reset operation is triggered when it is determined that the streaming address is leaked;
[0012] Receive the address reset response sent by the central control server, and obtain the updated streaming address and the updated streaming address carried in the address reset response;
[0013] The updated streaming address is sent to a third-party streaming device, so that after the third-party streaming device collects the live data stream, it uses the streaming address to send the live data stream to the audio and video server.
[0014] The present application provides a live broadcast processing device, including:
[0015] A first receiving module is used to receive an address reset request sent by an anchor terminal, wherein the address reset request carries a live broadcast identifier and is triggered when the anchor terminal determines that the streaming address is leaked;
[0016] A first acquisition module, configured to obtain, in response to the address reset request, an updated streaming address and an updated streaming address of the live broadcast identifier;
[0017] A first sending module, configured to send an address reset response carrying the updated streaming push address and the updated streaming pull address to the anchor terminal, so that the live broadcast data stream is pushed based on the updated streaming push address;
[0018] The second sending module is used to send the updated stream pulling address to the viewer terminal, so that the viewer terminal pulls the live data stream based on the updated stream pulling address.
[0019] In some embodiments, the first sending module is further used to:
[0020] When it is detected that the streaming address corresponding to the live broadcast identifier is updated, the updated streaming address is sent to the viewer terminal corresponding to the live broadcast identifier; or
[0021] Receive a streaming address query request sent by a viewer terminal corresponding to the live broadcast identifier, wherein the streaming address query request carries the live broadcast identifier and timestamp information;
[0022] When it is determined based on the timestamp information that the streaming address corresponding to the live broadcast identifier is updated, a streaming address query response carrying the updated streaming address is sent to the viewer terminal.
[0023] In some embodiments, the apparatus further comprises:
[0024] A third acquisition module is used to acquire the correspondence between the live broadcast identifier and the push stream address and the pull stream address, wherein the correspondence includes the live broadcast identifier, the current push stream address corresponding to the live broadcast identifier, and the current pull stream address corresponding to the live broadcast identifier;
[0025] An address updating module, used to update the current streaming address to the updated streaming address, and update the current streaming address to the updated streaming address, to obtain an updated corresponding relationship;
[0026] A storage module is used to store the updated corresponding relationship.
[0027] In some embodiments, the first acquisition module is further used to:
[0028] In response to the streaming address reset request, sending an address application request to the audio and video server, wherein the address application request carries the live broadcast identifier;
[0029] Receive the address application response sent by the audio and video server, and obtain the updated streaming address and the updated streaming address carried in the address application response.
[0030] In some embodiments, the apparatus further comprises:
[0031] A second receiving module is used to receive a complaint notification message sent by a viewer terminal, wherein the complaint notification message is used to complain that the live broadcast content does not meet expectations, and the complaint notification message carries the live broadcast identifier;
[0032] A fourth acquisition module, configured to acquire the number of complaints corresponding to the live broadcast identifier based on the complaint notification message;
[0033] The fourth sending module is used to send a change prompt message to the anchor terminal asking whether to change the streaming address when the number of complaints is greater than the complaint threshold.
[0034] In some embodiments, the apparatus further comprises:
[0035] A fifth acquisition module, configured to acquire, when the number of complaints is greater than a complaint threshold, an updated streaming address and an updated streaming address of the live broadcast identifier;
[0036] The fifth sending module is used to send an address change notification message to the anchor terminal, and the address change notification message carries the updated streaming push address and the updated streaming pull address.
[0037] The present application provides a live broadcast processing device, including:
[0038] A third sending module is used to send an address reset request to the central control server in response to a received address reset operation, wherein the address reset operation is triggered when it is determined that the streaming address is leaked;
[0039] A second acquisition module is used to receive the address reset response sent by the central control server, and obtain the updated streaming address and the updated streaming address carried in the address reset response;
[0040] The fourth sending module is used to send the updated streaming address to a third-party streaming device, so that after the third-party streaming device collects the live data stream, it uses the streaming address to send the live data stream to the audio and video server.
[0041] In some embodiments, the apparatus further comprises:
[0042] A third receiving module is used to receive a change prompt message sent by the central control server, where the change prompt message is used to prompt whether to change the streaming address;
[0043] The first determining module is configured to determine that an address reset operation is received when a positive feedback operation for the change prompt message is received.
[0044] In some embodiments, the apparatus further comprises:
[0045] A fourth receiving module is used to receive an address change notification message sent by the central control server, wherein the address change notification message carries the updated streaming push address and the updated streaming pull address;
[0046] The sixth sending module is used to send the updated streaming address to a third-party streaming device, so that after collecting the live data stream, the third-party streaming device uses the streaming address to send the live data stream to the audio and video server.
[0047] In some embodiments, the apparatus further comprises:
[0048] A sixth acquisition module, used to acquire a live data stream from the audio and video server based on the updated stream pull address;
[0049] A presentation module, used for presenting a live picture based on the live data stream;
[0050] The operation triggering module is used to trigger an address reset operation when it is determined based on the live broadcast screen that the streaming address is leaked.
[0051] The present application provides a live broadcast processing device, including:
[0052] A memory for storing executable instructions;
[0053] The processor is used to implement the live broadcast processing method provided in the embodiment of the present application when executing the executable instructions stored in the memory.
[0054] An embodiment of the present application provides a computer-readable storage medium storing executable instructions for causing a processor to execute and implement the live broadcast processing method provided in the embodiment of the present application.
[0055] The embodiments of the present application have the following beneficial effects:
[0056] When receiving an address reset request triggered by the anchor terminal determining that the push stream address has been leaked, the live broadcast identifier carried in the address reset request is obtained, and in response to the address reset request, the updated push stream address and the updated pull stream address corresponding to the live broadcast identifier are obtained, and then the address reset response carrying the updated push stream address and the updated pull stream address is sent to the anchor terminal, so that the live broadcast data stream is pushed based on the updated push stream address, and the updated pull stream address is also sent to the audience terminal, so that the audience terminal pulls the live broadcast data stream based on the updated pull stream address. In this way, the push stream address can be replaced during the live broadcast process. When the push stream address is leaked, the new push stream address and pull stream address are replaced, so that the audience terminal can use the updated pull stream address to obtain the correct live broadcast content, thereby ensuring the information security of the live broadcast. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 is a schematic diagram of the network architecture of the live broadcast processing system provided in an embodiment of the present application;
[0058] Figure 2 It is a structural diagram of the central control server provided in an embodiment of the present application;
[0059] Figure 3 This is a schematic diagram of an implementation flow of the live broadcast processing method provided in an embodiment of the present application;
[0060] Figure 4 A schematic diagram of another implementation flow of the live broadcast processing method provided in an embodiment of the present application;
[0061] Figure 5 A schematic diagram of another implementation flow of the live broadcast processing method provided in the embodiment of the present application;
[0062] Fig. 6A A schematic diagram of an interface for completing the creation of a live event broadcast provided in an embodiment of the present application;
[0063] Figure 6B A schematic diagram of an activity live broadcast details interface provided in an embodiment of the present application;
[0064] Figure 6CA schematic diagram of a streaming address viewing interface provided in an embodiment of the present application;
[0065] Fig.6D A schematic diagram of a session message for sharing a live broadcast provided in an embodiment of the present application;
[0066] Figure 7 Another schematic diagram of the network architecture of the live streaming system provided in the embodiment of the present application;
[0067] Figure 8 A schematic diagram of the implementation process of resetting (changing) the streaming address of the anchor terminal provided in the embodiment of the present application;
[0068] Fig. 9 A schematic diagram of the correspondence between living_id and push-pull stream addresses provided in an embodiment of the present application;
[0069] Fig.10 A schematic diagram of the implementation process of viewing live broadcasts by a viewer terminal provided in an embodiment of the present application;
[0070] Fig.11 A schematic diagram of the implementation process of the embodiment of the present application for the audience terminal to obtain the streaming address during the live broadcast. DETAILED DESCRIPTION
[0071] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0072] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0073] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0074] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0075] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.
[0076] 1) Anchor, or anchor user, refers to a user who performs and shares his / her performance in a live broadcast service.
[0077] 2) Live audience: the audience of the host user's performance in the live broadcast business.
[0078] 3) Live data stream: The video and audio collected by the anchor user are encoded into a code stream suitable for transmission in the network, which supports instant decoding and playback by the receiving end without having to wait for receiving all the data.
[0079] 4) Live broadcast room, corresponding to the anchor user, is an application in the live broadcast platform for the anchor user to publish different live broadcast services.
[0080] 5) Live broadcast service, which refers to the video and / or audio content performed by the host user in the live broadcast room. According to the business rules of the live broadcast platform, the live broadcast service is subject to restrictions in terms of time length, capacity, etc.
[0081] 6) Streaming: refers to the process of transmitting the packaged content in the acquisition stage to the server. It is the process of transmitting the audio and video signals on site to the network.
[0082] 7) Live streaming: The host uses a third-party streaming tool, such as a hardware encoder or OBS streaming software, and uploads content using the Real Time Messaging Protocol (RTMP) as the live source for live streaming.
[0083] 8) Streaming address: The uniform locator (URL, Uniform Resource Locator) used for streaming.
[0084] 9) Streaming address: The URL used for streaming.
[0085] The embodiments of the present application provide a live broadcast processing method, apparatus, device and computer-readable storage medium, which can ensure the accuracy of the live broadcast content when the streaming address is leaked. The exemplary application of the live broadcast processing device provided by the embodiments of the present application is described below. The live broadcast processing device provided by the embodiments of the present application can be implemented as various types of user terminals such as laptop computers, tablet computers, desktop computers, set-top boxes, mobile devices (for example, mobile phones, portable music players, personal digital assistants, dedicated messaging devices, portable gaming devices), and can also be implemented as servers.
[0086] See also Figure 1 , Figure 1A schematic diagram of the network architecture of the live broadcast processing system 100 provided in the embodiment of the present application is shown in FIG. Figure 1 As shown, the live broadcast processing system 100 includes an anchor terminal 200, an audience terminal 300, a central control server 400, an audio and video server 500, and a third-party streaming device 600. When implemented, the anchor terminal 200 and the central control server 400, the anchor terminal 200 and the audio and video server 500, the audience terminal 300 and the central control server 400, the audience terminal 300 and the audio and video server 500, the audio and video server 500 and the central control server 400, the third-party streaming device 600 and the audio and video server 500 communicate with each other through a network ( Figure 1 A communication connection is established (not shown), and the network can be a wide area network or a local area network, or a combination of the two.
[0087] The anchor terminal 200 can make an appointment for live streaming through a live streaming app or an instant messaging app, a shopping app, etc., and after completing the appointment for live streaming, the central control server will assign a live streaming identifier and a streaming address and a streaming pull address corresponding to the live streaming identifier to the live streaming. Then the anchor terminal 200 will notify the third-party streaming device 600 of the streaming address, so that when the live streaming starts, the third-party streaming device 600 will collect the audio and video data and encode it to obtain the audio and video data stream, and then push the audio and video data stream to the audio and video server 500 through the streaming address. The anchor terminal 200 can share the live streaming card with other users through session messages, and the anchor terminal 200 and the audience terminal 300 will use the streaming pull address to pull the live streaming data stream from the audio and video server 500 to watch the live streaming.
[0088] When the anchor terminal 200 determines that the streaming address has been leaked, it can notify the central control server 400 to obtain a new streaming address, and send the new streaming address to the third-party streaming device 600. After that, the third-party streaming device 600 transmits the live data stream to the audio and video server 500 through the new streaming address. The audience terminal uses the new streaming address to obtain the live data stream, thereby ensuring that in the event of a streaming address leak, the audience terminal can still obtain the correct live content.
[0089] In some embodiments, the central control server 400 and the audio and video server 500 can be two independent servers or the same server. It can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal 400 can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited to this. The terminal and the server can be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present application.
[0090] See also Figure 2 , Figure 2 is a structural diagram of a central control server 400 provided in an embodiment of the present application, Figure 2 The central control server 400 shown includes: at least one processor 410, a memory 440, and at least one network interface 420. The various components in the central control server 400 are coupled together through a bus system 430. It can be understood that the bus system 430 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 430 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 2 Various buses are labeled as bus system 430 .
[0091] Processor 410 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0092] The memory 440 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard drives, optical drives, etc. The memory 440 may optionally include one or more storage devices that are physically remote from the processor 410.
[0093] The memory 440 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 440 described in the embodiments of the present application is intended to include any suitable type of memory.
[0094] In some embodiments, memory 440 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.
[0095] Operating system 441, including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;
[0096] A network communication module 442, for reaching other computing devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 include: Bluetooth, Wireless Compatibility Authentication (WiFi), and Universal Serial Bus (USB);
[0097] In some embodiments, the device provided in the embodiments of the present application can be implemented in software. Figure 2 A live broadcast processing device 443 stored in a memory 440 is shown, which may be software in the form of a program or plug-in, including the following software modules: a first receiving module 4431, a first acquiring module 4432, a first sending module 4433, and a second sending module 4434. These modules are logical, and therefore may be arbitrarily combined or further split according to the functions implemented.
[0098] The functions of each module will be described below.
[0099] In other embodiments, the device provided in the embodiments of the present application can be implemented in hardware. As an example, the device provided in the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the live broadcast processing method provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs) or other electronic components.
[0100] The live broadcast processing method provided in the embodiment of the present application will be explained in combination with the exemplary application and implementation of the central control server provided in the embodiment of the present application.
[0101] The present application provides a live broadcast processing method, which is applied to Figure 1 The central control server shown in the figure, Figure 3 A schematic diagram of an implementation flow of the live broadcast processing method provided in the embodiment of the present application is shown below. Figure 3 The steps of the live broadcast processing method provided in the embodiment of the present application are described.
[0102] Step S101, receiving an address reset request sent by an anchor terminal.
[0103] Among them, the address reset request carries a live broadcast identifier, which can uniquely identify this live broadcast. The address reset request is triggered when the anchor terminal determines that the push stream address is leaked. In actual implementation, after the anchor terminal initiates a push stream live broadcast, the push stream address returned by the central control server will be sent to the third-party push stream device, so that after the third-party push stream device collects the audio and video data, it will encode the audio and video data to obtain the live data stream, and push it to the audio and video server through the push stream address. The audience terminal pulls the live data stream from the audio and video server through the pull stream address for live viewing. The anchor terminal can also pull the live data stream from the audio and video server through the pull stream address for live viewing. When the anchor terminal is watching the live broadcast, if it is found that the live content is incorrect, it means that the push stream address has been leaked at this time. The anchor terminal will trigger the address reset operation, and send an address reset request to the central control server in response to the address reset operation.
[0104] Step S102, in response to the address reset request, obtaining the updated streaming address and the updated streaming address of the live broadcast identifier.
[0105] In actual application, if the central control server has the address allocation function, then when step S102 is implemented, the central control server allocates a new push stream address and a pull stream address for the live broadcast identifier through the address allocation function, thereby obtaining the updated push stream address and the pull stream address of the live broadcast identifier. If the central control server does not have the address allocation function and the audio and video server has the address allocation function, when step S102 is implemented, the central control server sends an address acquisition request to the audio and video server, and the audio and video server allocates a new push stream address and a new pull stream address for the live broadcast identifier, and returns the new push stream address and the new pull stream address to the central control server, at which time the central control server also obtains the updated push stream address and the updated pull stream address of the live broadcast identifier.
[0106] Step S103: Send an address reset response carrying the updated streaming address and the updated streaming address to the anchor terminal, so that the live streaming data stream is pushed based on the updated streaming address.
[0107] In this step, the central control server sends the updated streaming address and the updated streaming address to the anchor terminal, thereby realizing the ability to change the streaming address, and the anchor terminal will send the updated streaming address to the third-party streaming device, so that the third-party streaming device can upload the live data stream based on the updated streaming address.
[0108] In some embodiments, the anchor terminal can also use the updated pull stream address to obtain the live data stream from the audio and video server to determine whether the live content is correct after the push stream address is changed.
[0109] Step S104: sending the updated stream pulling address to the viewer terminal, so that the viewer terminal pulls the live data stream based on the updated stream pulling address.
[0110] During implementation, the central control server can actively send the updated streaming address to the viewer terminal after obtaining it, or it can carry the updated streaming address in the address query response and send it to the viewer terminal when receiving the address query request from the viewer terminal. In this way, when the streaming address changes, the viewer terminal can automatically adjust to use the updated streaming address to obtain the live data stream, thereby ensuring that the viewer terminal obtains the correct live content.
[0111] In the live broadcast processing method provided in the embodiment of the present application, when an address reset request is received which is triggered by the anchor terminal determining that the push stream address has been leaked, the live broadcast identifier carried in the address reset request is obtained, and in response to the address reset request, the updated push stream address and the updated pull stream address corresponding to the live broadcast identifier are obtained, and then the address reset response carrying the updated push stream address and the updated pull stream address is sent to the anchor terminal, so that the live broadcast data stream is pushed based on the updated push stream address, and the updated pull stream address is also sent to the audience terminal, so that the audience terminal pulls the live broadcast data stream based on the updated pull stream address. In this way, the push stream address can be replaced during the live broadcast process. When the push stream address is leaked, the new push stream address and pull stream address are replaced, so that the audience terminal can use the updated pull stream address to obtain the correct live broadcast content, thereby ensuring the information security of the live broadcast.
[0112] In some embodiments, the "sending the updated streaming address to the viewer terminal" in the above step S104 can be implemented in the following two ways: active sending and passive sending:
[0113] The first implementation method: Active sending can be achieved through the following steps:
[0114] Step S1041A: when it is detected that the streaming address corresponding to the live broadcast identifier is updated, the updated streaming address is sent to the viewer terminal corresponding to the live broadcast identifier.
[0115] That is to say, when the central control server determines that the streaming address corresponding to the live broadcast identifier is updated, it actively sends the updated streaming address to the viewer terminal.
[0116] The second implementation method: passive sending, can be achieved through the following steps:
[0117] Step S1041B: receiving a streaming address query request sent by a viewer terminal corresponding to the live broadcast identifier.
[0118] Here, the streaming address query request carries the live broadcast identifier and timestamp information. The timestamp information may be the acquisition time of the streaming address currently used by the viewer terminal. In some embodiments, the timestamp information may also be the time when the viewer terminal sends the streaming address query request.
[0119] The stream pull address query request corresponds to the heartbeat request in other embodiments.
[0120] Step S1042B: when it is determined based on the timestamp information that the streaming address corresponding to the live broadcast identifier is updated, a streaming address query response carrying the updated streaming address is sent to the viewer terminal.
[0121] Before step S1042B, the central control server determines whether the streaming address is updated based on the timestamp information. During implementation, it can be determined that after the timestamp information, when the updated streaming address is obtained, it is determined that the streaming address corresponding to the live broadcast identifier is updated. At this time, step S1042B is entered to send a streaming address query response carrying the updated streaming address to the audience terminal.
[0122] In this implementation, the central control server determines whether the streaming address is updated, and when it is determined that the streaming address is updated, the updated streaming address is carried in the streaming address query response and returned to the viewer terminal. If the central control server determines that the streaming address is not updated, the streaming address query response does not carry the streaming address. Therefore, after the viewer terminal receives the streaming address query response, if it carries the streaming address, it uses the streaming address to obtain the live data stream.
[0123] In some embodiments, when the central control server receives a streaming address query request, it can obtain the streaming address corresponding to the currently stored live broadcast identifier, and return the streaming address to the viewer terminal. The viewer terminal determines whether the streaming address has changed. When it is determined that the streaming address has changed, the live broadcast data stream is obtained using the received streaming address.
[0124] In some embodiments, the following steps may be further performed after step S102:
[0125] Step S201, obtaining the correspondence between the live broadcast identifier and the streaming address and the streaming address.
[0126] The corresponding relationship includes the live broadcast identifier, the current streaming address corresponding to the live broadcast identifier, and the current streaming address corresponding to the live broadcast identifier.
[0127] Step S202: Update the current streaming address to the updated streaming address, and update the current streaming address to the updated streaming address, to obtain an updated corresponding relationship.
[0128] Step S203: storing the updated corresponding relationship.
[0129] Through the above steps S201 to S203, the central control server updates the corresponding relationship stored in itself with the updated push stream address and the updated pull stream address to ensure the accuracy of the corresponding relationship stored in itself, so that the viewer terminal can obtain the correct live content.
[0130] In some embodiments, the above step S102 "obtaining the updated streaming address and the updated streaming address after the live broadcast identifier is updated in response to the streaming address reset request" can be implemented by the following steps:
[0131] Step S1021, in response to the streaming address reset request, sending an address application request to the audio and video server.
[0132] The address application request carries the live broadcast identifier. In implementation, after obtaining the address application request, the audio server allocates a new streaming address and a streaming address for the live broadcast identifier, and carries the new streaming address and the new streaming address in the address application response and sends it to the central control server.
[0133] Step S1022: Receive the address request response sent by the audio and video server, and obtain the updated streaming address and the updated streaming address carried in the address request response.
[0134] When the central control server does not have the ability to allocate push and pull stream addresses, through the above steps S1021 to S1022, it can apply to the audio and video server for a new push stream address and a pull stream address, so as to obtain the new push stream address and a new pull stream address of the live broadcast identifier, so as to update the push stream address in time when the push stream address is leaked, to ensure that the audience terminal can watch the correct live content.
[0135] Based on the above embodiments, the present application provides a live broadcast processing method. Figure 4 Another implementation flow diagram of the live broadcast processing method provided in the embodiment of the present application is as follows: Figure 4As shown, the live broadcast processing method includes the following steps:
[0136] Step S301: The anchor terminal obtains live broadcast parameters based on the received live broadcast setting operation.
[0137] Among them, the live broadcast setting operation may include the operation of setting the live broadcast type and live broadcast time, and the live broadcast parameters may include the live broadcast type, live broadcast time, live broadcast identification, etc. The live broadcast type and live broadcast time can be obtained through the live broadcast setting operation, and the live broadcast identification can be applied to the central control server when scheduling a live broadcast or starting a live broadcast.
[0138] Step S302: When the live broadcast type is push streaming, the anchor terminal obtains the push streaming address based on the live broadcast parameters.
[0139] When the live broadcast type is push streaming live broadcast, the live broadcast parameters may also include a push streaming address. After determining the live broadcast identifier, the central control server obtains the push streaming address and returns it to the anchor terminal.
[0140] Step S303: The anchor terminal sends the streaming address to the third-party streaming device.
[0141] When implementing step S303, the anchor terminal may send the streaming address to the third-party streaming device via an instant messaging message, a short message, etc. The third-party streaming device corresponds to the third-party streaming channel in other embodiments.
[0142] Step S304: the host terminal shares the live broadcast message with the viewer terminal.
[0143] During implementation, the host terminal may send the live broadcast message to the audience terminal via an instant messaging message, or may share the live broadcast message to a social platform, and the audience terminal may obtain the live broadcast message based on the social platform.
[0144] Step S305: After the live broadcast starts, the third-party streaming device obtains the live broadcast audio and video data.
[0145] The third-party streaming device may include an image acquisition device, through which audio and video data can be acquired. The third-party streaming device may also not include an image acquisition device, and step S305 may be implemented by acquiring live audio and video data from its own storage space.
[0146] Step S306: The third-party streaming device sends the acquired live audio and video data to the audio and video server based on the streaming address.
[0147] During implementation, the third-party streaming device can encode the acquired live audio and video data to obtain a live data stream, and push the live data stream to the audio and video server through the streaming address.
[0148] Step S307: the host terminal and the viewer terminal obtain the live data stream from the audio and video server based on the stream pull address.
[0149] The audience terminal can be a live broadcast message shared by the anchor terminal to obtain the pull stream address. The anchor terminal creates a live broadcast. When the central control server allocates a live broadcast identifier, it obtains the push stream address and pull stream address corresponding to the live broadcast identifier and returns it to the anchor terminal. In the embodiment of the present application, both the anchor terminal and the audience terminal can obtain the live broadcast data stream from the audio and video server based on the pull stream address.
[0150] Step S308: When the anchor terminal determines that the streaming address is leaked based on the live broadcast data stream, the address reset operation is triggered.
[0151] After the anchor terminal obtains the live data stream through the pull stream address, it presents the live screen on its own display device. When the anchor terminal determines that the push stream address has been leaked based on the live screen, the address reset operation can be triggered. For example, this live broadcast is a concert live broadcast. When a training screen is presented during the live broadcast, it means that other devices have pushed the live data stream through the push stream address. At this time, it is determined that the push stream address has been leaked. The anchor terminal can trigger the address reset operation through the address reset control provided in the live broadcast App or the live broadcast function interface of other Apps.
[0152] Step S309: The anchor terminal sends an address reset request to the central control server in response to the address reset operation.
[0153] The address reset operation is triggered when the streaming address is determined to be leaked, and the address reset request carries a live broadcast identifier.
[0154] Step S310: The central control server obtains the updated streaming address and the updated streaming address of the live broadcast identifier in response to the address reset request.
[0155] During implementation, the central control server itself may allocate an updated streaming push address and an updated streaming pull address to the live broadcast identifier, or the central control server may request the audio and video server to allocate a new streaming push address and a new streaming pull address to the live broadcast identifier.
[0156] In step S311, the central control server sends an address reset response carrying the updated streaming address and the updated streaming address to the anchor terminal.
[0157] In some embodiments, the central control server stores the correspondence between the live broadcast identifier, the push stream address, and the pull stream address. Fig. 9 As shown, after the central control server receives the updated push stream address and the updated pull stream address, the corresponding relationship will be updated to ensure that the latest push and pull stream addresses are stored in the central control server.
[0158] Step S312: The anchor terminal receives the address reset response sent by the central control server, and obtains the updated streaming push address and the updated streaming pull address carried in the address reset response.
[0159] Step S313: The anchor terminal sends the updated streaming address to the third-party streaming device.
[0160] Step S314: After collecting the live streaming data stream, the third-party streaming device uses the updated streaming address to send the live streaming data stream to the audio and video server.
[0161] Step S315: the central control server receives a streaming address query request sent by the viewer terminal corresponding to the live broadcast identifier.
[0162] The streaming address query request carries the live broadcast identifier and timestamp information, and the streaming address query request may be sent by the viewer terminal once every certain period of time, for example, once every one minute to the central control server.
[0163] Step S316: When the central control server determines based on the timestamp information that the streaming address corresponding to the live broadcast identifier is updated, the central control server sends a streaming address query response carrying the updated streaming address to the viewer terminal.
[0164] Step S317: The viewer terminal uses the updated streaming address to obtain the live streaming data stream from the audio and video server.
[0165] It should be noted that, for the same steps or concepts as those in other embodiments, please refer to the descriptions of the same steps or concepts in other embodiments.
[0166] In the live broadcast processing method provided in the embodiment of the present application, after the anchor terminal sets the live broadcast parameters and creates a live broadcast, if it is a push stream live broadcast, it will obtain the live broadcast identifier and the push and pull stream addresses. The anchor terminal will send the push stream address to the third-party push stream device, and will share the live broadcast message carrying the pull stream address or the pull stream address that can be obtained. It can be shared by sending an instant messaging message or a social platform. After that, the audience terminal can obtain the pull stream address through the live broadcast message, and then obtain the live broadcast data stream based on the pull stream address to watch the live broadcast. Similarly, the anchor terminal can also obtain the live broadcast data stream based on the pull stream address to watch the live broadcast; when the anchor terminal sends the live screen without When it is correct, it is confirmed that the streaming address has been leaked. At this time, the anchor terminal can actively initiate an address reset operation and send an address reset request to the central control server to obtain the updated streaming address and the updated streaming pull address. The anchor terminal will send the updated streaming address to the third-party streaming device, so that the third-party streaming device can use the updated streaming address to push the live data stream. The audience terminal will periodically send a streaming pull address query request to the central control server, so that it can obtain the updated streaming pull address in time when the streaming pull address changes, and use the updated streaming pull address to obtain accurate live content, so that the audience terminal can ensure the accuracy of the live content without perception.
[0167] Based on the above embodiments, the present application further provides a live broadcast processing method, which is applied to Figure 1 The network architecture shown, Figure 5 A schematic diagram of another implementation flow of the live broadcast processing method provided in the embodiment of the present application is as follows: Figure 5 As shown, the process includes:
[0168] Step S401: The anchor terminal obtains live broadcast parameters based on the received live broadcast setting operation.
[0169] Step S402: When the live broadcast type is push streaming, the anchor terminal obtains the push streaming address based on the live broadcast parameters.
[0170] Step S403: The anchor terminal sends the streaming address to the third-party streaming device.
[0171] Step S404: the host terminal shares the live broadcast message with the viewer terminal.
[0172] Step S405: After the live broadcast starts, the third-party streaming device obtains the live broadcast audio and video data.
[0173] Step S406: The third-party streaming device sends the acquired live audio and video data to the audio and video server based on the streaming address.
[0174] Step S407: The viewer terminal obtains the live data stream from the audio and video server based on the stream pull address.
[0175] The implementation process of the above steps S401 to S407 is similar to that of steps S301 to S307 in the above embodiment. For specific implementation, please refer to steps S301 to S307.
[0176] Step S408: When the viewer terminal determines that the live broadcast content is incorrect during the live broadcast, it sends a complaint notification message to the central control server.
[0177] The complaint notification message is used to complain that the live broadcast content does not meet expectations, and the complaint notification message carries the live broadcast identifier.
[0178] Step S409: the central control server obtains the number of complaints corresponding to the live broadcast identifier based on the received complaint notification message.
[0179] After receiving the complaint notification message, the central control server obtains the live broadcast identifier carried therein, adds 1 to the number of complaints corresponding to the live broadcast identifier, and then obtains the number of complaints corresponding to the live broadcast identifier.
[0180] Step S410: When the number of complaints is greater than the complaint threshold, the central control server sends a change prompt message to the anchor terminal asking whether to change the streaming address.
[0181] The complaint threshold may be preset, such as 3 or 5, or may be determined based on the number of viewers in the current live broadcast room and a preset percentage. For example, the preset percentage may be 1%. When the number of viewers in the live broadcast room is 500, the complaint threshold is 5.
[0182] When the number of complaints is greater than the complaint threshold, it means that many viewers think that the live broadcast content does not meet their expectations. At this time, the central control server sends a change prompt message to the anchor terminal asking whether to change the streaming address.
[0183] Step S411: When the anchor terminal receives a positive feedback operation for the change prompt message, it determines that an address reset operation has been received.
[0184] After receiving the update prompt information, the anchor terminal presents the update prompt information, and may also present a confirmation control and a cancel control. When a trigger operation for the confirmation control is received, it is determined that a positive feedback operation for the change prompt message has been received. At this time, it is determined that an address change is required, that is, it is considered that an address reset operation has been received.
[0185] Step S412: the anchor terminal sends an address reset request to the central control server in response to the address reset operation.
[0186] Step S413: The central control server obtains the updated streaming address and the updated streaming address of the live broadcast identifier in response to the address reset request.
[0187] In step S414, the central control server sends an address reset response carrying the updated streaming address and the updated streaming address to the anchor terminal.
[0188] Step S415: The anchor terminal receives the address reset response sent by the central control server, and obtains the updated streaming push address and the updated streaming pull address carried in the address reset response.
[0189] Step S416: The anchor terminal sends the updated streaming address to the third-party streaming device.
[0190] Step S417: After collecting the live streaming data stream, the third-party streaming device uses the updated streaming address to send the live streaming data stream to the audio and video server.
[0191] Step S418: The central control server sends the updated streaming address to the viewer terminal corresponding to the live broadcast identifier.
[0192] In the embodiment of the present application, after determining that the streaming address is updated, the central control server sends the updated streaming address to the viewer terminal, so that the viewer terminal can use the updated streaming address to obtain the correct live data stream in time.
[0193] Step S419: The viewer terminal obtains the live data stream based on the updated stream pull address.
[0194] It should be noted that, for the same steps or concepts as those in other embodiments, please refer to the descriptions of the same steps or concepts in other embodiments.
[0195] In the live broadcast processing method provided in the embodiment of the present application, after the anchor terminal sets the live broadcast parameters and creates a live broadcast, if it is a push stream live broadcast, the live broadcast identifier and the push and pull stream addresses will be obtained. The anchor terminal will send the push stream address to the third-party push stream device, and will share the live broadcast message carrying the pull stream address or the pull stream address that can be obtained, which can be shared by sending an instant messaging message or a social platform. After that, the audience terminal can obtain the pull stream address through the live broadcast message, and then obtain the live broadcast data stream based on the pull stream address to watch the live broadcast. If the anchor terminal does not watch the live broadcast, when the audience terminal finds that the live broadcast content does not meet expectations during the live broadcast process, it can send a complaint notification message to the central control server. The central control server will notify the host of the complaint in the live broadcast room. When the number is greater than the complaint threshold, an address update prompt message is sent to the anchor terminal to prompt the anchor terminal whether to change the address. In this way, when the anchor is not watching the live broadcast, the anchor can promptly obtain the news that the push stream address has been leaked, thereby improving the security of the live broadcast system; if the anchor terminal determines to change the address, it sends an address reset request to the central control server, and after obtaining the updated push stream address and the updated pull stream address, the anchor terminal will send the updated push stream address to the third-party push stream device, so that the third-party push stream device can use the updated push stream address to push the live broadcast data stream, and the central control server will actively send the updated pull stream address to the viewer terminal, so that the viewer terminal can use the updated pull stream address in time to watch the live broadcast.
[0196] In some embodiments, when the number of complaints is greater than the complaint threshold, the above steps S410 to S415 may not be performed, but the following steps may be performed:
[0197] Step S410': the central control server obtains the updated streaming address and the updated streaming address of the live broadcast identifier.
[0198] Step S411', the central control server sends an address change notification message to the anchor terminal.
[0199] The address change notification message carries the updated streaming address and the updated streaming address.
[0200] Step S412': the anchor terminal receives the address change notification message sent by the central control server.
[0201] The address change notification message carries the updated streaming address and the updated streaming address. When the host terminal receives the address change notification message, it can simultaneously prompt the host terminal through vibration, alarm sound, etc., so that the host user can check the address change notification message in time and send the updated streaming address to the third-party streaming device in time.
[0202] After step S412', step S416 and subsequent steps may be continued to be executed.
[0203] Through the above steps S410' to S412', when the central control server determines that the number of complaints is greater than the complaint threshold, it indicates that there is a high probability that the push stream address of the live broadcast room has been leaked. At this time, the central control server can directly obtain the updated push stream address and the updated pull stream address, and notify the anchor terminal that the push and pull stream addresses have been updated, which can avoid the anchor terminal failing to check the change prompt message in time, causing a long live broadcast accident. In the case of a leak in the push stream address, the anchor terminal can directly receive the updated push stream address without any operation, thereby sending the updated push stream address to the third-party push stream device to ensure the safety of the live broadcast.
[0204] In some embodiments, after the anchor terminal obtains the updated push stream address and the updated pull stream address, the anchor terminal may further perform the following steps:
[0205] Step S501, obtaining a live data stream from the audio and video server based on the updated stream pull address.
[0206] Since the push stream address was leaked before, after the push and pull stream addresses were changed, the anchor terminal can use the updated pull stream address to obtain the live data stream from the audio and video server, thereby monitoring the live content.
[0207] Step S502: presenting a live picture based on the live data stream.
[0208] Step S503: When it is determined based on the live broadcast screen that the streaming address is leaked, an address reset operation is triggered.
[0209] When it is determined based on the live broadcast screen that the live broadcast content does not meet expectations, it is determined that a streaming address leak has occurred, thereby triggering an address reset operation, and the streaming address can be changed in time to ensure the security and correctness of the live broadcast content.
[0210] The following is an explanation of an exemplary application of the embodiments of the present application in a practical application scenario.
[0211] Based on the live broadcast processing method provided in the embodiment of the present application, the activity live broadcast details page has the ability to change the streaming address. Fig. 6A A schematic diagram of an interface for creating a live event broadcast provided in an embodiment of the present application, such as Fig. 6A As shown, the interface provides a control for viewing the streaming address 601, a control for entering the live broadcast room 602, a control for inviting members 603, and a control for sharing the live broadcast 604.
[0212] Figure 6B A schematic diagram of an activity live broadcast details interface provided in an embodiment of the present application, such as Figure 6B As shown, the interface also provides a control for viewing the streaming address 601, a control for entering the live broadcast room 602, a control for inviting members 603, and a control for sharing the live broadcast 604.
[0213] On click Fig. 6A or Figure 6B After viewing the streaming address control 601 in the Figure 6C The streaming address viewing interface shown in the figure provides a forwarding address control 621, a copy address control 622 and a reset address control 623. When the forwarding address control 621 is clicked, the address control will be copied and a forwarding object selection interface will be presented for selecting a forwarding object through the selection interface. When the copy address control 622 is clicked, the streaming address will be copied and shared with a third-party streaming channel. The third-party streaming channel uses the address to push the audio and video real-time stream to the audio and video real-time stream server. When the function entry control 623 is clicked, multiple function controls will be presented, and the multiple function controls include at least a reset address control. If a trigger operation for the reset address control is received, the anchor terminal sends a streaming address reset request to the central control server.
[0214] In the embodiment of the present application, when the anchor terminal clicks Fig. 6A or Fig.6D When the live broadcast control 604 is displayed, a sharing object selection interface will be presented. After selecting a sharing object through the sharing object selection interface, the live broadcast sharing message will be sent to the sharing object, and the following will be displayed: Fig.6D In the sharing interface shown, the sharing object can click on the live broadcast sharing message to enter the live broadcast room to watch the live broadcast.
[0215] The present application provides a live broadcast processing method, which is applied to Figure 7 The network architecture system shown, Figure 7 Another network architecture diagram of the live streaming system provided in the embodiment of the present application is as follows: Figure 7 As shown, the network architecture includes: an anchor terminal 701, an audience terminal 702, an audio and video real-time streaming server 703 and a central control server 704, wherein:
[0216] The audio and video real-time streaming server 703 and the central control server 704 synchronize the audio and video streaming status, and when the anchor terminal triggers a change in the push stream address, the central control server 703 synchronizes the push and pull stream addresses with the anchor terminal 701, so that the anchor terminal 701 notifies the third-party push stream channel to push the audio and video real-time stream to the audio and video real-time streaming server 703 through the push stream address, and uses the pull stream address to obtain live broadcast data from the audio and video real-time streaming server; the central control server 704 also synchronizes the pull stream address with the viewer terminal 702, so that the viewer terminal 702 obtains live broadcast data from the audio and video real-time streaming server through the pull stream address, thereby watching the live broadcast.
[0217] The data structures involved in the embodiments of the present application include:
[0218] 1. Live broadcast unique identifier: This identifier corresponds to a live broadcast and has nothing to do with the streaming information during the live broadcast.
[0219] The data structure is: optional uint64 living_id = 1;
[0220] 2. Audio and video real-time streaming configuration information.
[0221] The data structure is:
[0222]
[0223] Figure 8 A schematic diagram of the implementation process of resetting (changing) the streaming address of the anchor terminal provided in the embodiment of the present application, such as Figure 8 As shown, the process includes:
[0224] Step S801: The anchor terminal applies to the central control server for changing the live streaming address corresponding to the living_id.
[0225] During implementation, the anchor terminal may send a streaming address change request to the central control server, and the streaming address change request carries a live broadcast identifier (ie, living_id).
[0226] Step S802: The central control server applies to the audio and video real-time streaming server for a set of new push and pull stream addresses.
[0227] During implementation, the central control server may send a push-pull stream address acquisition request to the audio and video real-time streaming server, and the push-pull stream address acquisition request also carries a live broadcast identifier.
[0228] Step S803: The audio and video real-time streaming server returns a new push-pull stream address to the central control server.
[0229] Step S804: The central control server stores the correspondence between the live broadcast identifier and the push-pull stream address.
[0230] After the new push-pull stream address is generated, it is recorded by the central control server. During the live broadcast, the anchor and the audience can query the information at any time using the living_id. The corresponding relationship between the living_id and the push-pull stream address is as follows: Fig. 9 As shown, through Fig. 9 It can be seen that in the embodiment of the present application, the push stream address 901 and the pull stream address 902 are decoupled, that is, the push stream address and the pull stream address are independent. In a live broadcast, the push stream address and the pull stream address have no direct relationship with each other, and both correspond to the live broadcast unique identifier.
[0231] Step S805: The central control server sends the new push-pull stream address corresponding to living_id to the anchor terminal.
[0232] Step S806: The anchor terminal uses the push-pull stream address to push the audio and video stream to the audio and video real-time streaming server or pulls the stream data from the audio and video real-time streaming server for live viewing.
[0233] During implementation, after the anchor terminal obtains the streaming address, it can share the streaming address with a third-party streaming channel. The third-party streaming channel uses the address to push the audio and video real-time stream to the audio and video real-time stream server, and the anchor terminal can use the pull stream address to watch the corresponding audio and video real-time data at any time.
[0234] Fig.10 A schematic diagram of the implementation process of the audience terminal watching the live broadcast provided in the embodiment of the present application, such as Fig.10 As shown, the process includes:
[0235] Step S1001: The viewer terminal sends a request for obtaining a streaming address to the central control server.
[0236] The pull stream address acquisition request carries the living_id. In the embodiment of the present application, the viewer terminal does not hold the pull stream address before entering the live broadcast, but only the living_id, and needs to obtain the latest pull stream address in real time.
[0237] Step S1002: The central control server returns the streaming address to the viewer terminal.
[0238] In implementation, after receiving the streaming address acquisition request, the central control server acquires living_id, thereby acquiring the streaming address corresponding to the living_id, and returns the streaming address to the viewer terminal.
[0239] Step S1003: The viewer terminal uses the stream pull address to obtain live broadcast data from the audio and video real-time streaming server and watches the live broadcast.
[0240] When the audience terminal is already watching the live broadcast, Fig.11The following steps are shown to ensure that the audience terminal can watch the live broadcast through the correct streaming address:
[0241] Step S1101: The viewer terminal that is watching the live broadcast will periodically initiate a heartbeat request to the central control server.
[0242] Step S1102: The central control server returns the streaming address in the response data of each heartbeat packet.
[0243] Step S1103: The viewer terminal locally determines whether the streaming address has changed.
[0244] During implementation, the latest streaming address can be compared with the original streaming address to determine whether the streaming address has changed.
[0245] Step S1104: If the streaming address changes, the viewer terminal uses the latest streaming address to watch the live broadcast.
[0246] If the streaming address has not changed, no action will be taken and the original streaming address will continue to be used for live streaming.
[0247] In the embodiments of the present application, the push stream address of the live streaming is capable of being replaced, and the push stream and pull stream addresses are decoupled to avoid uncontrollable live streaming content caused by leakage of the push stream address, and to effectively respond to operational events when there is no better solution to technically achieve security protection for the third-party push stream address; in the event of a push stream address leak, the audience can quickly obtain the correct pull stream address and watch the correct content, while the live viewers keep the original entrance unchanged, so that the live viewers can return to normal without noticing, greatly improving the live viewing experience.
[0248] The following is a description of an exemplary structure of the live broadcast processing device 443 provided in the embodiment of the present application implemented as a software module. In some embodiments, Figure 2 As shown, the software modules stored in the live broadcast processing device 443 of the memory 440 may include:
[0249] The first receiving module 4431 is used to receive an address reset request sent by the anchor terminal, where the address reset request carries a live broadcast identifier;
[0250] The first acquisition module 4432 is used to obtain the updated streaming address and the updated streaming address of the live broadcast identifier in response to the address reset request;
[0251] The first sending module 4433 is used to send an address reset response carrying the updated streaming address and the updated streaming address to the anchor terminal, so that the live broadcast data stream is pushed based on the updated streaming address;
[0252] The second sending module 4434 is used to send the updated stream pulling address to the viewer terminal, so that the viewer terminal pulls the live data stream based on the updated stream pulling address.
[0253] In some embodiments, the first sending module is further used to:
[0254] When it is detected that the streaming address corresponding to the live broadcast identifier is updated, the updated streaming address is sent to the viewer terminal corresponding to the live broadcast identifier; or
[0255] Receive a streaming address query request sent by a viewer terminal corresponding to the live broadcast identifier, wherein the streaming address query request carries the live broadcast identifier and timestamp information;
[0256] When it is determined based on the timestamp information that the streaming address corresponding to the live broadcast identifier is updated, a streaming address query response carrying the updated streaming address is sent to the viewer terminal.
[0257] In some embodiments, the apparatus further comprises:
[0258] A third acquisition module is used to acquire the correspondence between the live broadcast identifier and the push stream address and the pull stream address, wherein the correspondence includes the live broadcast identifier, the current push stream address corresponding to the live broadcast identifier, and the current pull stream address corresponding to the live broadcast identifier;
[0259] An address updating module, used to update the current streaming address to the updated streaming address, and update the current streaming address to the updated streaming address, to obtain an updated corresponding relationship;
[0260] A storage module is used to store the updated corresponding relationship.
[0261] In some embodiments, the first acquisition module is further used to:
[0262] In response to the streaming address reset request, sending an address application request to the audio and video server, wherein the address application request carries the live broadcast identifier;
[0263] Receive the address application response sent by the audio and video server, and obtain the updated streaming address and the updated streaming address carried in the address application response.
[0264] In some embodiments, the apparatus further comprises:
[0265] A second receiving module is used to receive a complaint notification message sent by a viewer terminal, wherein the complaint notification message is used to complain that the live broadcast content does not meet expectations, and the complaint notification message carries the live broadcast identifier;
[0266] A fourth acquisition module, configured to acquire the number of complaints corresponding to the live broadcast identifier based on the complaint notification message;
[0267] The fourth sending module is used to send a change prompt message to the anchor terminal asking whether to change the streaming address when the number of complaints is greater than the complaint threshold.
[0268] In some embodiments, the apparatus further comprises:
[0269] A fifth acquisition module, configured to acquire, when the number of complaints is greater than a complaint threshold, an updated streaming address and an updated streaming address of the live broadcast identifier;
[0270] The fifth sending module is used to send an address change notification message to the anchor terminal, and the address change notification message carries the updated streaming push address and the updated streaming pull address.
[0271] It should be noted that the description of the above live broadcast processing device embodiment is similar to the above method description and has the same beneficial effects as the method embodiment. For technical details not disclosed in the live broadcast processing device embodiment of this application, technicians in this field should refer to the description of the method embodiment of this application for understanding.
[0272] The embodiment of the present application further provides a live broadcast processing device, which may be a live broadcast processing device in the memory of the anchor terminal. The live broadcast processing device may also be implemented in a software manner. The live broadcast processing device may include the following software modules:
[0273] A third sending module is used to send an address reset request to the central control server in response to a received address reset operation, wherein the address reset operation is triggered when it is determined that the streaming address is leaked;
[0274] A second acquisition module is used to receive the address reset response sent by the central control server, and obtain the updated streaming address and the updated streaming address carried in the address reset response;
[0275] The fourth sending module is used to send the updated streaming address to a third-party streaming device, so that after the third-party streaming device collects the live data stream, it uses the streaming address to send the live data stream to the audio and video server.
[0276] In some embodiments, the apparatus further comprises:
[0277] A third receiving module is used to receive a change prompt message sent by the central control server, where the change prompt message is used to prompt whether to change the streaming address;
[0278] The first determining module is configured to determine that an address reset operation is received when a positive feedback operation for the change prompt message is received.
[0279] In some embodiments, the apparatus further comprises:
[0280] A fourth receiving module is used to receive an address change notification message sent by the central control server, wherein the address change notification message carries the updated streaming push address and the updated streaming pull address;
[0281] The sixth sending module is used to send the updated streaming address to a third-party streaming device, so that after collecting the live data stream, the third-party streaming device uses the streaming address to send the live data stream to the audio and video server.
[0282] In some embodiments, the apparatus further comprises:
[0283] A sixth acquisition module, used to acquire a live data stream from the audio and video server based on the updated stream pull address;
[0284] A presentation module, used for presenting a live picture based on the live data stream;
[0285] The operation triggering module is used to trigger an address reset operation when it is determined based on the live broadcast screen that the streaming address is leaked.
[0286] It should be noted that the description of the above live broadcast processing device embodiment is similar to the above method description and has the same beneficial effects as the method embodiment. For technical details not disclosed in the live broadcast processing device embodiment of this application, technicians in this field should refer to the description of the method embodiment of this application for understanding.
[0287] The embodiment of the present application provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the live broadcast processing method described in the embodiment of the present application.
[0288] The present application embodiment provides a computer-readable storage medium storing executable instructions, wherein the executable instructions are stored. When the executable instructions are executed by a processor, the processor will be caused to execute the method provided by the present application embodiment, for example, Figure 3 , Figure 4 and Figure 5 The method shown.
[0289] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EP ROM, EEPROM, flash memory, magnetic surface storage, optical disk, or CD-ROM; or it may be various devices including one or any combination of the above memories.
[0290] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.
[0291] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).
[0292] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.
[0293] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.
Claims
1. A live broadcast processing method, applied to a central control server, characterized in that: include: receiving an address reset request sent by an anchor terminal, wherein the address reset request carries a live broadcast identifier, and the address reset request is triggered when the anchor terminal determines that a streaming address is leaked based on live broadcast content; In response to the address reset request, obtaining the updated streaming address and the updated streaming address of the live broadcast identifier; Sending an address reset response carrying the updated streaming address and the updated streaming address to the anchor terminal, so that the live streaming data stream is pushed based on the updated streaming address; When it is monitored that the streaming address corresponding to the live broadcast identifier is updated, the updated streaming address is sent to the audience terminal corresponding to the live broadcast identifier; or, a streaming address query request sent by the audience terminal corresponding to the live broadcast identifier is received, and the streaming address query request carries the live broadcast identifier and timestamp information; when it is determined based on the timestamp information that the streaming address corresponding to the live broadcast identifier is updated, a streaming address query response carrying the updated streaming address is sent to the audience terminal, so that the audience terminal pulls the live data stream based on the updated streaming address.
2. The method according to claim 1, characterized in that The method further comprises: Obtaining a correspondence between the live broadcast identifier and a streaming push address and a streaming pull address, wherein the correspondence includes the live broadcast identifier, a current streaming push address corresponding to the live broadcast identifier, and a current streaming pull address corresponding to the live broadcast identifier; The current streaming address is updated to the updated streaming address, and the current streaming address is updated to the updated streaming address, to obtain an updated corresponding relationship; The updated corresponding relationship is stored.
3. The method according to claim 1, characterized in that The step of obtaining, in response to the address reset request, an updated streaming address and an updated streaming address of the live broadcast identifier, comprises: In response to the address reset request, sending an address application request to the audio and video server, wherein the address application request carries the live broadcast identifier; Receive the address application response sent by the audio and video server, and obtain the updated streaming address and the updated streaming address carried in the address application response.
4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: receiving a complaint notification message sent by a viewer terminal, wherein the complaint notification message is used to complain that the live broadcast content does not meet expectations, and the complaint notification message carries the live broadcast identifier; Based on the complaint notification message, obtaining the number of complaints corresponding to the live broadcast identifier; When the number of complaints is greater than a complaint threshold, it is determined that the streaming address is leaked, and a change prompt message is sent to the anchor terminal asking whether to change the streaming address.
5. The method according to any one of claims 1 to 3, characterized in that The method further comprises: receiving a complaint notification message sent by a viewer terminal, wherein the complaint notification message is used to complain that the live broadcast content does not meet expectations, and the complaint notification message carries the live broadcast identifier; Based on the complaint notification message, obtaining the number of complaints corresponding to the live broadcast identifier; When the number of complaints is greater than the complaint threshold, it is determined that the streaming address is leaked, and the streaming address and the updated streaming address after the live broadcast identifier is updated are obtained; An address change notification message is sent to the anchor terminal, wherein the address change notification message carries the updated streaming push address and the updated streaming pull address.
6. A live broadcast processing method, applied to an anchor terminal, characterized in that: The method comprises: In response to the received address reset operation, an address reset request is sent to the central control server, where the address reset request is triggered when a streaming address leak is determined based on the live content; Receive the address reset response sent by the central control server, and obtain the updated streaming push address and updated streaming pull address carried in the address reset response, wherein the central control server sends the updated streaming pull address to the audience terminal corresponding to the live broadcast identifier when monitoring that the streaming pull address corresponding to the live broadcast identifier is updated; or receive the streaming pull address query request sent by the audience terminal corresponding to the live broadcast identifier, wherein the streaming pull address query request carries the live broadcast identifier and timestamp information; when it is determined based on the timestamp information that the streaming pull address corresponding to the live broadcast identifier is updated, send the streaming pull address query response carrying the updated streaming pull address to the audience terminal, so that the audience terminal pulls the live broadcast data stream based on the updated streaming pull address; The updated streaming address is sent to a third-party streaming device, so that after the third-party streaming device collects the live data stream, it uses the streaming address to send the live data stream to the audio and video server.
7. The method according to claim 6, characterized in that The method further comprises: Receive a change prompt message sent by the central control server, where the change prompt message is used to prompt whether to change the streaming address; When a positive feedback operation for the change prompt message is received, it is determined that an address reset operation is received.
8. The method according to claim 6, characterized in that The method further comprises: Receive an address change notification message sent by the central control server, wherein the address change notification message carries the updated streaming push address and the updated streaming pull address; The updated streaming address is sent to a third-party streaming device, so that after the third-party streaming device collects the live streaming data stream, it uses the updated streaming address to send the live streaming data stream to the audio and video server.
9. The method according to any one of claims 6 to 8, characterized in that: The method further comprises: Obtaining a live data stream from the audio and video server based on the updated streaming address; Presenting a live picture based on the live data stream; When it is determined based on the live broadcast screen that the streaming address is leaked, an address reset operation is triggered.
10. A live broadcast processing device, characterized in that: include: A first receiving module is used to receive an address reset request sent by an anchor terminal, wherein the address reset request carries a live broadcast identifier, and the address reset request is triggered when the anchor terminal determines that the streaming address is leaked based on the live broadcast content; A first acquisition module, configured to obtain, in response to the address reset request, an updated streaming address and an updated streaming address of the live broadcast identifier; A first sending module, configured to send an address reset response carrying the updated streaming push address and the updated streaming pull address to the anchor terminal, so that the live broadcast data stream is pushed based on the updated streaming push address; The second sending module is used to send the updated streaming address to the audience terminal corresponding to the live broadcast identifier when it is monitored that the streaming address corresponding to the live broadcast identifier is updated; or, receive a streaming address query request sent by the audience terminal corresponding to the live broadcast identifier, and the streaming address query request carries the live broadcast identifier and timestamp information; when it is determined based on the timestamp information that the streaming address corresponding to the live broadcast identifier is updated, send the query response carrying the updated streaming address to the audience terminal, so that the audience terminal pulls the live data stream based on the updated streaming address.
11. A live broadcast processing device, characterized in that: include: A third sending module is used to send an address reset request to the central control server in response to a received address reset operation, wherein the address reset operation is triggered when a streaming address leak is determined based on the live content; The second acquisition module is used to receive the address reset response sent by the central control server, and obtain the updated push stream address and updated pull stream address carried in the address reset response; wherein, when the central control server detects that the pull stream address corresponding to the live broadcast identifier is updated, the central control server sends the updated pull stream address to the audience terminal corresponding to the live broadcast identifier; or, receives the pull stream address query request sent by the audience terminal corresponding to the live broadcast identifier, and the pull stream address query request carries the live broadcast identifier and timestamp information; when it is determined based on the timestamp information that the pull stream address corresponding to the live broadcast identifier is updated, the pull stream address query response carrying the updated pull stream address is sent to the audience terminal, so that the audience terminal pulls the live data stream based on the updated pull stream address; The fourth sending module is used to send the updated streaming address to a third-party streaming device, so that after the third-party streaming device collects the live data stream, it uses the streaming address to send the live data stream to the audio and video server.
12. A live broadcast processing device, characterized in that: include: A memory for storing executable instructions; The processor is used to implement the live broadcast processing method described in any one of claims 1 to 5 or any one of claims 6 to 9 when executing the executable instructions stored in the memory.
13. A computer-readable storage medium, characterized in that: Executable instructions are stored, which are used to implement the live broadcast processing method described in any one of claims 1 to 5 or any one of claims 6 to 9 when executed by a processor.
Citation Information
Patent Citations
Multimedia stream service method and system
CN110891184A
Method and apparatus for preventing spoofing of network addresses
CN1682516A