CN115134619A - Live broadcast room display method and device, storage medium and electronic equipment - Google Patents

Live broadcast room display method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN115134619A
CN115134619A CN202210731093.XA CN202210731093A CN115134619A CN 115134619 A CN115134619 A CN 115134619A CN 202210731093 A CN202210731093 A CN 202210731093A CN 115134619 A CN115134619 A CN 115134619A
Authority
CN
China
Prior art keywords
module
live broadcast
live
broadcast room
room
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
CN202210731093.XA
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.)
Guangzhou Boguan Information Technology Co Ltd
Original Assignee
Guangzhou Boguan 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 Guangzhou Boguan Information Technology Co Ltd filed Critical Guangzhou Boguan Information Technology Co Ltd
Priority to CN202210731093.XA priority Critical patent/CN115134619A/en
Publication of CN115134619A publication Critical patent/CN115134619A/en
Pending legal-status Critical Current

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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • 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
    • 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/439Processing of audio elementary streams
    • 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • 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/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations

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 disclosure belongs to the technical field of live broadcasting, and relates to a live broadcasting room display method and device, a storage medium and electronic equipment. The method comprises the following steps: acquiring a module type of a functional module in a first direct broadcasting room, and determining the loading weight of the functional module according to the module type; and responding to a first starting instruction aiming at the first live broadcast room, and loading the functional module according to the loading weight so as to display the first live broadcast room. According to the method and the device, the loading weight is determined according to the acquired module type of the functional module of the first live broadcast room, and data support and theoretical basis are provided for loading and displaying the first live broadcast room. Furthermore, the function module is loaded according to the loading weight, so that the problem that the memory of the computer is frequently destroyed and created is effectively solved, the overhead time of the computer is reduced, and the display speed of the first live broadcast room is improved, so that the visual effect of second live broadcast room is achieved, the user experience is optimized, and great contribution is also made to a live broadcast platform.

Description

