CN115408593A - Live broadcast processing method and device, electronic equipment and computer readable medium - Google Patents

Live broadcast processing method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN115408593A
CN115408593A CN202211008965.6A CN202211008965A CN115408593A CN 115408593 A CN115408593 A CN 115408593A CN 202211008965 A CN202211008965 A CN 202211008965A CN 115408593 A CN115408593 A CN 115408593A
Authority
CN
China
Prior art keywords
live broadcast
text
image
information
content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211008965.6A
Other languages
Chinese (zh)
Inventor
岳晓东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202211008965.6A priority Critical patent/CN115408593A/en
Publication of CN115408593A publication Critical patent/CN115408593A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The disclosure relates to a live broadcast processing method and device, electronic equipment and a computer readable medium, and belongs to the technical field of live broadcast. The method comprises the following steps: establishing a long connecting channel between the live broadcast server and the live broadcast server, and receiving image-text live broadcast information pushed by the live broadcast server through the long connecting channel; when a user enters a playing detail page of the image-text live broadcast content, acquiring target image-text live broadcast information corresponding to a plurality of continuous image-text live broadcast contents starting from the current image-text live broadcast content according to an information index corresponding to the current image-text live broadcast content; acquiring live broadcast content data corresponding to a plurality of continuous image-text live broadcast contents according to the target image-text live broadcast information; and responding to the content switching operation of the user on the playing detail page of the image-text live content, and displaying the corresponding image-text live content according to the live content data. By adopting the mode of combining the long connection and the short connection, the method and the device can provide more stable and consistent immersive live content consumption experience for the user.

Description

