CN113676744A - Switching control method and device for live broadcast room, electronic equipment and storage medium - Google Patents

Switching control method and device for live broadcast room, electronic equipment and storage medium Download PDF

Info

Publication number
CN113676744A
CN113676744A CN202110859983.4A CN202110859983A CN113676744A CN 113676744 A CN113676744 A CN 113676744A CN 202110859983 A CN202110859983 A CN 202110859983A CN 113676744 A CN113676744 A CN 113676744A
Authority
CN
China
Prior art keywords
live broadcast
broadcast room
view container
target live
target
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
CN202110859983.4A
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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110859983.4A priority Critical patent/CN113676744A/en
Publication of CN113676744A publication Critical patent/CN113676744A/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/4318Generation of visual interfaces for content selection or interaction; Content or additional data rendering by altering the content in the rendering process, e.g. blanking, blurring or masking an image region
    • 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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4438Window management, e.g. event handling following interaction with the user interface

Abstract

The disclosure provides a switching control method and device of a live broadcast room, electronic equipment and a storage medium, and relates to the field of live broadcast. The specific implementation scheme is as follows: under the condition that the first view container is adopted to display the playing content of the source live broadcast room, if the switching operation aiming at the source live broadcast room is monitored, the target live broadcast room to which switching is conducted is determined, a second view container matched with the target live broadcast room is obtained from the resource pool, and the second view container is adopted to display the playing content of the target live broadcast room. Therefore, when the live broadcast rooms are switched, whether the view container corresponding to the switched target live broadcast room exists or not is inquired from the resource pool, if yes, the view container corresponding to the target live broadcast room does not need to be created, the view container corresponding to the target live broadcast room does not need to be initialized, the view container corresponding to the target live broadcast room inquired from the resource pool is directly adopted, the playing content of the target live broadcast room is displayed, and the performance consumption of equipment can be reduced.

Description

