CN112243155B - Live broadcast processing method and device - Google Patents

Live broadcast processing method and device Download PDF

Info

Publication number
CN112243155B
CN112243155B CN201910642785.5A CN201910642785A CN112243155B CN 112243155 B CN112243155 B CN 112243155B CN 201910642785 A CN201910642785 A CN 201910642785A CN 112243155 B CN112243155 B CN 112243155B
Authority
CN
China
Prior art keywords
live broadcast
room
broadcast room
live
playing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910642785.5A
Other languages
Chinese (zh)
Other versions
CN112243155A (en
Inventor
高磊
何方舟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910642785.5A priority Critical patent/CN112243155B/en
Publication of CN112243155A publication Critical patent/CN112243155A/en
Application granted granted Critical
Publication of CN112243155B publication Critical patent/CN112243155B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a live broadcast processing method, a live broadcast processing device, electronic equipment and a storage medium, wherein the live broadcast processing method comprises the following steps: when the live client is initialized, the entry of the live room is presented. And preloading a playing address and a cover page corresponding to the live broadcast room. And responding to the triggering operation of the corresponding live broadcast room, presenting a playing interface of the live broadcast room, displaying a preloaded cover corresponding to the triggered live broadcast room on the playing interface, and acquiring live broadcast stream data according to a preloaded playing address corresponding to the triggered live broadcast room. And playing the live broadcast picture on the play interface of the live broadcast room based on the live broadcast stream data to replace the displayed cover and display the functional elements of the live broadcast room on the play interface of the live broadcast room. The time consumption for loading the live broadcast picture can be shortened, and the user experience is optimized.

Description

Live broadcast processing method and device
Technical Field
The present invention relates to the field of internet, and in particular, to a live broadcast processing method and apparatus, an electronic device, and a storage medium.
Background
With the development of network technology, people's live broadcast is more and more popular with people. The related live broadcasting technology pulls the live broadcasting stream from the corresponding live broadcasting address according to the live broadcasting room selected by the user, and plays the live broadcasting picture corresponding to the live broadcasting stream based on the live broadcasting stream. The time consumption for loading the live broadcast picture by the related live broadcast technology is long, and the user experience is influenced.
Disclosure of Invention
The embodiment of the invention provides a live broadcast processing method and device, electronic equipment and a storage medium, which can shorten the time for loading a live broadcast picture and optimize the user experience.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides a live broadcast processing method, which comprises the following steps:
when a live broadcast client side is initialized, presenting an entrance of a live broadcast room;
preloading a playing address and a cover corresponding to the live broadcast room;
responding to the trigger operation corresponding to the live broadcast room, presenting a playing interface of the live broadcast room, displaying a pre-loaded cover corresponding to the triggered live broadcast room on the playing interface, and,
acquiring live broadcast stream data according to a pre-loaded play address corresponding to the triggered live broadcast room;
and playing a live broadcast picture on the playing interface of the live broadcast room based on live broadcast stream data so as to replace a displayed cover and display functional elements of the live broadcast room on the playing interface of the live broadcast room.
An embodiment of the present invention provides a live broadcast processing apparatus, including:
the presentation module is used for presenting an entrance of the live broadcast room when the live broadcast client is initialized;
the loading module is used for preloading a playing address and a cover page corresponding to the live broadcast room;
the presentation module is further used for responding to the trigger operation corresponding to the live broadcast room, presenting a playing interface of the live broadcast room, and displaying a pre-loaded cover corresponding to the triggered live broadcast room on the playing interface;
the acquisition module is used for acquiring live broadcast stream data according to the pre-loaded playing address corresponding to the triggered live broadcast room;
the display module is further used for playing live broadcast pictures on the play interface of the live broadcast room based on live broadcast stream data so as to replace the displayed cover and displaying the functional elements of the live broadcast room on the play interface of the live broadcast room.
In the above scheme, the loading module is further configured to load functional data when a playing interface of the live broadcast room plays a first frame of live broadcast picture based on live broadcast stream data;
the processing device is further used for rendering the functional data through a canvas component to obtain the functional elements of the live broadcast room;
the presentation module is further used for displaying the live broadcast room functional elements through the playing interface of the canvas assembly in the live broadcast room.
In the above solution, the loading module is further configured to periodically load notification data in the functional data to a local message pool;
the processing device is further configured to render the notification data in the local message pool through a canvas component to obtain a notification message;
the presentation module is further used for displaying the notification message on a playing interface of the live broadcast room through the canvas assembly.
In the foregoing solution, the presenting module is further configured to present, in response to an entry switching operation, an entry of the live broadcast room corresponding to the entry switching operation.
In the above scheme, the loading module is further configured to preload a play address and a cover page of a related live broadcast room of the current live broadcast room when a live broadcast picture is played on a play interface of the current live broadcast room based on live broadcast stream data;
the presentation module is further used for responding to the trigger operation corresponding to the related live broadcast room, presenting a playing interface of the related live broadcast room, and displaying a pre-loaded cover corresponding to the triggered related live broadcast room on the playing interface.
In the above scheme, the obtaining module is further configured to obtain the play address and the cover page of the relevant live broadcast room based on the live broadcast room number of the current live broadcast room.
The loading module is also used for preloading the playing address and the cover page of the related live broadcast room.
In the above scheme, the obtaining module is further configured to obtain the play address and the cover page of the relevant live broadcast room based on the type tag of the current live broadcast room.
The loading module is also used for preloading the playing address and the cover page of the related live broadcasting room.
An embodiment of the present invention provides a live broadcast processing apparatus, including:
a memory for storing executable instructions;
and the processor is used for realizing the method provided by the embodiment of the invention when executing the executable instructions stored in the memory.
The embodiment of the invention provides a storage medium, which stores executable instructions and is used for causing a processor to execute so as to realize the live broadcast processing method provided by the embodiment of the invention.
The embodiment of the invention has the following beneficial effects:
the method comprises the steps of pre-loading a playing address and a cover corresponding to a live broadcast room, obtaining live broadcast stream data according to the pre-loaded playing address corresponding to the triggered live broadcast room, responding to the triggering operation of the corresponding live broadcast room, presenting a playing interface of the live broadcast room, displaying the pre-loaded cover corresponding to the triggered live broadcast room on the live broadcast interface, and obtaining the live broadcast stream data according to the pre-loaded playing address corresponding to the triggered live broadcast room. When the live broadcast picture is loaded, the playing address and the cover do not need to be loaded, the time for loading the playing address and the cover is saved, the time consumption for loading the live broadcast picture can be shortened, and the user experience is optimized.
Drawings
Fig. 1 is an alternative structural diagram of a live broadcast system architecture provided in an embodiment of the present invention;
fig. 2 is a schematic diagram of an alternative structure of a client terminal device 400 according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a live broadcast processing method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a display interface of a viewer client during initialization according to an embodiment of the present invention;
fig. 5 is a schematic interface diagram of a viewer client displaying a cover in a playing interface according to an embodiment of the present invention;
fig. 6 is an interface schematic diagram of a viewer client playing a live view in a playing interface and displaying functional elements of a live view room according to an embodiment of the present invention;
fig. 7 is a schematic flowchart of a live broadcast processing method according to an embodiment of the present invention;
fig. 8 is a schematic flowchart of a live broadcast processing method according to an embodiment of the present invention;
fig. 9 is a schematic flowchart of a live broadcast processing method according to an embodiment of the present invention;
fig. 10 is a schematic flowchart of a live broadcast processing method according to an embodiment of the present invention;
fig. 11 is a schematic flowchart of a live broadcast processing method according to an embodiment of the present invention;
fig. 12 is a schematic flowchart of a live broadcast processing method according to an embodiment of the present invention;
fig. 13 is a schematic flowchart of a method for displaying a public screen message in a live broadcast processing method according to an embodiment of the present invention;
fig. 14 is a diagram illustrating comparison between the time spent entering the room of the live broadcast processing method and the time spent entering the room of the related live broadcast processing method according to the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail with reference to the accompanying drawings, the described embodiments should not be construed as limiting the present invention, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is 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.
The embodiment of the invention provides a live broadcast processing method, a live broadcast processing device, live broadcast equipment and a storage medium, and firstly, an exemplary application of terminal equipment provided by the embodiment of the invention is described below.
Referring to fig. 1, fig. 1 is an optional structural schematic diagram of a live broadcast system framework according to an embodiment of the present invention, where an anchor collects audio and video data through an audio and video collection device 110 and sends the audio and video data to an anchor terminal device 100, and an anchor client 120 is loaded in the anchor terminal device 100. The live client 120 sends a push stream request to the server 200, and after the server 200 audits that the push stream request passes, the live client 120 synchronizes the audio and video data stream to the cache unit 210 of the server 200 through the network. The spectator client 410 sends a room entering request to the stream pushing unit 220 through the network based on the live broadcast room selected by the user, and the pushing unit 220 obtains a corresponding audio and video data stream from the cache unit 210 based on the room entering request and pushes the audio and video data stream to the corresponding spectator client 410. The viewer client 410 sends the video data in the audio/video data stream to the video playing port, and sends the audio data in the audio data stream to the audio playing port, and the video playing port and the audio playing port play the video data and the audio data synchronously.
In some embodiments, the anchor client 100 is any programming framework capable of implementing a live broadcast function, and an electronic device loaded with the anchor client can upload a local audio/video data stream to a server in real time by operating the anchor client, so as to implement a live broadcast function.
In some embodiments, the anchor terminal device 100 is a fixed electronic device, such as a computer with an audio/video input port, a network television with an audio/video input port, or a fixed camera device with data processing capability and networking capability, and in other embodiments, the anchor terminal device 100 is a mobile electronic device, such as a smart phone, a tablet computer, or smart glasses with video capture capability, data processing capability, and network connectivity.
In some embodiments, audio/video capture device 110 is a third party device connected to anchor terminal device 100 via a data line. In other embodiments audio video capture device 110 is a subcomponent of anchor terminal device 100.
In some embodiments, the live broadcast client 120 further sends the live broadcast room information to the server 200 through the network, the server 200 audits the plug flow request based on the live broadcast room information and the audio and video data stream, and after the audit is passed, the server 200 stores the audio and video data stream to the cache unit and allocates a play address for the audio and video data stream.
In some embodiments, the server 200 obtains a live broadcast frame based on the data stream, determines whether the live broadcast frame is consistent with the live broadcast type tag, and determines that the push stream request passes the audit when the live broadcast frame is consistent with the live broadcast type tag, for example, when the live broadcast frame is a frame of a non-music game and the live broadcast type tag is a singing, rejects the push stream request to pass the audit; and when the live broadcast picture is a singing picture and the live broadcast type label is singing, confirming that the push stream request passes the audit.
In some embodiments, the viewer client 410 is loaded in the viewer terminal device 400, and the viewer terminal device 400 (terminal devices 400-1 and 400-2 are shown in fig. 1 as examples) is any electronic device that can accept data over a network and can play audio data and video data. In some embodiments, viewer terminal device 400 is a stationary electronic device, such as a network television, desktop computer, or network television. In some embodiments, the spectator terminal device 400 is a mobile electronic device, for example, a smart phone, a tablet computer, or a networked handheld game console.
In some embodiments, the server 200 performs an audit on the house incoming request, and when the server confirms that the house incoming request passes the audit, the streaming unit 220 is allowed to obtain a play address corresponding to the house incoming request from the cache unit 210, obtain an audio/video data stream based on the play address, and send the audio/video data stream to the viewer client 410.
In some embodiments, after receiving the room entry request, the server 200 obtains the viewer identity tag corresponding to the viewer client that sends the room entry request, determines whether the viewer identity tag is a blacklist user, rejects the room entry request to pass the audit when the viewer identity tag is the blacklist user, and confirms that the room entry request passes the audit when the viewer identity tag is not the blacklist user.
For example, when the spectator client sends a room entrance request for the live broadcast room B to the client, the server obtains the spectator identity tag corresponding to the spectator client as the user a. The user A sends improper comments in the live broadcasting room B once, the comments are set as blacklist users by the anchor or the house manager of the live broadcasting room B, the server judges that the user A is the blacklist user of the live broadcasting room B, the server determines that the request for entering the house does not pass the audit, and the audience client is not allowed to obtain the play address of the live broadcasting room B.
In some embodiments, the obtained data stream is data compressed and encoded by a preset rule, when the data stream is received by the viewer client, the data stream is decoded to obtain video data and audio data, the video data is sent to the video playing port, the audio data is sent to the audio playing port, and the video data and the audio data are simultaneously played at the video playing port and the audio playing port.
In some embodiments, a method of auditing live data and live information includes: and judging whether the anchor identity tag is a blacklist user or not, and confirming that the data flow passes the verification when the anchor identity tag is not the blacklist user.
In some embodiments, the streaming unit 220 of the server 200 obtains the live content from the cache unit 210 in real time, and performs compression Coding on the live content, for example, a combination of h.264 video compression algorithm and Advanced Audio Coding (AAC) algorithm. Taking the example of performing compression Coding on Video data in the live broadcast content by using an h.264 Video compression algorithm, the Video data in the live broadcast content is coded by using a Video Coding Layer (VCL) and a Network Abstraction Layer (NAL) of the h.264 Coding, the Video data in the live broadcast content is coded in the Video Coding Layer, the coded live broadcast content includes motion estimation, entropy Coding and other contents, the coded live broadcast content is encapsulated to form a live stream, and the live stream is transmitted to a terminal 400-2 held by a user by using a streaming transmission manner such as a Real time streaming (Real time streaming) manner, a progressive streaming transmission (progressive streaming) manner and the like, so that a client 410-2 of the terminal 400-2 calls decoding of an operating system to decode and present the decoding in a play page of the client 410-2.
In some embodiments, the server performs real-time auditing on the pushed audio and video data stream, and stops pushing the illegal audio and video data stream when the violation of the pushed audio and video data stream is detected.
Referring to fig. 2, fig. 2 is a schematic diagram of an alternative structure of a viewer terminal device 400 (for example, the viewer terminal device 400-1 and a client terminal device 400-2 shown in fig. 1) according to an embodiment of the present invention, where the client terminal device 400 shown in fig. 2 includes: at least one processor 410, memory 450, at least one network interface 420, and a user interface 430. The various components in the terminal device 400 are coupled together by a bus system 440. It will be appreciated that the bus system 440 is used to enable communications among the components. The bus system 440 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 440 in fig. 2.
The Processor 410 may be an integrated circuit chip having Signal processing capabilities, such as a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like, wherein the general purpose Processor may be a microprocessor or any conventional Processor, or the like.
The user interface 430 includes one or more output devices 431, including one or more speakers and/or one or more visual displays, that enable the presentation of media content. The user interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid state memory, hard disk drives, optical disk drives, and the like. Memory 450 optionally includes one or more storage devices physically located remote from processor 410.
The memory 450 includes both volatile memory and nonvolatile memory, and can include both volatile and nonvolatile memory. The nonvolatile memory may be a Read Only Memory (ROM), and the volatile memory may be a Random Access Memory (RAM). The memory 450 described in embodiments of the invention is intended to comprise any suitable type of memory.
In some embodiments, memory 450 is capable of storing data, examples of which include programs, modules, and data structures, or a subset or superset thereof, to support various operations, as exemplified below.
The operating system 451, which includes system programs for handling various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., is used for implementing various basic services and for processing hardware-based tasks.
A network communication module 452 for communicating to other computing devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 including: bluetooth, wireless compatibility authentication (WiFi), and Universal Serial Bus (USB), among others.
A presentation unit 453 for enabling presentation of information (e.g., a user interface for operating peripherals and displaying content and information) via one or more output devices 431 (e.g., a display screen, speakers, etc.) associated with user interface 430.
An input processing module 454 for detecting one or more user inputs or interactions from one of the one or more input devices 432 and translating the detected inputs or interactions.
In some embodiments, the live processing apparatus provided by the embodiments of the present invention may be implemented in software, and fig. 2 illustrates the live processing apparatus 455 stored in the memory 450, and includes three modules, namely a presentation module 4551, a loading module 4552, and an obtaining module 4453, which may be software in the form of programs and plug-ins, and may be embedded in various clients, such as an online video client, a dedicated live client, and a browser. A presenting module 4551, configured to present an entry to the live room when the live client initializes. And the loading module 4552 is configured to preload a play address and a cover page of the live broadcast room corresponding to the presented entry of the live broadcast room. The presentation module 4551 is further configured to, in response to the trigger operation of the corresponding live broadcast room, present a play interface of the live broadcast room, and display, on the play interface, a preloaded cover corresponding to the triggered live broadcast room. An obtaining module 4553, configured to obtain live streaming data according to the pre-loaded play address corresponding to the triggered live broadcast room. The presentation module 4551 is further configured to play a live broadcast picture based on live broadcast stream data in a play interface of the live broadcast room to replace a displayed front cover, and display a functional element of the live broadcast room in the play interface of the live broadcast room.
In other embodiments, the live broadcast processing apparatus provided in the embodiments of the present invention may be implemented in hardware, and may be, for example, 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 invention, for example, the processor in the form of the hardware decoding processor may be implemented by 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.
The live broadcast processing method provided by the embodiment of the present invention can be executed by a terminal device, and the following describes a process of implementing the live broadcast processing method in a client by using an embedded live broadcast processing device in the terminal device in combination with the above-mentioned exemplary application and structure of the terminal device, where the types of the client may be various, for example, the client may be a dedicated live broadcast client, a video client, a social network client, and the like; but also a browser or the like. In an embodiment, the client may adopt Native (Native) codes of itself to implement the play page in a Native interface of the client, or may implement the play page in a form of loading a web page conforming to a hypertext Markup Language (H TML) specification, where a code (e.g., Javascript code) for implementing a processing method for live broadcasting may be embedded in the play page, and live broadcasting may be implemented in a lightweight manner by executing a front-end code.
Referring to fig. 3, fig. 3 is a schematic flowchart of a live broadcast processing method according to an embodiment of the present invention, and as shown in fig. 3, the flow of the live broadcast processing method includes:
step 201, when the live broadcast client is initialized, presenting an entrance of the live broadcast room.
Hereinafter, the live client is a viewer client, and the viewer client refers to a client used by a user watching a live broadcast.
In some embodiments, when a user starts a live client, the viewer client obtains live information and a cover page from the server and presents an entry to the live room in the display interface based on the live information and the cover page.
For example, the anchor client transmits an audio-visual data stream to the server, the server assigns a play address to the audio-visual data stream, and the anchor client also transmits live information a1 and cover a2 to the server. When the audience client starts the live application process or starts the live small program process in the WeChat, the server acquires the playing address, the live information A1 and the cover A2. After acquiring the play address, the live broadcast information a1 and the cover A3, the viewer client presents an entry of the live broadcast room at a preset position of the display interface, and associates the live broadcast entry with the play address.
Referring to fig. 4, fig. 4 is a schematic diagram of a display interface when a viewer client initializes, as shown in fig. 4, when the viewer client initializes, an entry a of a live room is presented on the display interface, where the entry a of the live room includes live information a1 and a cover a2, and the live information a1 includes a main broadcast nickname a11, a city a12 where the main broadcast is located, and a number of people a13 who are watching the live viewer.
In some embodiments, the cover is a still picture, in other embodiments, the cover is a moving picture, and in other embodiments, the cover is a video.
In some embodiments, the spectator client processes the cover to reduce the data size of the cover and obtain a thumbnail cover, and the entry of the live room includes live information and the thumbnail cover to shorten the time for rendering the cover and thus shorten the time for presenting the entry of the live room.
The cover is a static picture, the user client performs pooling processing on the static picture, the resolution ratio of the static picture is reduced, a contracted cover of the cover is obtained, and an entrance of a live broadcast room is presented when the live broadcast client is initialized, wherein the entrance of the live broadcast room comprises live broadcast room information and the contracted cover.
In some embodiments, the server processes the cover page, reduces the data amount of the cover page, obtains the contracted cover page, and when the viewer client initializes, the viewer client obtains the live broadcast information, the contracted cover page, the playing address and the cover page address through the server. The method comprises the steps of acquiring live broadcast information, a contracted cover, a play address and a cover address, presenting an entrance of a live broadcast room comprising the contracted cover and the live broadcast information on a display interface by a viewer client, and associating the cover address and the play address with the corresponding entrance of the live broadcast room.
Step 202, preloading a playing address and a cover page corresponding to the live broadcast room.
In some embodiments, the viewer client periodically detects the entry of the presented live room in the display interface, and preloads the play address and the cover page of the live room corresponding to the entry of the presented live room.
For example, the viewer client detects the entry of the presented live broadcast room in the display interface every second, and preloads the play address and the cover page of the live broadcast room corresponding to the entry of the presented live broadcast room.
In some embodiments, when the viewer client senses a position change operation of a user, an entry of a presented live broadcast room in the display interface is detected, and a playing address and a cover page of the live broadcast room corresponding to the entry of the presented live broadcast room are preloaded.
The position change operation is an operation that can change an entry of a live broadcast room presented in the display interface, for example, the position change operation may be an operation of sliding a screen, and the operation of sliding the screen moves the entry of the live broadcast room presented in the display interface in a sliding direction and presents a new entry of the live broadcast room in the display interface; the position change operation can also be a click operation on a page turning virtual button in the display interface, wherein the click operation causes the display interface to hide the currently presented live broadcast room entrance and presents the live broadcast room entrance in the page selected by the user in the display interface.
In some embodiments, the preloading of the play address and the cover page of the live broadcast room corresponding to the presented entry of the live broadcast room means that, after the viewer client acquires the play address and the cover page, the play address and the cover page are stored in a storage device capable of fast reading and writing, where the storage device capable of fast reading and writing may be, for example, a memory of a computer.
In some embodiments, the viewer client temporarily stores the play address and the cover in a storage device capable of fast reading and writing, when detecting that the entry of the live broadcast room presented in the display interface is changed, stores the play address and the cover corresponding to the changed entry of the live broadcast room in the storage device capable of fast reading and writing, and deletes the play address and the cover already stored in the storage device capable of fast reading and writing.
In some embodiments, the viewer client obtains a broadcast address and a cover page address corresponding to the entry of the presented live broadcast room, obtains the cover page from the cover page address, and stores the obtained broadcast address and the cover page in a storage device capable of fast reading and writing.
Step 203, responding to the trigger operation of the corresponding live broadcast room, presenting a playing interface of the live broadcast room, and displaying a preloaded cover corresponding to the triggered live broadcast room on the playing interface.
In some embodiments, when the viewer client detects a click operation of a user on an entry of the live broadcast room, the display interface jumps from the entry of the display live broadcast room to a play interface of the live broadcast room corresponding to the entry of the live broadcast room. And simultaneously, the audience client reads the cover corresponding to the live broadcast room from the storage device capable of quickly reading and writing based on the incidence relation between the cover and the entrance of the live broadcast room, and displays the cover of the live broadcast room on a playing interface after the cover is rendered.
For example, referring to fig. 5, fig. 5 is a schematic interface diagram of a viewer client displaying a cover in a playing interface, as shown in fig. 5, when the viewer client senses a click operation of a user on an entry a of a live broadcast room, a playing interface of the live broadcast room corresponding to the entry a of the live broadcast room is presented in the displaying interface, and a preloaded cover a2 is displayed in the playing interface.
Compared with a related live broadcast processing method, the cover is prestored in the local storage device, when the cover is displayed, the time for acquiring the cover is saved, the time from entering a playing interface to displaying the cover on the playing interface is further shortened, meanwhile, the cover is stored in the storage device capable of being read and written quickly, the viewer client can realize quick reading and rendering of the cover, and the time from entering the playing interface to displaying the cover on the playing interface is further shortened.
And step 204, acquiring live broadcast stream data according to the pre-loaded playing address corresponding to the triggered live broadcast room.
In some embodiments, when the spectator client detects a click operation of a user on an entrance of a live broadcast room, a display interface jumps from the entrance of the live broadcast room to a play interface of the live broadcast room corresponding to the entrance of the live broadcast room, meanwhile, a play address corresponding to the live broadcast room is acquired from a storage device capable of being read and written quickly based on an association relation between the entrance of the live broadcast room and a play address, and after the spectator client acquires the play address, live broadcast stream data is acquired based on the play address.
Compared with a related live broadcast processing method, the playing address is prestored in the local storage device, so that the time for acquiring the playing address is saved when a live broadcast picture is displayed, and further the time from displaying the cover to playing the live broadcast picture is shortened.
And 205, playing the live broadcast picture on the play interface of the live broadcast room based on the live broadcast stream data to replace the displayed cover and displaying the functional elements of the live broadcast room on the play interface of the live broadcast room.
In some embodiments, the viewer client renders the live streaming data to obtain a live frame based on the received live streaming data, and plays the live frame on the play interface to replace the displayed cover page.
In some embodiments, the viewer client further displays a live room function element on the playback interface, where the live room function element refers to an element that implements multiple functions of the live room.
In some examples, the functional elements include a message sending virtual key, and when the viewer client senses a click operation of a user on the message sending virtual key, a virtual keyboard pops up on the playing interface, and message data is obtained based on the click operation of the user on the virtual keyboard and the message is sent to the server.
In some embodiments, the functional element includes a sharing virtual key, and when the viewer client senses a click operation of the sharing virtual key by a user, the viewer client reads a contact menu of the user and sends a link of the live broadcast to a contact selected by the user based on the contact selected by the user.
Referring to fig. 6, fig. 6 is an interface schematic diagram of a viewer client playing a live view in a playing interface and displaying a live view function element, as shown in fig. 6, the viewer client playing a live view A3 based on live stream data in the playing interface and displaying a live view function element a4 at a preset position of the playing interface, where the live view function element a4 includes a messaging virtual key a41, a sharing virtual key a42, and a public screen message a 43.
In some embodiments, please refer to fig. 7, fig. 7 is a flowchart illustrating a live broadcast processing method according to an embodiment of the present invention, and based on fig. 3, step 205 includes:
and step 2051, playing the live broadcast picture on a play interface of the live broadcast room based on the live broadcast stream data so as to replace the displayed cover.
And step 2052A, after the live broadcast picture is played on the play interface of the live broadcast room based on the live broadcast stream data, the functional data is loaded, and the functional elements of the live broadcast room are displayed on the play interface of the live broadcast room based on the functional data.
In some embodiments, when a live broadcast screen with a preset frame number is played on the play interface of the live broadcast room based on live broadcast stream data, the functional data is loaded, and functional elements of the live broadcast room are displayed on the play interface of the live broadcast room based on the functional data.
When the live broadcast picture with the preset frame number is played based on the live broadcast stream data, the functional data is loaded, so that the situation that the computing resources of a client of a viewer are occupied when the functional data is loaded can be avoided, further more computing resources are used for loading the live broadcast stream data, the live broadcast picture is played based on the live broadcast stream data, and the time from the front cover display to the live broadcast picture playing is further shortened. Meanwhile, because the live broadcast picture with the preset frame number is loaded, the situation that the live broadcast picture is blocked when the functional data is loaded can be avoided.
In some embodiments, when a playing interface of the live broadcast room plays a first frame of live broadcast picture based on live broadcast stream data, the functional data is loaded, and functional elements of the live broadcast room are displayed on the playing interface of the live broadcast room based on the functional data.
When the first frame of live broadcast picture is played based on the live broadcast stream data, the functional data is loaded, so that the situation that the computing resources of the client of the audience are occupied when the functional data is loaded can be avoided, further more computing resources are used for loading the live broadcast stream data, the live broadcast picture is played based on the live broadcast stream data, and the time from the front cover display to the live broadcast picture playing is further shortened. Meanwhile, the functional data is loaded when the first frame of live broadcast picture is played, so that the time from playing the live broadcast picture to displaying the functional elements of the live broadcast room can be shortened.
Referring to fig. 8, fig. 8 is a flowchart illustrating a live broadcast processing method according to an embodiment of the present invention, and based on fig. 7, step 2052 includes:
and 20521A, loading the functional data when the playing interface of the live broadcast room plays the first frame of live broadcast picture based on the live broadcast stream data.
And step 20522A, rendering the functional data through the canvas assembly to obtain the functional elements of the live broadcast room.
In some embodiments, the viewer client is a live applet in the WeChat, and the viewer client, upon initialization, constructs a live component of the live applet from the base library based on a live applet template obtained from the network.
The live broadcast component of the applet comprises a canvas component which is a canvas container and can render input data and display characters and images obtained after rendering the input data in a display interface.
Compared with a related live broadcast processing method, the functional data is rendered through the canvas component, the canvas component supports accelerated rendering of the graphics processor, and time for rendering the functional data is shortened.
And step 20523A, displaying the functional elements of the live broadcast room on a playing interface of the live broadcast room through the canvas assembly.
In some embodiments, the canvas component renders the function data to obtain live view function elements and displays the live view function elements on a play interface of the live view.
Referring to fig. 9, fig. 9 is a flowchart illustrating a live broadcast processing method according to an embodiment of the present invention, and based on fig. 3, step 205 includes:
and step 2051, playing the live broadcast picture on the play interface of the live broadcast room based on the live broadcast stream data so as to replace the displayed cover.
Step 2053, periodically load the notification data in the function data into the local message pool.
In some embodiments, the viewer client of the live streaming data obtained from the same playing address obtains the notification data based on the input operation of the user when playing the live screen. And each audience client transmits the notification data to the server in real time, and the server stores the received notification data to the online message pool.
In some embodiments, each spectator client acquires notification data from the online message pool of the server every preset time period, and stores the acquired notification data in the local message pool.
For example, every 5 seconds, the viewer client obtains notification data from the server's online message pool and stores the obtained notification data in a local message pool.
In some embodiments, each spectator client determines a time interval based on the number of spectator clients accessing the live room, and retrieves notification data from the online message pool based on the time interval, and stores the retrieved notification data in a local message pool.
For example, the spectator client obtains the live streaming data from the play address and plays the live frame based on the live streaming data, and the spectator client obtains the number of spectator clients obtaining the live streaming data from the play address in real time from the server. When the number of the audience client sides which acquire the live streaming data by the playing address is more than 1 and less than 10, the audience client sides acquire notification data from the online message pool every 10 seconds; when the number of the audience client sides for acquiring the live streaming data by the playing address is more than 10 and less than 50, the audience client sides acquire notification data from the online message pool every 5 seconds; when the number of the audience clients acquiring the live streaming data by the playing address is more than 50, the audience clients acquire the notification data from the online message pool every 1 second.
And step 2054, rendering the notification data in the local message pool through the canvas assembly to obtain a notification message.
Step 2055, display a notification message on the play interface of the live broadcast room through the canvas component.
In some embodiments, when a notification message received by the viewer client at one time exceeds the rendering capability of the canvas component, the message component is stored in the local message pool, and the canvas component sequentially renders the notification messages based on the precedence order of entering the local message pool.
The local message pool is arranged to store the online notification messages locally, so that the canvas component can render the notification messages, meanwhile, the local message pool can play a buffering role, when too many notification messages are received at one time, the notification messages can be temporarily stored in the local message pool, and the phenomenon that the number of the notification messages needing to be rendered exceeds the rendering capability of the canvas component to cause the canvas component to be stuck is prevented.
In some embodiments, the notification message is displayed in a list on a play interface of the live room.
In some embodiments, the notification message is displayed in a bullet screen form in a playing interface of the live broadcast room, moves in the playing interface in a preset track, and is sent from the playing interface in the preset track.
In some embodiments, based on the bullet screen density set by the user, the number of notification messages rendered by the canvas component each time does not exceed a preset threshold value, so as to prevent the bullet screen from blocking the live broadcast picture due to too high bullet screen density.
For example, if the user sets the bullet screen density to be that the number of single-screen bullet screens does not exceed 30, the number of notification messages rendered by the canvas component at each time does not exceed 30, so as to ensure that the number of single-screen bullet screens does not exceed 30.
Referring to fig. 10, fig. 10 is a flowchart illustrating a live broadcast processing method according to an embodiment of the present invention, and based on fig. 3, before step 203, the method further includes:
206. and responding to the entrance switching operation, and presenting the entrance of the live broadcasting room corresponding to the entrance switching operation.
In some embodiments, the entry switching operation is a sliding operation in a display interface of the viewer client, and in a direction of the sliding operation by the user, the entry of the displayed live room is moved out of the display interface and the entry of the new live room is presented in the display interface.
In some embodiments, the entry switching operation is a click operation for a page turning virtual button, and based on a page triggered by the click operation, an entry of a live room displayed on the current page is replaced by an entry of a live room in the triggered page.
In some embodiments, when the viewer client detects that the entry of the live broadcast room presented in the display interface changes, the playing address and the cover page of the live broadcast room corresponding to the displayed entry of the live broadcast room are preloaded.
The user can only trigger the entry of the presented live broadcast room, and the time between entering the live broadcast room and displaying the live broadcast picture can be shortened on the premise of occupying the memory space as small as possible by preloading the play address and the cover of the live broadcast room corresponding to the entry of the presented live broadcast room.
Referring to fig. 11, fig. 11 is a flowchart illustrating a live broadcast processing method according to an embodiment of the present invention, and based on fig. 3, after step 205, the method further includes:
and step 207, preloading a playing address and a cover page of a related live broadcast room of the current live broadcast room when a live broadcast picture is played on a playing interface of the current live broadcast room based on live broadcast stream data.
In some embodiments, the viewer client obtains the relevant live broadcast room based on live broadcast room information of the current live broadcast room, and the live broadcast room information of the current live broadcast room and the live broadcast room information of the relevant live broadcast room meet preset conditions.
In some embodiments, the viewer client obtains the relevant live broadcast rooms based on the live broadcast room numbers of the current live broadcast room, wherein the live broadcast room numbers are numbers distributed by the server for the live broadcast rooms, the live broadcast room numbers are different, and the live broadcast room numbers are adjacent to the live broadcast room numbers. In some embodiments, the fact that the number of the relevant live broadcast room is adjacent to the number of the current live broadcast room means that the absolute value of the difference between the number of the relevant live broadcast room and the number of the current live broadcast room is smaller than a preset threshold.
In some embodiments, the viewer live room obtains the relevant live room based on the type tag of the current live room, wherein the type tag is a tag allocated to the anchor live frame based on the live room, and can represent the live content of the live room. And the audience live broadcast rooms obtain a preset number of related live broadcast rooms identical to the type labels based on the type labels, and entries of the related live broadcast rooms are displayed in a play interface of the live broadcast rooms in a recommendation list mode.
And step 208, responding to the triggering operation of the corresponding related live broadcast room, presenting a playing interface of the related live broadcast room, and displaying a pre-loaded cover corresponding to the triggered related live broadcast room on the playing interface.
In some embodiments, the trigger operation of the corresponding live room may be a sliding operation in the play interface, based on which the viewer client enters the corresponding related live room.
In some embodiments, the trigger operation of the corresponding live room may be a click operation on the recommendation list, based on which the viewer client enters the corresponding related live room.
Through the front cover of the pre-loading related live broadcast room, when the current live broadcast room enters the related live broadcast room, the time for loading the front cover can be saved, the time for entering the related live broadcast room to display the front cover of the related live broadcast room is shortened, and the black screen during switching the live broadcast room is prevented. By preloading the playing address of the related live broadcast room, when the current live broadcast room enters the related live broadcast room, the time for loading the playing address can be saved, and the time from entering the related live broadcast room to displaying the live broadcast picture of the related live broadcast room can be shortened.
To more specifically describe the steps of the live broadcast processing method provided by the embodiment of the present invention, an exemplary description is given below by taking a live broadcast client as a live broadcast applet in a WeChat, please refer to fig. 12, and fig. 12 is a schematic flow diagram of a live broadcast processing method provided by the embodiment of the present invention, as shown in fig. 12, the live broadcast processing method includes:
step 501, when the WeChat applet is initialized, displaying an applet home page on a display interface, and presenting an entrance of at least one live broadcast room on the applet home page.
And 502, preloading a live broadcasting stream address and a cover page of the live broadcasting room corresponding to the entry of the live broadcasting room presented in the small program home page.
Step 503, responding to the click operation of the entry corresponding to the live broadcast room, triggering the live broadcast room corresponding to the entry of the live broadcast room, and entering the loading life cycle of the live broadcast room.
And step 504, hiding the playing component and the room elements when the room is switched in a sliding mode.
And 505, entering a loading period of the switched rooms, and displaying the preloaded cover pages.
Wherein, the loading life cycle of the live broadcast room comprises the following steps:
step 601, when the cover corresponding to the live broadcasting room is preloaded, displaying the preloaded cover corresponding to the live broadcasting room, and simultaneously loading room information and a room entering request.
Step 602, creating or multiplexing a playing component, acquiring live streaming data from a preloaded live streaming address, and playing a live streaming picture based on the live streaming data through the playing component.
Step 603, when the first frame of the live broadcast picture is played, other elements of the room are created.
In some embodiments, the other elements include: a public screen message of a live room, an avatar of a anchor, an anchor nickname, a share virtual button, and an attention virtual button.
And step 604, preloading cover pages and live broadcast stream addresses of a front live broadcast room and a rear live broadcast room of the current live broadcast room when a first frame of picture of the live broadcast picture is played.
In some embodiments, the live applet supports entry from the current live room to the adjacent live room by sliding up and down in the live view, which prevents a blank screen when switching rooms by preloading the cover page and live stream address of the adjacent live room.
Referring to fig. 13, fig. 13 is a schematic flowchart of a method for displaying a public screen message in a live broadcast processing method according to an embodiment of the present invention, and as shown in fig. 13, the method for displaying a public screen message includes:
step 701, obtaining a public screen message of a user from a server through long polling.
And step 702, extracting picture data in the public screen message, and caching picture information to the local.
In some embodiments, the picture data includes a user avatar, a gift picture.
And 703, combining the cached pictures with the corresponding text messages to obtain local messages, and pushing the local public screen messages to a local message cache pool.
And 704, rendering the local message in the local message cache pool through the canvas component, and presenting the rendered local message in a display interface.
Referring to fig. 14, fig. 14 is a comparison graph of the house entry time of the live broadcast processing method and the house entry time of the related live broadcast processing method according to the embodiment of the present invention, as shown in fig. 14, a test of the house entry time of the first page is performed by using terminal devices with the same data processing capability, for example, mobile phones of the same model, through a test, so as to obtain local experimental data.
The local experimental data show that in the iOS system, the house entry time consumption of the live broadcast processing method provided by the embodiment is 2259.33 milliseconds, the house entry time consumption of the related live broadcast processing method is 2889.33 milliseconds, and the house entry time consumption is reduced by 21.8%; in an android system, the time consumed for entering the room of the live broadcast processing method provided by the embodiment is 2305.60 milliseconds, the time consumed for entering the room of the related live broadcast processing method is 3084.00 milliseconds, and the time consumed for entering the room is shortened by 25.24%.
Continuing with the exemplary structure in which the live processing device 455 provided by the embodiments of the present invention is implemented as software modules, in some embodiments, as shown in fig. 2, the software modules stored in the live processing device 455 of the memory 440 may include: a presentation module 4551, a load module 4552 and an acquisition module 4453.
A presenting module 4551, configured to present an entry to the live room when the live client initializes.
And the loading module 4552 is used for preloading a play address and a cover page corresponding to the live broadcast room.
The presentation module 4551 is further configured to, in response to a trigger operation of the corresponding live broadcast room, present a play interface of the live broadcast room, and display, on the play interface, a pre-loaded cover corresponding to the triggered live broadcast room.
An obtaining module 4553, configured to obtain live streaming data according to the pre-loaded play address corresponding to the triggered live broadcast room.
The presentation module 4551 is further configured to play the live broadcast picture based on the live broadcast stream data on the play interface of the live broadcast room to replace the displayed front cover, and display a function element of the live broadcast room on the play interface of the live broadcast room.
In some embodiments, the loading module 4552 is further configured to load the function data after the live video is played based on the live streaming data in the play interface of the live room.
The presenting module 4551 is further configured to display, on the play interface of the live broadcast room, a live broadcast room function element based on the function data.
In some embodiments, the loading module 4552 is further configured to load the function data when the playing interface in the live broadcast room plays the first live frame based on the live stream data.
The live processing device 455 is further configured to render the functional data through the canvas component, so as to obtain a live room functional element.
And the rendering module 4551 is further configured to display a live broadcast function element on a play interface of the live broadcast through the canvas component.
In some embodiments, the loading module 4552 is further configured to periodically load notification data in the function data into the local message pool.
The live processing device 455 is further configured to render the notification data in the local message pool through the canvas component, so as to obtain the notification message.
The rendering module 4551 is further configured to display the notification message on the play interface of the live room through the canvas component.
In some embodiments, the presenting module 4551 is further configured to present an entry of the live room corresponding to the entry switching operation.
In some embodiments, the loading module 4552 is further configured to preload a play address and a cover page of a related live broadcast room of the current live broadcast room when the live broadcast picture is played on the basis of live broadcast stream data in the play interface of the current live broadcast room.
The presentation module 4551 is further configured to, in response to the trigger operation corresponding to the relevant live broadcast room, present a play interface of the relevant live broadcast room, and display, on the play interface, a pre-loaded cover corresponding to the triggered relevant live broadcast room.
In some embodiments, the obtaining module 4553 is further configured to obtain the play address and the cover page of the relevant live broadcast room based on the live broadcast room number of the current live broadcast room.
The loading module 4552 is further configured to preload the play address and the cover page of the relevant live broadcast room.
In some embodiments, the obtaining module 4553 is further configured to obtain the play address and the cover page of the relevant live broadcast room based on the type tag of the current live broadcast room.
The loading module 4552 is further configured to preload a play address and a cover page of the relevant live broadcast room.
Embodiments of the present invention provide a storage medium storing executable instructions, where the executable instructions are stored, and when executed by a processor, will cause the processor to execute a method provided by embodiments of the present invention, for example, a live broadcast processing method as shown in any one of fig. 3 and fig. 7 to 11.
In some embodiments, the storage medium may be memory such as FRAM, ROM, PROM, EPROM, EE PROM, flash, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.
In some embodiments, executable instructions may be written in any form of programming language (including compiled or interpreted languages), in the form of programs, software modules, scripts or code, 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.
By way of example, executable instructions may, but need not, correspond to files in a file system, and may be stored in a portion of a file that holds other programs or data, such as in one or more scripts in a hypertext Markup Language (H TML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub-programs, or portions of code).
By way of example, executable instructions may be deployed to be executed on one computing device or on multiple computing devices at one site or distributed across multiple sites and interconnected by a communication network.
In summary, the embodiment of the invention has the following beneficial effects:
1) through preloading the playing address and the cover of the live broadcast room corresponding to the presented entry of the live broadcast room, when the live broadcast picture is loaded, the playing address and the cover do not need to be loaded, the time for loading the playing address and the cover is saved, the time consumed for loading the live broadcast picture can be shortened, and the user experience is optimized.
2) By storing the notification messages in a local message pool, rendering of the notification messages can be accomplished by the canvas component.
3) The notification message is rendered through the canvas assembly, the canvas assembly supports the acceleration of the graphic processor, the rendering speed of the notification assembly is increased, and the screen flashing phenomenon occurring when the notification message is updated can be prevented.
The above description is only an example of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and scope of the present invention shall fall within the protection scope of the present invention.

Claims (9)

1. A live broadcast processing method is characterized by comprising the following steps:
when a live client is initialized, presenting an entrance of a live room, wherein the entrance of the live room comprises an abbreviated cover for reducing data volume;
preloading a playing address and a cover page corresponding to the live broadcast room;
responding to the trigger operation corresponding to the live broadcast room, presenting a playing interface of the live broadcast room, displaying a pre-loaded cover corresponding to the triggered live broadcast room on the playing interface, and,
acquiring live broadcast stream data according to a pre-loaded play address corresponding to the triggered live broadcast room;
playing a live broadcast picture on a playing interface of the live broadcast room based on live broadcast stream data to replace a displayed cover, displaying functional elements of the live broadcast room on the playing interface of the live broadcast room, periodically loading notification data in the functional data to a local message pool, rendering the notification data in the local message pool through a canvas assembly to obtain notification messages, and displaying the notification messages on the playing interface of the live broadcast room through the canvas assembly.
2. The method of claim 1, wherein displaying a live-room function element on a playback interface of the live room comprises:
and after a live broadcast picture is played on the play interface of the live broadcast room based on live broadcast stream data, functional data are loaded, and functional elements of the live broadcast room are displayed on the play interface of the live broadcast room based on the functional data.
3. The method as claimed in claim 2, wherein the playing interface in the live room displays the live room function element based on the function data, and comprises:
when a playing interface of the live broadcast room plays a first frame of live broadcast picture based on live broadcast stream data, loading functional data;
rendering the functional data through a canvas component to obtain functional elements of the live broadcast room;
and displaying the functional elements of the live broadcast room through the playing interface of the canvas assembly in the live broadcast room.
4. The method of claim 1, wherein before presenting the playing interface of the live broadcast room in response to the triggering operation of the corresponding live broadcast room, the method further comprises:
and responding to the entrance switching operation, and presenting the entrance of the live broadcasting room corresponding to the entrance switching operation.
5. The method of claim 1, further comprising:
when a playing interface of a current live broadcast room plays a live broadcast picture based on live broadcast stream data, preloading a playing address and a cover of a related live broadcast room of the current live broadcast room;
and responding to the triggering operation corresponding to the related live broadcast room, presenting a playing interface of the related live broadcast room, and displaying a pre-loaded cover corresponding to the triggered related live broadcast room on the playing interface.
6. The method of claim 5, wherein preloading a corresponding play address and cover page of a live room associated with the current live room comprises:
acquiring a playing address and a cover of the related live broadcast room based on the live broadcast room number of the current live broadcast room, and preloading the playing address and the cover of the related live broadcast room;
wherein the number of the related live broadcast room is adjacent to the number of the current live broadcast room.
7. The method of claim 5, wherein preloading a play address and cover page of a live room associated with the current live room comprises:
acquiring a playing address and a cover page of the related live broadcast room based on a type tag of the current live broadcast room, and preloading the playing address and the cover page of the related live broadcast room;
and the type label of the related live broadcasting room is the same as that of the current live broadcasting room.
8. A processing apparatus for live broadcast, the apparatus comprising:
the live broadcast client side is used for receiving the data volume of the live broadcast room, and displaying the entry of the live broadcast room when the live broadcast client side is initialized, wherein the entry of the live broadcast room comprises a thumbnail cover for reducing the data volume;
the loading module is used for preloading a playing address and a cover page of the live broadcast room;
the presentation module is further used for responding to the trigger operation corresponding to the live broadcast room, presenting a playing interface of the live broadcast room, and displaying a pre-loaded cover corresponding to the triggered live broadcast room on the playing interface;
the acquisition module is used for acquiring live broadcast stream data according to the pre-loaded playing address corresponding to the triggered live broadcast room;
the presentation module is further used for playing a live broadcast picture based on live broadcast stream data on a playing interface of the live broadcast room so as to replace a displayed cover and displaying functional elements of the live broadcast room on the playing interface of the live broadcast room;
the loading module is further used for periodically loading the notification data in the functional data to the local message pool;
the processing device is further configured to render the notification data in the local message pool through a canvas component to obtain a notification message;
the presentation module is further used for displaying the notification message on a playing interface of the live broadcast room through the canvas assembly.
9. The apparatus of claim 8,
the loading module is further configured to:
after a live broadcast picture is played on the basis of live broadcast stream data on a play interface of the live broadcast room, functional data are loaded;
and the presentation module is also used for displaying the functional elements of the live broadcast room on a play interface of the live broadcast room based on the functional data.
CN201910642785.5A 2019-07-16 2019-07-16 Live broadcast processing method and device Active CN112243155B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910642785.5A CN112243155B (en) 2019-07-16 2019-07-16 Live broadcast processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910642785.5A CN112243155B (en) 2019-07-16 2019-07-16 Live broadcast processing method and device