Live broadcast processing method and device, electronic equipment and computer readable medium
Technical Field
The present disclosure relates to the field of live broadcast technologies, and in particular, to a live broadcast processing method, a live broadcast processing apparatus, an electronic device, and a computer-readable medium.
Background
The image-text live broadcast is a common live broadcast form of content in sports events and other activities, the live broadcast content can comprise characters, pictures, videos, voice, live broadcast streams and other forms, and the image-text live broadcast has many advantages compared with pure character live broadcast and live broadcast streams. Such as the user may only be interested in certain key information such as highlights, scores, etc.
For live contents such as pictures and videos in image-text live broadcast, a user needs to click to enter a detail page for playing, and when the playing is finished, the player needs to be closed, and a next picture or video is played again. This approach can lead to a split user experience that is unable to consume the video continuously.
In view of this, there is a need in the art for a live broadcast processing method that can provide a more stable and consistent immersive live content consumption experience for users.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The present disclosure aims to provide a live broadcast processing method, a live broadcast processing apparatus, an electronic device, and a computer readable medium, thereby providing a more stable and consistent immersive live content consumption experience for a user at least to some extent.
According to a first aspect of the present disclosure, a live broadcast processing method is provided, which is applied to a client and includes:
establishing a long connecting channel between the live broadcast server and the live broadcast server, and receiving image-text live broadcast information pushed by the live broadcast server through the long connecting channel, wherein the image-text live broadcast information comprises an information index and a content link corresponding to each image-text live broadcast content;
when a user enters a playing detail page of the image-text live broadcast content, target image-text live broadcast information corresponding to a plurality of continuous image-text live broadcast contents starting from the current image-text live broadcast content is obtained through an image-text information server according to an information index corresponding to the current image-text live broadcast content;
acquiring live broadcast content data corresponding to the continuous image-text live broadcast contents according to the target image-text live broadcast information;
responding to the content switching operation of the user on the playing detail page of the image-text live content, and displaying the corresponding image-text live content according to the live content data.
In an exemplary embodiment of the disclosure, the obtaining target teletext information corresponding to a plurality of continuous teletext contents starting from a current teletext content includes:
and acquiring target image-text live broadcast information corresponding to the single-page image-text live broadcast content starting from the current image-text live broadcast content.
In an exemplary embodiment of the present disclosure, the method further comprises:
and when the consumed live content data in the live content data corresponding to the single-page image-text live content reaches a preset proportion, re-requesting the live content data corresponding to the next page of image-text live content.
According to a second aspect of the present disclosure, a live broadcast processing method is provided, which is applied to a teletext server, and includes:
receiving image-text live broadcast information sent by an image-text background, wherein the image-text live broadcast information comprises an information index and a content link corresponding to each image-text live broadcast content;
storing the image-text live broadcast information, and sending the image-text live broadcast information to a client through a long connecting channel between a live broadcast server and the client;
responding to an acquisition request of the client aiming at the target image-text live broadcast information, acquiring the target image-text live broadcast information, and returning the target image-text live broadcast information to the client so that the client acquires corresponding live broadcast content data according to the target image-text live broadcast information.
In an exemplary embodiment of the present disclosure, the storing the teletext information includes:
and storing the image-text live broadcast information in an image-text information database, and updating the image-text live broadcast information into an image-text information cache by analyzing a database log of the image-text live broadcast database.
In an exemplary embodiment of the present disclosure, the acquiring the target teletext information includes:
inquiring the target image-text live broadcast information in the image-text information cache;
and if the target image-text live broadcast information is not inquired in the image-text information cache, acquiring the target image-text live broadcast information from the image-text information database.
According to a third aspect of the present disclosure, there is provided a live broadcast processing apparatus, applied to a client, including:
the system comprises a connection channel establishing module, a live broadcast server and a display module, wherein the connection channel establishing module is configured to execute the establishment of a long connection channel between the connection channel and the live broadcast server and receive image-text live broadcast information pushed by the live broadcast server through the long connection channel, and the image-text live broadcast information comprises an information index and a content link corresponding to each image-text live broadcast content;
the target information acquisition module is configured to execute that when a user enters a playing detail page of the image-text live broadcast content, target image-text live broadcast information corresponding to a plurality of continuous image-text live broadcast contents starting from the current image-text live broadcast content is acquired through an image-text information server according to an information index corresponding to the current image-text live broadcast content;
the content data acquisition module is configured to acquire live content data corresponding to the continuous teletext contents according to the target teletext information;
and the live content display module is configured to execute content switching operation performed by the user on the playing detail page of the image-text live content, and display the corresponding image-text live content according to the live content data.
In an exemplary embodiment of the present disclosure, the target information acquiring module includes:
and the single-page target information acquisition unit is configured to execute acquisition of target teletext information corresponding to the single-page teletext content starting from the current teletext content.
In an exemplary embodiment of the present disclosure, the live broadcast processing apparatus further includes:
and the content data updating module is configured to execute that when the consumed live content data in the live content data corresponding to the single-page image-text live content reaches a preset proportion, the live content data corresponding to the next-page image-text live content is requested again.
According to a fourth aspect of the present disclosure, a live broadcast processing apparatus is provided, which is applied to a teletext information server, and includes:
the image-text information receiving module is configured to execute receiving of image-text live broadcast information sent by an image-text background, wherein the image-text live broadcast information comprises an information index and a content link corresponding to each piece of image-text live broadcast content;
the image-text information storage module is configured to store the image-text live broadcast information and send the image-text live broadcast information to the client through a long connecting channel between a live broadcast server and the client;
and the target information returning module is configured to execute an acquisition request aiming at target image-text live broadcast information of the client, acquire the target image-text live broadcast information and return the target image-text live broadcast information to the client so that the client acquires corresponding live broadcast content data according to the target image-text live broadcast information.
In an exemplary embodiment of the present disclosure, the graphic information storage module includes:
a database storage unit configured to perform storing the teletext live information in a teletext information database;
and the cache storage unit is configured to update the image-text live broadcast information into an image-text information cache by analyzing a database log of the image-text live broadcast database.
In an exemplary embodiment of the present disclosure, the target information returning module includes:
the cache query unit is configured to execute query of the target image-text live broadcast information in the image-text information cache;
and the database query unit is configured to execute the step of acquiring the target image-text live broadcast information from the image-text information database if the target image-text live broadcast information is not queried in the image-text information cache.
According to a fifth aspect of the present disclosure, there is provided an electronic device comprising: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement any one of the live processing methods described above.
According to a sixth aspect of the present disclosure, there is provided a computer-readable storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform any one of the live broadcast processing methods described above.
According to a seventh aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the live broadcast processing method of any one of the above.
The exemplary embodiments of the present disclosure may have the following advantageous effects:
in the live broadcast processing method of the disclosed exemplary embodiment, the image-text live broadcast information is pushed to the client through a long connecting channel between the client and the live broadcast server, wherein the image-text live broadcast information comprises an information index corresponding to each image-text live broadcast content, then when a user consumes the image-text live broadcast content through short connection, the user requests the target image-text live broadcast information corresponding to a plurality of continuous image-text live broadcast contents starting from the current image-text live broadcast content to the image-text information server according to the information index corresponding to the current image-text live broadcast content, and then obtains corresponding live broadcast content data according to the target image-text live broadcast information, and the user can continuously consume live broadcast contents such as videos and the like through content switching operation, such as up-and-down sliding and the like, on a broadcast page. According to the live broadcast processing method in the disclosed example embodiment, the consumption experience of the image-text live broadcast content is fundamentally improved by adopting a mode of combining long connection and short connection, so that the sending of the image-text information does not depend on the long connection of the live broadcast, the sending stability of the image-text information and the horizontal expansibility of a rear-end cluster are improved, and more stable and coherent immersive consumption experience of the image-text live broadcast content can be provided for a user. Based on the live broadcast processing method in the disclosed example embodiment, when a user clicks a certain video or picture and other resources, if one video is played completely, or the user slides up and down, the playing of the next video can be switched to, and the user does not need to quit reselection, so that the user experience of consuming the image-text live broadcast content is greatly improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
FIG. 1 illustrates a flow diagram of a live processing method in a related embodiment of the disclosure;
fig. 2 shows a flowchart of a live broadcast processing method applied to a client according to an example embodiment of the present disclosure;
fig. 3 is a flowchart illustrating a live broadcast processing method applied to a teletext information service end according to an example embodiment of the present disclosure;
fig. 4 is a flowchart illustrating that a teletext information service end stores teletext information according to an example embodiment of the present disclosure;
fig. 5 is a schematic flowchart illustrating a process of acquiring target teletext information by a teletext information server according to an exemplary embodiment of the disclosure;
fig. 6 schematically shows a system architecture diagram of a live processing method in accordance with one embodiment of the present disclosure.
Fig. 7 shows a flow diagram of a live broadcast processing method in an embodiment of the present disclosure;
fig. 8 shows a block diagram of a live broadcast processing apparatus applied to a client according to an example embodiment of the present disclosure;
fig. 9 shows a block diagram of a live broadcast processing device applied to a teletext information service end according to an example embodiment of the disclosure;
FIG. 10 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present disclosure better understood, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein.
The following example embodiments may be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the embodiments of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The image-text live broadcast belongs to a subdivision field of live broadcast, and is suitable for meeting the requirement of a user on obtaining relevant information to the maximum extent under the condition of only possessing the copyright of on-demand and the like. Meanwhile, the image-text live broadcast is also an important content supplement for real-time live broadcast, and information transfer can be carried out for different types of users.
In some related embodiments, as shown in fig. 1, the teletext live broadcast process first needs to establish a long connection between the user client and the live broadcast server, for transmission of live broadcast related signaling, such as chat message, gift transmission, and the like. The image-text background is a background for managing pictures, short videos, characters and audio, an administrator acquires an on-line live broadcast room id (identification), then image-text information is transmitted to a client through live broadcast long connection, and the client analyzes and displays the content.
For the scheme, the content of the image and text depends on the continuous keep-alive of the live long connection, and if the long connection has problems, the live content such as short video and the like can not be continuously consumed.
The present exemplary embodiment first provides a live broadcast processing method, which is applied to a client. Referring to fig. 2, the live broadcast processing method may include the following steps:
and S210, establishing a long connecting channel between the live broadcast server and receiving the image-text live broadcast information pushed by the live broadcast server through the long connecting channel, wherein the image-text live broadcast information comprises an information index and a content link corresponding to each image-text live broadcast content.
And S220, when the user enters a playing detail page of the image-text live broadcast content, acquiring target image-text live broadcast information corresponding to a plurality of continuous image-text live broadcast contents starting from the current image-text live broadcast content through an image-text information server according to the information index corresponding to the current image-text live broadcast content.
And S230, acquiring live broadcast content data corresponding to a plurality of continuous image-text live broadcast contents according to the target image-text live broadcast information.
And S240, responding to the content switching operation of the user on the playing detail page of the image-text live broadcast content, and displaying the corresponding image-text live broadcast content according to the live broadcast content data.
In the live broadcast processing method of the disclosed example embodiment, through a long connection channel between a client and a live broadcast server, image-text live broadcast information is pushed to the client, wherein the image-text live broadcast information includes an information index corresponding to each piece of image-text live broadcast content, then when a user consumes the image-text live broadcast content through short connection, according to the information index corresponding to the current image-text live broadcast content, the user requests the target image-text live broadcast information corresponding to a plurality of continuous image-text live broadcast contents starting from the current image-text live broadcast content to the image-text information server, and then obtains corresponding live broadcast content data according to the target image-text live broadcast information, and the user can continuously consume live broadcast contents such as videos and the like through content switching operations, such as up-and-down sliding operations and the like on a play page. According to the live broadcast processing method in the disclosed example embodiment, the consumption experience of the image-text live broadcast content is fundamentally improved by adopting a mode of combining long connection and short connection, so that the sending of the image-text information does not depend on the long connection of the live broadcast, the sending stability of the image-text information and the horizontal expansibility of a rear-end cluster are improved, and more stable and coherent immersive consumption experience of the image-text live broadcast content can be provided for a user. Based on the live broadcast processing method in the disclosed example embodiment, when a user clicks a certain video or picture and other resources, if one video is played completely, or the user slides up and down, the playing of the next video can be switched to, and the user does not need to quit reselection, so that the user experience of consuming the image-text live broadcast content is greatly improved.
Next, the above steps of the present exemplary embodiment will be described in more detail.
In step S210, a long connection channel with the live broadcast server is established, and the teletext information pushed by the live broadcast server through the long connection channel is received, where the teletext information includes an information index and a content link corresponding to each piece of teletext content.
In this example embodiment, a long connection channel between the client and the live broadcast server may be established when the user enters the live broadcast room, or brushes the live broadcast room and stays there for a period of time. The client can receive the image-text live broadcast information pushed by the live broadcast server through the long connecting channel, wherein the image-text live broadcast information comprises an information index, a content link and the like corresponding to each image-text live broadcast content. The teletext content can be in various forms including but not limited to characters, pictures, short videos, voice, live streams and the like, and each teletext content is marked by a unique information index id and a type. The specific Content data of the teletext live Content can be pre-stored in an object storage space by a teletext background, the Content link of the teletext live Content can be, for example, cdn (Content Delivery Network) address, and the like, and the corresponding live Content data can be obtained through the Content link of the teletext live Content.
In step S220, when the user enters the playing detail page of the teletext live broadcast content, target teletext live broadcast information corresponding to a plurality of continuous teletext live broadcast contents starting from the current teletext live broadcast content is obtained through the teletext information service end according to the information index corresponding to the current teletext live broadcast content.
In this exemplary embodiment, when a user enters a playing detail page of the teletext live content and consumes the teletext live content through a short connection, the client may initiate a request to a teletext information interface in the teletext information server according to an information index corresponding to the teletext live content currently being consumed, and pull target teletext information corresponding to a plurality of consecutive teletext live contents starting from the current teletext live content. For example, target teletext information corresponding to a single-page teletext content starting from a current teletext content may be obtained. Wherein, consumption refers to the behavior of a user watching live contents such as pictures, videos and the like.
In step S230, live content data corresponding to a plurality of continuous teletext live content is obtained according to the target teletext information.
After the client acquires the target image-text live broadcast information, according to the information index and the content link corresponding to each image-text live broadcast content in the target image-text live broadcast information, such as cdn address and the like, live broadcast content data corresponding to a plurality of continuous image-text live broadcast contents can be acquired from the object storage space and cached locally.
In the present exemplary embodiment, live content data can be pulled nearby through the cdn address, on one hand, bandwidth occupation of long connection can be saved, on the other hand, live content data is already pushed to the edge node of cdn, and a client can access the nearby cdn node, thereby further improving user consumption experience.
In step S240, in response to a content switching operation performed by the user on the playing detail page of the teletext live content, the corresponding teletext live content is displayed according to the live content data.
In this example embodiment, a user can perform up-and-down slide playing of live content through content switching operation, such as a slide-up or slide-down mode, on a playing detail page of the image-text live content, and a client performs immersive display on the corresponding image-text live content according to the operation of the user. For example, when a user consumes a video, the video can be automatically and continuously played without any operation.
In the embodiment of the present invention, the client uses a short-connection http (hypertext Transfer Protocol) interface to pull the image-Text live broadcast information, so that the content of the current image-Text live broadcast is weakly dependent on the live long connection, which is beneficial to saving precious long connection resources. Meanwhile, the client uses short connection service, and due to the stateless, the back-end service can dynamically expand and contract the capacity, so that more stable service is provided for the outside. The stateless state means that the server does not maintain the connection state with the client, and each request is a new connection, so that each request of the back-end service is a brand new request without considering the logic of the last request.
In this example embodiment, after the live content of the current page is consumed, the client may continue to request the next page of data until there is no more content in the current live room. In addition, when the consumed live content data in the live content data corresponding to the single-page image-text live content reaches a preset proportion, the live content data corresponding to the next page of image-text live content can be requested again. That is, if the consumption of a certain page of data is finished, or the consumed data reaches a preset proportion, the user will re-request the next page of data to continue consumption when sliding up or down again. A user can consume complete image-text live broadcast contents through a new image-text live broadcast up-and-down interface under the condition of not quitting playing a detail page, and for newly added image-text live broadcast contents, the newly added image-text live broadcast contents can be consumed one by one along with page turning of the detail page.
In addition, the present exemplary embodiment first provides a live broadcast processing method, which is applied to a teletext server. Referring to fig. 3, the live broadcast processing method may include the following steps:
and S310, receiving the image-text live broadcast information sent by the image-text background, wherein the image-text live broadcast information comprises an information index and a content link corresponding to each image-text live broadcast content.
And S320, storing the image-text live broadcast information, and sending the image-text live broadcast information to the client through a long connecting channel between the live broadcast server and the client.
And S330, responding to an acquisition request of the client for the target image-text live broadcast information, acquiring the target image-text live broadcast information, and returning the target image-text live broadcast information to the client so that the client acquires corresponding live broadcast content data according to the target image-text live broadcast information.
Next, the above steps of the present exemplary embodiment will be described in more detail with reference to fig. 4 to 5.
In step S310, receiving the teletext live information sent by the teletext background, where the teletext live information includes an information index and a content link corresponding to each piece of teletext live content.
In this exemplary embodiment, after the teletext background stores the live content data in the object storage space, an information index and a content link corresponding to each piece of teletext content are sent to the teletext information server.
In step S320, the teletext information is stored and sent to the client via a long connection channel between the live broadcast server and the client.
After storing the image-text live broadcast information by the image-text information server, pushing the image-text live broadcast information to the client through a long connecting channel between the live broadcast server and the client.
In this exemplary embodiment, as shown in fig. 4, storing the teletext information may specifically include the following steps:
and S410, storing the image-text live broadcast information in an image-text information database.
The image-text information server firstly carries out database dropping on the image-text live broadcast information and stores the image-text live broadcast information in an image-text information database.
And S420, updating the image-text live broadcast information into an image-text information cache by analyzing a database log of the image-text live broadcast database.
After the image-text live broadcast information is stored in the database, the image-text live broadcast information can be updated to the image-text information cache by analyzing the Binlog log of the image-text live broadcast database. The teletext information caching service may use different caching middleware, which generally includes a local cache and a distributed cache, where the distributed cache commonly includes a Remote Dictionary Server (redis), a memcached (distributed cache system), and the like, and the local cache includes a guava (an open source-based Java library), a coffee (Java cache library), and the like.
The database log Binlog refers to a log recorded locally when the database has operations of updating, inserting, deleting and the like. The Binlog analysis service is a consumption service for updating logs of databases similar to mysql (relational database management system) and oracle (relational database management system), restores database change operations by simulating a database protocol to consume the Binlog logs of the databases, can be used for processing operations of changing the database to the outside, such as updating cache, and can ensure the instant updating of the cache.
In step S330, in response to an acquisition request of the client for the target teletext information, the target teletext information is acquired, and the target teletext information is returned to the client, so that the client acquires corresponding live content data according to the target teletext information.
When the client requests the target image-text live broadcast information from the image-text information server, the image-text information server acquires the target image-text live broadcast information from a cache or a database and then returns the target image-text live broadcast information to the client, so that the client acquires corresponding live broadcast content data according to the target image-text live broadcast information.
In this exemplary embodiment, as shown in fig. 5, the obtaining of the target teletext information may specifically include the following steps:
and S510, inquiring target image-text live broadcast information in image-text information cache.
The image-text information server side firstly inquires the target image-text live broadcast information from the image-text information cache, and if the target image-text live broadcast information is inquired, the target image-text live broadcast information is directly returned.
And S520, if the target image-text live broadcast information is not inquired in the image-text information cache, acquiring the target image-text live broadcast information from the image-text information database.
And if the image-text information server side does not inquire the target image-text live broadcast information in the image-text information cache, requesting the database to acquire the target image-text live broadcast information.
Fig. 6 is a system architecture diagram of a live broadcast processing method according to a specific embodiment of the present disclosure, and the specific contents of the system architecture diagram are as follows:
when the image-text background pushes the image-text live broadcast information, the image-text information service cluster stores the image-text live broadcast information into a database and updates the image-text information into image-text information cache through the analysis binlog. When a user consumes the image-text live broadcast content, each image-text live broadcast content has a unique id and a unique type for marking, and a client requests an image-text message interface in an image-text information service cluster to pull image-text live broadcast information corresponding to the latest image-text live broadcast content with the current id as the starting point. And then the client performs immersive display according to the data issued by the server, namely, the user watches different image-text contents in a mode of sliding upwards or downwards. After the current page content is consumed or a certain proportion of the current page content is consumed, the next page of data is continuously requested until the current live broadcast room has no more content.
Fig. 7 is a complete flowchart of a live broadcast processing method in an embodiment of the present disclosure, which is an example of the above steps in this exemplary embodiment, and specific steps in the flowchart are as follows:
step S702, broadcasting live broadcast, and establishing long connection by the client.
And S704, storing the live content data in an object storage space by the image-text background, wherein the live content data comprises short videos, pictures, characters and the like, and can be stored in the object storage space in a binary system mode.
And S706, returning the image-text live broadcast information corresponding to the live broadcast content data by the object storage space, wherein the image-text live broadcast information comprises information id, cdn addresses and the like.
And S708, the image-text manager pushes the image-text live broadcast information to an image-text information server.
And S710, storing the image-text live broadcast information.
And step S712, analyzing the log file binlog of the database.
And step S714, updating the cache.
And S716, pushing the image-text live broadcast information through long connection.
Step S718, long connection pushing.
And S720, consuming information by the user, and entering a short video and other detailed playing pages.
And S722, requesting single-page image-text live broadcast information with the current information id as the starting point.
And S724, acquiring single-page image-text live broadcast information of the current live broadcast room, and requesting a database if the cache does not exist.
And step S726, returning single-page image-text live broadcast information with the current information id as the start.
Step 728, requesting corresponding live content data.
And S730, returning the live content data.
And S732, after local caching, the client performs up-down sliding playing of the live broadcast content.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
It should be noted that the user information (including but not limited to user device information, user personal information, etc.) referred to in the present disclosure is information authorized by the user or sufficiently authorized by each party.
Furthermore, the present disclosure also provides a live broadcast processing apparatus, which is applied to a client. Referring to fig. 8, the live processing apparatus may include a connection channel establishing module 810, a target information obtaining module 820, a content data obtaining module 830, and a live content presentation module 840. Wherein:
the connection channel establishing module 810 is configured to establish a long connection channel with a live broadcast server, and receive image-text live broadcast information pushed by the live broadcast server through the long connection channel, where the image-text live broadcast information includes an information index and a content link corresponding to each image-text live broadcast content;
the target information obtaining module 820 is configured to obtain, through the teletext information service end, target teletext information corresponding to a plurality of continuous teletext live contents starting from the current teletext live content according to an information index corresponding to the current teletext live content when a user enters a play detail page of the teletext live content;
the content data acquisition module 830 is configured to acquire live content data corresponding to the plurality of continuous teletext content according to the target teletext information;
the live content display module 840 is configured to respond to a content switching operation performed by the user on the playing detail page of the teletext live content, and display corresponding teletext live content according to the live content data.
In some exemplary embodiments of the disclosure, the target information obtaining module 820 may include a single page target information obtaining unit configured to obtain target teletext information corresponding to the single page teletext content starting from the current teletext content.
In some exemplary embodiments of the present disclosure, a live broadcast processing apparatus provided by the present disclosure may further include a content data update module configured to, when live content data consumed in live content data corresponding to the single-page teletext content reaches a preset ratio, re-request live content data corresponding to a next-page teletext content.
Furthermore, the present disclosure also provides a live broadcast processing apparatus, which is applied to a graphic and text information server. Referring to fig. 9, the live broadcast processing apparatus may include a teletext information reception module 910, a teletext information storage module 920, and a target information return module 930. Wherein:
the image-text information receiving module 910 is configured to receive image-text live broadcast information sent by an image-text background, where the image-text live broadcast information includes an information index and a content link corresponding to each piece of image-text live broadcast content;
the image-text information storage module 920 is configured to store the image-text live broadcast information and send the image-text live broadcast information to a client through a long connection channel between a live broadcast server and the client;
the target information returning module 930 is configured to, in response to an acquisition request of the client for target teletext information, acquire the target teletext information and return the target teletext information to the client, so that the client acquires corresponding live content data according to the target teletext information.
In some exemplary embodiments of the present disclosure, the teletext information storage module 920 may comprise a database storage unit and a cache storage unit. Wherein:
the database storage unit is configured to store the teletext information in a teletext information database;
the cache storage unit is configured to update the teletext information into a teletext information cache by parsing a database log of the teletext database.
In some exemplary embodiments of the present disclosure, the target information returning module 930 may include a cache query unit and a database query unit. Wherein:
the cache query unit is configured to query the target teletext information in the teletext information cache;
and the database query unit is configured to acquire the target image-text live broadcast information from the image-text information database if the target image-text live broadcast information is not queried in the image-text information cache.
The details of each module/unit in the above live broadcast processing apparatus have already been described in detail in the corresponding method embodiment section, and are not described here again.
FIG. 10 illustrates a schematic structural diagram of a computer system suitable for use in implementing an electronic device of an embodiment of the present disclosure.
It should be noted that the computer system 1000 of the electronic device shown in fig. 10 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 10, the computer system 1000 includes a Central Processing Unit (CPU) 1001 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 1002 or a program loaded from a storage section 1008 into a Random Access Memory (RAM) 1003. In the RAM 1003, various programs and data necessary for system operation are also stored. The CPU1001, ROM 1002, and RAM 1003 are connected to each other via a bus 1004. An input/output (I/O) interface 1005 is also connected to bus 1004.
The following components are connected to the I/O interface 1005: an input portion 1006 including a keyboard, a mouse, and the like; an output section 1007 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 1008 including a hard disk and the like; and a communication section 1009 including a network interface card such as a LAN card, a modem, or the like. The communication section 1009 performs communication processing via a network such as the internet. The driver 1010 is also connected to the I/O interface 1005 as necessary. A removable medium 1011 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1010 as necessary, so that a computer program read out therefrom is mounted into the storage section 1008 as necessary.
In particular, the processes described above with reference to the flow diagrams may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication part 1009 and/or installed from the removable medium 1011. When the computer program is executed by a Central Processing Unit (CPU) 1001, various functions defined in the system of the present application are executed.
It should be noted that the computer readable medium shown in the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer-readable signal medium may include a propagated data signal with computer-readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiment; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by an electronic device, cause the electronic device to implement the method as described in the embodiments above.
It should be noted that although in the above detailed description several modules of the device for action execution are mentioned, this division is not mandatory. Indeed, the features and functions of two or more of the modules described above may be embodied in one module, according to embodiments of the present disclosure. Conversely, the features and functions of one module described above may be further divided into embodiments by a plurality of modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice in the art to which the disclosure pertains.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (11)

1. A live broadcast processing method is applied to a client and is characterized by comprising the following steps:
establishing a long connecting channel between the live broadcast server and receiving image-text live broadcast information pushed by the live broadcast server through the long connecting channel, wherein the image-text live broadcast information comprises an information index and a content link corresponding to each image-text live broadcast content;
when a user enters a playing detail page of the image-text live broadcast content, target image-text live broadcast information corresponding to a plurality of continuous image-text live broadcast contents starting from the current image-text live broadcast content is obtained through an image-text information server according to an information index corresponding to the current image-text live broadcast content;
acquiring live broadcast content data corresponding to the continuous image-text live broadcast contents according to the target image-text live broadcast information;
responding to the content switching operation of the user on the playing detail page of the image-text live content, and displaying the corresponding image-text live content according to the live content data.
2. The live broadcast processing method according to claim 1, wherein the acquiring target live broadcast information corresponding to a plurality of continuous live broadcast contents starting from the current live broadcast content includes:
and acquiring target image-text live broadcast information corresponding to the single-page image-text live broadcast content starting from the current image-text live broadcast content.
3. The live processing method of claim 2, further comprising:
and when the consumed live content data in the live content data corresponding to the single-page image-text live content reaches a preset proportion, re-requesting the live content data corresponding to the next page of image-text live content.
4. A live broadcast processing method is applied to a graphic and text information server side and is characterized by comprising the following steps:
receiving image-text live broadcast information sent by an image-text background, wherein the image-text live broadcast information comprises an information index and a content link corresponding to each image-text live broadcast content;
storing the image-text live broadcast information, and sending the image-text live broadcast information to a client through a long connecting channel between a live broadcast server and the client;
responding to an acquisition request of the client aiming at the target image-text live broadcast information, acquiring the target image-text live broadcast information, and returning the target image-text live broadcast information to the client so that the client acquires corresponding live broadcast content data according to the target image-text live broadcast information.
5. The live broadcast processing method according to claim 4, wherein the storing the teletext information comprises:
storing the image-text live broadcast information in an image-text information database;
and updating the image-text live broadcast information to an image-text information cache by analyzing a database log of the image-text live broadcast database.
6. The live broadcast processing method according to claim 5, wherein the acquiring the target teletext information includes:
inquiring the target image-text live broadcast information in the image-text information cache;
and if the target image-text live broadcast information is not inquired in the image-text information cache, acquiring the target image-text live broadcast information from the image-text information database.
7. A live broadcast processing device applied to a client side is characterized by comprising:
the connection channel establishing module is configured to execute establishment of a long connection channel between the connection channel establishing module and a live broadcast server, and receive image-text live broadcast information pushed by the live broadcast server through the long connection channel, wherein the image-text live broadcast information comprises an information index and a content link corresponding to each image-text live broadcast content;
the target information acquisition module is configured to execute the steps that when a user enters a playing detail page of the image-text live broadcast content, target image-text live broadcast information corresponding to a plurality of continuous image-text live broadcast contents starting from the current image-text live broadcast content is acquired through an image-text information server according to an information index corresponding to the current image-text live broadcast content;
the content data acquisition module is configured to acquire live content data corresponding to the continuous teletext contents according to the target teletext information;
and the live content display module is configured to execute content switching operation performed by the user on the playing detail page of the image-text live content, and display the corresponding image-text live content according to the live content data.
8. A live broadcast processing device is applied to a graphic and text information server side and is characterized by comprising:
the image-text information receiving module is configured to execute receiving of image-text live broadcast information sent by an image-text background, wherein the image-text live broadcast information comprises an information index and a content link corresponding to each piece of image-text live broadcast content;
the image-text information storage module is configured to store the image-text live broadcast information and send the image-text live broadcast information to the client through a long connecting channel between a live broadcast server and the client;
and the target information returning module is configured to execute the acquisition request aiming at the target image-text live broadcast information of the client, acquire the target image-text live broadcast information and return the target image-text live broadcast information to the client so that the client acquires corresponding live broadcast content data according to the target image-text live broadcast information.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the live processing method of any of claims 1-6.
10. A computer-readable storage medium whose instructions, when executed by a processor of an electronic device, enable the electronic device to perform the live processing method of any of claims 1-6.
11. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements a live processing method as claimed in any one of claims 1 to 6.
CN202211008965.6A 2022-08-22 2022-08-22 Live broadcast processing method and device, electronic equipment and computer readable medium Pending CN115408593A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211008965.6A CN115408593A (en) 2022-08-22 2022-08-22 Live broadcast processing method and device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211008965.6A CN115408593A (en) 2022-08-22 2022-08-22 Live broadcast processing method and device, electronic equipment and computer readable medium

Publications (1)

Publication Number Publication Date
CN115408593A true CN115408593A (en) 2022-11-29

Family

ID=84161786

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211008965.6A Pending CN115408593A (en) 2022-08-22 2022-08-22 Live broadcast processing method and device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN115408593A (en)

Similar Documents

Publication Publication Date Title
CN103108251B (en) A kind of TV user interaction systems and method thereof
KR102262982B1 (en) Method, apparatus and system for slicing live streaming
CN110933517B (en) Code rate switching method, client and computer readable storage medium
CN103686245A (en) Video-on-demand and live broadcasting switching method and device based on HLS protocol
CN111314433B (en) Message transmission method and device and electronic equipment
CN112839067B (en) Data synchronization method and device
US11936924B2 (en) Live room setup method and apparatus, electronic device, and storage medium
US11032683B2 (en) Method and apparatus for publishing cloud resource
CN109640113A (en) A kind of processing method and proxy server of dilatory video data
CN108228625B (en) Push message processing method and device
CN112565907A (en) Video acquisition method, electronic device and storage medium
CN104602032A (en) Video playing processing method, playing application proxy device and playing server
US20230247234A1 (en) Method and apparatus for playing livestreaming video, electronic device, storage medium, and program product
EP4297416A1 (en) Angle-of-view switching method, apparatus and system for free angle-of-view video, and device and medium
CN111090533A (en) Notice information sending method and device, electronic equipment and storage medium
CN113553511A (en) User real-time recommendation method, device, system, equipment and readable storage medium
CN113139377A (en) Method, device, equipment and computer readable medium for pushing information
CN115408593A (en) Live broadcast processing method and device, electronic equipment and computer readable medium
CN108989426B (en) HLS protocol-based stream pulling method, system, client and storage medium
AU2012261393B2 (en) Method and system for inputting information to mobile terminal as well as mobile terminal
CN110740337B (en) Live broadcast method and device, electronic equipment and storage medium
CN114679602A (en) Data processing method and device, electronic equipment and storage medium
CN111182330B (en) Video playing method and device
CN111368557B (en) Video content translation method, device, equipment and computer readable medium
CN104065678A (en) Dual-mode data reception and access method based on embedded browser

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