Live broadcast room display method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of live broadcast technologies, and in particular, to a live broadcast room display method, a live broadcast room display apparatus, a computer-readable storage medium, and an electronic device.
Background
Currently, various types of live broadcast rooms such as games, show rooms and the like are respectively arranged on a live broadcast platform according to different live broadcast contents. The functions loaded for each type of room are different, resulting in the need for a user to unload or load a new function module when jumping from one room to another. Even more extreme, it is necessary to destroy the entire room and then recreate a new room. Therefore, a large amount of memory reclamation and creation may be involved in the destruction and creation process.
In a computer, once the recovery and creation of a memory are involved, additional overhead is caused, and a certain time is required for processing, so that the effect of entering a live broadcasting room in seconds cannot be achieved, the illusion that the live broadcasting room is slow and a card is very slow is caused to a user, the user experience is very poor, and the problem is very serious for a live broadcasting platform.
Accordingly, there is a need in the art to develop a new live broadcast display method and apparatus.
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 is directed to a live broadcast room display method, a live broadcast room display apparatus, a computer-readable storage medium, and an electronic device, so as to overcome, at least to some extent, a technical problem that a user cannot enter a live broadcast room in seconds due to limitations of related technologies.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to a first aspect of the embodiments of the present invention, there is provided a live broadcast room display method, including:
acquiring a module type of a functional module in a first direct broadcasting room, and determining the loading weight of the functional module according to the module type;
and responding to a first starting instruction aiming at the first live broadcast room, and loading the functional module according to the loading weight so as to display the first live broadcast room.
In an exemplary embodiment of the invention, the module type includes: the system comprises a basic layout module, a live broadcast function module and a service type module.
In an exemplary embodiment of the present invention, the obtaining a module type of the function module in the first direct broadcasting room includes:
when a functional module for network interaction exists in a first live broadcast room, determining the module type of the functional module as the live broadcast functional module or the service type module;
and when a functional module which does not perform network interaction exists in the first live broadcast room, determining the module type of the functional module as the basic layout module.
In an exemplary embodiment of the present invention, the determining that the module type of the function module is the live function module or the service type module includes:
determining a function module shared by all live broadcast rooms in the first live broadcast room as the live broadcast function module;
and determining a function module related to the live type of the first live room as the service type module.
In an exemplary embodiment of the present invention, the loading the functional module according to the loading weight includes:
when the loading weight of the basic layout module is greater than the loading weights of the live broadcast function module and the business type module, loading the basic layout module;
when the loading weight of the live broadcast function module is greater than that of the service type module, loading the live broadcast function module;
and when the basic layout module and the live broadcast function module are loaded, loading the service type module.
In an exemplary embodiment of the invention, after the displaying the first live broadcast room, the method further comprises:
and in response to a closing instruction aiming at the first live broadcast room, suspending the network interaction of the live broadcast function module and the service type module and hiding the first live broadcast room.
In an exemplary embodiment of the invention, after hiding the first live broadcast, the method further comprises:
responding to a second starting instruction aiming at the first live broadcast room, and acquiring first anchor information of the first live broadcast room;
and according to the first anchor information, reconnecting the network interaction of the live broadcast function module and the service type module, and displaying the first direct broadcast room again.
In an exemplary embodiment of the invention, after hiding the first live broadcast, the method further comprises:
responding to a third starting instruction aiming at a second live broadcast room, and acquiring second anchor information of the second live broadcast room;
and according to the second anchor information, the network interaction of the live broadcast function module and the service type module is reconnected, and the service type module is adjusted and displayed so as to display the second live broadcast room.
In an exemplary embodiment of the present invention, the adjusting and displaying the service type module includes:
if the service type modules of the second live broadcast room and the first live broadcast room are the same, the service type module is kept to be displayed;
if the service type modules of the second live broadcast room and the first live broadcast room are different, hiding the service type module.
According to a second aspect of an embodiment of the present invention, there is provided a live room display apparatus including:
the function dividing module is configured to acquire a module type of a function module in a first direct broadcasting room and determine the loading weight of the function module according to the module type;
a room display module configured to respond to a first starting instruction aiming at the first live broadcast room, and load the function module according to the loading weight so as to display the first live broadcast room.
According to a third aspect of embodiments of the present invention, there is provided an electronic apparatus including: a processor and a memory; wherein the memory has stored thereon computer readable instructions which, when executed by the processor, implement a live-air display method in any of the above exemplary embodiments.
According to a fourth aspect of embodiments of the present invention, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a live-air display method in any of the above-described exemplary embodiments.
As can be seen from the foregoing technical solutions, the live broadcast room display method, the live broadcast room display apparatus, the computer storage medium, and the electronic device in the exemplary embodiment of the present disclosure have at least the following advantages and positive effects:
in the method and the device provided by the exemplary embodiment of the disclosure, the loading weight is determined according to the acquired module type of the functional module of the first live broadcast room, and data support and theoretical basis are provided for loading and displaying the first live broadcast room. Furthermore, the function module is loaded according to the loading weight, the problem that the memory of the computer is frequently destroyed and created is effectively solved, the overhead time of the computer is reduced, and the display speed of the first live broadcasting room is improved, so that the visual effect of entering the live broadcasting room in seconds is achieved, the user experience is optimized, and great contribution is also made to the live broadcasting platform.
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 schematically illustrates a flow chart of a live broadcast room display method in an exemplary embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a method of determining a module type of a functional module in an exemplary embodiment of the disclosure;
fig. 3 schematically illustrates a flowchart of a method for distinguishing a live broadcast function module from a traffic type module in an exemplary embodiment of the present disclosure;
FIG. 4 is a flow diagram that schematically illustrates a method for loading functional modules according to a loading weight in an exemplary embodiment of the present disclosure;
FIG. 5 schematically illustrates a flow chart of a method of redisplaying a first live room in an exemplary embodiment of the disclosure;
FIG. 6 schematically illustrates a flow chart of a method of displaying a second live room in an exemplary embodiment of the disclosure;
FIG. 7 is a flow chart schematically illustrating a method for adjusting a display traffic type module in an exemplary embodiment of the disclosure;
fig. 8 is a flowchart schematically illustrating a live room display method in an application scenario in an exemplary embodiment of the present disclosure;
fig. 9 schematically illustrates a structural diagram of a live room display apparatus in an exemplary embodiment of the present disclosure;
FIG. 10 schematically illustrates an electronic device for implementing a live-air display method in an exemplary embodiment of the present disclosure;
fig. 11 schematically illustrates a computer-readable storage medium for implementing a live-air display method in an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, 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 subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
The terms "a", "an", "the" and "said" are used in this specification to denote the presence of one or more elements/components/parts/etc.; the terms "comprising" and "having" are intended to be inclusive and mean that there may be additional elements/components/etc. other than the listed elements/components/etc.; the terms "first" and "second", etc. are used merely as labels, and are not limiting on the number of their objects.
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.
Currently, various types of live broadcast rooms such as games, show rooms and the like are respectively arranged on a live broadcast platform according to different live broadcast contents. The functions loaded for each type of room are different, resulting in the need for a user to unload or load a new function module when jumping from one room to another. Even more extreme, it is necessary to destroy the entire room and then recreate a new room. Therefore, a large amount of memory reclamation and creation may be involved in the destruction and creation process.
In a computer, once the recovery and creation of a memory are involved, additional overhead is caused, and a certain time is required for processing, so that the effect of entering a live broadcasting room in seconds cannot be achieved, the illusion that the live broadcasting room is slow and a card is very slow is caused to a user, the user experience is very poor, and the problem is very serious for a live broadcasting platform.
Aiming at the problems in the related art, the present disclosure provides a live broadcast room display method. Fig. 1 shows a flow chart of a live-air display method, and as shown in fig. 1, the live-air display method at least includes the following steps:
and S110, acquiring the module type of the functional module in the first direct broadcasting room, and determining the loading weight of the functional module according to the module type.
And S120, responding to a first starting instruction aiming at the first live broadcast room, and loading a functional module according to the loading weight so as to display the first live broadcast room.
In the exemplary embodiment of the disclosure, the loading weight is determined according to the acquired module type of the functional module of the first live broadcast room, so that data support and theoretical basis are provided for loading and displaying the first live broadcast room. Furthermore, the function module is loaded according to the loading weight, so that the problem that the memory of the computer is frequently destroyed and created is effectively solved, the overhead time of the computer is reduced, and the display speed of the first live broadcast room is improved, so that the visual effect of second live broadcast room is achieved, the user experience is optimized, and great contribution is also made to a live broadcast platform.
The following describes each step of the live broadcast display method in detail.
In step S110, a module type of the function module in the first live room is obtained, and a loading weight of the function module is determined according to the module type.
In an exemplary embodiment of the present disclosure, the first live broadcast room may be any type of live broadcast room of a live broadcast platform, and this exemplary embodiment is not particularly limited to this.
The first live broadcast room can be divided according to the creation loading characteristics of the functional modules of the live broadcast room, so that the functional modules of at least two module types can be obtained after the first live broadcast room is divided.
In an alternative embodiment, the module types include: the system comprises a basic layout module, a live broadcast function module and a service type module.
For example, some functional modules are required for each type of live room, and some are not. Therefore, the functional modules of the live broadcast room can be divided and the corresponding module types can be obtained.
In an alternative embodiment, fig. 2 shows a flow chart of a method for determining a module type of a functional module, which may include at least the following steps, as shown in fig. 2: in step S210, when a functional module for performing network interaction exists in the first live broadcast room, it is determined that the module type of the functional module is a live broadcast functional module or a service type module.
According to the characteristic that whether the functional module needs to carry out network interaction or not, the functional module with the network interaction can be divided into a live broadcast functional module and a service type module.
Furthermore, the direct broadcasting function module and the service type module can be continuously divided.
In an alternative embodiment, fig. 3 shows a flowchart of a method for distinguishing a live broadcast function module from a service type module, and as shown in fig. 3, the method may include at least the following steps: in step S310, a function module common to all live rooms in the first live room is determined as a live function module.
All live broadcast rooms need to acquire video streams, audio streams and the like of the player through network interaction, and therefore the common functional module in the first live broadcast room can be divided into live broadcast functional modules.
Therefore, the live broadcast function module can acquire the video stream and the audio stream of the player through network interaction.
In step S320, a function module related to the live type of the first live broadcast room is determined as a service type module.
Different service type modules can be set according to the live broadcast types of different live broadcast rooms. The service type module is required to be displayed or hidden according to different live broadcast types.
The service type module can comprise a chat system, a gift system, a revenue service, a main broadcasting playing method and the like.
Then, the functional modules in the first live broadcast room, which are determined by the live broadcast type, can be divided into service type modules.
In the exemplary embodiment, the live broadcast function module and the service type module can be distinguished by determining the live broadcast function module and the service type module, so that the first live broadcast function module is further refined, and finer-grained distinction is provided for loading of a live broadcast.
In step S220, when there is a functional module that does not perform network interaction in the first live broadcast room, determining the module type of the functional module as a basic layout module.
The functional modules without network interaction can be divided into basic layout modules according to the characteristic that whether the functional modules need to carry out network interaction.
The basic layout module is a functional module which is determined by the live broadcast platform and cannot be modified, and can comprise a title bar, a user list, room announcements, a background and the like.
In the exemplary embodiment, the functional modules of the first live broadcast room can be distinguished according to the characteristics of whether network interaction exists, and the distinguishing mode is closely combined with the characteristics of the functional modules of the live broadcast room, so that the accuracy of the determined module types is ensured.
After the multiple functional modules are obtained by dividing the first live broadcast room and the corresponding module types are obtained, the loading weights set for the functional modules of different module types can be further obtained.
The loading weight may characterize the loading order of the different functional modules.
Specifically, the larger the loading weight can be set, the more advanced the loading order is.
For example, the basic layout module and the live function module can be arranged at the top of the loading sequence by recording the setting of the weight, and the service type module which is time-consuming or less important can be arranged at the back of the loading sequence.
In step S120, in response to a first start instruction for the first live broadcast room, the functional module is loaded according to the loading weight to display the first live broadcast room.
When a user enters the first live broadcast room for the first time, each functional module can be loaded through the first starting execution.
In an alternative embodiment, fig. 4 shows a flowchart of a method for loading a functional module according to a loading weight, and as shown in fig. 4, the method may at least include the following steps: in step S410, when the loading weight of the basic layout module is greater than the loading weights of the live function module and the service type module, the basic layout module is loaded.
When the loading weight is set to be larger and the loading sequence is closer to the front, the loading weight of the basic layout module can be determined to be simultaneously larger than the loading weights of the live broadcast function module and the business type module, so that the basic layout module can be loaded firstly.
The whole framework of the live room can be quickly rendered through loading of the basic layout module.
In step S420, when the loading weight of the live function module is greater than the loading weight of the service type module, the live function module is loaded.
When the loading weight is set to be larger and the loading sequence is closer to the front, the loading weight of the live broadcast function module can be further determined to be larger than the loading weight of the service type module, so that the live broadcast function module can be further loaded after the basic layout module is loaded.
Video stream and audio stream can be pulled fast through recording the live broadcast function module.
In step S430, when the basic layout module and the live function module are loaded, the service type module is loaded.
And when the loading weight is set to be larger and the loading sequence is closer to the front, the business type module can be loaded finally after the basic layout module and the live broadcast function module are loaded.
After the basic layout module, the live broadcast function module and the service type module are loaded, the first live broadcast room can be completely displayed.
It should be noted that, in addition to the loading weight and the loading order having a positive correlation, the loading weight and the loading order may also have a negative correlation, and this is not particularly limited in this exemplary embodiment.
In the exemplary embodiment, different functional modules are loaded according to the loading sequence represented by the loading weight, so that the effect of second entering the live broadcasting room is achieved, and the user experience is optimized.
In an optional embodiment, in response to a close instruction for the first live broadcast room, network interaction of the live broadcast function module and the service type module is suspended, and the first live broadcast room is hidden.
When the user exits the first live broadcast room through the closing instruction, the first live broadcast room does not need to be destroyed, and any function module does not need to be uninstalled. That is, the control computer does not destroy the memory related to the room, but suspends the live broadcast function module and the service type module which perform network interaction with the server, and hides the first live broadcast room as a whole.
Specifically, the video stream and the audio stream of the player are cut off in a packet loss mode, and the business type modules such as gift shelf and the like are hidden, but are not destroyed in the memory of the computer. And, the first live broadcast room is hidden by calling the corresponding interface.
In an alternative embodiment, fig. 5 shows a flow diagram of a method for redisplaying a first live room, which, as shown in fig. 5, may include at least the following steps: in step S510, in response to a second start instruction for the first live broadcast, first anchor information of the first live broadcast is acquired.
When the user generates the second starting instruction for entering the first live broadcast room again, the re-creation of the basic layout module can be skipped, and the consumption caused by the re-creation of the same module is avoided.
Further, first anchor information in the first direct broadcasting room is obtained. The first anchor information may be an Identity Document (ID) that can uniquely characterize the corresponding anchor.
In step S520, the network interaction between the live function module and the service type module is reconnected according to the first anchor information, and the first live room is displayed again.
After the first anchor information is acquired, the network interaction of the suspended live broadcast function module and the suspended service type module can be restored according to the first anchor information, and data interaction and display of the first live broadcast room are carried out again, so that the overall display speed of the first live broadcast room is increased, and the visual effect of entering the live broadcast room in seconds under any condition is achieved.
In an alternative embodiment, fig. 6 shows a flow diagram of a method of displaying a second live broadcast room, which may include at least the following steps, as shown in fig. 6: in step S610, second anchor information of the second live broadcast room is acquired in response to a third start instruction for the second live broadcast room.
When the user starts the second live broadcast room through the third starting instruction, the second anchor information of the second live broadcast room can be obtained. The second anchor information may also be an anchor ID.
It is noted that the second live broadcast room is another live broadcast room different from the first live broadcast room.
In step S620, the network interaction between the live function module and the service type module is reconnected according to the second anchor information, and the display service type module is adjusted to display the second live broadcast.
After the second anchor information is acquired, the network interaction of the suspended live broadcast function module and the service type module can be reconnected from the server according to the second anchor information.
However, since different anchor may cause the service type module to be different, it is possible to adjust when displaying the service type module.
In order to determine the adjustment mode of the service type module, the service type module of the second live broadcast room can be compared with the service type module of the first live broadcast room.
In an alternative embodiment, fig. 7 is a flowchart illustrating a method for adjusting a display service type module, and as shown in fig. 7, the method may include at least the following steps: in step S710, if the service type modules of the second live broadcast room and the first live broadcast room are the same, the service type module is kept displayed.
And when the comparison result of the service type module of the second live broadcast room and the service type module of the first live broadcast room is that the service type modules of the second live broadcast room and the first live broadcast room are the same, the service type module of the first live broadcast room can be kept to be displayed so as to display the second live broadcast room.
In step S720, if the service type modules of the second live broadcast room and the first live broadcast room are different, the service type module is hidden.
When the comparison result of the service type module of the second live broadcast room and the service type module of the first live broadcast room is that the service type modules of the second live broadcast room and the first live broadcast room are different, the service type module of the first live broadcast room can be hidden so as to update and display another service type module of the second live broadcast room, and thus the second live broadcast room is displayed.
In the exemplary embodiment of the disclosure, when entering the second live broadcast room, the display and the hiding of the function module of the second live broadcast room can be determined according to the second anchor information, the display states of the function modules of different live broadcast rooms can be adjusted in real time, and the effect of second entering can be achieved when a user enters other live broadcast rooms.
The following describes a live broadcast room display method in the embodiment of the present disclosure in detail with reference to an application scenario.
Fig. 8 is a flowchart illustrating a live view display method in an application scenario, and as shown in fig. 8, in step S810, a live view is entered.
Before entering the live broadcast room, the live broadcast room can be divided to obtain at least two functional modules, and the loading weight of the functional modules is obtained according to the module types of the divided functional modules.
The live broadcast room may be any type of live broadcast room of a live broadcast platform, and this exemplary embodiment is not particularly limited thereto.
According to the creation and loading characteristics of the functional modules of the live broadcast room, the live broadcast room can be divided, so that the functional modules of at least two module types can be obtained after the live broadcast room is divided.
Wherein the module types may include: the system comprises a basic layout module, a live broadcast function module and a service type module.
For example, some functional modules are required for each type of live room, and some are not. Therefore, the functional modules of the live broadcast room can be divided and the corresponding module types can be obtained.
And when the first live broadcast room has a functional module for network interaction, determining that the module type of the functional module is a live broadcast functional module or a service type module.
According to the characteristic that whether the functional module needs to carry out network interaction or not, the functional module with the network interaction can be divided into a live broadcast functional module and a service type module.
Furthermore, the direct broadcast function module and the service type module can be continuously divided.
And determining a function module shared by the first live broadcast room and all live broadcast rooms as a live broadcast function module.
All live broadcast rooms need to acquire video streams, audio streams and the like of the player through network interaction, and therefore the common functional module in the live broadcast rooms can be divided into live broadcast functional modules.
Therefore, the live broadcast function module can acquire the video stream and the audio stream of the player through network interaction.
And determining a function module related to the live type of the first live broadcasting room as a service type module.
Different service type modules can be set according to the live broadcast types of different live broadcast rooms. The service type module is required to be displayed or hidden according to different live broadcast types.
The service type module can comprise a chat system, a gift system, a revenue service, a main broadcasting playing method and the like.
Then, the functional modules in the live broadcast room, which are determined by the live broadcast type, can be divided into service type modules.
And when the functional module which does not perform network interaction exists in the first live broadcast room, determining the module type of the functional module as a basic layout module.
The functional modules without network interaction can be divided into basic layout modules according to the characteristic that whether the functional modules need to perform network interaction.
The basic layout module is a functional module which is directly determined by the live broadcast platform and cannot be modified, and can comprise a title bar, a user list, room announcements, a background and the like.
After the various functional modules are obtained by dividing the first live broadcast room and the corresponding module types are obtained, the loading weights set for the functional modules of the divided different module types can be further obtained.
The loading weight may characterize the loading order of the different functional modules.
Specifically, the greater the loading weight can be set, the more forward the loading order is.
For example, the basic layout module and the live function module can be arranged at the forefront of the loading sequence by recording the setting of the weight, and the service type module which is time-consuming or less important can be arranged at the back of the loading sequence.
In step S820, a UI is loaded.
When a user enters the first live broadcast room for the first time, each functional module can be loaded through the first starting execution.
In step S830, the base module is loaded.
And when the loading weight of the basic layout module is greater than the loading weights of the live broadcast function module and the business type module, loading the basic layout module.
When the loading weight is set to be larger and the loading sequence is closer to the front, the loading weight of the basic layout module can be determined to be simultaneously larger than the loading weights of the live broadcast function module and the business type module, so that the basic layout module can be loaded firstly.
The whole framework of the live room can be quickly rendered through loading of the basic layout module.
In step S840, a data interaction is established/resumed.
And when the loading weight of the live broadcast function module is greater than that of the service type module, loading the live broadcast function module.
When the loading weight is set to be larger and the loading sequence is more advanced, the live broadcast function module can be further determined to be loaded with a weight larger than that of the service type module, and therefore the live broadcast function module can be further loaded after the basic layout module is loaded.
Video stream and audio stream can be pulled fast through recording the live broadcast function module.
In step S850, the service is loaded/hidden.
And when the basic layout module and the live broadcast function module are loaded, loading the service type module.
And when the loading weight is set to be larger and the loading sequence is closer to the front, the business type module can be loaded finally after the basic layout module and the live broadcast function module are loaded.
In step S860, presentation is performed.
After the basic layout module, the live broadcast function module and the service type module are loaded, the live broadcast room can be completely displayed.
In step S870, the live room is exited.
The user can exit the live room through a close command.
In step S880, data interaction is suspended.
When the user exits the live broadcast room through the closing instruction, the live broadcast room does not need to be destroyed, and any functional module does not need to be uninstalled. That is, the control computer does not destroy the memory related to the room, but suspends the live broadcast function module and the service type module which perform network interaction with the server.
Specifically, the video stream and the audio stream of the player are cut off in a packet loss mode, and the business type modules such as gift shelf and the like are hidden, but are not destroyed in the memory of the computer.
In step S890, the live room is hidden.
And hiding the live broadcast room by calling a corresponding interface.
When the user generates a second start instruction for entering the live broadcast room again, the re-creation of the basic layout module can be skipped, and the consumption caused by the re-creation of the same module is avoided.
Further, the anchor information in the live broadcast room is obtained. The anchor information may be an anchor ID.
After the anchor information is acquired, the network interaction of the suspended live broadcast function module and the service type module can be restored according to the anchor information. And the data interaction and the display of the first live broadcast room are carried out again, so that the overall display speed of the first live broadcast room is improved, and the visual effect of entering the live broadcast room in seconds under any condition is achieved.
The connection recovery method is the same as step S840 and step S850, and is not described herein again.
In the live broadcast room display method in the exemplary embodiment of the disclosure, the loading weight is determined according to the acquired module type of the functional module of the first live broadcast room, and data support and theoretical basis are provided for loading and displaying the first live broadcast room. Furthermore, the function module is loaded according to the loading weight, so that the problem that the memory of the computer is frequently destroyed and created is effectively solved, the overhead time of the computer is reduced, and the display speed of the first live broadcast room is improved, so that the visual effect of second live broadcast room is achieved, the user experience is optimized, and great contribution is also made to a live broadcast platform.
Furthermore, in an exemplary embodiment of the present disclosure, a live-air display apparatus is also provided. Fig. 9 is a schematic diagram illustrating a structure of a live room display apparatus, and as shown in fig. 9, the live room display apparatus 900 may include: a functional division module 910 and a room display module 920. Wherein:
a function dividing module 910, configured to obtain a module type of a function module in a first direct broadcasting room, and determine a loading weight of the function module according to the module type;
a room display module 920 configured to load the function module according to the loading weight in response to a first start instruction for the first live broadcast room to display the first live broadcast room.
In an exemplary embodiment of the invention, the module type includes: the system comprises a basic layout module, a live broadcast function module and a service type module.
In an exemplary embodiment of the present invention, the obtaining a module type of the function module in the first direct broadcasting room includes:
when a functional module for network interaction exists in a first live broadcast room, determining the module type of the functional module as the live broadcast functional module or the service type module;
and when a functional module which does not perform network interaction exists in the first live broadcast room, determining the module type of the functional module as the basic layout module.
In an exemplary embodiment of the present invention, the determining that the module type of the function module is the live function module or the service type module includes:
determining a function module shared by all live broadcast rooms in the first live broadcast room as the live broadcast function module;
and determining a function module related to the live type of the first live room as the service type module.
In an exemplary embodiment of the present invention, the loading the functional module according to the loading weight includes:
when the loading weight of the basic layout module is greater than the loading weights of the live broadcast function module and the business type module, loading the basic layout module;
when the loading weight of the live broadcast function module is greater than that of the service type module, loading the live broadcast function module;
and when the basic layout module and the live broadcast function module are loaded, loading the service type module.
In an exemplary embodiment of the invention, after the displaying the first live broadcast room, the method further comprises:
and in response to a closing instruction aiming at the first live broadcast room, suspending the network interaction of the live broadcast function module and the service type module and hiding the first live broadcast room.
In an exemplary embodiment of the invention, after hiding the first live broadcast, the method further comprises:
responding to a second starting instruction aiming at the first live broadcast room, and acquiring first anchor information of the first live broadcast room;
and according to the first anchor information, reconnecting the network interaction of the live broadcast function module and the service type module, and displaying the first direct broadcast room again.
In an exemplary embodiment of the invention, after hiding the first live broadcast, the method further comprises:
responding to a third starting instruction aiming at a second live broadcast room, and acquiring second anchor information of the second live broadcast room;
and according to the second anchor information, the network interaction of the live broadcast function module and the service type module is reconnected, and the service type module is adjusted and displayed so as to display the second live broadcast room.
In an exemplary embodiment of the present invention, the adjusting and displaying the service type module includes:
if the service type modules of the second live broadcast room and the first live broadcast room are the same, the service type module is kept to be displayed;
if the service type modules of the second live broadcast room and the first live broadcast room are different, hiding the service type module.
The details of the live-air display apparatus 900 are described in detail in the corresponding live-air display method, and therefore are not described herein again.
It should be noted that although several modules or units of the live room display apparatus 900 are mentioned in the above detailed description, such division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
An electronic device 1000 according to such an embodiment of the invention is described below with reference to fig. 10. The electronic device 1000 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 invention.
As shown in fig. 10, the electronic device 1000 is embodied in the form of a general purpose computing device. The components of the electronic device 1000 may include, but are not limited to: the at least one processing unit 1010, the at least one memory unit 1020, a bus 1030 connecting different system components (including the memory unit 1020 and the processing unit 1010), and a display unit 1040.
Wherein the storage unit stores program code that is executable by the processing unit 1010 to cause the processing unit 1010 to perform steps according to various exemplary embodiments of the present invention as described in the "exemplary methods" section above in this specification.
The memory unit 1020 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)1021 and/or a cache memory unit 1022, and may further include a read-only memory unit (ROM) 1023.
Storage unit 1020 may also include a program/utility 1024 having a set (at least one) of program modules 1025, such program modules 1025 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 1030 may be any one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, and a local bus using any of a variety of bus architectures.
The electronic device 1000 may also communicate with one or more external devices 1200 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 1000, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 1000 to communicate with one or more other computing devices. Such communication may occur through input/output (I/O) interfaces 1050. Also, the electronic device 1000 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 1060. As shown, the network adapter 1060 communicates with the other modules of the electronic device 1000 over the bus 1030. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 1000, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the above-mentioned "exemplary methods" section of the present description, when said program product is run on the terminal device.
Referring to fig. 11, a program product 1100 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a 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.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The 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 (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with 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 readable signal medium may also be any readable medium that is not a 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 readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
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 is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (12)

1. A live room display method, characterized in that the method comprises:
acquiring a module type of a functional module in a first direct broadcasting room, and determining the loading weight of the functional module according to the module type;
and responding to a first starting instruction aiming at the first live broadcast room, and loading the functional module according to the loading weight so as to display the first live broadcast room.
2. The live-air display method according to claim 1, wherein the module type includes: the system comprises a basic layout module, a live broadcast function module and a service type module.
3. The live broadcast room display method according to claim 2, wherein the obtaining of the module type of the functional module in the first live broadcast room comprises:
when a functional module for network interaction exists in a first live broadcast room, determining the module type of the functional module as the live broadcast functional module or the service type module;
and when a functional module which does not perform network interaction exists in the first live broadcast room, determining the module type of the functional module as the basic layout module.
4. The live broadcast room display method according to claim 3, wherein the determining that the module type of the function module is the live broadcast function module or the service type module includes:
determining a function module shared by all live broadcast rooms in the first live broadcast room as the live broadcast function module;
and determining a function module related to the live type of the first live room as the service type module.
5. The live broadcast room display method according to claim 2, wherein the loading the functional module according to the loading weight includes:
when the loading weight of the basic layout module is greater than the loading weights of the live broadcast function module and the business type module, loading the basic layout module;
when the loading weight of the live broadcast function module is greater than that of the service type module, loading the live broadcast function module;
and when the basic layout module and the live broadcast function module are loaded, loading the service type module.
6. The live-air display method of claim 2, wherein after said displaying the first live-air, the method further comprises:
and in response to a closing instruction aiming at the first live broadcast room, suspending the network interaction of the live broadcast function module and the service type module and hiding the first live broadcast room.
7. The live view display method of claim 6, wherein after said hiding the first live view, the method further comprises:
responding to a second starting instruction aiming at the first live broadcast room, and acquiring first anchor information of the first live broadcast room;
and according to the first anchor information, reconnecting the network interaction of the live broadcast function module and the service type module, and displaying the first direct broadcast room again.
8. The live view display method of claim 7, wherein after said hiding the first live view, the method further comprises:
responding to a third starting instruction aiming at a second live broadcast room, and acquiring second anchor information of the second live broadcast room;
and according to the second anchor information, the network interaction of the live broadcast function module and the service type module is reconnected, and the service type module is adjusted and displayed so as to display the second live broadcast room.
9. The live broadcast room display method of claim 8, wherein the adjusting the display of the service type module comprises:
if the service type modules of the second live broadcast room and the first live broadcast room are the same, the service type module is kept to be displayed;
if the service type modules of the second live broadcast room and the first live broadcast room are different, hiding the service type module.
10. A live room display apparatus, comprising:
the function dividing module is configured to acquire a module type of a function module in a first direct broadcasting room and determine the loading weight of the function module according to the module type;
a room display module configured to respond to a first starting instruction aiming at the first live broadcast room, and load the function module according to the loading weight so as to display the first live broadcast room.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the live-air display method of any one of claims 1 to 9.
12. An electronic device, comprising:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the live-air display method of any of claims 1-9 via execution of the executable instructions.
CN202210731093.XA 2022-06-24 2022-06-24 Live broadcast room display method and device, storage medium and electronic equipment Pending CN115134619A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210731093.XA CN115134619A (en) 2022-06-24 2022-06-24 Live broadcast room display method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210731093.XA CN115134619A (en) 2022-06-24 2022-06-24 Live broadcast room display method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN115134619A true CN115134619A (en) 2022-09-30

Family

ID=83379859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210731093.XA Pending CN115134619A (en) 2022-06-24 2022-06-24 Live broadcast room display method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN115134619A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314486A (en) * 2011-08-04 2012-01-11 百度在线网络技术(北京)有限公司 Method and equipment for browsing page
CN109819268A (en) * 2019-03-15 2019-05-28 网易(杭州)网络有限公司 Direct broadcasting room control method for playing back, device, medium and equipment in net cast
CN111263176A (en) * 2020-01-17 2020-06-09 北京字节跳动网络技术有限公司 Loading method, device, terminal, server and storage medium for live broadcast room page
CN111338722A (en) * 2020-02-05 2020-06-26 广州虎牙科技有限公司 Live broadcast room template loading method and device, electronic equipment and readable storage medium
CN113891162A (en) * 2021-11-23 2022-01-04 广州方硅信息技术有限公司 Live broadcast room loading method and device and computer equipment
CN114201227A (en) * 2020-08-31 2022-03-18 武汉斗鱼鱼乐网络科技有限公司 Time-sharing loading management method, storage medium, electronic device and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314486A (en) * 2011-08-04 2012-01-11 百度在线网络技术(北京)有限公司 Method and equipment for browsing page
CN109819268A (en) * 2019-03-15 2019-05-28 网易(杭州)网络有限公司 Direct broadcasting room control method for playing back, device, medium and equipment in net cast
CN111263176A (en) * 2020-01-17 2020-06-09 北京字节跳动网络技术有限公司 Loading method, device, terminal, server and storage medium for live broadcast room page
CN111338722A (en) * 2020-02-05 2020-06-26 广州虎牙科技有限公司 Live broadcast room template loading method and device, electronic equipment and readable storage medium
CN114201227A (en) * 2020-08-31 2022-03-18 武汉斗鱼鱼乐网络科技有限公司 Time-sharing loading management method, storage medium, electronic device and system
CN113891162A (en) * 2021-11-23 2022-01-04 广州方硅信息技术有限公司 Live broadcast room loading method and device and computer equipment

Similar Documents

Publication Publication Date Title
CN111541913B (en) Video playing method and device of spliced screen, computer equipment and medium
US11721273B2 (en) Information display method, terminal device, and storage medium
US20160240195A1 (en) Information processing method and electronic device
CN110234032B (en) Voice skill creating method and system
US11678028B2 (en) Wager information based prioritized live event display system
US20240094875A1 (en) Video interaction method and apparatus, electronic device, and storage medium
CN111097168B (en) Display control method and device in game live broadcast, storage medium and electronic equipment
CN111629253A (en) Video processing method and device, computer readable storage medium and electronic equipment
CN108924663B (en) Live broadcast room management method and device, electronic equipment and storage medium
CN107450874B (en) Multimedia data double-screen playing method and system
CN111726688A (en) Method and device for self-adapting screen projection picture in network teaching
KR20210152396A (en) Video processing method, device, electronic equipment and storage medium
US20240345709A1 (en) Live room page presentation method, apparatus, device, and storage medium
US12131099B2 (en) Method and device for mixedly playing a program
CN108491178B (en) Information browsing method, browser and server
CN112631814A (en) Game plot dialogue playing method and device, storage medium and electronic equipment
US20230171736A1 (en) Automatically suspending or reducing portable device notifications when viewing audio/video programs
US20240329919A1 (en) Speech message playback
CN104601535A (en) Video processing method and system
CN111338672A (en) Method, electronic device, and computer storage medium for optimizing application updates
CN102638721B (en) Interface for browsing and playing content over multiple devices
WO2024099450A1 (en) Live-broadcast room page display method and apparatus, and electronic device and storage medium
CN114286124A (en) Method, device, medium and computer equipment for displaying interactive bubbles in live broadcast room
CN115134619A (en) Live broadcast room display method and device, storage medium and electronic equipment
US10328336B1 (en) Concurrent game functionality and video content

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