Publications (2)

Publication Number Publication Date
CN112243155A CN112243155A (en) 2021-01-19
CN112243155B true CN112243155B (en) 2022-09-30

Family

ID=74167387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910642785.5A Active CN112243155B (en) 2019-07-16 2019-07-16 Live broadcast processing method and device

Country Status (1)

Country Link
CN (1) CN112243155B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113315984B (en) * 2021-05-21 2022-07-08 北京达佳互联信息技术有限公司 Cover display method, device, system, equipment and storage medium
CN113411622B (en) * 2021-05-26 2022-03-15 广州方硅信息技术有限公司 Loading method and device of live broadcast interface, client and storage medium
CN113766264B (en) * 2021-09-10 2022-11-22 北京快来文化传播集团有限公司 WeChat applet-based video live broadcast method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106791898A (en) * 2016-12-12 2017-05-31 广州华多网络科技有限公司 A kind of live video loading method and device
CN108769816A (en) * 2018-04-28 2018-11-06 腾讯科技(深圳)有限公司 A kind of video broadcasting method, device and storage medium
CN108769727A (en) * 2018-06-15 2018-11-06 北京奇艺世纪科技有限公司 A kind of live video preloading method and device
CN108848401A (en) * 2018-07-26 2018-11-20 聚好看科技股份有限公司 Video plays broadcasting method and device
CN109246461A (en) * 2018-11-30 2019-01-18 北京微播视界科技有限公司 Method, applications client and the electronic equipment that video preloads
CN109309842A (en) * 2017-07-28 2019-02-05 腾讯科技(深圳)有限公司 Live data treating method and apparatus, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11037206B2 (en) * 2017-12-27 2021-06-15 Facebook, Inc. Sponsored-content-item stories for live media items

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106791898A (en) * 2016-12-12 2017-05-31 广州华多网络科技有限公司 A kind of live video loading method and device
CN109309842A (en) * 2017-07-28 2019-02-05 腾讯科技(深圳)有限公司 Live data treating method and apparatus, computer equipment and storage medium
CN108769816A (en) * 2018-04-28 2018-11-06 腾讯科技(深圳)有限公司 A kind of video broadcasting method, device and storage medium
CN108769727A (en) * 2018-06-15 2018-11-06 北京奇艺世纪科技有限公司 A kind of live video preloading method and device
CN108848401A (en) * 2018-07-26 2018-11-20 聚好看科技股份有限公司 Video plays broadcasting method and device
CN109246461A (en) * 2018-11-30 2019-01-18 北京微播视界科技有限公司 Method, applications client and the electronic equipment that video preloads