Switching control method and device for live broadcast room, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of internet, and in particular, to the field of live broadcasting, and in particular, to a method and an apparatus for controlling switching between live broadcasting rooms, an electronic device, and a storage medium.
Background
With the rapid development of internet technology and network live broadcast technology, live broadcast rooms watched by users on clients with live broadcast functions are more and more abundant. In general, in the client having the live broadcasting function, in order to meet the operation habit of the user, different live broadcasting rooms can be switched by sliding the screen up and down.
Disclosure of Invention
The disclosure provides a switching control method and device for a live broadcast room, electronic equipment and a storage medium.
According to an aspect of the present disclosure, a method for controlling switching between live broadcast rooms is provided, including:
monitoring switching operation aiming at a source live broadcast room under the condition that a first view container is adopted to display the playing content of the source live broadcast room;
responding to the switching operation, and determining a target live broadcast room to which the switching operation is performed;
acquiring a second view container matched with the target live broadcast room from a resource pool;
and displaying the playing content of the target live broadcast room by adopting the second view container.
According to another aspect of the present disclosure, there is provided a switching control apparatus of a live broadcast room, including:
the system comprises a first monitoring module, a second monitoring module and a third monitoring module, wherein the first monitoring module is used for monitoring switching operation aiming at a source live broadcast room under the condition that a first view container is adopted to display the playing content of the source live broadcast room;
the first determining module is used for responding to the switching operation and determining a target live broadcast room to which the switching operation is carried out;
the acquisition module is used for acquiring a second view container matched with the target live broadcast room from a resource pool;
and the display module is used for displaying the playing content of the target live broadcast room by adopting the second view container.
According to still another aspect of the present disclosure, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute a method for controlling a switch of a live broadcast according to the above aspect of the disclosure.
According to still another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium of computer instructions for causing a computer to perform the method for controlling switching of a live broadcast provided by the above-mentioned aspect of the present disclosure.
According to yet another aspect of the present disclosure, there is provided a computer program product comprising a computer program, which when executed by a processor, implements the method for controlling switching of a live broadcast room proposed by the above aspect of the present disclosure.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a schematic view of a life cycle timing corresponding to a conventional viewing container;
FIG. 2 is a binding diagram of a conventional list data and view container;
FIG. 3 is a diagram illustrating a screen transition process of a conventional live broadcast room;
FIG. 4 is a schematic view illustrating a sliding process of a conventional viewing container;
fig. 5 is a schematic flowchart of a switching control method of a live broadcast room according to a first embodiment of the present disclosure;
fig. 6 is a schematic flowchart of a switching control method of a live broadcast room according to a second embodiment of the present disclosure;
fig. 7 is a schematic flowchart of a switching control method of a live broadcast room according to a third embodiment of the present disclosure;
fig. 8 is a schematic flowchart of a switching control method of a live broadcast room according to a fourth embodiment of the present disclosure;
fig. 9 is a schematic diagram of a screen scrolling process of a live broadcast room in an embodiment of the present disclosure;
fig. 10 is a schematic flowchart of a switching control method of a live broadcast room according to a fifth embodiment of the present disclosure;
FIG. 11 is a schematic view of a life cycle timing corresponding to a view container in accordance with an embodiment of the present disclosure;
fig. 12 is a schematic structural diagram of an electronic device in an embodiment of the disclosure;
FIG. 13 is an isolated schematic view of a listing data and view container in accordance with an embodiment of the present disclosure;
fig. 14 is a schematic structural diagram of a switching control device of a live broadcast room according to a sixth embodiment of the present disclosure;
FIG. 15 shows a schematic block diagram of an example electronic device that may be used to implement embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In general, on a client with a live broadcast function, in order to meet the operation habit of a user, different live broadcast rooms can be switched in a mode of sliding a screen up and down, that is, the user can switch different live broadcast rooms in an interactive mode of sliding a view container (Cell) corresponding to the live broadcast room up and down.
However, during the development of a client with live broadcast function, or during the actual experience of the user, the inventors found the following problems:
(1) the live broadcast room has a large number of complex functions, and the large number of complex functions depend on life time provided by the sliding view container, so that when the sliding view container is used, the instantaneous pressure of a Central Processing Unit (CPU), a memory and the like is large, and interface blockage is caused in serious cases.
(2) The list data and the view container are strongly bound to each other, when the list data is updated, such as a certain live broadcast room in the list data is closed, a certain live broadcast room is moved to a position or a certain live broadcast room is inserted, the view container needs to be refreshed once, and if the list data is updated frequently, the view container is refreshed frequently. This frequent view container refresh is not user-friendly and consumes redundant terminal capabilities.
(3) The screen turning operation of the live broadcast room can trigger redundant terminal performance consumption, continuous sliding of a view container is not smooth, and the live broadcast room capability realized by various different technical architectures cannot be compatible.
Specifically, in the related art, in a live scene, the live broadcast room can be switched through the following two schemes, or the live broadcast room can be switched in a sliding manner:
first, the method is directly implemented using an operating system, such as a sliding view control UICollectionView or UITableView provided by the iOS operating system, i.e. relying on an API (Application Programming Interface) provided by the operating system.
Second, it is implemented by the view UIView + gesture recognition uigesturrecognizer. According to the scheme, under a live broadcast room realized based on the same technical architecture, when a user slides a screen in the live broadcast room, the current response View judges, shifts and corrects the screen according to the gesture direction of the user, and then the screen sliding effect is displayed.
However, in the first method, the application scenario is more suitable for the information flow or the list presentation scenario with simple function. In a live scene, the following disadvantages may exist:
1. as shown in fig. 1, the iOS operating system provides only three lifecycle opportunities, which causes a large number of live broadcast room functions to be centralized at the three opportunities, and is not favorable for relieving instantaneous performance pressure of a CPU, an internal memory, and the like.
Wherein, the first lifecycle opportunity cellForItem means that the view container is to be multiplexed; the second lifecycle opportunity, the willDisplayCell, means that the view container is to be displayed; the third lifecycle timing, didEndDisplayingCell, refers to the view container being off-screen or removed.
2. As shown in fig. 2, when the list data is frequently changed, for example, data in a live broadcast room is newly inserted into the list data, or positions of two live broadcast rooms in the list data are interchanged, or data in a live broadcast room is deleted from the list data, the view container also needs to be refreshed, which causes too much unnecessary UI (User Interface) performance consumption. When the situation is serious, the reinitialization of the current view container may occur, the video playing in the live broadcast room is interrupted, and the visual feeling brought to the user is as follows: the live broadcast picture is suddenly blacked and then the picture is restored, and the use experience of a user is seriously reduced.
3. During the screen transition process of the live broadcast room, the initialization, loading and other operations of other live broadcast rooms can be triggered, and unnecessary performance consumption can be triggered in such a mode. As shown in fig. 3, assuming that the user views the live broadcast room N in the vertical screen state, the view container of the live broadcast room N is labeled as Cell N, and when the screen is rotated, for example, in the intermediate state of the horizontal screen, the view containers Cell N-1 and Cell N +1 of the previous live broadcast room N-1 and the next live broadcast room N +1 of the live broadcast room N appear. Once the view container of the other live room appears, the lifecycle opportunities of the other live room are triggered, and then the functions in the other live room are triggered, for example, the triggered live room functions may include: load components, network requests, etc. As the final state of the landscape is reached, the view containers Cell N-1 and Cell N +1 are also removed from the screen, and a destruction operation is performed. On the contrary, the process of turning the horizontal screen to the vertical screen has similar problems.
However, these operations are not necessary for the user, and as the final state of the landscape is reached, the Cell N-1 and Cell N +1 are also removed from the screen, and the destruction operation is performed, which increases unnecessary performance consumption of the device.
While the second approach described above is advantageous in terms of separating the list data from the view container, the user cannot slide multiple live rooms in succession, but only a single slide. I.e., the list is not actually a true sliding list, as shown in fig. 4, which is accomplished by moving the 2 view containers A, B back and forth instead.
As shown in fig. 4, in the process from (a) to (c) in fig. 4, it is the upper and lower 2-view containers that slide upward at the same time; in the process from (c) to (d) in fig. 4, the view container a is moved from above the view container B to below the view container B, and then the next view container is slid again. The sliding implementation mode can not slide continuously without loosing hands, and can not be accessed to a plurality of live broadcast rooms realized based on different technical architectures.
In view of at least one of the above problems, the present disclosure provides a method and an apparatus for controlling switching between live webcasts, an electronic device, and a storage medium.
A switching control method and apparatus of a live broadcast room, an electronic device, and a storage medium according to embodiments of the present disclosure are described below with reference to the drawings.
Fig. 5 is a flowchart illustrating a switching control method of a live broadcast room according to a first embodiment of the present disclosure.
The embodiment of the present disclosure is exemplified by the switching control method of the live broadcast room being configured in a switching control device of the live broadcast room, and the switching control device of the live broadcast room can be applied to any electronic device, so that the electronic device can execute a switching control function of the live broadcast room.
The electronic device may be any device having a computing capability, for example, a Personal Computer (PC), a mobile terminal, and the like, and the mobile terminal may be a hardware device having various operating systems, touch screens, and/or display screens, such as a mobile phone, a tablet Computer, a Personal digital assistant, and a wearable device.
As shown in fig. 5, the method for controlling switching between live channels may include the following steps:
step 501, monitoring switching operation aiming at a source live broadcast room under the condition that a first view container is adopted to display the playing content of the source live broadcast room.
In the embodiment of the disclosure, the first view container is created according to the exhibition resource of the source live broadcast room and the player adapted to the source live broadcast room. The display resources of the source live broadcast room can be determined according to list data issued by the server, the list data can include display resources of a plurality of live broadcast rooms, and the display resources can include resources used for displaying, such as an anchor photo and an input box corresponding to the live broadcast room.
In an embodiment of the present disclosure, the source live room may be a currently viewed live room.
In the disclosed embodiments, the switching operation is user triggered. Namely, under the condition that the user watches the playing content of the source live broadcast room, the currently watched source live broadcast room can be switched according to the self requirement, and correspondingly, the switching control device of the live broadcast room can monitor whether the user triggers the switching operation aiming at the source live broadcast room.
Step 502, in response to the switching operation, determining a target live broadcast room to switch to.
In the embodiment of the present disclosure, the target live broadcast room is the live broadcast room switched to. For example, the target live broadcast may be a previous live broadcast of the source live broadcast or a next live broadcast of the source live broadcast.
In the embodiment of the present disclosure, when monitoring that a user triggers a switching operation for a source live broadcast, a switching control device of a live broadcast room may determine a target live broadcast room to which to switch in response to the switching operation.
Step 503, obtaining a second view container matched with the target live broadcast room from the resource pool.
In the embodiment of the disclosure, the second view container is created in advance according to the display resource of the target live broadcast room and the player adapted to the target live broadcast room.
In the embodiment of the disclosure, a second view container matched with the target live broadcast room can be queried and obtained from the resource pool.
And 504, displaying the playing content of the target live broadcast room by adopting a second view container.
In the embodiment of the disclosure, in the case that the second view container matched with the target live broadcast room is obtained, the second view container may be adopted to display the playing content of the target live broadcast room. Therefore, when the live broadcast rooms are switched, whether the view container corresponding to the switched target live broadcast room exists or not is inquired from the resource pool, if yes, the view container corresponding to the target live broadcast room does not need to be created, the view container corresponding to the target live broadcast room does not need to be initialized, the view container corresponding to the target live broadcast room inquired from the resource pool is directly adopted, the playing content of the target live broadcast room is displayed, and the performance consumption of equipment can be reduced.
According to the switching control method of the live broadcast room in the embodiment of the disclosure, under the condition that the playing content of the source live broadcast room is displayed by adopting the first view container, if the switching operation for the source live broadcast room is monitored, the target live broadcast room to which switching is performed is determined, and the second view container matched with the target live broadcast room is obtained from the resource pool, so that the playing content of the target live broadcast room is displayed by adopting the second view container. Therefore, when the live broadcast room is switched, whether a view container corresponding to the target live broadcast room is switched to exists or not is inquired from the resource pool, if yes, the view container corresponding to the target live broadcast room does not need to be created, the view container corresponding to the target live broadcast room does not need to be initialized, the view container corresponding to the target live broadcast room inquired from the resource pool is directly adopted, the playing content of the target live broadcast room is displayed, the performance consumption of equipment can be reduced, and the time-consuming problem caused when the target live broadcast room is displayed can be solved.
In a possible implementation manner of the embodiment of the present disclosure, in order to effectively display the played content of the target live broadcast room when the second view container matching the target live broadcast room does not exist in the resource pool, a view container corresponding to the target live broadcast room may be created. The above-described situation will be described in detail with reference to the second embodiment.
Fig. 6 is a flowchart illustrating a switching control method of a live broadcast room according to a second embodiment of the present disclosure.
As shown in fig. 6, the method for controlling switching between live channels may include the following steps:
step 601, monitoring switching operation aiming at the source live broadcast room under the condition that the first view container is adopted to display the broadcast content of the source live broadcast room.
Step 602, in response to the switching operation, determining a target live broadcast room to which to switch.
The execution process of steps 601 to 602 may refer to the execution process of steps 501 to 502 in the above embodiments, which is not described herein again.
Step 603, judging whether a second view container matched with the target live broadcast room is acquired from the resource pool, if so, executing step 604, and if not, executing steps 605 to 607.
It can be understood that, in a case that a user watches a target live broadcast room for the first time, a view container corresponding to the target live broadcast room is not stored in the resource pool, and in a case that the user does not watch the target live broadcast room for the first time, since the device has created the view container corresponding to the target live broadcast room when watching the target live broadcast room for the first time, and when the user exits from the target live broadcast room, the view container corresponding to the target live broadcast room is recycled to the resource pool.
Therefore, in the embodiment of the present disclosure, in order to reduce performance consumption of the device, when switching the live broadcast, it may be queried whether a view container corresponding to the target live broadcast to which switching is performed exists from the resource pool, which is denoted as a second view container in the present disclosure, and if so, step 604 is executed, and if not, step 605 is executed.
And step 604, displaying the playing content of the target live broadcast room by adopting the second view container, and recycling the first view container to the resource pool.
In the embodiment of the disclosure, when the second view container matched with the target live broadcast room is acquired from the resource pool, the second view container may be adopted to display the playing content of the target live broadcast room.
In a possible implementation manner, when retrieving the view container corresponding to the target live broadcast room to the resource pool, the view container corresponding to the target live broadcast room retrieved to the resource pool can be marked according to the identification of the target live broadcast room, thereby in the present disclosure, in order to improve the reliability and accuracy of the query result of the second view container, the resource pool can be queried according to the identification of the target live broadcast room, the view container marked by the identification of the target live broadcast room is used as the second view container matched with the target live broadcast room, and thus the play content of the target live broadcast room can be displayed by the second view container.
The second view container is created in advance according to the display resource of the target live broadcast room and the player adaptive to the target live broadcast room, namely the second view container is used for bearing the display resource of the target live broadcast room and the player adaptive to the target live broadcast room.
In the embodiment of the present disclosure, under the condition of exiting from the source live broadcast room, the first view container may also be recovered to the resource pool, so that under the condition of viewing the playing content of the source live broadcast room next time, the view container corresponding to the source live broadcast room may not need to be created, and the view container corresponding to the source live broadcast room may not need to be initialized, and the first view container in the resource pool is directly adopted to display the playing content of the source live broadcast room, which may further reduce the performance consumption of the device.
Step 605, determining a display resource corresponding to the target live broadcast room according to the list data sent by the server.
In this disclosure, the list data sent by the server may include display resources of multiple live broadcast rooms, for example, the server may return, based on a recommendation algorithm, display resources of live broadcast rooms in which multiple users are interested to the client, or return, to the client, display resources of hot live broadcast rooms, or return, to the client, display contents of live broadcast rooms in which multiple users are interested to the client, and the like, which is not limited by this disclosure.
In the embodiment of the present disclosure, the display resource corresponding to the target live broadcast room may be determined from the list data sent by the server, for example, the display resource matched with the identifier may be queried from the list data according to the identifier of the target live broadcast room, and is used as the display resource corresponding to the target live broadcast room.
And 606, creating a third view container of the target live broadcast room according to the display resources corresponding to the target live broadcast room and the player adapted to the target live broadcast room.
In the embodiment of the present disclosure, a third view container of the target live broadcast room may be created according to the display resource corresponding to the target live broadcast room and the player adapted to the target live broadcast room, that is, the third view container is used for bearing the player of the target live broadcast room and the display resource of the target live broadcast room.
Step 607, the third view container is adopted to display the playing content of the target live broadcast room, and the first view container is recycled to the resource pool.
In the embodiment of the disclosure, when the third view container corresponding to the target live broadcast room is created, the third view container may be used to display the playing content of the target live broadcast room, that is, the playing content of the target live broadcast room may be displayed by a player carried in the third view container, and the first view container may be recycled to the resource pool.
In any embodiment of the present disclosure, when the first view container is recovered to the resource pool, the first view container recovered to the resource pool may be marked according to the identifier of the source live broadcast room, so that, in the case of subsequent display of the source live broadcast room, the resource pool may be queried according to the identifier of the source live broadcast room, and the view container marked by the identifier of the source live broadcast room is used as the view container matched with the source live broadcast room, so that the play content of the source live broadcast room may be displayed by using the view container matched with the source live broadcast room. Therefore, the view container matched with the source live broadcast room can be inquired according to the identification of the source live broadcast room, and the reliability and accuracy of the inquiry result can be improved.
According to the switching control method of the live broadcast room, under the condition that the second view container matched with the target live broadcast room is not obtained in the resource pool, the display resource corresponding to the target live broadcast room is determined according to the list data sent by the server, and the third view container of the target live broadcast room is created according to the display resource corresponding to the target live broadcast room and the player matched with the target live broadcast room, so that the playing content of the target live broadcast room is displayed by the third view container. Therefore, under the condition that the second view container matched with the target live broadcast room does not exist in the resource pool, the view container corresponding to the target live broadcast room can be created, and therefore the playing content of the target live broadcast room can be effectively displayed.
In a possible implementation manner of the embodiment of the present disclosure, in order to implement separation of the list data and the view container, and avoid a situation that the update of the view container is immediately triggered when the list data is updated, so as to cause extra performance consumption of the device, in the present disclosure, it may be determined whether the list data changes at a set time, so as to determine whether to trigger a refresh of the view container. The above process is described in detail with reference to example three.
Fig. 7 is a flowchart illustrating a switching control method for a live broadcast room according to a third embodiment of the present disclosure.
As shown in fig. 7, the method for controlling switching between live channels may include the following steps:
step 701, monitoring switching operation aiming at a source live broadcast room under the condition that a first view container is adopted to display the playing content of the source live broadcast room.
Step 702, in response to the switching operation, determining a target live broadcast room to switch to.
And 703, acquiring a second view container matched with the target live broadcast room from the resource pool.
Step 704, displaying the playing content of the target live broadcast room by using the second view container, and recycling the first view container to the resource pool.
The execution process of steps 701 to 704 may refer to any of the above embodiments, which are not described herein.
Step 705, at a first set time, accesses the server to determine whether the list data is updated.
In the disclosed embodiments, the first set timing may be a set timing, wherein the timing may also be referred to as a lifecycle timing.
In the embodiment of the present disclosure, the server may be accessed to determine whether the list data is updated, for example, whether an added or deleted display resource of the live broadcast room exists in the list data.
In response to the list data being updated, the second view container is updated according to the difference between the list data before and after the update, step 706.
In the embodiment of the present disclosure, in the case that the list data is not updated, the second view container may not need to be updated; in the case where there is an update in the list data, the second view container may be updated according to a difference between the list data before the update and the list data after the update. Therefore, whether the list data are changed or not is judged only at the first set time, whether the second view container is updated or not is determined according to the judgment result, the situation that the view container is frequently refreshed due to frequent updating of the list data can be avoided, the situation that video stream playing in a live broadcast room is interrupted can be avoided while the performance consumption of the terminal is further reduced, and the use experience of a user is improved.
According to the switching control method of the live broadcast room, whether list data are updated or not is determined by accessing the server at the first set time, and the second view container is updated according to the difference between the list data before and after the update in response to the fact that the list data are updated. Therefore, whether the list data are changed or not is judged only at the first set time, whether the second view container is updated or not is determined according to the judgment result, the situation that the view container is frequently refreshed due to frequent updating of the list data can be avoided, the situation that video stream playing in a live broadcast room is interrupted can be avoided while the performance consumption of the terminal is further reduced, and the use experience of a user is improved.
In a possible implementation manner of the embodiment of the present disclosure, in order to further reduce performance consumption of the terminal, in the screen turning process, only the currently displayed live broadcast room may be rotated. The above process is described in detail with reference to example four.
Fig. 8 is a flowchart illustrating a switching control method of a live broadcast room according to a fourth embodiment of the present disclosure.
As shown in fig. 8, the method for controlling switching between live channels may include the following steps:
step 801, in the process of displaying the playing content of the source live broadcast room by adopting the first view container, monitoring screen turning operation aiming at the source live broadcast room.
In the embodiment of the present disclosure, the screen turning operation is user-triggered. That is, the user can carry out vertical screen to horizontal screen to the currently watched source live broadcast room according to the self demand under the condition of watching the playing content of the source live broadcast room, or can carry out horizontal screen to vertical screen to the currently watched source live broadcast room, and correspondingly, the switching control device of the live broadcast room can monitor whether the user triggers the screen switching operation aiming at the source live broadcast room.
And step 802, responding to screen turning operation, and performing rotation processing on the first view container.
In this embodiment of the disclosure, when it is monitored that a user triggers a screen rotation operation for a source live broadcast room, a switching control device of the live broadcast room may rotate a first view container in response to the screen rotation operation, for example, may rotate the first view container by 90 degrees to the right.
And 803, displaying the playing content of the source live broadcast room based on the first view container after the rotation processing.
In this embodiment of the present disclosure, after the first view container is rotated, the first view container after the rotation processing may be used to display the playing content in the source live broadcast room.
And step 804, monitoring switching operation aiming at the source live broadcast room.
Step 805, in response to the switching operation, determines a target live broadcast room to switch to.
And 806, acquiring a second view container matched with the target live broadcast room from the resource pool.
The execution process of steps 804 to 806 may refer to the execution process of any of the above embodiments, and is not described herein again.
Step 807, performing rotation processing on the second view container according to the screen rotation operation; and the direction of the second-view container after the rotation processing is consistent with that of the first-view container after the rotation processing.
It is understood that when the user triggers a screen rotation operation, such as rotating the vertical screen to the horizontal screen, the user may wish to view the content played in each live broadcast room in the horizontal screen state. Therefore, in the present disclosure, in order to meet the actual viewing requirement of the user, when the user switches the live broadcast room, the second view container corresponding to the target live broadcast room to which the view container is switched may also be rotated, where the rotation direction and the rotation angle of the view container corresponding to the target live broadcast room are consistent with the rotation direction and the rotation angle of the first view container, that is, the second view container after the rotation processing is consistent with the first view container after the rotation processing.
And 808, displaying the playing content of the target live broadcast room based on the second view container after the rotation processing.
In this embodiment of the disclosure, after the second view container is rotated, the second view container after the rotation processing may be used to display the playing content of the target live broadcast room.
As an example, as shown in fig. 9, assuming that a user views a live broadcast room N in a vertical screen state, a view container corresponding to the live broadcast room N is labeled as Cell N, and in an intermediate state of a horizontal screen, only the Cell N may be rotated without rotating the Cell N-1 and the Cell N +1 as shown in fig. 3, so that a live broadcast room function of the Cell N-1 and the Cell N +1 does not need to be triggered, and performance consumption of the device may be reduced.
According to the switching control method of the live broadcast room in the embodiment of the disclosure, in the process of displaying the play content of the source live broadcast room by adopting the first view container, if the screen turning operation for the source live broadcast room is monitored, the first view container is rotated, and the play content of the source live broadcast room is displayed based on the rotated first view container. Therefore, in the screen turning process, only the view container corresponding to the currently displayed live broadcast room is rotated, and the performance consumption of the terminal can be reduced.
Performing rotation processing on the second view container according to screen rotation operation; the direction of the second view container after the rotation processing is consistent with that of the first view container after the rotation processing; and displaying the playing content of the target live broadcast room based on the second view container after the rotation processing. Therefore, after the user triggers the screen turning operation, when the user switches to one live broadcast room, the view container corresponding to the switched live broadcast room is rotated, and the actual watching requirement of the user can be met.
In order to clearly illustrate how the playing content of the target live broadcast room is shown in any of the above embodiments of the present disclosure, the present disclosure provides another live broadcast room switching control method.
Fig. 10 is a flowchart illustrating a switching control method of a live broadcast room according to a fifth embodiment of the present disclosure.
As shown in fig. 10, the method for controlling switching between live channels may include the following steps:
step 1001, monitoring a switching operation for a source live broadcast room under the condition that a first view container is adopted to display the playing content of the source live broadcast room.
Step 1002, in response to the switching operation, determining a target live broadcast room to switch to.
And 1003, acquiring a second view container matched with the target live broadcast room from the resource pool.
The execution process of steps 1001 to 1003 may refer to any of the above embodiments, which are not described herein.
Step 1004, at a second set time, load a second view container.
Step 1005, at the third set time, accessing the server to obtain the video stream of the target live broadcast room.
Step 1006, at a fourth set time, triggering the second view container to display the video stream of the target live broadcast.
In the disclosed embodiment, the second setting timing, the third setting timing, and the fourth setting timing are different timings that are set, and the timings may also be referred to as lifecycle timings.
In the embodiment of the disclosure, the video stream of the target live broadcast room can be acquired from the server, and the video stream of the target live broadcast room is displayed by adopting the second view container.
It should be noted that, in the present disclosure, by using a plurality of different timings to load a view, a network request, and a live broadcast room playback, the complex functions of the live broadcast room can be implemented at corresponding timings as needed, so as to relieve the instantaneous pressure of the CPU and the memory.
As an example, in a live broadcast room scenario, the functions in the live broadcast room are relatively complex, and initialization, network request, view loading, player pre-creation, pre-playing, live broadcast room removal, destruction, and the like of the whole live broadcast room can be controlled by providing more complete lifecycle opportunities. As shown in fig. 11, the life cycle of the live broadcast room may be divided into 7 life cycle occasions, where a life cycle occasion cellForRow refers to a view container to be multiplexed or newly created; the lifecycle opportunity cellDidLoad refers to the view container being loaded (at this time, data may be added to the view container); the lifecycle opportunity cellWillAppear means that a view container in a live broadcast room is to be displayed (at this time, data of a player can be loaded in advance); the lifecycle opportunity cellDidAppear means that a view container has appeared in the live broadcast room; the lifecycle opportunity cellWillDisappear means that a view container in a live broadcast room is to be drawn out of a screen; the lifecycle opportunity cellDidDisappear means that a view container in a live broadcast room is marked out of a screen; the lifecycle opportunity cellDidUnload refers to the recovery of a view container in a live broadcast room to a resource pool.
For example, the second setting timing may be cellDidLoad in fig. 11, the second setting period may be cellwillapplear in fig. 11, and the fourth setting timing may be cellDidAppear in fig. 11.
Therefore, by providing a perfect life cycle, the function of complex concentration in the live broadcast room is realized at the corresponding time according to the requirement, and the instantaneous pressure of a CPU and an internal memory can be relieved.
According to the switching control method of the live broadcast room, the second view container is loaded at the second set time, the server is accessed at the third set time to obtain the video stream of the target live broadcast room, and the second view container is triggered to display the video stream of the target live broadcast room at the fourth set time. Therefore, the view, the network request and the live broadcast room are loaded at different times, and the complex functions of the live broadcast room can be realized at corresponding times according to needs, so that the instantaneous pressure of a CPU (Central processing Unit) and an internal memory is relieved.
As an example, the structure of an electronic device executing the switching control method of the live broadcast room of any of the above embodiments may be as shown in fig. 12, and the electronic device may include the following main modules:
view listening manager: when the user slides the view container, the system is mainly responsible for monitoring the state of the current on-screen visual view container and inputting the state data of the view container into the life cycle manager for processing in real time.
The life cycle manager: the generation, division and message sending of the lifecycle opportunities of the current visual view container are mainly controlled. At the right moment, it can interact with the reclaimable/reusable manager, for example, a certain view container has slid out of the current screen, and an event of cell did dis apply (the view container has disappeared) is sent, so that the reclaimable/reusable manager can perform the unbinding reclaiming operation on the view container with the screen removed.
Reclaimable/reusable manager: the method is mainly used for directly taking out a view container from a resource pool to a list when the view container is needed by the list, for example, when a live broadcast room is switched, obtaining the view container corresponding to the switched live broadcast room from the resource pool; or the view container is removed from the screen, and the view container is recycled to the resource pool. Therefore, the time-consuming problem caused by initialization and counter-initialization of the view container can be well solved.
View refresh manager: the view container refreshing method is mainly responsible for refreshing operation of the view container, is not controlled by changes of list data, and is characterized in that a life cycle manager sends a signal to the view container, and then the view refreshing manager determines whether to trigger refreshing of the view container according to the current data state.
Screen turning manager: and the system is responsible for selectively determining which view container needs to be subjected to screen turning operation when a user performs screen turning operation.
For example, as shown in FIG. 11, a more sophisticated lifecycle opportunity may be provided to reduce the transient stress on the CPU, memory.
For another example, as shown in FIG. 13, the list data can be completely separated from the view container. The updating of the list data does not actively trigger the refreshing of the view container, and the triggering of the refreshing of the view container is specially controlled by the view refresh manager in fig. 12, which can determine whether the list data changes at a specified time (denoted as a first set time in the present disclosure), and if so, trigger the refreshing of the view container, so as to solve the problem that the view container is frequently refreshed due to frequent updating of the list data in the related art.
As another example, a screener manager is added to reduce the performance consumption incurred by the view container. As shown in fig. 9, when the view list control is turned, the view container corresponding to the currently viewed live broadcast room is only rotated by the screen turning manager. For example, in the intermediate state, only Cell N rotates, and it is not necessary to rotate Cell N-1 and Cell N +1 as shown in fig. 3, so that it is not necessary to trigger the live broadcast room function of Cell N-1 and Cell N +1, and the performance consumption of the device can be reduced.
In conclusion, the electronic equipment provides complete life cycle opportunity, separation of refreshing of the view container and list data, UI performance optimization and live broadcast room capability compatible with various technical architectures, and can effectively reduce performance consumption of the equipment. At present, an SDK (Software Development Kit) that meets different architecture implementations of media, show, voice room, YY, and the like is accessed to a hybrid distribution function, and is used online on a client corresponding to a plurality of different APPs (applications).
Corresponding to the switching control method of the live broadcast room provided in the embodiments of fig. 5 to 10, the present disclosure also provides a switching control device of the live broadcast room, and since the switching control device of the live broadcast room provided in the embodiments of the present disclosure corresponds to the switching control method of the live broadcast room provided in the embodiments of fig. 5 to 10, an implementation manner of the switching control method of the live broadcast room is also applicable to the switching control device of the live broadcast room provided in the embodiments of the present disclosure, and is not described in detail in the embodiments of the present disclosure.
Fig. 14 is a schematic structural diagram of a switching control device of a live broadcast room according to a sixth embodiment of the present disclosure.
As shown in fig. 14, the switching control device 1400 of the live broadcast room may include: a first monitoring module 1401, a first determining module 1402, an obtaining module 1403, and a presentation module 1404.
The first monitoring module 1401 is configured to monitor a switching operation for a source live broadcast room when a first view container is used to display a playing content of the source live broadcast room.
A first determining module 1402, configured to determine a target live broadcast room to switch to in response to a switching operation.
An obtaining module 1403, configured to obtain, from the resource pool, a second view container matched with the target live broadcast.
A displaying module 1404, configured to display the played content of the target live broadcast room by using the second view container.
In a possible implementation manner of the embodiment of the present disclosure, the apparatus 1400 for controlling switching of a live broadcast room may further include:
and the recycling module is used for recycling the first view container to the resource pool.
In a possible implementation manner of the embodiment of the present disclosure, the apparatus 1400 for controlling switching of a live broadcast room may further include:
and the second determining module is used for determining the display resource corresponding to the target live broadcast room according to the list data sent by the server if the second view container matched with the target live broadcast room is not acquired in the resource pool.
And the creating module is used for creating a third view container of the target live broadcast room according to the display resources corresponding to the target live broadcast room and the player adaptive to the target live broadcast room.
The displaying module 1404 is further configured to display the playing content of the target live broadcast room by using a third view container.
In a possible implementation manner of the embodiment of the present disclosure, the apparatus 1400 for controlling switching of a live broadcast room may further include:
and the marking module is used for marking the first view container recycled to the resource pool according to the identification of the source live broadcast room.
In a possible implementation manner of the embodiment of the present disclosure, the obtaining module 1403 is specifically configured to: and querying a second view container marked by the identification of the target live broadcast room in the resource pool, wherein the second view container is pre-created according to the display resources of the target live broadcast room and a player matched with the target live broadcast room.
In a possible implementation manner of the embodiment of the present disclosure, the apparatus 1400 for controlling switching of a live broadcast room may further include:
and the access module is used for accessing the server to determine whether the list data is updated at a first set time.
And the updating module is used for responding to the update of the list data, and updating the second view container according to the difference between the list data before and after the update.
In a possible implementation manner of the embodiment of the present disclosure, the apparatus 1400 for controlling switching of a live broadcast room may further include:
and the second monitoring module is used for monitoring screen turning operation aiming at the source live broadcast room in the process of displaying the playing content of the source live broadcast room by adopting the first view container.
And the processing module is used for responding to the screen rotating operation and performing rotating processing on the first view container.
And the display module is also used for displaying the playing content of the source live broadcast room based on the first view container after the rotation processing.
In a possible implementation manner of the embodiment of the present disclosure, the displaying module 1404 is specifically configured to: performing rotation processing on the second view container according to screen rotation operation; the direction of the second view container after the rotation processing is consistent with that of the first view container after the rotation processing; and displaying the playing content of the target live broadcast room based on the second view container after the rotation processing.
In a possible implementation manner of the embodiment of the present disclosure, the displaying module 1404 is specifically configured to: loading a second view container at a second set time; accessing the server at a third set time to obtain the video stream of the target live broadcast room; and triggering a second view container to display the video stream of the target live broadcast room at a fourth set time.
The switching control device of the live broadcast room in the embodiment of the disclosure determines a target live broadcast room to which switching is performed if switching operation for the source live broadcast room is monitored under the condition that the first view container is adopted to display the playing content of the source live broadcast room, and obtains a second view container matched with the target live broadcast room from a resource pool so as to display the playing content of the target live broadcast room by adopting the second view container. Therefore, when the live broadcast room is switched, whether a view container corresponding to the target live broadcast room is switched to exists or not is inquired from the resource pool, if yes, the view container corresponding to the target live broadcast room does not need to be created, the view container corresponding to the target live broadcast room does not need to be initialized, the view container corresponding to the target live broadcast room inquired from the resource pool is directly adopted, the playing content of the target live broadcast room is displayed, the performance consumption of equipment can be reduced, and the time-consuming problem caused when the target live broadcast room is displayed can be solved.
In order to implement the foregoing embodiments, the present disclosure also provides an electronic device, where the electronic device may include the anchor client or the server in the foregoing embodiments, and the electronic device may include at least one processor; and a memory communicatively coupled to the at least one processor; the storage stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the switching control method of the live broadcast provided by any embodiment of the disclosure.
In order to achieve the above embodiments, the present disclosure also provides a non-transitory computer readable storage medium storing computer instructions for causing a computer to execute the method for controlling switching between live broadcast rooms according to any one of the above embodiments of the present disclosure.
In order to implement the foregoing embodiments, the present disclosure further provides a computer program product, where the computer program product includes a computer program, and when the computer program is executed by a processor, the computer program implements the method for controlling switching between live broadcast rooms according to any of the foregoing embodiments of the present disclosure.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 15 shows a schematic block diagram of an example electronic device that may be used to implement embodiments of the present disclosure. The electronic device may include the server and the client in the above embodiments. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 15, the device 1500 includes a calculation unit 1501 which can perform various appropriate actions and processes in accordance with a computer program stored in a ROM (Read-Only Memory) 1502 or a computer program loaded from a storage unit 1507 into a RAM (Random Access Memory) 1503. In the RAM 1503, various programs and data necessary for the operation of the device 1500 can also be stored. The calculation unit 1501, the ROM 1502, and the RAM 1503 are connected to each other by a bus 1504. An I/O (Input/Output) interface 1505 is also connected to the bus 1504.
Various components in device 1500 connect to I/O interface 1505, including: an input unit 1506 such as a keyboard, a mouse, and the like; an output unit 1507 such as various types of displays, speakers, and the like; a storage unit 1508, such as a magnetic disk, optical disk, or the like; and a communication unit 1509 such as a network card, a modem, a wireless communication transceiver, and the like. The communication unit 1509 allows the device 1500 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 1501 may be various general and/or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 1501 include, but are not limited to, a CPU, a GPU (graphics Processing unit), various dedicated AI (Artificial Intelligence) computing chips, various computing Units running a machine learning model algorithm, a DSP (Digital Signal Processor), and any suitable Processor, controller, microcontroller, and the like. The calculation unit 1501 executes the respective methods and processes described above, such as the above-described live room switching control method. For example, in some embodiments, the above-described live room switch control method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 1508. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 1500 via the ROM 1502 and/or the communication unit 1509. When the computer program is loaded into the RAM 1503 and executed by the computing unit 1501, one or more steps of the live room switching control method described above may be executed. Alternatively, in other embodiments, the computing unit 1501 may be configured to perform the above-described live room switching control method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be realized in digital electronic circuitry, Integrated circuitry, FPGAs (Field Programmable Gate arrays), ASICs (Application-Specific Integrated circuits), ASSPs (Application Specific Standard products), SOCs (System On Chip, System On a Chip), CPLDs (Complex Programmable Logic devices), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a RAM, a ROM, an EPROM (Electrically Programmable Read-Only-Memory) or flash Memory, an optical fiber, a CD-ROM (Compact Disc Read-Only-Memory), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a Display device (e.g., a CRT (Cathode Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), internet, and blockchain Network.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The Server may be a cloud Server, which is also called a cloud computing Server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service expansibility in a conventional physical host and a VPS (Virtual Private Server). The server may also be a server of a distributed system, or a server incorporating a blockchain.
It should be noted that artificial intelligence is a subject for studying a computer to simulate some human thinking processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware and software technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing, and the like; the artificial intelligence software technology mainly comprises a computer vision technology, a voice recognition technology, a natural language processing technology, machine learning/deep learning, a big data processing technology, a knowledge map technology and the like.
According to the technical scheme of the embodiment of the disclosure, under the condition that the first view container is adopted to display the playing content of the source live broadcast room, if the switching operation aiming at the source live broadcast room is monitored, the target live broadcast room to which switching is carried out is determined, and the second view container matched with the target live broadcast room is obtained from the resource pool, so that the second view container is adopted to display the playing content of the target live broadcast room. Therefore, when the live broadcast room is switched, whether a view container corresponding to the target live broadcast room is switched to exists or not is inquired from the resource pool, if yes, the view container corresponding to the target live broadcast room does not need to be created, the view container corresponding to the target live broadcast room does not need to be initialized, the view container corresponding to the target live broadcast room inquired from the resource pool is directly adopted, the playing content of the target live broadcast room is displayed, the performance consumption of equipment can be reduced, and the time-consuming problem caused when the target live broadcast room is displayed can be solved.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel or sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (21)

1. A switching control method of a live broadcast room, the method comprising:
monitoring switching operation aiming at a source live broadcast room under the condition that a first view container is adopted to display the playing content of the source live broadcast room;
responding to the switching operation, and determining a target live broadcast room to which the switching operation is performed;
acquiring a second view container matched with the target live broadcast room from a resource pool;
and displaying the playing content of the target live broadcast room by adopting the second view container.
2. The method of claim 1, wherein the method further comprises:
reclaiming the first view container into the resource pool.
3. The method of claim 1, wherein the method further comprises:
if a second view container matched with the target live broadcast room is not obtained in the resource pool, determining display resources corresponding to the target live broadcast room according to list data sent by a server;
according to the display resources corresponding to the target live broadcast room and a player adapted to the target live broadcast room, creating a third view container of the target live broadcast room;
and displaying the playing content of the target live broadcast room by adopting the third view container.
4. The method of claim 1, wherein after the reclaiming the first view container into the resource pool, further comprising:
and marking the first view container recycled to the resource pool according to the identifier of the source live broadcast room.
5. The method of claim 4, wherein the obtaining a second view container from a resource pool that matches the target live broadcast room comprises:
and querying the second view container marked by the identifier of the target live broadcast room in the resource pool, wherein the second view container is created in advance according to the display resource of the target live broadcast room and a player matched with the target live broadcast room.
6. The method of any of claims 1-5, wherein the method further comprises:
accessing the server to determine whether the list data is updated at a first set time;
and in response to the list data being updated, updating the second view container according to the difference between the list data before and after the update.
7. The method of any of claims 1-5, wherein the method further comprises:
monitoring screen turning operation aiming at the source live broadcast room in the process of displaying the playing content of the source live broadcast room by adopting the first view container;
performing rotation processing on the first view container in response to the screen rotation operation;
and displaying the playing content of the source live broadcast room based on the first view container after the rotation processing.
8. The method of claim 7, wherein the presenting the playback content of the target live broadcast room with the second view container comprises:
performing rotation processing on the second view container according to the screen rotation operation; wherein the second view container after rotation processing is in the same direction as the first view container after rotation processing;
and displaying the playing content of the target live broadcast room based on the second view container after the rotation processing.
9. The method of any of claims 1-5, wherein the presenting the playback content of the target live broadcast room with the second view container comprises:
loading the second view container at a second set time;
accessing a server at a third set time to obtain the video stream of the target live broadcast room;
and triggering the second view container to display the video stream of the target live broadcast room at a fourth set time.
10. A switching control device of a live broadcast room, comprising:
the system comprises a first monitoring module, a second monitoring module and a third monitoring module, wherein the first monitoring module is used for monitoring switching operation aiming at a source live broadcast room under the condition that a first view container is adopted to display the playing content of the source live broadcast room;
the first determining module is used for responding to the switching operation and determining a target live broadcast room to which the switching operation is carried out;
the acquisition module is used for acquiring a second view container matched with the target live broadcast room from a resource pool;
and the display module is used for displaying the playing content of the target live broadcast room by adopting the second view container.
11. The apparatus of claim 10, wherein the apparatus further comprises:
a recycling module for recycling the first view container to the resource pool.
12. The apparatus of claim 10, wherein the apparatus further comprises:
a second determining module, configured to determine, according to list data sent by a server, display resources corresponding to the target live broadcast room if a second view container matching the target live broadcast room is not acquired in the resource pool;
the creating module is used for creating a third view container of the target live broadcast room according to the display resources corresponding to the target live broadcast room and a player matched with the target live broadcast room;
the display module is further configured to display the playing content of the target live broadcast room by using the third view container.
13. The apparatus of claim 10, wherein the apparatus further comprises:
and the marking module is used for marking the first view container recycled to the resource pool according to the identifier of the source live broadcast room.
14. The apparatus according to claim 13, wherein the obtaining module is specifically configured to:
and querying the second view container marked by the identifier of the target live broadcast room in the resource pool, wherein the second view container is created in advance according to the display resource of the target live broadcast room and a player matched with the target live broadcast room.
15. The apparatus of any of claims 10-14, wherein the apparatus further comprises:
the access module is used for accessing the server to determine whether the list data is updated at a first set time;
and the updating module is used for responding to the update of the list data, and updating the second view container according to the difference between the list data before and after the update.
16. The apparatus of any of claims 10-14, wherein the apparatus further comprises:
the second monitoring module is used for monitoring screen turning operation aiming at the source live broadcast room in the process of displaying the playing content of the source live broadcast room by adopting the first view container;
the processing module is used for responding to the screen turning operation and performing rotation processing on the first view container;
the display module is further configured to display the playing content of the source live broadcast room based on the first view container after the rotation processing.
17. The device of claim 16, wherein the presentation module is specifically configured to:
performing rotation processing on the second view container according to the screen rotation operation; wherein the second view container after rotation processing is in the same direction as the first view container after rotation processing;
and displaying the playing content of the target live broadcast room based on the second view container after the rotation processing.
18. The device according to any one of claims 10 to 14, wherein the presentation module is specifically configured to:
loading the second view container at a second set time;
accessing a server at a third set time to obtain the video stream of the target live broadcast room;
and triggering the second view container to display the video stream of the target live broadcast room at a fourth set time.
19. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of controlling a switch of a live broadcast as claimed in any one of claims 1 to 9.
20. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method of controlling switching of a live broadcast room according to any one of claims 1 to 9.
21. A computer program product comprising a computer program which, when executed by a processor, implements a method of controlling switching of a live broadcast as claimed in any one of claims 1 to 9.
CN202110859983.4A 2021-07-28 2021-07-28 Switching control method and device for live broadcast room, electronic equipment and storage medium Pending CN113676744A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110859983.4A CN113676744A (en) 2021-07-28 2021-07-28 Switching control method and device for live broadcast room, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110859983.4A CN113676744A (en) 2021-07-28 2021-07-28 Switching control method and device for live broadcast room, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113676744A true CN113676744A (en) 2021-11-19

Family

ID=78540585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110859983.4A Pending CN113676744A (en) 2021-07-28 2021-07-28 Switching control method and device for live broadcast room, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113676744A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009039741A1 (en) * 2007-09-25 2009-04-02 Huawei Technologies Co., Ltd. A method and device for realizing the switching of iptv channels
US20160150284A1 (en) * 2014-11-20 2016-05-26 Squaredon Co Ltd Dynamic channel selection for live and previously broadcast content
CN106331740A (en) * 2016-09-20 2017-01-11 广州华多网络科技有限公司 Live streaming room switching method, device and system of mobile client
CN107526591A (en) * 2017-08-22 2017-12-29 广州市百果园信息技术有限公司 Switch the method and apparatus of direct broadcasting room type
CN109257643A (en) * 2018-08-27 2019-01-22 武汉斗鱼网络科技有限公司 A kind of direct broadcasting room methods of exhibiting, terminal device and storage medium
CN110035294A (en) * 2018-01-12 2019-07-19 武汉斗鱼网络科技有限公司 A kind of processing method and processing device of direct broadcasting room
CN110347952A (en) * 2019-07-18 2019-10-18 武汉斗鱼网络科技有限公司 A kind of method, apparatus and computer equipment for opening the direct broadcasting room page
CN111246126A (en) * 2020-03-11 2020-06-05 广州虎牙科技有限公司 Direct broadcasting switching method, system, device, equipment and medium based on live broadcasting platform
CN111263177A (en) * 2020-01-22 2020-06-09 杭州皮克皮克科技有限公司 Video interactive live broadcast method and system
CN111338722A (en) * 2020-02-05 2020-06-26 广州虎牙科技有限公司 Live broadcast room template loading method and device, electronic equipment and readable storage medium
CN111866539A (en) * 2020-07-31 2020-10-30 广州繁星互娱信息科技有限公司 Live broadcast interface switching method and device, terminal and storage medium
CN112114927A (en) * 2020-09-28 2020-12-22 广州华多网络科技有限公司 Interface notification message display method, device, equipment and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009039741A1 (en) * 2007-09-25 2009-04-02 Huawei Technologies Co., Ltd. A method and device for realizing the switching of iptv channels
US20160150284A1 (en) * 2014-11-20 2016-05-26 Squaredon Co Ltd Dynamic channel selection for live and previously broadcast content
CN106331740A (en) * 2016-09-20 2017-01-11 广州华多网络科技有限公司 Live streaming room switching method, device and system of mobile client
CN107526591A (en) * 2017-08-22 2017-12-29 广州市百果园信息技术有限公司 Switch the method and apparatus of direct broadcasting room type
CN110035294A (en) * 2018-01-12 2019-07-19 武汉斗鱼网络科技有限公司 A kind of processing method and processing device of direct broadcasting room
CN109257643A (en) * 2018-08-27 2019-01-22 武汉斗鱼网络科技有限公司 A kind of direct broadcasting room methods of exhibiting, terminal device and storage medium
CN110347952A (en) * 2019-07-18 2019-10-18 武汉斗鱼网络科技有限公司 A kind of method, apparatus and computer equipment for opening the direct broadcasting room page
CN111263177A (en) * 2020-01-22 2020-06-09 杭州皮克皮克科技有限公司 Video interactive live broadcast method and system
CN111338722A (en) * 2020-02-05 2020-06-26 广州虎牙科技有限公司 Live broadcast room template loading method and device, electronic equipment and readable storage medium
CN111246126A (en) * 2020-03-11 2020-06-05 广州虎牙科技有限公司 Direct broadcasting switching method, system, device, equipment and medium based on live broadcasting platform
CN111866539A (en) * 2020-07-31 2020-10-30 广州繁星互娱信息科技有限公司 Live broadcast interface switching method and device, terminal and storage medium
CN112114927A (en) * 2020-09-28 2020-12-22 广州华多网络科技有限公司 Interface notification message display method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US20210321157A1 (en) Special effect processing method and apparatus for live broadcasting, and server
US10394437B2 (en) Custom widgets based on graphical user interfaces of applications
WO2018126957A1 (en) Method for displaying virtual reality screen and virtual reality device
CN107077348B (en) Segmented application rendering across devices
WO2016078380A1 (en) Display method, terminal, and computer storage medium
US10356493B2 (en) Methods, systems, and media for presenting interactive elements within video content
US20150121301A1 (en) Information processing method and electronic device
KR20230144582A (en) Live streaming video-based interaction method and apparatus, device and storage medium
CN110992112A (en) Method and device for processing advertisement information
CN111770384A (en) Video switching method and device, electronic equipment and storage medium
CN112035195A (en) Application interface display method and device, electronic equipment and storage medium
CN114168793A (en) Anchor display method, device, equipment and storage medium
CN111818371B (en) Interactive video management method and related device
CN112002321B (en) Display device, server and voice interaction method
US11875029B2 (en) Video display method and apparatus, computer-readable medium, and electronic device
CN111857902B (en) Application display method, device, equipment and readable storage medium
CN113676744A (en) Switching control method and device for live broadcast room, electronic equipment and storage medium
CN108401455B (en) Multi-system control method, control device and mobile terminal
CN114449355B (en) Live interaction method, device, equipment and storage medium
US20220236996A1 (en) Dual-system device and method for displaying application thereof, and storage medium
US20240095141A1 (en) Displaying information flow
WO2022022729A1 (en) Rendering control method, device and system
CN115047999A (en) Interface switching method and device, electronic equipment, storage medium and program product
CN113495621A (en) Interactive mode switching method and device, electronic equipment and storage medium
CN113596086A (en) Method and system for controlling GIS large-screen visualization application based on scene configuration

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