CN110806874B - Analysis method, storage medium, electronic equipment and system for live broadcast room configuration file - Google Patents
Analysis method, storage medium, electronic equipment and system for live broadcast room configuration file Download PDFInfo
- Publication number
- CN110806874B CN110806874B CN201810877439.0A CN201810877439A CN110806874B CN 110806874 B CN110806874 B CN 110806874B CN 201810877439 A CN201810877439 A CN 201810877439A CN 110806874 B CN110806874 B CN 110806874B
- Authority
- CN
- China
- Prior art keywords
- configuration file
- target
- elements
- custom
- configuration
- 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
- 238000003860 storage Methods 0.000 title claims abstract description 92
- 238000004458 analytical method Methods 0.000 title claims abstract description 27
- 238000000034 method Methods 0.000 claims abstract description 69
- 230000008569 process Effects 0.000 claims abstract description 34
- 238000007781 pre-processing Methods 0.000 claims abstract description 33
- 238000012163 sequencing technique Methods 0.000 claims abstract description 19
- 238000004590 computer program Methods 0.000 claims description 26
- 238000006243 chemical reaction Methods 0.000 claims description 8
- 238000007405 data analysis Methods 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 26
- 238000010586 diagram Methods 0.000 description 8
- 238000011068 loading method Methods 0.000 description 8
- 230000004048 modification Effects 0.000 description 7
- 238000012986 modification Methods 0.000 description 7
- 230000001174 ascending effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 239000000284 extract Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/42—Syntactic analysis
- G06F8/427—Parsing
-
- 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/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
- G06F9/4451—User profiles; Roaming
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The application discloses a method, a storage medium, electronic equipment and a system for analyzing a configuration file of a live broadcasting room, and relates to the field of data analysis, wherein the method comprises the following steps of preprocessing and analyzing: the pretreatment process comprises the following steps: acquiring a target configuration file, wherein the target configuration file comprises a plurality of information elements; creating a custom storage model comprising a plurality of storage elements; storing the information elements in the target configuration file into the storage elements in a one-to-one correspondence manner; the analysis processing process comprises the following steps: extracting each storage element in each storage element to generate a custom configuration model, wherein the custom configuration model comprises a plurality of configuration model elements; adding each configuration model element of the custom configuration model to the custom sequencing array to form a plurality of array elements; sequencing the array elements and feeding back to the custom configuration model to form the instant configuration file. The application carries out centralized analysis on the configuration files and improves the analysis speed of the configuration files in the live broadcasting room.
Description
Technical Field
The application relates to the field of data analysis, in particular to a method, a storage medium, electronic equipment and a system for analyzing a live broadcast room configuration file.
Background
Along with the rapid development of mobile terminals of mobile phones in live broadcast rooms, json files need to be loaded in many projects in the application of the live broadcast rooms, and json files need to be loaded in different places at some times;
the conventional json file analysis mode needs to write hundreds of lines of codes, the conventional analysis mode is not beneficial to modification, the loading methods are scattered in the project, and if the loading method is modified at one place, a plurality of places need to be modified, so that the future code expansion is not beneficial;
therefore, a method for analyzing the configuration file is urgently needed to analyze the configuration file in a centralized manner, so that the analysis speed of the configuration file in the live broadcasting room is improved.
Disclosure of Invention
Aiming at the defects in the prior art, the application aims to provide a method for analyzing the configuration file of a live broadcasting room, which is used for preprocessing the configuration file, intensively analyzing the configuration file by means of a preset storage model and a preset configuration model and improving the analysis speed of the configuration file of the live broadcasting room.
In order to achieve the above purpose, the application adopts the following technical scheme:
in a first aspect, the present application provides a method for parsing a configuration file in a live broadcast room, which includes a preprocessing process and a parsing process:
the pretreatment process comprises the following steps:
obtaining a target configuration file, wherein the target configuration file comprises a plurality of information elements;
creating a custom storage model, which comprises a plurality of storage elements, wherein each storage element is used for storing the information element;
storing the information elements in the target configuration file in a one-to-one correspondence manner into the storage elements;
the analysis processing process comprises the following steps:
extracting each information element in each storage element to generate a custom configuration model, wherein the custom configuration model comprises a plurality of configuration model elements;
adding each configuration model element of the custom configuration model into a custom ordering array to form a plurality of array elements;
sequencing the array elements and feeding back the array elements to the custom configuration model to form the instant configuration file; wherein,,
after the target configuration file is obtained, the method further comprises the following steps:
obtaining a storage address and a file type of a target configuration file, and converting the target configuration file into a file stream form to obtain a target configuration file stream;
converting the target profile stream into a target profile dictionary, the profile dictionary comprising a plurality of the information elements.
On the basis of the technical scheme, the target configuration file and the instant configuration file both comprise live broadcasting room display configuration files, and the live broadcasting room display configuration files are used for representing live broadcasting room display modes;
the live broadcasting room display mode is any one of a main broadcasting side horizontal screen live broadcasting room, a main broadcasting side vertical screen live broadcasting room, a user side horizontal screen live broadcasting room and a user side vertical screen live broadcasting room.
On the basis of the technical scheme, the pretreatment process further comprises the following steps: and judging whether the target configuration file has the live broadcasting room display configuration file or not, if so, continuing the preprocessing process, and if not, stopping the preprocessing process.
On the basis of the technical scheme, the sorting of the array elements specifically comprises the following steps:
acquiring an original ordering rule, wherein the original ordering rule is the arrangement sequence of each information element in the target configuration file;
and ordering all the array elements according to the original ordering rule.
On the basis of the technical scheme, the original ordering rule is used for expressing the priority of each information element in the target configuration file.
In a second aspect, the present application further provides a storage medium, where a computer program is stored, where the computer program, when executed by a processor, implements the method for parsing a configuration file in a living room according to the first aspect.
In a third aspect, the present application further provides an electronic device, including a memory and a processor, where the memory stores a computer program running on the processor, and the processor implements the method for parsing a configuration file in a live room according to the first aspect when executing the computer program.
In a fourth aspect, the present application further provides a system for parsing a configuration file in a live broadcast room, which includes a preprocessing unit and a parsing unit:
the preprocessing unit includes:
a target profile acquisition subunit for preprocessing the unit;
the custom storage model comprises a plurality of storage elements, wherein each storage element is used for storing the information element;
a pre-storage subunit, configured to store each information element in the target configuration file into each storage element in a one-to-one correspondence manner;
the parsing unit includes:
a custom configuration model creation subunit, configured to extract each information element in each storage element, and generate a custom configuration model, where the custom configuration model includes a plurality of configuration model elements;
a custom ordering array for forming a plurality of array elements from each of the configuration model elements of the custom configuration model;
the immediate configuration file generation subunit is used for sequencing all the array elements and feeding back the array elements to the custom configuration model to form the immediate configuration file;
the preprocessing unit further includes:
the file stream conversion subunit is used for acquiring the storage address and the file type of the target configuration file, converting the target configuration file into a file stream form and obtaining a target configuration file stream;
a dictionary conversion subunit for converting the target profile stream into a target profile dictionary, the profile dictionary comprising a plurality of the information elements;
and converting the target profile stream into a target profile dictionary, wherein the target profile dictionary is used for storing the target profile stream.
Compared with the prior art, the application has the advantages that:
(1) The configuration file is preprocessed, and the configuration file is analyzed in a centralized way by means of the preset storage model and the configuration model, so that the analysis speed of the live broadcasting room on the configuration file is improved.
Drawings
FIG. 1 is a flowchart illustrating a preprocessing procedure of a method for parsing a configuration file in a live broadcasting room according to the present application;
fig. 2 is a flowchart of an parsing process of a system for parsing a live room configuration file according to the present application.
Fig. 3 is a flowchart of sorting the group elements in the parsing system of the live room configuration file according to the present application.
FIG. 4 is a block diagram illustrating a preprocessing unit of a system for parsing a configuration file in a live broadcast room according to the present application;
fig. 5 is a block diagram illustrating a structure of an parsing unit of a system for parsing a configuration file in a live broadcasting room according to the present application.
In the figure: 1. a preprocessing unit; 10. a target configuration file acquisition subunit; 11. a self-defined storage model; 12. a pre-storage subunit; 13. a file stream conversion subunit; 14. a dictionary conversion subunit; 2. an analysis processing unit; 20. creating a sub-unit of a custom configuration model; 21. customizing the sequencing array; 22. an instant profile generation subunit.
Detailed Description
Embodiments of the present application are described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, 2 and 3, an embodiment of the present application provides a method for analyzing a configuration file in a live broadcasting room, a storage medium, an electronic device and a server, which preprocesses the configuration file, and performs centralized analysis on the configuration file by means of a preset storage model and configuration model, so as to increase the analysis speed of the configuration file in the live broadcasting room.
In order to achieve the technical effects, the general idea of the application is as follows:
the method for analyzing the configuration file of the live broadcasting room comprises the following steps of preprocessing and analyzing:
the pretreatment process comprises the following steps:
a1, acquiring a target configuration file, wherein the target configuration file comprises a plurality of information elements;
a2, creating a custom storage model which comprises a plurality of storage elements, wherein each storage element is used for storing information elements;
a3, storing the information elements in the target configuration file into the storage elements in a one-to-one correspondence manner;
the analysis processing process comprises the following steps:
b1, extracting information elements in storage elements to generate a custom configuration model, wherein the custom configuration model comprises a plurality of configuration model elements;
b2, adding each configuration model element of the custom configuration model into the custom sequencing array to form a plurality of array elements;
and B3, sequencing all array elements and feeding back to the custom configuration model to form an instant configuration file.
Example 1
Referring to fig. 1 to 3, an embodiment of the present application provides a method for parsing a configuration file in a live broadcast room, which includes a preprocessing process and a parsing process:
the pretreatment process comprises the following steps:
a1, acquiring a target configuration file, wherein the target configuration file comprises a plurality of information elements;
a2, creating a custom storage model which comprises a plurality of storage elements, wherein each storage element is used for storing information elements;
a3, storing the information elements in the target configuration file into the storage elements in a one-to-one correspondence manner;
the analysis processing process comprises the following steps:
b1, extracting information elements in storage elements to generate a custom configuration model, wherein the custom configuration model comprises a plurality of configuration model elements;
b2, adding each configuration model element of the custom configuration model into the custom sequencing array to form a plurality of array elements;
and B3, sequencing all array elements and feeding back to the custom configuration model to form an instant configuration file.
In the embodiment of the application, the target configuration file is preprocessed firstly, the target configuration file is a file which is needed by a live broadcasting room during loading, a user-defined storage model is utilized to store a plurality of information elements of the target configuration file in storage elements which are fixed in the storage model, as the traditional loading file, namely the target configuration file, is a json file, the json file usually has more codes, and hundreds of lines of codes can be generated, when loading is performed, the modification has a certain difficulty and is unfavorable for the later expansion of the codes, in the embodiment of the application, the information elements in the target configuration file are extracted, stored separately and are convenient for modification and code expansion, and the specific expansion method can be to add new information elements and related information;
then, analyzing the preprocessed target configuration file, wherein the analyzing process aims at a self-defined storage model storing information elements, extracts all storage elements and generates a self-defined configuration model, the self-defined configuration model comprises a plurality of configuration model elements, and the configuration model elements are generated by means of the storage elements, namely one storage element generates one configuration model element;
adding each configuration model element of the custom configuration model into the custom sequencing array to form a plurality of array elements;
sequencing all the array elements and feeding back to the custom configuration model to form an instant configuration file;
in the embodiment of the application, when the configuration file needs to be modified, the array elements can be added or modified in the analysis processing process, so that after sequencing, a new instant configuration file is obtained, and the instant configuration file is different from the target configuration file, namely the array elements which are added or modified later;
preprocessing the configuration file, and carrying out centralized analysis on the configuration file by means of a preset storage model and a preset configuration model, so that the analysis speed of the live broadcasting room on the configuration file is improved.
It should be noted that, compared with json files, data in an array form is convenient for staff to add, delete or modify, so that the embodiment of the application combines preprocessing and analysis processing, can intensively analyze the configuration files by means of a preset storage model and a preset configuration model, and improves the analysis speed of the configuration files in a live broadcasting room.
Further, in the embodiment of the present application, the ordering of each array element specifically includes the following steps:
c1, acquiring an original ordering rule, wherein the original ordering rule is the arrangement sequence of each information element in a target configuration file;
c2, sorting all the array elements according to an original sorting rule;
it should be noted that, the original sorting rule is stored in the target configuration file, and the original sorting rule is used for indicating the priority of each information element in the target configuration file;
in specific implementation, a sort array withoptions function of the Ios system can be utilized, which is used for sorting elements in an array and returning an array after sorting is completed, the function needs two parameters, one is a default sorting rule of the system, and the other is an original sorting rule, namely, the priority, and when sorting, the function can be set to be in descending order or ascending order, and an instant configuration file is obtained through sorting the array elements after sorting.
In the embodiment of the application, after the target configuration file is acquired, the method further comprises the following steps:
obtaining a storage address and a file type of a target configuration file, and converting the target configuration file into a file stream form to obtain a target configuration file stream;
converting the target profile stream into a target profile dictionary, the profile dictionary comprising a plurality of information elements;
when converting the target configuration file into a binary data stream, a dataWithContentsOfFile function may be specifically used, where the dataWithContentsOfFile function is used to convert the file into the data stream, and two parameters are needed by the dataWithContentsOfFile function, one parameter is a file type, where the file type is a json type, and the other parameter is a storage address of the target configuration file;
the method of converting binary data stream into dictionary is JSONObjectWithData function.
In the embodiment of the application, the pretreatment process further comprises the following steps: judging whether the target configuration file has the live broadcasting room display configuration file or not, if so, continuing the preprocessing process, and if not, stopping the preprocessing process
In the embodiment of the application, the target configuration file and the instant configuration file both comprise live broadcast room display configuration files, and the live broadcast room display configuration files are used for representing the live broadcast room display modes;
the live broadcasting room is any one of a main broadcasting side horizontal screen live broadcasting room, a main broadcasting side vertical screen live broadcasting room, a user side horizontal screen live broadcasting room and a user side vertical screen live broadcasting room.
Based on the same inventive concept, the application provides a live broadcast room rewards return server corresponding to the first embodiment, and the details are shown in the second embodiment.
Example two
As shown in fig. 4 and 5, the second embodiment of the present application further provides a live house bonus return server, which includes:
it includes preprocessing unit 1 and analysis processing unit 2:
the preprocessing unit 1 includes:
a target profile acquisition subunit 10 for preprocessing the units;
a custom storage model 11 comprising a plurality of storage elements, each storage element for storing an information element;
a pre-storage subunit 12, configured to store each information element in the target configuration file into each storage element in a one-to-one correspondence;
the analysis processing unit 2 includes:
a custom configuration model creation subunit 20, configured to extract each information element in each storage element, generate a custom configuration model, and include a plurality of configuration model elements in the custom configuration model;
a custom ordered array 21 for forming a plurality of array elements from each configuration model element of the custom configuration model;
the instant configuration file generating subunit 22 is configured to sort the array elements and feed back the array elements to the custom configuration model to form an instant configuration file.
In the embodiment of the application, the target configuration file is preprocessed firstly, the target configuration file is a file which is needed by a live broadcasting room during loading, a user-defined storage model is utilized to store a plurality of information elements of the target configuration file in storage elements which are fixed in the storage model, as the traditional loading file, namely the target configuration file, is a json file, the json file usually has more codes, and hundreds of lines of codes can be generated, when loading is performed, the modification has a certain difficulty and is unfavorable for the later expansion of the codes, in the embodiment of the application, the information elements in the target configuration file are extracted, stored separately and are convenient for modification and code expansion, and the specific expansion method can be to add new information elements and related information;
then, analyzing the preprocessed target configuration file, wherein the analyzing process aims at a self-defined storage model storing information elements, extracts all storage elements and generates a self-defined configuration model, the self-defined configuration model comprises a plurality of configuration model elements, and the configuration model elements are generated by means of the storage elements, namely one storage element generates one configuration model element;
adding each configuration model element of the custom configuration model into the custom sequencing array to form a plurality of array elements;
sequencing all the array elements and feeding back to the custom configuration model to form an instant configuration file;
in the embodiment of the application, when the configuration file needs to be modified, the array elements can be added or modified in the analysis processing process, so that after sequencing, a new instant configuration file is obtained, and the instant configuration file is different from the target configuration file, namely the array elements which are added or modified later;
it should be noted that, compared with json files, data in an array form is convenient for staff to add, delete or modify, so that the embodiment of the application combines preprocessing and analysis processing, can intensively analyze the configuration files by means of a preset storage model and a preset configuration model, and improves the analysis speed of the configuration files in a live broadcasting room.
On the basis of the above technical solution, the preprocessing unit 1 further includes:
a file stream conversion subunit 13, configured to obtain a storage address and a file type of the target configuration file, and convert the target configuration file into a file stream form, so as to obtain a target configuration file stream;
a dictionary conversion subunit 14 for converting the target profile stream into a target profile dictionary, the profile dictionary comprising a plurality of information elements;
converting the target profile stream into a target profile dictionary;
when converting the target configuration file into a binary data stream, a dataWithContentsOfFile function may be specifically used, where the dataWithContentsOfFile function is used to convert the file into the data stream, and two parameters are needed by the dataWithContentsOfFile function, one parameter is a file type, where the file type is a json type, and the other parameter is a storage address of the target configuration file;
the method of converting binary data stream into dictionary is JSONObjectWithData function.
Further, in the embodiment of the present application, the sorting of each array element specifically includes the following operations:
acquiring an original ordering rule, wherein the original ordering rule is the arrangement sequence of each information element in a target configuration file;
sequencing each array element according to an original sequencing rule;
it should be noted that, the original sorting rule is stored in the target configuration file, and the original sorting rule is used for indicating the priority of each information element in the target configuration file;
in specific implementation, a sort array withoptions function of the Ios system can be utilized, which is used for sorting elements in an array and returning an array after sorting is completed, the function needs two parameters, one is a default sorting rule of the system, and the other is an original sorting rule, namely, the priority, and when sorting, the function can be set to be in descending order or ascending order, and an instant configuration file is obtained through sorting the array elements after sorting.
In the embodiment of the application, after the target configuration file is acquired, the method further comprises the following steps:
obtaining a storage address and a file type of a target configuration file, and converting the target configuration file into a file stream form to obtain a target configuration file stream;
converting the target profile stream into a target profile dictionary, the profile dictionary comprising a plurality of information elements;
when converting the target configuration file into a binary data stream, a dataWithContentsOfFile function may be specifically used, where the dataWithContentsOfFile function is used to convert the file into the data stream, and two parameters are needed by the dataWithContentsOfFile function, one parameter is a file type, where the file type is a json type, and the other parameter is a storage address of the target configuration file;
the method of converting binary data stream into dictionary is JSONObjectWithData function.
In the embodiment of the application, the pretreatment process further comprises the following steps: judging whether the target configuration file has the live broadcasting room display configuration file or not, if so, continuing the preprocessing process, and if not, stopping the preprocessing process
In the embodiment of the application, the target configuration file and the instant configuration file both comprise live broadcast room display configuration files, and the live broadcast room display configuration files are used for representing the live broadcast room display modes;
the live broadcasting room is any one of a main broadcasting side horizontal screen live broadcasting room, a main broadcasting side vertical screen live broadcasting room, a user side horizontal screen live broadcasting room and a user side vertical screen live broadcasting room.
Based on the same inventive concept, the application provides an embodiment of a storage medium corresponding to the first embodiment, and the details of the third embodiment are shown in the following
Example III
A third embodiment of the application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements all or part of the method steps of the first embodiment.
The present application may be implemented by implementing all or part of the above-described first embodiment method, or may be implemented by instructing the relevant hardware by a computer program, where the computer program may be stored in a computer-readable storage medium, and the computer program may implement the steps of the above-described respective method embodiments when executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, executable files or in some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the content of the computer readable medium can be appropriately increased or decreased according to the requirements of the jurisdiction's jurisdiction and the patent practice, for example, in some jurisdictions, the computer readable medium does not include electrical carrier signals and telecommunication signals according to the jurisdiction and the patent practice.
Based on the same inventive concept, the application provides an embodiment of the electronic device corresponding to the embodiment, and details of the embodiment are shown in the fourth embodiment
Example IV
The fourth embodiment of the present application also provides an electronic device, including a memory and a processor, where the memory stores a computer program running on the processor, and where the processor implements all or part of the method steps in the first embodiment when executing the computer program.
The processor may be a central processing unit (Central Processing Unit, CPU), other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being a control center of the computer device, and the various interfaces and lines connecting the various parts of the overall computer device.
The memory may be used to store computer programs and/or modules, and the processor implements various functions of the computer device by running or executing the computer programs and/or modules stored in the memory, and invoking data stored in the memory. The memory 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 (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, video data, etc.) created according to the use of the cellular phone, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart Media Card (SMC), secure Digital (SD) Card, flash Card (Flash Card), at least one disk storage device, flash memory device, or other volatile solid-state storage device.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, server, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, magnetic disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), servers and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.
Claims (8)
1. The method for analyzing the configuration file of the live broadcasting room is characterized by comprising a preprocessing process and an analyzing and processing process:
the pretreatment process comprises the following steps:
obtaining a target configuration file, wherein the target configuration file comprises a plurality of information elements;
creating a custom storage model, which comprises a plurality of storage elements, wherein each storage element is used for storing the information element;
storing the information elements in the target configuration file in a one-to-one correspondence manner into the storage elements;
the analysis processing process comprises the following steps:
extracting each information element in each storage element to generate a custom configuration model, wherein the custom configuration model comprises a plurality of configuration model elements;
adding each configuration model element of the custom configuration model into a custom ordering array to form a plurality of array elements;
sequencing the array elements and feeding back the array elements to the custom configuration model to form an instant configuration file; wherein,,
after the target configuration file is obtained, the method further comprises the following steps:
obtaining a storage address and a file type of a target configuration file, and converting the target configuration file into a file stream form to obtain a target configuration file stream;
converting the target profile stream into a target profile dictionary, the profile dictionary comprising a plurality of the information elements.
2. The method for resolving a live room configuration file according to claim 1, wherein the target configuration file and the instant configuration file both comprise live room display configuration files, and the live room display configuration files are used for representing a live room display mode;
the live broadcasting room display mode is any one of a main broadcasting side horizontal screen live broadcasting room, a main broadcasting side vertical screen live broadcasting room, a user side horizontal screen live broadcasting room and a user side vertical screen live broadcasting room.
3. The method for parsing a configuration file of a live broadcast room according to claim 1, wherein the preprocessing process further comprises the steps of: and judging whether the target configuration file has the live broadcasting room display configuration file or not, if so, continuing the preprocessing process, and if not, stopping the preprocessing process.
4. The method for parsing a live room configuration file according to claim 1, wherein the sorting of the array elements specifically comprises the following steps:
acquiring an original ordering rule, wherein the original ordering rule is the arrangement sequence of each information element in the target configuration file;
and ordering all the array elements according to the original ordering rule.
5. The method of claim 4, wherein the original ordering rule is used to indicate a priority of each information element in the target configuration file.
6. A storage medium having a computer program stored thereon, characterized by: the computer program, when executed by a processor, implements the method of any of claims 1 to 5.
7. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program that runs on the processor, characterized in that: the processor, when executing the computer program, implements the method of any one of claims 1 to 5.
8. The system for analyzing the configuration file of the live broadcasting room is characterized by comprising a preprocessing unit and an analyzing and processing unit:
the preprocessing unit includes:
a target profile acquisition subunit for preprocessing the unit;
the custom storage model comprises a plurality of storage elements, wherein each storage element is used for storing information elements;
a pre-storage subunit, configured to store each information element in the target configuration file into each storage element in a one-to-one correspondence manner;
the parsing unit includes:
a custom configuration model creation subunit, configured to extract each information element in each storage element, and generate a custom configuration model, where the custom configuration model includes a plurality of configuration model elements;
a custom ordering array for forming a plurality of array elements from each of the configuration model elements of the custom configuration model;
the immediate configuration file generation subunit is used for sequencing all the array elements and feeding back the array elements to the custom configuration model to form the immediate configuration file;
the preprocessing unit further includes:
the file stream conversion subunit is used for acquiring the storage address and the file type of the target configuration file, converting the target configuration file into a file stream form and obtaining a target configuration file stream;
a dictionary conversion subunit for converting the target profile stream into a target profile dictionary, the profile dictionary comprising a plurality of the information elements;
and converting the target profile stream into a target profile dictionary, wherein the target profile dictionary is used for storing the target profile stream.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810877439.0A CN110806874B (en) | 2018-08-03 | 2018-08-03 | Analysis method, storage medium, electronic equipment and system for live broadcast room configuration file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810877439.0A CN110806874B (en) | 2018-08-03 | 2018-08-03 | Analysis method, storage medium, electronic equipment and system for live broadcast room configuration file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110806874A CN110806874A (en) | 2020-02-18 |
CN110806874B true CN110806874B (en) | 2023-08-18 |
Family
ID=69486868
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810877439.0A Active CN110806874B (en) | 2018-08-03 | 2018-08-03 | Analysis method, storage medium, electronic equipment and system for live broadcast room configuration file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110806874B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111723177B (en) * | 2020-05-06 | 2023-09-15 | 北京数据项素智能科技有限公司 | Modeling method and device of information extraction model and electronic equipment |
CN114595199B (en) * | 2022-05-10 | 2022-09-02 | 太平金融科技服务(上海)有限公司 | File analysis method and device, computer equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102096704A (en) * | 2010-12-29 | 2011-06-15 | 北京新媒传信科技有限公司 | XML (extensible markup language) compression method and device |
CN102768674A (en) * | 2012-06-12 | 2012-11-07 | 上海方正数字出版技术有限公司 | XML (Extensive markup language) data storage method based on route structure |
CN104252356A (en) * | 2013-06-28 | 2014-12-31 | 腾讯科技(深圳)有限公司 | Interface generating method and system |
CN105511843A (en) * | 2014-09-22 | 2016-04-20 | 普天信息技术有限公司 | Application program interface generation method and device |
CN106708531A (en) * | 2016-12-30 | 2017-05-24 | 上海亿账通互联网科技有限公司 | Updating method of mobile end procedure interface and device thereof |
CN108154569A (en) * | 2017-12-27 | 2018-06-12 | 广州奥格智能科技有限公司 | A kind of inspection acquisition method based on object modelization configuration |
-
2018
- 2018-08-03 CN CN201810877439.0A patent/CN110806874B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102096704A (en) * | 2010-12-29 | 2011-06-15 | 北京新媒传信科技有限公司 | XML (extensible markup language) compression method and device |
CN102768674A (en) * | 2012-06-12 | 2012-11-07 | 上海方正数字出版技术有限公司 | XML (Extensive markup language) data storage method based on route structure |
CN104252356A (en) * | 2013-06-28 | 2014-12-31 | 腾讯科技(深圳)有限公司 | Interface generating method and system |
CN105511843A (en) * | 2014-09-22 | 2016-04-20 | 普天信息技术有限公司 | Application program interface generation method and device |
CN106708531A (en) * | 2016-12-30 | 2017-05-24 | 上海亿账通互联网科技有限公司 | Updating method of mobile end procedure interface and device thereof |
CN108154569A (en) * | 2017-12-27 | 2018-06-12 | 广州奥格智能科技有限公司 | A kind of inspection acquisition method based on object modelization configuration |
Also Published As
Publication number | Publication date |
---|---|
CN110806874A (en) | 2020-02-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108830235A (en) | Method and apparatus for generating information | |
CN109741517A (en) | A kind of invoice checking method, device and system | |
CN110806874B (en) | Analysis method, storage medium, electronic equipment and system for live broadcast room configuration file | |
CN106648557B (en) | Sharing method and device of Application Programming Interface (API) | |
CN107295377B (en) | Film production method, device and system | |
CN109672902A (en) | A kind of video takes out frame method, device, electronic equipment and storage medium | |
CN106973304A (en) | Nonlinear editing method based on high in the clouds, apparatus and system | |
CN109815448B (en) | Slide generation method and device | |
CN109828900A (en) | Test script automatic generation method, device, electronic equipment and storage medium | |
CN108595211B (en) | Method and apparatus for outputting data | |
CN108924577A (en) | Program making broadcast system and method based on live streaming | |
CN114339081A (en) | Subtitle generating method, electronic equipment and computer readable storage medium | |
CN114201346A (en) | HIL (hardware-in-the-loop) testing method and device of CAN (controller area network) communication interface and electronic equipment | |
CN110876072A (en) | Batch registered user identification method, storage medium, electronic device and system | |
CN110750960A (en) | Configuration file analysis method, storage medium, electronic device and system | |
CN108985178A (en) | Method and apparatus for generating information | |
CN110300118B (en) | Streaming media processing method, device and storage medium | |
CN110765610B (en) | PDM integration method, PDM integration device, computer equipment and storage medium | |
CN110414322B (en) | Method, device, equipment and storage medium for extracting picture | |
CN110415318B (en) | Image processing method and device | |
CN111580916A (en) | Data processing method, device, equipment and storage medium based on client | |
CN105323652B (en) | Method and device for playing multimedia file | |
CN116382916A (en) | Resource scheduling method and system for cloud computer computing power cluster and electronic equipment | |
CN115866280A (en) | Live webcast user behavior analysis method, device and equipment based on big data | |
CN109558403A (en) | Data aggregation method and device, computer installation and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20230725 Address after: Room 2201 2202 2203 2216, block D, Changhe international, No. 180, Fengcheng 8th Road, Xi'an Economic and Technological Development Zone, Shaanxi 710000 Applicant after: Xi'an Chuangye Tianxia Network Technology Co.,Ltd. Address before: 430000 East Lake Development Zone, Wuhan City, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building Applicant before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |