CN107526591B - Method and device for switching types of live broadcast rooms - Google Patents
Method and device for switching types of live broadcast rooms Download PDFInfo
- Publication number
- CN107526591B CN107526591B CN201710724204.3A CN201710724204A CN107526591B CN 107526591 B CN107526591 B CN 107526591B CN 201710724204 A CN201710724204 A CN 201710724204A CN 107526591 B CN107526591 B CN 107526591B
- Authority
- CN
- China
- Prior art keywords
- live broadcast
- broadcast room
- display
- function module
- live
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 57
- 230000006870 function Effects 0.000 claims description 125
- 238000012545 processing Methods 0.000 description 15
- 238000010586 diagram Methods 0.000 description 13
- 238000004891 communication Methods 0.000 description 10
- 238000007726 management method Methods 0.000 description 10
- 230000000694 effects Effects 0.000 description 8
- 230000008859 change Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 4
- 241000209140 Triticum Species 0.000 description 3
- 235000021307 Triticum Nutrition 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 3
- 230000005236 sound signal Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/478—Supplemental services, e.g. displaying phone caller identification, shopping application
- H04N21/4788—Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Controls And Circuits For Display Device (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The disclosure relates to a method and a device for switching types of live broadcasting rooms, and belongs to the technical field of application programs. The method comprises the following steps: when a type switching trigger event of a live broadcast room is detected, determining at least one display control corresponding to a switched target live broadcast room type in all display controls of a View View layer, starting a display control which is not started currently in the at least one display control, and closing the display controls except the at least one display control in the View layer; and determining at least one display function module corresponding to the type of the target live broadcast room in each display function module of the control logic Presenter layer, starting a display function module which is not started currently in the at least one display function module, and closing the display function modules except the at least one display function module in the Presenter layer. When the terminal reduces the operation overhead and the type is switched in the live broadcasting room, the switching of the live broadcasting interface is smooth and less in pause.
Description
Technical Field
The present disclosure relates to the field of application technologies, and in particular, to a method and an apparatus for switching types of live broadcast rooms.
Background
More and more users begin to watch live broadcasts, live broadcast contents are all five-door, and live broadcasts can be selected in different types of live broadcast rooms in order to meet various live broadcast requirements. Wherein, the live broadcast rooms of different types comprise a voice live broadcast room, a video live broadcast room and a game live broadcast room. As the name implies, a voice live room can build an environment for multiple users to communicate over audio. The video live broadcast room can provide the live broadcast function for the anchor, the anchor can sing, dancing in the live broadcast room of video, carries out a series of performances, and other users in the live broadcast room of video can watch the performance of anchor. The live game room can share the screen of the mobile terminal held by the anchor, so that other users in the live game room can watch the screen of the mobile terminal held by the anchor. When the anchor controls the screen of the mobile terminal, the screen picture can be changed along with the control, and other users can see the change. Generally, before the anchor starts the live broadcast room to perform live broadcast, the anchor may set the type of the live broadcast room to be started to perform related live broadcast.
For the multi-skill anchor, if the type of the live broadcasting room needs to be switched to convert the live broadcasting content in the live broadcasting process, in the View layer, the control logic Presenter layer and the Model layer of the system bottom layer of the mobile terminal, the executing program corresponding to the live broadcasting room before the type switching is terminated and the data is emptied. And then, starting a program to be executed corresponding to the switched type live broadcast room in a View layer, a Presenter layer and a Model layer of a system bottom layer of the mobile terminal. The live broadcast room after switching the type needs to obtain part of data required by operation from the server, such as a member list in the live broadcast room.
In fact, the control, the function module or the data which can be shared exist in the View layer, the Presenter layer and the Model layer of the live broadcast room before the type switching and the live broadcast room after the type switching, so that it is not necessary to terminate the executing program corresponding to the live broadcast room before the type switching and empty the data when the type of the live broadcast room is switched, and thus the operation resources of the mobile terminal are wasted.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides the following technical solutions:
according to a first aspect of the embodiments of the present disclosure, there is provided a method for switching a live broadcast type, the method including:
when a type switching trigger event of a live broadcast room is detected, determining at least one display control corresponding to a switched target live broadcast room type in all display controls of a View View layer, starting a display control which is not started currently in the at least one display control, and closing the display controls except the at least one display control in the View layer;
determining at least one display function module corresponding to the type of the target live broadcast room in each display function module of a control logic Presenter layer, starting a display function module which is not started currently in the at least one display function module, and closing the display function modules except the at least one display function module in the Presenter layer;
and generating a live broadcast interface of the target live broadcast room type of the live broadcast room through the at least one display function module and the at least one display control.
Optionally, generating, through the at least one display function module and the at least one display control, a target live broadcast room type live broadcast interface of the live broadcast room includes:
calling the live broadcast related data corresponding to the type of the target live broadcast room through the at least one display function module;
generating, by the at least one display function module, Presenter layer data of the target live broadcast room type of the live broadcast room based on the live broadcast related data;
and generating a live broadcast interface of the target live broadcast room type of the live broadcast room based on the Presenter layer data through the at least one display control.
Optionally, the method further comprises:
and sending the data of the Presenter layer to a server so that the server sends the data of the Presenter layer to login terminals of all accounts in the live broadcast room.
Optionally, the method further comprises:
when the situation that the live broadcast related data is updated is monitored, acquiring the updated live broadcast related data;
after generating, by the at least one display function module, Presenter layer data of the target live broadcast room type of the live broadcast room based on the live broadcast related data, the method further comprises:
generating, by the at least one display function module, updated Presenter layer data based on the updated live broadcast related data;
after generating, by the at least one display control, a live interface of the target live-cast type of the live-cast room based on the Presenter layer data, the method further comprises:
and updating the live broadcast interface of the target live broadcast room type based on the updated Presenter layer data through the at least one display control.
Optionally, the live room type includes a voice live room, a video live room, or a game live room.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for switching a live channel type, the apparatus including:
the device comprises a first determining module, a second determining module and a display control switching module, wherein the first determining module is used for determining at least one display control corresponding to a switched target live broadcast type in each display control of a View View layer when a type switching triggering event of the live broadcast is detected, starting a display control which is not started currently in the at least one display control, and closing the display controls except the at least one display control in the View layer;
a second determining module, configured to determine, in each display function module of a control logic Presenter layer, at least one display function module corresponding to the type of the target live broadcast room, start a currently un-started display function module of the at least one display function module, and close display function modules, except for the at least one display function module, in the Presenter layer;
and the first generation module is used for generating a live broadcast interface of the target live broadcast room type of the live broadcast room through the at least one display function module and the at least one display control.
Optionally, the first generating module comprises:
the calling unit is used for calling the live broadcast related data corresponding to the type of the target live broadcast room through the at least one display function module;
a first generating unit, configured to generate, by the at least one display function module, Presenter layer data of the target live broadcast room type in the live broadcast room based on the live broadcast related data;
and a second generating unit, configured to generate, through the at least one display control, a live broadcast interface of the target live broadcast room type in the live broadcast room based on the Presenter layer data.
Optionally, the apparatus further comprises:
and the sending module is used for sending the data of the Presenter layer to a server so that the server sends the data of the Presenter layer to the login terminal of each account in the live broadcast room.
Optionally, the apparatus further comprises:
the acquisition module is used for acquiring updated live broadcast related data when the situation that the live broadcast related data is updated is monitored;
the device further comprises:
a second generating module, configured to generate, by the at least one display function module, updated Presenter layer data based on the updated live broadcast related data;
the device further comprises:
and the third generation module is used for updating the live broadcast interface of the target live broadcast room type based on the updated Presenter layer data through the at least one display control.
Optionally, the live room type includes a voice live room, a video live room, or a game live room.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal, where the terminal includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or a set of instructions, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the above method for switching a live broadcast type.
According to a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a code set, or a set of instructions is stored, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by a processor to implement the above method for switching a live broadcast type.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the method provided by the embodiment of the disclosure, when the type switching triggering event of the live broadcast room is detected, at least one display control corresponding to the switched target live broadcast room type is determined in each display control of the View View layer, and compared with the method of completely closing all the display controls, the display controls which can be continuously used are kept open, the times of opening and closing the display controls are reduced, and the terminal operation cost is saved. And in each display function module of the control logic Presenter layer, at least one display function module corresponding to the type of the target live broadcast room is determined, and compared with the method of closing all the display function modules, the terminal operation expense is also saved. When the terminal reduces the operation overhead and the type is switched in the live broadcasting room, the switching of the live broadcasting interface is smooth and less in pause.
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. In the drawings:
FIG. 1 is a flow diagram illustrating a method of switching live-air type in accordance with an exemplary embodiment;
FIG. 2A is a diagram illustrating a display control of a voice live room, according to an illustrative embodiment;
FIG. 2B is a diagram illustrating a display control of a video live room, according to an illustrative embodiment;
FIG. 2C is a diagram illustrating display controls of a game live room, according to an illustrative embodiment;
FIG. 3 is a flow diagram illustrating a method of switching live room types in accordance with an exemplary embodiment;
FIG. 4 is a schematic diagram of a display architecture shown in accordance with an exemplary embodiment;
fig. 5 is a schematic diagram illustrating an apparatus for switching a type of live channel according to an exemplary embodiment;
fig. 6 is a schematic diagram illustrating an apparatus for switching a type of live channel according to an exemplary embodiment;
fig. 7 is a schematic diagram illustrating a structure of a terminal according to an exemplary embodiment.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The embodiment of the invention provides a method for switching types of live broadcast rooms, which can be realized by a terminal. The terminal can be a mobile phone, a tablet computer, a desktop computer, a notebook computer and the like.
The terminal may include display components, transceivers, processors, memory, and the like. A transceiver, which may be used for data transmission with the server, for example, the Presenter layer data may be sent to the server, and the transceiver may include a bluetooth component, a WiFi (Wireless-Fidelity) component, an antenna, a matching circuit, a modem, and the like. The processor, which may be a Central Processing Unit (CPU), may be configured to determine, among the display controls of the View layer, at least one display control corresponding to the switched target live broadcast room type, and perform other Processing. The memory may be a RAM (Random access memory), a Flash (Flash memory), and the like, and may be configured to store received data, data required by the processing procedure, data generated in the processing procedure, and the like, such as live broadcast related data.
The terminal may also include input components, audio output components, and the like. The input means may be a touch screen, keyboard, mouse, etc. The audio output component may be a speaker, headphones, or the like.
The terminal may have a system program and an application program installed therein. A user uses various applications based on his/her own different needs while using the terminal. The terminal can be provided with an application program with live broadcast or live broadcast watching function.
An exemplary embodiment of the present disclosure provides a method for switching a type of a live broadcast, as shown in fig. 1, a processing flow of the method may include the following steps:
and S110, when a type switching trigger event of the live broadcast room is detected, determining at least one display control corresponding to the switched target live broadcast room type in all display controls of the View layer, starting a display control which is not started currently in the at least one display control, and closing the display controls except the at least one display control in the View layer.
In an implementation, the type switching triggering event of the live broadcast room may be an event triggered by the anchor or the homeowner clicking a live broadcast room type switching key in a live broadcast room interface on a display part in the terminal. In a specific application scenario, when the anchor needs to switch the live broadcast mode, a suitable live broadcast room type can be selected correspondingly, and the method for selecting the suitable live broadcast room type can be to click a live broadcast room type switching button in a live broadcast room interface.
In implementation, a terminal loaded with an Android system may perform a display operation of a display part in an MVP (Model-View-Presenter) mode. The MVP mode generally includes three layers, i.e., a View layer, a Presenter layer, and a Model layer. The MVP mode abstracts UI (User Interface) logic in Activity (one of four major components of the Android system) into a display control of a View layer, abstracts service logic into a display function module of a Presenter layer, and the Model layer is responsible for acquiring data.
Optionally, the live room types include, but are not limited to, voice live rooms, video live rooms, or game live rooms.
A display control, for example, a control for displaying an account list of each viewer account in a live broadcast room, and a control for displaying a main broadcast avatar in the live broadcast room, are mounted in the View layer. The display control is of various types, and when the display control is started, the display effect of the display control can be correspondingly seen in a display part in the terminal. Therefore, only the display control corresponding to the content that needs to be displayed can be started, and the display control corresponding to the content that does not need to be displayed is closed or the attribute of the display control is set to be hidden. The content that needs to be displayed is different for different live-air types. For example, in a video live broadcast room, the same horizontal screen display effect as in a game live broadcast room is not required, and a vertical screen display is generally adopted in the video live broadcast room. Because, in the video live broadcasting room, the audience hopes to see the images of the main broadcasting better, and the display effect of the vertical screen is better. In the game live broadcasting room, the spectators hope to see the game interface, and the display effect of the horizontal screen is better. In the View layer, a display control for landscape display and a display control for portrait display exist. Then, when the game live broadcast room is opened, the display control for horizontal screen display needs to be started, and the display control for vertical screen display needs to be closed. And vice versa in a live video room. In addition, in the View layer, a part of controls are shared, for example, a control for displaying an account list of each viewer account in the live broadcast room is also present, the account list can be displayed in each type of live broadcast room, and the account list can be displayed in different types of live broadcast rooms by applying the same set of controls for displaying the account list of each viewer account in the live broadcast room.
As shown in fig. 2A, the display control of a voice live broadcast room is a schematic diagram, wherein the display control includes a live broadcast room information control, a wheat order control, and a public chat information control. The live room information control and the wheat sequence control can be non-shared display controls, and the public chat information control can be a shared display control. As shown in fig. 2B, the display control of a video live broadcast room is illustrated, where the display control includes an anchor avatar control, an account list control, and an anchor video stream screen control. The anchor video stream picture control may be a non-common display control, which is more prone to adopt a portrait screen type display control. The anchor avatar control, the account list control, may be a common display control. As shown in fig. 2C, the display control of the live game room is a schematic diagram, which includes an anchor avatar control, an account list control, an anchor game screen control, and a public chat information control. The anchor game frame control may be a non-common display control, with anchor game frame controls being more prone to employ landscape-type display controls. The anchor avatar control, the account list control, and the public chat information control may be common display controls. It should be noted that, the above description is only an exemplary description of the display control in various types of live broadcast rooms, and in practical application, corresponding adjustment may be performed according to user requirement change or product design change.
From the above analysis, it can be seen that different live view types correspond to different and the same display controls. When a type switching trigger event of the live broadcast room is detected, determining at least one display control corresponding to the switched target live broadcast room type in all display controls of the View layer, starting a display control which is not started currently in the at least one display control, and closing the display controls except the at least one display control in the View layer. It should be noted that the currently un-activated display control in the above example would not generally be the control for displaying the account list of each viewer account in the live broadcast room, and because each live broadcast room uses the common display control, the common display control is normally open. When the live broadcast room type is switched, only the unopened display control corresponding to the target live broadcast room type needs to be opened, and the display control which is not needed to be opened is closed or set to be hidden. In addition, a common display control can be selected from all display controls corresponding to all live broadcast types in advance, and the attribute of the display control can be configured. When the type of the live broadcast room is switched, the non-shared display control corresponding to the type of the target live broadcast room is directly judged.
Optionally, similar to the display controls, the View layer may also have display effects modules that may be used to generate different animation effects. For example, when a viewer swipes a virtual gift greater than a threshold value for the main play, the live interface may play animated special effects, which may also be shared.
Step S120, in each display function module of the Presenter layer, at least one display function module corresponding to the type of the target live broadcast is determined, a display function module which is not started currently in the at least one display function module is started, and display function modules except the at least one display function module in the Presenter layer are closed.
In implementation, the display function module of the Presenter layer is similar to the display control of the View layer in this embodiment, different types of live rooms correspond to the same or different display function modules, and the same display function module is a common display function module. The shared display function module can be normally opened, when the type of the live broadcast room is switched, only the unopened non-shared display function module corresponding to the type of the target live broadcast room needs to be opened, and the unneeded display function module is closed. The display function module can include, but is not limited to, a screen recording function module, a live broadcast room status function module, a live broadcast room attribute function module, a live broadcast room account list module, a wheat place module, a chat message module, and the like.
In practice, the functionality of the display function modules that manage the Presenter layer may be placed in a new layer between the View layer and the Presenter layer, which may be referred to as the Presenter management layer. The Presenter management layer is mainly used for managing each display function module of the Presenter layer and interacting with the View layer through an interface provided by the View layer. Specifically, the Presenter management layer may be configured to control a life cycle of each display function module of the Presenter layer, and control which display function module is to continue a service, which display function module may start its life cycle, and which display function module may end its life cycle.
And step S130, generating a target live broadcast room type live broadcast interface of the live broadcast room through at least one display function module and at least one display control.
In implementation, in the case that the display controls and the display function modules of the View layer and the Presenter layer are not all closed through steps S110 and S120, a live broadcast interface of a target live broadcast room type of the live broadcast room can be generated through at least one display function module and at least one display control, and live broadcast is continued.
Alternatively, as shown in fig. 3, the step of step S130 may include: step S231, calling the live broadcast related data corresponding to the type of the target live broadcast room through at least one display function module; step S232, generating Presenter layer data of a target live broadcast room type of the live broadcast room through at least one display function module based on the live broadcast related data; and step S233, generating a live broadcast interface of a target live broadcast room type of the live broadcast room based on the Presenter layer data through at least one display control.
In implementation, below the Presenter tier is a Model tier that is responsible for data retrieval, e.g., from a server, from a local storage space. After the Model layer acquires the data, the data can be simply processed firstly, the processed data is the live broadcast related data, and then the display function module in the Presenter layer can call the live broadcast related data corresponding to the type of the target live broadcast room. And then, processing the live broadcast related data through at least one display function module according to the service logic, wherein the processed live broadcast related data is the Presenter layer data of the target live broadcast room type of the live broadcast room. And finally, the Presenter layer submits the Presenter layer data to the View layer through an interface provided by the View layer. At least one display control in the View layer may generate a target live View type live View interface of a live View based on the Presenter layer data. It should be noted that, if the Presenter management layer is included in the display architecture, the Presenter layer data can be submitted to the Presenter layer data first, and then the Presenter layer data submits the Presenter layer data to the View layer.
Note that a part of data actually in the Model layer is shared, for example, the anchor avatar and account data in the live broadcast room. In practical applications, even though there are differences in the controls for displaying the anchor images, i.e., the anchor avatar is larger in the voice live broadcast room and smaller in the video live broadcast room to leave enough space for the anchor character images, the Model layer data used by them are not different and are the same anchor avatar. Therefore, no matter what the type of the live broadcast room is, some Model layer data are the same and can be used universally. Therefore, when the type of the live broadcast room is switched, the data in the Model layer is not emptied, but is called along with the requirement, so that the transmission flow for acquiring the common data from the server again can be saved, and the data transmission overhead is saved.
Fig. 4 is a schematic diagram of a display architecture according to an embodiment of the disclosure. In the figure, the top layer to the bottom layer are a View layer, a Presenter management layer, a Presenter layer and a Model layer in sequence. In the View layer, there are shared display controls and non-shared display modules. The Presenter management layer may or may not be provided, and if the Presenter management layer is not provided, a function of managing the Presenter layer may be provided at the View layer or the Presenter layer, or other layers. In the Presenter layer, there are a common display function module and a non-common display function module. In the Model layer, there is live related data. By the display framework provided by the embodiment, the live broadcast type can be switched without terminating program operation and clearing data.
Optionally, the method provided in this embodiment further includes: and sending the data of the Presenter layer to a server so that the server sends the data of the Presenter layer to login terminals of all accounts in the live broadcast room.
In implementation, what is really responsible for the display component in the terminal to actually display the live interface is the View layer. If the terminal is a terminal supported by the anchor, the data of the Presenter layer can be submitted to the View layer, and a display module in the View layer displays a live broadcast interface based on the data of the Presenter layer. In this case, the anchor is an anchor, and the anchor can be viewed as a live broadcast on a terminal held by the anchor, or can be a viewer of the anchor. For other audiences in the live broadcast room, the Presenter layer data can be directly sent to the server from the Presenter layer, and the server can determine the login terminal of each account in the live broadcast room based on each account in the live broadcast room and then distribute the Presenter layer data to the login terminal of each account in the live broadcast room. And the login terminals of all accounts in the live broadcast room receive the data of the Presenter layer and submit the data to the View layer from the local Presenter layer or the Presenter management layer so as to present a live broadcast interface in the display part of the login terminals of all accounts in the live broadcast room.
Optionally, the method provided in this embodiment further includes: when it is monitored that the live broadcast related data is updated, acquiring the updated live broadcast related data; after generating, by the at least one display function module, Presenter layer data of a target live broadcast room type of the live broadcast room based on the live broadcast related data, the method further includes: generating, by at least one display function module, updated Presenter layer data based on the updated live broadcast related data; after generating a live interface of a target live broadcast room type of the live broadcast room based on the Presenter layer data through the at least one display control, the method further comprises: and updating the live broadcast interface of the target live broadcast room type based on the updated Presenter layer data through at least one display control.
In the implementation, the data of the Model layer can be changed at any time in the live broadcasting room, for example, in the case of live video, the person picture collected by the terminal held by the anchor changes in real time as the anchor changes the operation mode, so the corresponding data also changes in the Model layer. Furthermore, when the corresponding data in the Model layer changes, the corresponding live related data in the Model layer also changes. The Presenter layer can monitor the change, and when the live broadcast related data is monitored to be updated, the updated live broadcast related data is acquired. And generating updated Presenter layer data based on the updated live broadcast related data through at least one display function module. And updating the live broadcast interface of the target live broadcast room type based on the updated Presenter layer data through at least one display control.
According to the method provided by the embodiment of the disclosure, when the type switching triggering event of the live broadcast room is detected, at least one display control corresponding to the switched target live broadcast room type is determined in each display control of the View View layer, and compared with the method of completely closing all the display controls, the display controls which can be continuously used are kept open, the times of opening and closing the display controls are reduced, and the terminal operation cost is saved. And in each display function module of the control logic Presenter layer, at least one display function module corresponding to the type of the target live broadcast room is determined, and compared with the method of closing all the display function modules, the terminal operation expense is also saved. When the terminal reduces the operation overhead and the type is switched in the live broadcasting room, the switching of the live broadcasting interface is smooth and less in pause.
Yet another exemplary embodiment of the present disclosure provides an apparatus for switching a type of a live channel, as shown in fig. 5, the apparatus including:
the first determining module 310 is configured to, when a type switching trigger event of a live broadcast room is detected, determine, among display controls of a View layer, at least one display control corresponding to a switched target live broadcast room type, start a display control that is not currently started among the at least one display control, and close display controls other than the at least one display control in the View layer;
a second determining module 320, configured to determine, among display function modules in a control logic Presenter layer, at least one display function module corresponding to the target live broadcast room type, start a currently un-started display function module in the at least one display function module, and close display function modules, except for the at least one display function module, in the Presenter layer;
a first generating module 330, configured to generate a live interface of the target live broadcast room type of the live broadcast room through the at least one display function module and the at least one display control.
Optionally, as shown in fig. 6, the first generating module 330 includes:
the retrieval unit 431 is configured to retrieve, through the at least one display function module, live broadcast related data corresponding to the type of the target live broadcast room;
a first generating unit 432, configured to generate, by the at least one display function module, Presenter layer data of the target live broadcast room type of the live broadcast room based on the live broadcast related data;
a second generating unit 433, configured to generate, through the at least one display control, a live broadcast interface of the target live broadcast room type in the live broadcast room based on the Presenter layer data.
Optionally, the apparatus further comprises:
and the sending module is used for sending the data of the Presenter layer to a server so that the server sends the data of the Presenter layer to the login terminal of each account in the live broadcast room.
Optionally, the apparatus further comprises:
the acquisition module is used for acquiring updated live broadcast related data when the situation that the live broadcast related data is updated is monitored;
a second generating module, configured to generate, by the at least one display function module, updated Presenter layer data based on the updated live broadcast related data;
and the third generation module is used for updating the live broadcast interface of the target live broadcast room type based on the updated Presenter layer data through the at least one display control.
Optionally, the live room type includes a voice live room, a video live room, or a game live room.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
According to the device provided by the embodiment of the disclosure, when the type switching triggering event of the live broadcast room is detected, at least one display control corresponding to the switched target live broadcast room type is determined in each display control of the View View layer, and compared with the method of completely closing all the display controls, the display controls which can be continuously used are kept open, the times of opening and closing the display controls are reduced, and the terminal operation cost is saved. And in each display function module of the control logic Presenter layer, at least one display function module corresponding to the type of the target live broadcast room is determined, and compared with the method of closing all the display function modules, the terminal operation expense is also saved. When the terminal reduces the operation overhead and the type is switched in the live broadcasting room, the switching of the live broadcasting interface is smooth and less in pause.
It should be noted that: in the device for switching the type of the live broadcast room provided in the above embodiment, when the type of the live broadcast room is switched, only the division of the functional modules is illustrated, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the terminal is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the device for switching the type of the live broadcast room and the method for switching the type of the live broadcast room provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Yet another exemplary embodiment of the present disclosure shows a structural diagram of a terminal. Referring to fig. 7, terminal 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls overall operation of the terminal 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 702 may include one or more processors 720 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 702 may include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operation at the terminal 700. Examples of such data include instructions for any application or method operating on terminal 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The multimedia component 708 comprises a screen providing an output interface between the terminal 700 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the terminal 700 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 includes a Microphone (MIC) configured to receive external audio signals when the audio output device 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 704 or transmitted via the communication component 716.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 714 includes one or more sensors for providing various aspects of state assessment for the terminal 700. For example, sensor assembly 714 can detect an open/closed state of terminal 700, relative positioning of components, such as a display and keypad of terminal 700, change in position of terminal 700 or a component of terminal 700, presence or absence of user contact with terminal 700, orientation or acceleration/deceleration of terminal 700, and temperature change of terminal 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate communications between the terminal 700 and other devices in a wired or wireless manner. The terminal 700 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal 700 can be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a computer-readable storage medium comprising instructions, such as the memory 704 comprising instructions, executable by the processor 720 of the terminal 700 to perform the above-described method is also provided. For example, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Yet another embodiment of the present disclosure provides a computer-readable storage medium, in which instructions, when executed by a processor of a terminal, enable the terminal to perform:
when a type switching trigger event of a live broadcast room is detected, determining at least one display control corresponding to a switched target live broadcast room type in all display controls of a View View layer, starting a display control which is not started currently in the at least one display control, and closing the display controls except the at least one display control in the View layer;
determining at least one display function module corresponding to the type of the target live broadcast room in each display function module of a control logic Presenter layer, starting a display function module which is not started currently in the at least one display function module, and closing the display function modules except the at least one display function module in the Presenter layer;
and generating a live broadcast interface of the target live broadcast room type of the live broadcast room through the at least one display function module and the at least one display control.
Optionally, generating, through the at least one display function module and the at least one display control, a target live broadcast room type live broadcast interface of the live broadcast room includes:
calling the live broadcast related data corresponding to the type of the target live broadcast room through the at least one display function module;
generating, by the at least one display function module, Presenter layer data of the target live broadcast room type of the live broadcast room based on the live broadcast related data;
and generating a live broadcast interface of the target live broadcast room type of the live broadcast room based on the Presenter layer data through the at least one display control.
Optionally, the method further comprises:
and sending the data of the Presenter layer to a server so that the server sends the data of the Presenter layer to login terminals of all accounts in the live broadcast room.
Optionally, the method further comprises:
when the situation that the live broadcast related data is updated is monitored, acquiring the updated live broadcast related data;
after generating, by the at least one display function module, Presenter layer data of the target live broadcast room type of the live broadcast room based on the live broadcast related data, the method further comprises:
generating, by the at least one display function module, updated Presenter layer data based on the updated live broadcast related data;
after generating, by the at least one display control, a live interface of the target live-cast type of the live-cast room based on the Presenter layer data, the method further comprises:
and updating the live broadcast interface of the target live broadcast room type based on the updated Presenter layer data through the at least one display control.
Optionally, the live room type includes a voice live room, a video live room, or a game live room.
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 within 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.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (12)
1. A method of switching a live channel type, the method comprising:
selecting a common display control from all display controls corresponding to the types of the plurality of live broadcast rooms in advance; when a type switching trigger event of a live broadcast room is detected, determining at least one display control corresponding to a switched target live broadcast room type in non-shared display controls of a View View layer, starting a display control which is not started currently in the at least one display control, and hiding the display controls except the at least one display control in the non-shared display controls; the different live broadcast room types correspond to the same common display control and different non-common display controls, and the common display control is in a normally open state;
determining at least one display function module corresponding to the type of the target live broadcast room in the non-shared display function modules of the control logic Presenter layer, starting the display function module which is not started currently in the at least one display function module, and closing the display function modules except the at least one display function module in the non-shared display function modules; the different live broadcast room types correspond to the same common display function module and different non-common display function modules, and the common display function module is in a normally open state;
and generating a live broadcast interface of the target live broadcast room type of the live broadcast room through the at least one display function module and the at least one display control.
2. The method of claim 1, wherein generating, via the at least one display function module and the at least one display control, a live interface of the target live-view type of the live-view comprises:
calling the live broadcast related data corresponding to the type of the target live broadcast room through the at least one display function module;
generating, by the at least one display function module, Presenter layer data of the target live broadcast room type of the live broadcast room based on the live broadcast related data;
and generating a live broadcast interface of the target live broadcast room type of the live broadcast room based on the Presenter layer data through the at least one display control.
3. The method of claim 2, further comprising:
and sending the data of the Presenter layer to a server so that the server sends the data of the Presenter layer to login terminals of all accounts in the live broadcast room.
4. The method of claim 2, further comprising:
when the situation that the live broadcast related data is updated is monitored, acquiring the updated live broadcast related data;
after generating, by the at least one display function module, Presenter layer data of the target live broadcast room type of the live broadcast room based on the live broadcast related data, the method further comprises:
generating, by the at least one display function module, updated Presenter layer data based on the updated live broadcast related data;
after generating, by the at least one display control, a live interface of the target live-cast type of the live-cast room based on the Presenter layer data, the method further comprises:
and updating the live broadcast interface of the target live broadcast room type based on the updated Presenter layer data through the at least one display control.
5. The method of claim 1, wherein the live-air type comprises a voice live-air, a video live-air, or a game live-air.
6. An apparatus for switching a live channel type, the apparatus comprising:
the first determining module is used for selecting a common display control from all display controls corresponding to a plurality of live broadcast room types in advance; when a type switching trigger event of a live broadcast room is detected, determining at least one display control corresponding to a switched target live broadcast room type in non-shared display controls of a View View layer, starting a display control which is not started currently in the at least one display control, and hiding the display controls except the at least one display control in the non-shared display controls; the different live broadcast room types correspond to the same common display control and different non-common display controls, and the common display control is in a normally open state;
a second determining module, configured to determine, in an unshared display function module of a control logic Presenter layer, at least one display function module corresponding to the target live broadcast room type, start a currently un-started display function module of the at least one display function module, and close a display function module, other than the at least one display function module, of the unshared display function module; the different live broadcast room types correspond to the same common display function module and different non-common display function modules, and the common display function module is in a normally open state;
and the first generation module is used for generating a live broadcast interface of the target live broadcast room type of the live broadcast room through the at least one display function module and the at least one display control.
7. The apparatus of claim 6, wherein the first generating module comprises:
the calling unit is used for calling the live broadcast related data corresponding to the type of the target live broadcast room through the at least one display function module;
a first generating unit, configured to generate, by the at least one display function module, Presenter layer data of the target live broadcast room type in the live broadcast room based on the live broadcast related data;
and a second generating unit, configured to generate, through the at least one display control, a live broadcast interface of the target live broadcast room type in the live broadcast room based on the Presenter layer data.
8. The apparatus of claim 7, further comprising:
and the sending module is used for sending the data of the Presenter layer to a server so that the server sends the data of the Presenter layer to the login terminal of each account in the live broadcast room.
9. The apparatus of claim 7, further comprising:
the acquisition module is used for acquiring updated live broadcast related data when the situation that the live broadcast related data is updated is monitored;
a second generating module, configured to generate, by the at least one display function module, updated Presenter layer data based on the updated live broadcast related data;
and the third generation module is used for updating the live broadcast interface of the target live broadcast room type based on the updated Presenter layer data through the at least one display control.
10. The apparatus of claim 6, wherein the live view type comprises a voice live view, a video live view, or a game live view.
11. A terminal, characterized in that the terminal comprises a processor and a memory, in which at least one instruction, at least one program, a set of codes or a set of instructions is stored, which is loaded and executed by the processor to implement the method of switching a live-air type according to any one of claims 1-5.
12. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement a method of switching a live-air type as claimed in any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710724204.3A CN107526591B (en) | 2017-08-22 | 2017-08-22 | Method and device for switching types of live broadcast rooms |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710724204.3A CN107526591B (en) | 2017-08-22 | 2017-08-22 | Method and device for switching types of live broadcast rooms |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107526591A CN107526591A (en) | 2017-12-29 |
CN107526591B true CN107526591B (en) | 2021-06-29 |
Family
ID=60681856
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710724204.3A Active CN107526591B (en) | 2017-08-22 | 2017-08-22 | Method and device for switching types of live broadcast rooms |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107526591B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110018818B (en) * | 2018-01-10 | 2023-08-11 | 天音移动通信有限公司 | Switching method, storage medium, device and system for aggregation SDK |
CN109395385B (en) | 2018-09-13 | 2021-05-25 | 深圳市腾讯信息技术有限公司 | Virtual scene configuration method and device, storage medium and electronic device |
CN109309859A (en) * | 2018-09-30 | 2019-02-05 | 广州虎牙信息科技有限公司 | Direct broadcasting room method for showing interface, framework and correlation technique, device and equipment |
CN110413261A (en) * | 2019-06-26 | 2019-11-05 | 上海哔哩哔哩科技有限公司 | A kind of configuration method and equipment of direct broadcast function module |
CN111782101B (en) * | 2020-07-08 | 2022-02-25 | 网易(杭州)网络有限公司 | Display control method of live broadcast room, electronic device and storage medium |
CN112492328B (en) * | 2020-10-22 | 2023-01-13 | 百果园技术(新加坡)有限公司 | Virtual room creating method, device, terminal and storage medium |
CN113676744B (en) * | 2021-07-28 | 2024-06-07 | 北京百度网讯科技有限公司 | Live broadcast room switching control method and device, electronic equipment and storage medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101359291B (en) * | 2008-09-08 | 2012-05-23 | 华为终端有限公司 | Method and device for replacing interface styles |
CN105898438B (en) * | 2016-04-07 | 2020-09-25 | 广州华多网络科技有限公司 | Live broadcast room dynamic configuration method, device, system and server |
CN106331740A (en) * | 2016-09-20 | 2017-01-11 | 广州华多网络科技有限公司 | Live streaming room switching method, device and system of mobile client |
CN106569667B (en) * | 2016-11-02 | 2021-10-15 | 广州方硅信息技术有限公司 | Customization method and customization device for live broadcast room |
CN106658142A (en) * | 2016-12-09 | 2017-05-10 | 广州华多网络科技有限公司 | Interface configuration method and device |
CN109688420A (en) * | 2018-12-27 | 2019-04-26 | 北京潘达互娱科技有限公司 | Method for showing interface, equipment and storage medium is broadcast live |
-
2017
- 2017-08-22 CN CN201710724204.3A patent/CN107526591B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN107526591A (en) | 2017-12-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107526591B (en) | Method and device for switching types of live broadcast rooms | |
CN106028166B (en) | Live broadcast room switching method and device in live broadcast process | |
CN105843615B (en) | Notification message processing method and device | |
CN111314768A (en) | Screen projection method, screen projection device, electronic equipment and computer readable storage medium | |
CN106506448B (en) | Live broadcast display method and device and terminal | |
WO2019072096A1 (en) | Interactive method, device, system and computer readable storage medium in live video streaming | |
US20220400137A1 (en) | Widget display method and apparatus | |
CN104010222A (en) | Method, device and system for displaying comment information | |
CN106528081B (en) | Operation execution method and device | |
CN109451341B (en) | Video playing method, video playing device, electronic equipment and storage medium | |
CN112019893B (en) | Screen projection method of terminal and screen projection device of terminal | |
CN109976861B (en) | Interactive interface display method and device and storage medium | |
CN105786507B (en) | Display interface switching method and device | |
US20220150598A1 (en) | Method for message interaction, and electronic device | |
US20220159336A1 (en) | Method and system for displaying screen | |
CN113365153B (en) | Data sharing method and device, storage medium and electronic equipment | |
CN106792024B (en) | Multimedia information sharing method and device | |
CN112291631A (en) | Information acquisition method, device, terminal and storage medium | |
US20180007420A1 (en) | Method, device and system for recording television program | |
CN107566878B (en) | Method and device for displaying pictures in live broadcast | |
CN108829473B (en) | Event response method, device and storage medium | |
CN108989191B (en) | Method for withdrawing picture file, control method and device thereof, and mobile terminal | |
CN113556614A (en) | Information issuing method and device and electronic equipment | |
CN106034214A (en) | Video data recording method and apparatus thereof | |
WO2020186929A1 (en) | Interactive method and device in live broadcast, electronic device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20211130 Address after: 31a, 15 / F, building 30, maple mall, bangrang Road, Brazil, Singapore Patentee after: Baiguoyuan Technology (Singapore) Co.,Ltd. Address before: 511442 room 2705, 27 / F, building B-1, Wanda Plaza North, Wanbo business district, 79 Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province Patentee before: GUANGZHOU BAIGUOYUAN INFORMATION TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right |