Also Published As

Publication number Publication date
CN112243155A (en) 2021-01-19

Similar Documents

Publication Publication Date Title
US10873769B2 (en) Live broadcasting method, method for presenting live broadcasting data stream, and terminal
CN112243155B (en) Live broadcast processing method and device
CN109525851B (en) Live broadcast method, device and storage medium
US11109117B2 (en) Unobtrusively enhancing video content with extrinsic data
CN108066986B (en) Streaming media determining method and device and storage medium
US10448081B2 (en) Multimedia information processing method, terminal, and computer storage medium for interactive user screen
WO2017088621A1 (en) Method for realizing network broadcast and server
CN108521608A (en) Processing method, device, terminal and the storage medium of video file
CN111541930B (en) Live broadcast picture display method and device, terminal and storage medium
CN112470482A (en) Video playing method, device, terminal and storage medium
KR102287777B1 (en) Information pushing method, storage medium, terminal device, and server
US10271105B2 (en) Method for playing video, client, and computer storage medium
US20180288450A1 (en) Method for inserting information push into live video streaming, server, and terminal
US10929460B2 (en) Method and apparatus for storing resource and electronic device
CN111800668B (en) Barrage processing method, barrage processing device, barrage processing equipment and storage medium
CN114040243B (en) Live broadcasting room video playing method and device
CN107733769B (en) Method and device for displaying user information
CN106604147A (en) Video processing method and apparatus
WO2017096903A1 (en) Android platform-based multimedia recommendation method and terminal device
CN111949908A (en) Media information processing method and device, electronic equipment and storage medium
CN112804578A (en) Atmosphere special effect generation method and device, electronic equipment and storage medium
CN113660503A (en) Same-screen interaction control method and device, electronic equipment and storage medium
CN113873316B (en) Live broadcasting room video playing method and device
CN114363653B (en) Interactive method, device, equipment and medium based on event live broadcast
CN112492324A (en) Data processing method and system

Legal Events

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