CN108804102B - Method and system for expanding interface style of live broadcast room, server and storage medium - Google Patents

Method and system for expanding interface style of live broadcast room, server and storage medium Download PDF

Info

Publication number
CN108804102B
CN108804102B CN201810507959.2A CN201810507959A CN108804102B CN 108804102 B CN108804102 B CN 108804102B CN 201810507959 A CN201810507959 A CN 201810507959A CN 108804102 B CN108804102 B CN 108804102B
Authority
CN
China
Prior art keywords
live broadcast
style
broadcast room
interface
interface style
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810507959.2A
Other languages
Chinese (zh)
Other versions
CN108804102A (en
Inventor
阎宙勋
张文明
陈少杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201810507959.2A priority Critical patent/CN108804102B/en
Publication of CN108804102A publication Critical patent/CN108804102A/en
Application granted granted Critical
Publication of CN108804102B publication Critical patent/CN108804102B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Abstract

The invention discloses a method and a system for extending an interface style of a live broadcast room, a server and a storage medium, wherein the interface style information data in a development frame of the live broadcast room is replaced by interface style data by abstracting an interface style class; therefore, interface style data in the whole data of the development frame are generalized and stripped to form an independent extension module, a new interface style object is developed in a development interface of the development frame of the live broadcast room, the new interface style object is added into the interface style class, a view container of the interface style is added into the corresponding live broadcast room style class, the extension process of the interface style of the newly added live broadcast room is stripped from the live broadcast room development frame, interface style extension and decoupling of the live broadcast room development frame are achieved, and expansibility and robustness of the live broadcast room development frame are enhanced.

Description

Method and system for expanding interface style of live broadcast room, server and storage medium
Technical Field
The invention relates to the technical field of application development of Android mobile terminals of live broadcast platforms, in particular to a method and a system for extending an interface style of a live broadcast room, a server and a storage medium.
Background
At present, in an Android live broadcast platform client, live broadcast room codes (vertical screen, horizontal screen, half screen and the like) based on each expression type are realized in completely different modes, so that when facing services and requirements to be displayed in various types of live broadcast rooms simultaneously, development needs to be performed on each interface respectively, namely one requirement is repeatedly performed for many times, development time is long, development task amount is large, repeated work is multiple, and development of multiple scenes (styles) inevitably requires that multiple scenes are introduced for testing, and quality resources are consumed.
Therefore, the frame provides a live broadcast room platform service rapid development frame, the frame completely isolates a live broadcast room activity demand block and a live broadcast room display block by setting a service development frame block as an intermediate layer, so as to achieve the purpose of completely decoupling the live broadcast room service demand development and the live broadcast room form development, then a basic service manager in the service development frame block uniformly manages live broadcast rooms with various styles, an activity developer develops and outputs a targeted UI interactive interface and/or view through a development interface provided by a sub-service development manager in the service development frame block, and distributes the UI interactive interface and/or view to live broadcast rooms with various styles by the basic service manager, thereby realizing uniform development and quality monitoring of service activities of live broadcast rooms with various styles, simplifying development amount and avoiding repeated development work, the development efficiency, the test efficiency and the quality monitoring efficiency are improved; and the management modules except the service development module in the sub-service development manager can reduce or eliminate the quality monitoring after the development is finished and the quality monitoring is passed.
Based on the live broadcast room development framework, when the interface style in the live broadcast room is required to be expanded due to requirements, the live broadcast room framework needs to be expanded and modified in addition to the development of a new active interface style, so that the development period is prolonged, the code repetition amount is large, the resource investment is large, the quality risk is high, and the expansibility is low.
Disclosure of Invention
In view of this, embodiments of the present invention provide a live broadcast room interface style extension method and system, a server, and a storage medium, which are capable of stripping an extension process of a newly-added live broadcast room interface style from a live broadcast room development framework and implementing decoupling of interface style extension and the live broadcast room development framework.
In a first aspect of the embodiments of the present invention, a method for extending an interface style of a live broadcast room is provided, where the method for extending an interface style of a live broadcast room includes the following steps:
abstracting a live broadcast room style class, and replacing live broadcast room style information data in a live broadcast room development frame with live broadcast room style class data;
abstracting an interface style class, and replacing interface style information data in a development frame of a live broadcast room with interface style class data;
and developing a new interface style object in a development interface of a live broadcast room development frame, adding the new interface style object into an interface style class, and adding a view container of the interface style in the corresponding live broadcast room style class.
In a second aspect of the embodiments of the present invention, an extension system for an interface style of a live broadcast room is provided, where the extension system for an interface style of a live broadcast room includes the following functional modules:
the live broadcast room style class generation module is used for abstracting a live broadcast room style class and replacing live broadcast room style information data in a live broadcast room development frame with live broadcast room style class data;
the interface style generation module is used for abstracting an interface style class and replacing interface style information data in a development frame of the live broadcast room with interface style class data;
and the interface style extension module is used for developing a new interface style object in a development interface of the live broadcast room development frame, adding the new interface style object into the interface style class, and adding a view container of the interface style in the corresponding live broadcast room style class.
In a third aspect of the embodiments of the present invention, a server is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method for extending the interface style of the live broadcast room when executing the computer program.
In a fourth aspect of the embodiments of the present invention, a computer-readable storage medium is provided, where a computer program is stored, and when being executed by a processor, the computer program implements the steps of the method for extending an interface style of a live broadcast room as described above.
The method and the system for expanding the interface style of the live broadcast room, the server and the storage medium have the advantages that the interface style information data in the development frame of the live broadcast room is replaced by the interface style data by abstracting an interface style class; therefore, interface style data in the whole data of the development frame are generalized and stripped to form an independent extension module, a new interface style object is developed in a development interface of the development frame of the live broadcast room, the new interface style object is added into the interface style class, a view container of the interface style is added into the corresponding live broadcast room style class, the extension process of the interface style of the newly added live broadcast room is stripped from the live broadcast room development frame, interface style extension and decoupling of the live broadcast room development frame are achieved, and expansibility and robustness of the live broadcast room development frame are enhanced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of a method for extending an interface style of a live broadcast room according to an embodiment of the present invention;
FIG. 2 is a block diagram of a sub-flow of step S1 in FIG. 1;
FIG. 3 is a block diagram of a sub-flow of step S2 in FIG. 1;
FIG. 4 is a block diagram of a sub-flow of step S3 in FIG. 1;
fig. 5 is a functional partition module block diagram of an extension system of a live broadcast interface style according to an embodiment of the present invention;
fig. 6 is a functional block diagram of an extension system of an interface style of a live broadcast room according to an embodiment of the present invention;
fig. 7 is a functional unit block diagram of a live broadcast room style class generation module according to an embodiment of the present invention;
fig. 8 is a functional unit block diagram of an interface style class generation module according to an embodiment of the present invention;
fig. 9 is a functional unit block diagram of an interface style extension module according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a method for extending an interface style of a live broadcast room, where the method for extending an interface style of a live broadcast room includes the following steps:
and S1, abstracting a live broadcast room style class, and replacing the live broadcast room style information data in the live broadcast room development frame with live broadcast room style class data.
As shown in fig. 2, the step S1 includes the following sub-steps:
s11, creating a style class of the live room;
s12, traversing the whole data of the live broadcast room development frame, and screening out live broadcast room style information data in the live broadcast room development frame;
s13, defining the style class of the live broadcast room according to the screened style information data of the live broadcast room;
and S14, replacing the screened live broadcasting room style information data with live broadcasting room style data. Specifically, the live room style information data includes basic metadata such as a live room style, a name, a screen style, and the like.
The data format of the live broadcast room style class is an InitParam data format, the InitParam data format is a data format between a development frame and live broadcast room style data codes, and in the development frame, the InitParam data format represents a live broadcast room type. Therefore, as shown in fig. 5, the data format of the style class of the live broadcast room is set to be the InitParam data format, and the screened live broadcast room style information data is replaced by live broadcast room style class data, that is, the live broadcast room style information data format is replaced by the InitParam data format, so that the live broadcast room style data in the whole data of the development frame is induced and stripped, and further the expansion process of the newly added live broadcast room style is stripped from the live broadcast room development frame.
The style class of the live broadcast room comprises a live broadcast room style value roomType and interface style information, the interface style information comprises an active style parent container viewTypeMap, and the style class InitParam of the live broadcast room provides a setRoomType () method for setting the style of the live broadcast room for the live broadcast room style value roomType and a getRoomType () method for reading the style of the live broadcast room by a live broadcast room development frame; and provides a setViewFather (viewer type) method for registering self-supported interface styles in the live broadcast room to the live broadcast room development framework for the active style parent container viewer type Map, and a getViewFather (viewer type) method for distributing specific interface style views to the live broadcast room by the live broadcast room development framework.
And S2, abstracting an interface style class, and replacing the interface style information data in the development frame of the live broadcast room with interface style class data.
As shown in fig. 3, the step S1 includes the following sub-steps:
s21, creating an interface style class;
s22, traversing the whole data of the development frame of the live broadcast room, and screening out interface style information data in the development frame of the live broadcast room;
s23, defining an interface style class according to the screened interface style information data;
and S24, replacing the screened interface style information data with interface style data. Specifically, the interface style information data includes basic metadata such as an interface style, a name, and an id of a view container in the live broadcast room.
The interface style data code is used for representing interface style data which can be recognized and processed by the development frame. Therefore, the interface style data in the whole data of the development frame are induced and stripped by setting the data format of the interface style class as the BaseViewType data format and replacing the screened interface style information data with the interface style class data, namely replacing the interface style information data format with the BaseViewType data format, and further stripping the expansion process of the interface style of the newly added live broadcast room from the live broadcast room development frame.
The data format of the interface style class is a BaseViewType data format which comprises an active style parent container viewTypeMap, the interface style class BaseViewType provides a setViewFather (viewType, fastView) method for registering self-supported interface styles to a live broadcast room development frame by a live broadcast room for the active style parent container viewTypeMap, and a getViewFather (viewType) method for distributing a specific interface style view to the live broadcast room by the live broadcast room development frame.
S3, a new interface style object is developed in a development interface of the live broadcast development frame, the new interface style object is added into the interface style class, and a view container of the interface style is added into the corresponding live broadcast style class.
As shown in fig. 4, the step S1 includes the following sub-steps:
s31, adding a new interface style in the interface style class;
s32, developing a new interface style object in a development interface of a live broadcast room development frame;
and S33, adding a live-broadcast style array supporting the new interface style object in the corresponding live-broadcast style object of the live-broadcast style class.
The method comprises the steps of firstly adding a new interface style into a created interface style class BaseViewType, and then completing the development of the new interface style based on a development interface provided for a live broadcast activity demand block by a service development frame block in a live broadcast platform service rapid development frame.
Specifically, the live broadcast room platform service rapid development frame comprises a live broadcast room activity demand block, a service development frame block and a live broadcast room display block, wherein the live broadcast room activity demand block is in communication connection with the service development frame block; the service development frame block is in communication connection with the live broadcast room display block; the service development frame block is used as a middle layer, and the live broadcast room activity demand block and the live broadcast room display block are completely isolated, so that the aim of completely decoupling live broadcast room service demand development and live broadcast room style development is fulfilled.
The business development frame block is a development interface provided for a live broadcast room activity demand block, and an activity developer develops and outputs a targeted activity interface according to an activity demand document through the development interface; meanwhile, the service development frame block provides a registration interface for the live broadcast room display block, and various live broadcast rooms in the live broadcast room display block register new live broadcast room style data with the service development frame block through the registration interface. Specific development steps can be found in the patent application with application number "2018104710949".
And finally, a live broadcast room style array is added in a live broadcast room style object of a live broadcast room style class supporting the new interface style, and an activity style parent container viewTypeMap of the newly added interface style is added in the newly added live broadcast room style array, namely the extension of the live broadcast room interface style in the live broadcast room development frame is realized.
As shown in fig. 5, when an active interface type needs to be newly added, only a new interface style object needs to be added to the interface style type BaseViewType, and a view container of the new interface style is added to the live broadcast room supporting the new interface style, so that the extension of the interface style of the live broadcast room can be completed.
In actual operation, each object in the interface style class BaseViewType represents an interface style, and the live broadcast room development framework places an interactive interface generated from activity codes into a view container provided by a live broadcast room and displays the interactive interface to a user. In the whole process, the live broadcast room development frame does not care whether a new interface style type is added, and only the array of the interface style class BaseViewType needs to be traversed, so that the aim of expanding the interface style at will on the basis of not changing the code of the live broadcast room development frame is fulfilled.
When a plurality of activity demands need to be displayed in a certain specific interface type at the same time, only one view container is provided in the live broadcast room, the interfaces of all the activities cannot be displayed at the same time, and then the conflict problem occurs, so that the activity interfaces are disordered, the management is not easy to perform during development, and the user experience is poor during use. As shown in FIG. 5, by setting a corresponding priority rank for each activity requirement at the time of activity requirement creation, the invention obtains a priority exhibition right for the activity requirement with the highest priority when a conflict occurs, and if the exhibition is abandoned, the activity requirement with the second highest priority is exhibited until an activity requirement confirming the exhibition is found. And in each live broadcast room, the activity demand priorities among the interface style view containers are judged independently without mutual interference and mutual influence.
The complete priority determination steps are as follows: circularly traversing the BaseViewType array in the interface style class, traversing the activity requirement array in the current BaseViewType [ n ], wherein the traversing sequence is determined by the priority, and the activity requirement with high priority preferentially confirms whether the display is required at the position represented by the current BaseViewType [ n ]; if the current activity requirement confirms that the activity interface needs to be displayed, outputting the activity interface to
And displaying the view container corresponding to the BaseViewType [ n ], and then continuously confirming the active interface with the highest priority in the BaseViewType [ n +1] until the active interfaces are displayed in all the interface styles.
Furthermore, a priority re-judgment interface is set for each activity demand when the activity demand is created, so that the most important activity interface can be timely displayed to a user when needed, and the problem of re-encoding and edition sending caused by priority updating is avoided. Specifically, a method requestViewInit () is added in a live broadcast room development frame, when the most important activity requirements need to be prioritized, an activity developer calls the method requestViewInit () to re-execute the initialization process of an interface pattern in a live broadcast room, the priority of the activity requirements is re-determined, and the priority of the most important activity interface is set to be the highest.
The method for expanding the interface style of the live broadcast room comprises the steps of abstracting an interface style class, and replacing interface style information data in a development frame of the live broadcast room with interface style class data; therefore, interface style data in the whole data of the development frame are generalized and stripped to form an independent extension module, a new interface style object is developed in a development interface of a development frame of a live broadcast room, the new interface style object is added into an interface style class, a view container of the interface style is added into a corresponding live broadcast room style class, the extension process of the interface style of the newly added live broadcast room is stripped from the live broadcast room development frame, the decoupling of the interface style extension and the live broadcast room development frame is realized, the expansibility and the robustness of the live broadcast room development frame are enhanced, meanwhile, the most important activity interface can be timely displayed to a user when needed by setting a priority re-judging interface for each activity requirement, and the problem of recoding and version development caused by priority updating is avoided.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
The above mainly describes a method for extending an interface style of a live broadcast room, and a system for extending an interface style of a live broadcast room will be described in detail below.
As shown in fig. 6, in the extension system of an interface style of a live broadcast room provided in the embodiment of the present invention, the extension system of an interface style of a live broadcast room includes the following functional modules:
the live broadcast room style class generation module 10 is used for abstracting a live broadcast room style class and replacing live broadcast room style information data in a live broadcast room development frame with live broadcast room style class data;
the interface style generation module 20 is configured to abstract an interface style class and replace interface style information data in the live broadcast room development framework with interface style class data;
and the interface style extension module 30 is configured to develop a new interface style object in a development interface of the live broadcast room development frame, add the new interface style object to the interface style class, and add a view container of the interface style in the corresponding live broadcast room style class.
As shown in fig. 7, the interface style class generation module 10 includes the following functional units:
a live room style class creating unit 11 configured to create a live room style class;
the live broadcast room style data screening unit 12 is used for traversing the whole data of the live broadcast room development frame and screening out live broadcast room style information data in the live broadcast room development frame;
a live broadcast room style class definition unit 13, configured to define a live broadcast room style class according to the screened live broadcast room style information data;
and a live room style data replacing unit 14, configured to replace the screened live room style information data with live room style class data.
As shown in fig. 8, the interface style class generation module 20 includes the following functional units:
an interface style class creating unit 21 for creating an interface style class;
the interface style data screening unit 22 is used for traversing the whole data of the live broadcast room development frame and screening the interface style information data in the live broadcast room development frame;
an interface style class defining unit 23, configured to define an interface style class according to the screened interface style information data;
and an interface style data replacing unit 24, configured to replace the screened interface style information data with interface style class data.
As shown in fig. 9, the interface style extension module 30 includes the following functional units:
an interface style adding unit 31, configured to add a new interface style in the interface style class;
the interface style development unit 32 is used for developing a new interface style object in a development interface of a live broadcast room development framework;
and an interface style object adding unit 33, configured to add a live broadcast style array supporting the new interface style object in the live broadcast style object corresponding to the live broadcast style class.
The extension system of the interface style of the live broadcast room abstracts an interface style class through an interface style class generation module 20, and replaces interface style information data in a development frame of the live broadcast room with interface style class data; therefore, interface style data in the whole data of the development frame are generalized and stripped to form an independent extension module, then a new interface style object is developed in a development interface of a development frame of a live broadcast room through the interface style extension module 30, the new interface style object is added into an interface style class, a view container of the interface style is added into a corresponding live broadcast room style class, and further the extension process of the interface style of the newly-added live broadcast room is stripped from the live broadcast room development frame, so that the decoupling of the interface style extension and the live broadcast room development frame is realized, the expansibility and the robustness of the live broadcast room development frame are enhanced, meanwhile, the most important activity interface can be timely displayed to a user when needed by setting a priority re-judging interface for each activity requirement, and the problem of re-coding version release caused by priority updating is avoided.
Fig. 10 is a schematic diagram of a server structure of an interface style extension according to an embodiment of the present invention. The server, which is a device providing computing services, generally refers to a computer with high computing power, and is provided to a plurality of users via a network. As shown in fig. 10, the server 4 of this embodiment includes: a memory 41, a processor 42, and a system bus 43, the memory 41 including an executable program 411 stored thereon, it being understood by those skilled in the art that the terminal device structure shown in fig. 10 does not constitute a limitation of the terminal device, and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
The following specifically describes each constituent component of the terminal device with reference to fig. 10:
the memory 41 may be used to store software programs and modules, and the processor 42 executes various functional applications and data processing of the terminal by operating the software programs and modules stored in the memory 41. The memory 41 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, the memory 41 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
An executable program 411 containing a live interface style extension method on a memory 41, wherein the executable program 411 may be divided into one or more modules/units, the one or more modules/units are stored in the memory 41 and executed by a processor 42 to complete the delivery of the notification and obtain the notification implementation process, and the one or more modules/units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used for describing the execution process of the computer program 411 in the server 4. For example, the computer program 411 may be divided into an acquisition module, a comparison module, a concatenation module and a sending module.
The processor 42 is a control center of the server, connects various parts of the entire terminal device with various interfaces and lines, performs various functions of the terminal and processes data by running or executing software programs and/or modules stored in the memory 41 and calling data stored in the memory 41, thereby monitoring the terminal as a whole. Alternatively, processor 42 may include one or more processing units; preferably, the processor 42 may integrate an application processor, which primarily handles operating systems, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 42.
The system bus 43 is used to connect functional units inside the computer, and can transmit data information, address information, and control information, and may be, for example, a PCI bus, an ISA bus, a VESA bus, or the like. The instructions of the processor 42 are transmitted to the memory 41 through the bus, the memory 41 feeds back data to the processor 42, and the system bus 43 is responsible for data and instruction interaction between the processor 42 and the memory 41. Of course, the system bus 43 may also access other devices such as network interfaces, display devices, etc.
The server at least includes a CPU, a chipset, a memory, a disk system, and the like, and other components are not described herein again.
In the embodiment of the present invention, the executable program executed by the processor 42 included in the terminal specifically includes: a method for expanding an interface style of a live broadcast room comprises the following steps:
step 1, creating a style class of a live broadcast room;
step 2, traversing the whole data of the live broadcast room development frame, and screening out live broadcast room style information data in the live broadcast room development frame;
step 3, replacing the screened live broadcasting room style information data with live broadcasting room style class data;
step 4, defining the style class of the live broadcast room according to the screened style information data of the live broadcast room;
step 5, creating an interface style class;
step 6, traversing the whole data of the development frame of the live broadcast room, and screening out interface style information data in the development frame of the live broadcast room;
step 7, replacing the screened interface style information data with interface style data;
step 8, defining an interface style class according to the screened interface style information data;
step 9, adding a new interface style in the interface style class;
step 10, a new interface style object is developed in a development interface of a live broadcast room development frame;
and 11, adding a live broadcast room style array supporting the new interface style object in the corresponding live broadcast room style object of the live broadcast room style class.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art would appreciate that the modules, elements, and/or method steps of the various embodiments described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (8)

1. A method for extending an interface style of a live broadcast room is characterized by comprising the following steps:
abstracting a live broadcast room style class, and replacing live broadcast room style information data in a live broadcast room development frame with live broadcast room style class data;
abstracting an interface style class, and replacing interface style information data in the development frame of the live broadcast room with interface style class data;
if a new interface style is added in the interface style class, a new interface style object is developed in a development interface of a live broadcast room development frame, the new interface style object is added into the interface style class, and a view container of the interface style is added into the corresponding live broadcast room style class;
correspondingly, the step of abstracting an interface style class and replacing the interface style information data in the live broadcast room development frame with the interface style class data specifically comprises the following sub-steps:
creating an interface style class;
traversing the whole data of a live broadcast room development frame, and screening out interface style information data in the live broadcast room development frame;
replacing the screened interface style information data with interface style data;
and defining an interface style class according to the screened interface style information data.
2. The method for extending the interface style of the live broadcast room according to claim 1, wherein the step of developing a new interface style object in a development interface of a live broadcast room development framework, adding the new interface style object to an interface style class, and adding a view container of the interface style in a corresponding live broadcast room style class specifically includes the following sub-steps:
developing a new interface style object in a development interface of a live broadcast room development frame;
and adding a live broadcast room style array supporting the new interface style object in the corresponding live broadcast room style object of the live broadcast room style class.
3. The method for extending the interface style of the live broadcast room according to claim 1, wherein the data format of the style class of the live broadcast room is an InitParam data format, and the data format of the interface style class is a BaseViewType data format.
4. The system for expanding the interface style of the live broadcast room is characterized by comprising the following functional modules:
the live broadcast room style class generation module is used for abstracting a live broadcast room style class and replacing live broadcast room style information data in a live broadcast room development frame with live broadcast room style class data;
the interface style generation module is used for abstracting an interface style class and replacing interface style information data in a development frame of the live broadcast room with interface style class data;
the interface style extension module is used for developing a new interface style object in a development interface of a live broadcast room development frame if a new interface style is added in the interface style class, adding the new interface style object into the interface style class, and adding a view container of the interface style in the corresponding live broadcast room style class;
the interface style generation module is also used for creating an interface style class;
traversing the whole data of a live broadcast room development frame, and screening out interface style information data in the live broadcast room development frame; replacing the screened interface style information data with interface style data; and defining an interface style class according to the screened interface style information data.
5. The extension system of the interface style of the live broadcast room of claim 4, wherein the interface style extension module comprises the following functional units:
the interface style development unit is used for developing a new interface style object in a development interface of a live broadcast room development frame;
and the interface style object adding unit is used for adding a live broadcast room style array supporting the new interface style object in the corresponding live broadcast room style object of the live broadcast room style class.
6. The extension system of the interface style of the live broadcast room of claim 5, wherein the data format of the style class of the live broadcast room is an InitParam data format, and the data format of the interface style class is a BaseViewType data format.
7. A server comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method for extending a live interface style as claimed in claims 1-3 when executing the computer program.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method for extending the style of a live room interface of claims 1-3.
CN201810507959.2A 2018-05-24 2018-05-24 Method and system for expanding interface style of live broadcast room, server and storage medium Active CN108804102B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810507959.2A CN108804102B (en) 2018-05-24 2018-05-24 Method and system for expanding interface style of live broadcast room, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810507959.2A CN108804102B (en) 2018-05-24 2018-05-24 Method and system for expanding interface style of live broadcast room, server and storage medium

Publications (2)

Publication Number Publication Date
CN108804102A CN108804102A (en) 2018-11-13
CN108804102B true CN108804102B (en) 2022-02-22

Family

ID=64091652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810507959.2A Active CN108804102B (en) 2018-05-24 2018-05-24 Method and system for expanding interface style of live broadcast room, server and storage medium

Country Status (1)

Country Link
CN (1) CN108804102B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104615748A (en) * 2015-02-12 2015-05-13 华北电力大学(保定) Watir-based (web application testing in ruby based) internet-of-things web event processing method
WO2015196822A1 (en) * 2014-06-25 2015-12-30 广州市动景计算机科技有限公司 Method and device for adapting webpage to screen layout
CN105302578A (en) * 2015-11-27 2016-02-03 中国电子科技集团公司第二十八研究所 Comprehensive portal management system of dragging type layout configuration
CN107133055A (en) * 2017-06-07 2017-09-05 焦点科技股份有限公司 A kind of method that customized development is realized based on ClassLoader

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7152942B2 (en) * 2002-12-02 2006-12-26 Silverbrook Research Pty Ltd Fixative compensation
US20100107100A1 (en) * 2008-10-23 2010-04-29 Schneekloth Jason S Mobile Device Style Abstraction
US20100332217A1 (en) * 2009-06-29 2010-12-30 Shalom Wintner Method for text improvement via linguistic abstractions
KR102202332B1 (en) * 2013-02-28 2021-01-13 엘지전자 주식회사 Apparatus and method for processing a multimedia commerce service
CN105898438B (en) * 2016-04-07 2020-09-25 广州华多网络科技有限公司 Live broadcast room dynamic configuration method, device, system and server
CN106648682B (en) * 2016-12-29 2019-10-25 中南大学 A kind of dynamic data general framework of embedded system exploitation
CN106991154B (en) * 2017-03-29 2022-04-05 百度在线网络技术(北京)有限公司 Webpage rendering method and device, terminal and server
CN107479873A (en) * 2017-07-05 2017-12-15 广州优识资讯系统有限公司 A kind of APP page modules melt forwarding method, electronic equipment and storage medium
CN107402766B (en) * 2017-07-31 2020-08-04 武汉斗鱼网络科技有限公司 Page layout management method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015196822A1 (en) * 2014-06-25 2015-12-30 广州市动景计算机科技有限公司 Method and device for adapting webpage to screen layout
CN104615748A (en) * 2015-02-12 2015-05-13 华北电力大学(保定) Watir-based (web application testing in ruby based) internet-of-things web event processing method
CN105302578A (en) * 2015-11-27 2016-02-03 中国电子科技集团公司第二十八研究所 Comprehensive portal management system of dragging type layout configuration
CN107133055A (en) * 2017-06-07 2017-09-05 焦点科技股份有限公司 A kind of method that customized development is realized based on ClassLoader

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Changing element style attribute dynamically using JavaScript";jslearner;《https://stackoverflow.com/questions/5191478/changing-element-style-attribute-dynamically-using-javascript》;20110304;第1-5页 *
"静态布局、自适应布局、流式布局、响应式布局、弹性布局等的概念和区别";P妞酱儿;《https://www.cnblogs.com/yanayana/p/7066948.html》;20170622;第1-3页 *

Also Published As

Publication number Publication date
CN108804102A (en) 2018-11-13

Similar Documents

Publication Publication Date Title
CN111814089B (en) Page rendering method and device, rendering server and storage medium
CN105700925B (en) A kind of interface implementing method and device of APP
CN103577207A (en) Loading method and loading device for interface components in custom interface system
CN105335132B (en) Method, device and system for customizing application program function
CN110381332A (en) Direct broadcasting room component processing method, device, electronic equipment and readable storage medium storing program for executing
JP2017539103A (en) Method, apparatus, server, and system for synchronizing member gain among multiple apparatuses
CN108762757B (en) Quick development framework and method for platform service of live broadcast room, server and medium
CN113157345A (en) Automatic starting method and device for front-end engineering
CN110944067B (en) Load balancing method and server
CN112925520A (en) Method and device for building visual page and computer equipment
CN109102200B (en) Timed task processing method and device
CN113342330A (en) Front-end engineering generation method and device
CN111427576B (en) Method, device, storage medium and terminal for configuring application program interface
CN108804102B (en) Method and system for expanding interface style of live broadcast room, server and storage medium
CN111367561A (en) Software program remote development method and device
CN108874371B (en) Method and system for extending style of live broadcast room, server and storage medium
CN115481343A (en) Target component generation method and device, storage medium and electronic device
CN113312104A (en) Advertisement conversion method and system based on small program
EP3848800B1 (en) Method and apparatus for displaying message box, terminal and storage medium
CN112559158A (en) Micro-service timing task scheduling method and device
CN103116632A (en) Generation method of theme pack, device and equipment
CN109634653B (en) Resource allocation method and device based on componentized architecture
CN111199519B (en) Method and device for generating special effect package
CN110996141A (en) Method and device for sending information in live broadcast room and electronic equipment
CN110688490A (en) Method and device for configuring knowledge graph

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