CN112954444B - Method and device for loading signaling file, storage medium and electronic equipment - Google Patents

Method and device for loading signaling file, storage medium and electronic equipment Download PDF

Info

Publication number
CN112954444B
CN112954444B CN202110150872.6A CN202110150872A CN112954444B CN 112954444 B CN112954444 B CN 112954444B CN 202110150872 A CN202110150872 A CN 202110150872A CN 112954444 B CN112954444 B CN 112954444B
Authority
CN
China
Prior art keywords
signaling
file
loading
segmented
files
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
CN202110150872.6A
Other languages
Chinese (zh)
Other versions
CN112954444A (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.)
Beijing Dami Technology Co Ltd
Original Assignee
Beijing Dami Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dami Technology Co Ltd filed Critical Beijing Dami Technology Co Ltd
Priority to CN202110150872.6A priority Critical patent/CN112954444B/en
Publication of CN112954444A publication Critical patent/CN112954444A/en
Application granted granted Critical
Publication of CN112954444B publication Critical patent/CN112954444B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4435Memory management

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a method and a device for loading a signaling file, a storage medium and electronic equipment, and belongs to the technical field of computers. The loading method of the signaling file comprises the following steps: the method comprises the steps of receiving a signaling file from a signaling center server, loading the signaling file into a memory unit for segmentation processing to obtain a plurality of segmented files, storing the segmented files into a disk space, acquiring a corresponding segmented file based on a loading instruction, and loading the corresponding segmented file into the memory unit. Therefore, the signaling files are loaded into the memory unit to be segmented to obtain a plurality of segmented files, and when loading is needed, the segmented files are loaded into the memory in a segmented mode, so that the technical problems that a large amount of memory is occupied to influence normal operation of equipment and flexible loading is caused by the fact that the signaling files are loaded when a recorded broadcast class is played can be solved.

Description

Method and device for loading signaling file, storage medium and electronic equipment
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for loading a signaling file, a storage medium and electronic equipment.
Background
At present, in the field of online education, a recorded and broadcasted signaling file, that is, an instruction set of recorded and broadcasted lessons records the course of interaction between a teacher and a student in class in advance, and a recorded and broadcasted system processes a generated text file (the size of the signaling file is unequal, less than 1K, and more than several megabytes), so that an instruction and a template are provided for subsequent recorded and broadcasted lessons. During the course of recorded class, the service program sends a specific signaling to the signaling middle station at a specified time, the signaling middle station broadcasts or unicasts the signaling to the teacher or the classroom where the student is located, the teacher or the classroom where the student is located analyzes the received signaling, and executes corresponding operations, such as class taking, drawing a specified video stream, loading courseware, starting answering, ending answering, leaving a class and the like. Therefore, when to load the signaling file and how to send the signaling in order at a specified time become the core problems to be solved by the recorded broadcast class bottom service. In the prior art, a signaling file is loaded through a timing task, the timing task acquires classroom information within a designated class time range from a database regularly (executed once every 2 minutes), and the whole signaling file required by classes to be taken by the classrooms is loaded into a memory in advance, but the limitation is large and not flexible enough, and a large amount of memory resources are occupied at the same time, so that the equipment is influenced to execute other tasks.
Disclosure of Invention
The embodiment of the application provides a method and a device for loading a signaling file, a storage medium and electronic equipment, and can solve the technical problems that a large amount of memory is occupied to influence the normal work of the equipment and the loading is flexible because the signaling file is loaded when a recorded broadcast class is played. The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for loading a signaling file, including:
receiving a signaling file from a signaling center server; the signaling file is stored in a disk space of the terminal device, the signaling file comprises a plurality of pieces of signaling, and the plurality of pieces of signaling have corresponding multi-section courses;
loading the signaling file to a memory unit for segmentation processing to obtain a plurality of segmented files, and storing the segmented files to the disk space; wherein the plurality of segmented files have a corresponding plurality of segmented file names;
and acquiring a corresponding segmented file based on a loading instruction, and loading the corresponding segmented file to the memory unit.
In a second aspect, an embodiment of the present application provides an apparatus for loading a signaling file, where the apparatus includes:
the receiving module is used for receiving the signaling file from the signaling center server; the signaling file is stored in a disk space of the terminal device, the signaling file comprises a plurality of pieces of signaling, and the plurality of pieces of signaling have corresponding multi-section courses;
the segmentation module is used for loading the signaling file into a memory unit for segmentation processing to obtain a plurality of segmented files and storing the segmented files into the disk space; wherein the plurality of fragmented files have a corresponding plurality of fragmented file names;
and the loading module is used for acquiring the corresponding segmented file based on a loading instruction and loading the corresponding segmented file to the memory unit.
In a third aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-mentioned method steps.
In a fourth aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
The beneficial effects brought by the technical scheme provided by some embodiments of the application at least comprise:
when the method, the device, the storage medium and the electronic equipment for loading the signaling file work, the signaling file from a signaling center server is received, the signaling file is loaded to a memory unit to be segmented to obtain a plurality of segmented files, the segmented files are stored in the disk space, the corresponding segmented files are obtained based on a loading instruction, and the corresponding segmented files are loaded to the memory unit. According to the embodiment of the application, the signaling file is loaded into the memory unit to be segmented to obtain the multiple segmented files, and when the signaling file needs to be loaded, the multiple segmented files are loaded into the memory in a segmented mode, so that the technical problems that a large amount of memory is occupied to influence normal operation of equipment and flexible loading is caused when the signaling file is loaded during playing of a recorded broadcast class can be solved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic architecture diagram of a signaling file loading system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for loading a signaling file according to an embodiment of the present application;
fig. 3 is another schematic flowchart of a method for loading a signaling file according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a signaling file loading apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The following description refers to the accompanying drawings in which like numerals in different drawings represent the same or similar elements unless otherwise specified. The implementations described in the following exemplary examples do not represent all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.
In the description of the present application, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
In order to solve the problems that the signaling file is loaded by the timing task, the timing task acquires classroom information in a designated class time range from a database regularly (executed once every 2 minutes), and the whole signaling file required by classes to be taken in the classrooms is loaded into a memory in advance, but the limitation is large and not flexible enough, and simultaneously, a large amount of memory resources are occupied, the execution of other tasks by equipment is influenced, and the like, the method for loading the signaling file is especially provided. The computer system can be a computer system of a smart phone, a notebook computer, a tablet computer and other devices.
In the following method embodiments, for convenience of description, only the main body of execution of each step is described as the terminal device.
The method for loading a signaling file according to the embodiment of the present application will be described in detail below with reference to fig. 2 to 3.
Please refer to fig. 1, which is a schematic structural diagram of a signaling file loading system according to an embodiment of the present application. As shown in fig. 1, the system for loading signaling files mainly includes a signaling center server and terminal devices, the signaling center server is a server for storing signaling files, the terminal devices include teacher computer terminals and student computer terminals, and during the course of recording and broadcasting, a service program sends a specific signaling to the signaling center server at a specific time, the signaling center server broadcasts or unicasts the signaling to the classroom where the teacher or student terminal device is located, and the terminal devices of the teacher and the student parse the received signaling and execute corresponding operations, such as class taking, drawing a designated video stream, loading a courseware, starting answering, ending answering, leaving a class, and the like.
Referring to fig. 2, a schematic flow chart of a method for loading a signaling file is provided in an embodiment of the present application. The method may comprise the steps of:
s201, receiving a signaling file from a signaling center server.
Generally, the signaling file is stored in a disk space of the terminal device, the signaling file includes multiple pieces of signaling, and the multiple pieces of signaling have corresponding multiple pieces of courses. The terminal equipment responds to the class instruction to generate a downloading message, wherein the downloading message comprises class type information, the downloading message is sent to the signaling center server within a preset time period, and a signaling file responding to the downloading message from the signaling center is received.
S202, loading the signaling file into a memory unit for segmentation processing to obtain a plurality of segmented files, and storing the segmented files into the disk space.
Typically, there are a corresponding plurality of segment file names for the plurality of segment files. The method comprises the steps that after receiving a signaling file from a signaling center server, a terminal device loads the signaling file to a memory unit to analyze the signaling file to obtain time information, sequencing check processing is carried out on the signaling file based on the time information, the sequencing check processed signaling file is segmented based on a preset segmentation threshold value to obtain a plurality of segmented files, corresponding segmented file names are determined, and the segmented files are stored in a disk space.
S203, acquiring a corresponding segmented file based on the loading instruction, and loading the corresponding segmented file to the memory unit.
Generally, after the terminal device stores the multiple segmented files in the disk space, it detects session time information, and generates a loading instruction based on the session time information, analyzes the loading instruction to obtain segmented file names, queries corresponding segmented files in the disk space based on the segmented file names, determines a loading data amount, initializes a queue structure in the memory unit based on the loading data amount, where the length of the queue structure is greater than the segmentation threshold, and writes the corresponding segmented files into the initialized queue structure to generate a signaling queue, where each signaling corresponds to an element in the signaling queue. In one embodiment, after the terminal device loads the corresponding segment file into the memory unit, the method further includes: receiving a signaling reading instruction, reading a corresponding signaling in the signaling queue based on the signaling reading instruction, detecting the length of the remaining signaling, and writing the next segment of segmented file into the signaling queue when the length of the remaining signaling is smaller than a loading threshold. In one embodiment, a terminal device obtains loading states of all segment files, wherein the loading states include a loading completion state and an unloaded state, determines an index value of the segment file in the unloaded state, and writes the corresponding segment file in the unloaded state into the signaling queue based on the index value.
As can be seen from the above, the method includes receiving a signaling file from a signaling center server, loading the signaling file into a memory unit for performing a segmentation process to obtain a plurality of segmented files, storing the plurality of segmented files in the disk space, obtaining corresponding segmented files based on a loading instruction, and loading the corresponding segmented files into the memory unit. According to the embodiment of the application, the signaling files are loaded into the memory unit to be processed in a segmented mode to obtain the segmented files, and when the segmented files are needed to be loaded, the segmented files are loaded into the memory in a segmented mode, so that the technical problems that a large amount of memory is occupied to influence normal work of equipment and flexible loading is caused when the signaling files are loaded during recorded broadcast class playing can be solved.
Please refer to fig. 3, which is another schematic flow chart of a method for loading a signaling file according to an embodiment of the present application. The loading method of the signaling file can comprise the following steps:
s301, responding to the instruction of class attendance, generating a download message, and sending the download message to the signaling center server within a preset time period.
Typically, the download message comprises class type information, such as: the third section of the fifth grade english lesson, the second unit of the sixth grade math lesson, etc. The terminal device responds to the instruction of class to generate a download message, and sends the download message to the signaling center server within a preset time period, for example: the terminal equipment receives a first lesson instruction, analyzes the first lesson instruction, determines that the No. 3 unit 1 speaking of a language lesson needs 1 hour after 30 minutes, generates corresponding downloading information according to the information, and sends the information to the signaling center server within 10 minutes.
S302, receiving a signaling file responding to the download message from the signaling center.
Generally, after sending the download message, the terminal device receives a signaling file from the signaling center in response to the download message, for example: the signaling file comprises signaling such as class attendance, designated video stream pulling, courseware loading, question answering starting, question answering ending, class leaving and the like, the terminal equipment can also detect the integrity of the signaling file, and if the signaling file is damaged and can be downloaded again from the signaling center server, and the signaling file is not received within preset 10 minutes or the like, the downloading message can also be sent again.
S303, loading the signaling file into a memory unit for analysis to obtain time information, and carrying out sequencing check processing on the signaling file based on the time information.
Generally, after receiving a signaling file from the signaling center in response to the download message, the terminal device loads the signaling file into a memory unit to analyze the signaling file to obtain time information, and performs sequencing check processing on the signaling file based on the time information, for example: the terminal device loads the signaling file from the disk space to the memory unit, and then performs sequencing processing according to the sending time, for example: the lesson instruction is used as No. 1 signaling to determine that the sending time is 4 points, the recitation instruction is used as No. 2 signaling to determine that the sending time is 4 points and 10 minutes, the picture a is loaded as No. 3 signaling to determine that the sending time is 4 points and 20 minutes, and the answer is started as No. 4 signaling to determine that the sending time is 4 points and 30 minutes and the like.
S304, based on a preset segmentation threshold, carrying out segmentation processing on the signaling file after the sequencing check processing to obtain a plurality of segmentation files, determining corresponding segmentation file names, and storing the plurality of segmentation files in the disk space.
Generally, after the terminal device performs sequencing check processing on the signaling file, the terminal device performs segmentation processing on the signaling file after the sequencing check processing based on a preset segmentation threshold to obtain a plurality of segmented files, determines corresponding segmented file names, and stores the plurality of segmented files in the disk space, for example: after the terminal device performs sequencing check processing, it is determined that the training file has 45 signaling, a segmentation threshold value is set to 10, and segmentation bits of the 45 signaling, 1-10 segmentation files a,11-20 segmentation files b,21-30 segmentation files c,31-40 segmentation files d,41-45 segmentation files e, and the like can be stored in the previous disk space, and all the segmentation file names are written in a local cache, and the like.
S305, detecting the class time information, generating a loading instruction based on the class time information, and analyzing the loading instruction to obtain a segmented file name.
Generally, after the terminal device stores the multiple segmented files in the disk space, it detects the lesson time information, generates a loading instruction based on the lesson time information, and analyzes the loading instruction to obtain the names of the segmented files, for example: when the terminal device detects that the class time information is 10 minutes or 14 minutes and 10 minutes, a loading instruction a of a signaling which needs to be loaded immediately is generated, and the terminal device receives the loading instruction a and determines that the first segment file a needs to be loaded.
S306, inquiring the corresponding segmented file in the disk space based on the segmented file name.
Generally, after acquiring a segment file name, a terminal device queries a corresponding segment file in the disk space based on the segment file name, for example: and the terminal equipment determines that the segmented file name is the segmented file a, and can quickly query in the disk space according to the file name to obtain the data information of the segmented file a.
S307, determining the loading data volume, initializing a queue structure in the memory unit based on the loading data volume, and writing the corresponding segmented file into the initialized queue structure to generate a signaling queue.
Typically, the length of the queue structure is greater than the fragmentation threshold, and each signaling corresponds to an element in the signaling queue. After the terminal device queries the corresponding segment file in the disk space, determining a loading data volume, initializing a queue structure in the memory unit based on the loading data volume, and writing the corresponding segment file into the initialized queue structure to generate a signaling queue, for example: the terminal equipment determines that the loaded data volume is 10M, that is, the size of the segmented file a is 10M, then 100 initialization queue structures with proper length corresponding to the size are opened up in the memory unit, all the signaling in the segmented file a are sequentially written into each element of the initialization queue according to the arrangement sequence, the first signaling is written into the first element of the queue, and the tail part of the queue can be an empty element.
S308, receiving a signaling reading instruction, and reading the corresponding signaling in the signaling queue based on the signaling reading instruction.
Generally, after writing the corresponding segment file into the initialized queue structure to generate a signaling queue, the terminal device receives a signaling reading instruction, and reads a corresponding signaling in the signaling queue based on the signaling reading instruction, for example: and the terminal equipment determines that the course is answered for 30 minutes, generates a corresponding signaling reading file, and reads the corresponding signaling from the queue after receiving the signaling reading file.
S309, detecting the residual signaling length, and acquiring the loading state of all the segmented files when the residual signaling length is smaller than a loading threshold.
Generally, the segment threshold is greater than the loading threshold, where the loading threshold indicates that after the signaling is loaded into the memory, the signaling is stored in the queue, and during class, one signaling is taken from the queue in sequence, and if the signaling in the queue is found to be running out, a supplementary signaling is used at this time (i.e., a signaling file is loaded from a disk), and when there are more signaling in the queue, a threshold for triggering a loading action is triggered, for example: if each signaling file contains 10 pieces of signaling and the loading threshold of the signaling queue is 100, loading is triggered when 100 pieces of signaling queue remain, and the signaling in the queue is still sent in the loading process. The loading is successful when 2 messages remain in the queue, and at this time, 10+2=12 messages remain in the queue, and the loading is still required to be continued if the number of the messages is smaller than the loading threshold. After reading the corresponding signaling in the signaling queue, the terminal device detects the remaining signaling length, and when the remaining signaling length is smaller than the loading threshold, obtains the loading states of all the segment files, for example: and the terminal equipment detects that the length of the remaining signaling is 15 and is less than the loading threshold value 16, and if the segmented file b is determined not to be loaded into the signaling queue, the segmented file b is loaded into the signaling queue.
S310, determining an index value of the segmented file in the unloaded state, and writing the corresponding segmented file in the unloaded state into the signaling queue based on the index value.
Generally, the load state includes a load complete state and an unloaded state. After acquiring the loading states of all the segment files, the terminal device determines the index values of the segment files in the unloaded state, and writes the corresponding segment files in the unloaded state into the signaling queue based on the index values, for example: the method comprises the steps that a terminal device obtains a storage structure Map loaded by a segmented file, the index value of the next segmented file to be loaded is added with 1 when the segmented file is determined to be in a loading completion state, the segmented file is identified to be WAIT _ LOAD and written into the Map when the index value of the segmented file is determined to be in an unloaded state, and then the segmented file is asynchronously loaded into a queue.
When the scheme of the embodiment of the application is executed, the signaling file from the signaling center server is received, the signaling file is loaded to the memory unit to be segmented to obtain a plurality of segmented files, the segmented files are stored in the disk space, the corresponding segmented files are obtained based on a loading instruction, and the corresponding segmented files are loaded to the memory unit. According to the embodiment of the application, the signaling file is loaded into the memory unit to be segmented to obtain the multiple segmented files, and when the signaling file needs to be loaded, the multiple segmented files are loaded into the memory in a segmented mode, so that the technical problems that a large amount of memory is occupied to influence normal operation of equipment and flexible loading is caused when the signaling file is loaded during playing of a recorded broadcast class can be solved.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 4, a schematic structural diagram of a loading apparatus for signaling files provided in an exemplary embodiment of the present application is shown, which is hereinafter referred to as a loading apparatus 4 for short. The loading means 4 may be implemented by software, hardware or a combination of both as all or part of the terminal. The method comprises the following steps:
a receiving module 401, configured to receive a signaling file from a signaling center server; the signaling file is stored in a disk space of the terminal device, the signaling file comprises a plurality of pieces of signaling, and the plurality of pieces of signaling have corresponding multi-section courses;
a segmenting module 402, configured to load the signaling file into a memory unit, perform segmentation processing on the signaling file to obtain a plurality of segmented files, and store the plurality of segmented files in the disk space; wherein the plurality of fragmented files have a corresponding plurality of fragmented file names;
a loading module 403, configured to obtain a corresponding segment file based on a loading instruction, and load the corresponding segment file to the memory unit.
Optionally, the receiving module 401 further includes:
the downloading unit is used for responding to the instruction for class to generate a downloading message; wherein the download message includes class type information; sending the downloading message to the signaling center server within a preset time period; and receiving a signaling file responding to the download message from the signaling center.
Optionally, the segmenting module 402 further includes:
the sequencing unit is used for loading the signaling file into a memory unit for analysis to obtain time information; sequencing and checking the signaling file based on the time information; and carrying out segmentation processing on the signaling file after the sequencing check processing based on a preset segmentation threshold value to obtain a plurality of segmentation files and determining corresponding segmentation file names.
The analysis unit is used for detecting the class time information and generating a loading instruction based on the class time information; analyzing the loading instruction to obtain a segmented file name; and inquiring the corresponding segmented file in the disk space based on the segmented file name.
Optionally, the loading module 403 further includes:
a write unit for determining a load data amount; initializing a queue structure in the memory unit based on the load data amount; wherein the length of the queue structure is greater than the fragmentation threshold; writing the corresponding segmented file into the initialization queue structure to generate a signaling queue; wherein each signaling corresponds to an element in the signaling queue.
The detection unit is used for receiving a signaling reading instruction; reading corresponding signaling in the signaling queue based on the signaling reading instruction; detecting the remaining signaling length; when the residual signaling length is smaller than a loading threshold value, writing the next segment of segmented file into the signaling queue; wherein the fragmentation threshold is greater than the loading threshold.
The acquisition unit is used for acquiring the loading states of all the segmented files; wherein the loading state comprises a loading completion state and an unloaded state; determining an index value of the segmented file in the unloaded state; writing the corresponding segmented file in the unloaded state into the signaling queue based on the index value.
The embodiment of the present application and the method embodiments of fig. 2 to 3 are based on the same concept, and the technical effects brought by the embodiment are also the same, and the specific process may refer to the description of the method embodiments of fig. 2 to 3, and will not be described again here.
The device 4 may be a field-programmable gate array (FPGA), an application-specific integrated chip, a system on chip (SoC), a Central Processing Unit (CPU), a Network Processor (NP), a digital signal processing circuit, a Micro Controller Unit (MCU), or a Programmable Logic Device (PLD) or other integrated chips.
When the scheme of the embodiment of the application is executed, the signaling file from the signaling center server is received, the signaling file is loaded to the memory unit to be processed in a segmented mode to obtain a plurality of segmented files, the segmented files are stored in the disk space, the corresponding segmented files are obtained based on a loading instruction, and the corresponding segmented files are loaded to the memory unit. According to the embodiment of the application, the signaling files are loaded into the memory unit to be processed in a segmented mode to obtain the segmented files, and when the segmented files are needed to be loaded, the segmented files are loaded into the memory in a segmented mode, so that the technical problems that a large amount of memory is occupied to influence normal work of equipment and flexible loading is caused when the signaling files are loaded during recorded broadcast class playing can be solved.
An embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, where the instructions are suitable for being loaded by a processor and executing the above method steps, and a specific execution process may refer to specific descriptions of the embodiment shown in fig. 2 or fig. 3, which is not described herein again.
The present application further provides a computer program product, which stores at least one instruction that is loaded and executed by the processor to implement the template control method according to the above embodiments.
Please refer to fig. 5, which is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 5, the electronic device 5 may include: at least one processor 501, at least one network interface 504, a user interface 503, memory 505, at least one communication bus 502.
Wherein a communication bus 502 is used to enable connective communication between these components.
The user interface 503 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 503 may also include a standard wired interface and a wireless interface.
The network interface 504 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Processor 501 may include one or more processing cores, among other things. The processor 501 connects various parts throughout the terminal 500 using various interfaces and lines, and performs various functions of the terminal 500 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 505, and calling data stored in the memory 505. Optionally, the processor 501 may be implemented in at least one hardware form of Digital Signal Processing (DSP), field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 501 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 501, but may be implemented by a single chip.
The Memory 505 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 505 includes a non-transitory computer-readable medium. The memory 505 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 505 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 505 may alternatively be at least one memory device located remotely from the processor 501. As shown in fig. 5, the memory 505, which is a type of computer storage medium, may include an operating system, a network communication module, a user interface module, and a loading application of signaling files.
In the electronic device 500 shown in fig. 5, the user interface 503 is mainly used as an interface for providing input for a user, and acquiring data input by the user; the processor 501 may be configured to call a loading application of the signaling file stored in the memory 505, and specifically perform the following operations:
receiving a signaling file from a signaling center server; the signaling file is stored in a disk space of the terminal device, the signaling file comprises a plurality of pieces of signaling, and the plurality of pieces of signaling have corresponding multi-section courses;
loading the signaling file to a memory unit for segmentation processing to obtain a plurality of segmented files, and storing the segmented files to the disk space; wherein the plurality of segmented files have a corresponding plurality of segmented file names;
and acquiring a corresponding segmented file based on a loading instruction, and loading the corresponding segmented file to the memory unit.
In one embodiment, the processor 501 performs the receiving of the signaling file from the signaling center server, including:
generating a download message in response to the instruction to attend a lesson; wherein the download message includes class type information;
sending the downloading message to the signaling center server within a preset time period;
and receiving a signaling file responding to the download message from the signaling center.
In an embodiment, the processor 501 executes the process of loading the signaling file into the memory unit to perform a segmentation process to obtain a plurality of segmented files, including:
loading the signaling file to a memory unit for analysis to obtain time information;
sequencing and checking the signaling file based on the time information;
and carrying out segmentation processing on the sequencing checked signaling file based on a preset segmentation threshold to obtain a plurality of segmented files and determining corresponding segmented file names.
In one embodiment, the processor 501 executes the load instruction-based fetching of the corresponding segment file, including:
detecting courseware time information and generating a loading instruction based on the courseware time information;
analyzing the loading instruction to obtain a segmented file name;
and inquiring corresponding segmented files in the disk space based on the segmented file names.
In one embodiment, the loading of the corresponding segment file into the memory unit by the processor 501 includes:
determining the loading data quantity;
initializing a queue structure in the memory unit based on the load data amount; wherein the length of the queue structure is greater than the fragmentation threshold;
writing the corresponding segmented file into the initialization queue structure to generate a signaling queue; wherein each signaling corresponds to an element in the signaling queue.
In one embodiment, after the processor 501 executes the loading of the corresponding segment file into the memory unit, the method further includes:
receiving a signaling reading instruction;
reading corresponding signaling in the signaling queue based on the signaling reading instruction;
detecting the remaining signaling length;
when the residual signaling length is smaller than a loading threshold value, writing the next segment of segmented file into the signaling queue; wherein the fragmentation threshold is greater than the loading threshold.
In one embodiment, the processor 501 performs the writing of the next segment file into the signaling queue, including:
acquiring the loading states of all the segmented files; wherein the loading state comprises a loading completion state and an unloaded state;
determining an index value of the segmented file in the unloaded state;
writing the corresponding segmented file in the unloaded state into the signaling queue based on the index value.
The technical concept of the embodiment of the present application is the same as that of fig. 2 or fig. 3, and the specific process may refer to the method embodiment of fig. 2 or fig. 3, which is not described herein again.
In the embodiment of the application, a signaling file from a signaling center server is received, the signaling file is loaded to a memory unit to be segmented to obtain a plurality of segmented files, the segmented files are stored in a disk space, corresponding segmented files are obtained based on a loading instruction, and the corresponding segmented files are loaded to the memory unit. According to the embodiment of the application, the signaling file is loaded into the memory unit to be segmented to obtain the multiple segmented files, and when the signaling file needs to be loaded, the multiple segmented files are loaded into the memory in a segmented mode, so that the technical problems that a large amount of memory is occupied to influence normal operation of equipment and flexible loading is caused when the signaling file is loaded during playing of a recorded broadcast class can be solved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by a computer program, which may be stored in a computer readable storage medium and executed by a computer to implement the processes of the embodiments of the methods described above. The storage medium can be a magnetic disk, an optical disk, a read-only memory or a random access memory.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (9)

1. A method for loading a signaling file, the method comprising:
receiving a signaling file from a signaling center server; the signaling file is stored in a disk space of the terminal device, the signaling file comprises a plurality of pieces of signaling, and the plurality of pieces of signaling have corresponding multi-section courses;
loading the signaling file to a memory unit for segmentation processing to obtain a plurality of segmented files, and storing the segmented files to the disk space; wherein the plurality of fragmented files have a corresponding plurality of fragmented file names;
acquiring a corresponding segmented file based on a loading instruction, and loading the corresponding segmented file to the memory unit;
the obtaining of the corresponding segment file based on the load instruction includes:
detecting courseware time information and generating a loading instruction based on the courseware time information;
analyzing the loading instruction to obtain a segmented file name;
and inquiring the corresponding segmented file in the disk space based on the segmented file name.
2. The method of claim 1, wherein receiving the signaling file from the signaling center server comprises:
generating a download message in response to the lesson instruction; wherein the download message includes class type information;
sending the downloading message to the signaling center server within a preset time period;
and receiving a signaling file responding to the download message from the signaling center.
3. The method of claim 1, wherein loading the signaling file into a memory unit for performing a segmentation process to obtain a plurality of segmented files comprises:
loading the signaling file to a memory unit for analysis to obtain time information;
sequencing and checking the signaling file based on the time information;
and carrying out segmentation processing on the sequencing checked signaling file based on a preset segmentation threshold to obtain a plurality of segmented files and determining corresponding segmented file names.
4. The method according to claim 3, wherein the loading the corresponding segment file into the memory unit comprises:
determining the loading data quantity;
initializing a queue structure in the memory unit based on the amount of loaded data; wherein the length of the queue structure is greater than the fragmentation threshold;
writing the corresponding segmented file into the initialization queue structure to generate a signaling queue; wherein each signaling corresponds to an element in the signaling queue.
5. The method of claim 4, wherein after loading the corresponding segmented file into the memory unit, further comprising:
receiving a signaling reading instruction;
reading corresponding signaling in the signaling queue based on the signaling reading instruction;
detecting the remaining signaling length;
when the residual signaling length is smaller than a loading threshold value, writing the next segment of segmented file into the signaling queue; wherein the fragmentation threshold is greater than the loading threshold.
6. The method of claim 5, wherein writing the next segment of the segmented file into the signaling queue comprises:
acquiring the loading states of all the segmented files; wherein the loading state comprises a loading completion state and an unloaded state;
determining an index value of the segmented file in the unloaded state;
writing the corresponding segmented file in the unloaded state into the signaling queue based on the index value.
7. An apparatus for loading a signaling file, comprising:
the receiving module is used for receiving the signaling file from the signaling center server; the signaling file is stored in a disk space of the terminal device, the signaling file comprises a plurality of pieces of signaling, and the plurality of pieces of signaling have corresponding multi-section courses;
the segmentation module is used for loading the signaling file into a memory unit for segmentation processing to obtain a plurality of segmented files and storing the segmented files into the disk space; wherein the plurality of fragmented files have a corresponding plurality of fragmented file names;
the loading module is used for acquiring a corresponding segmented file based on a loading instruction and loading the corresponding segmented file to the memory unit;
the segmentation module further comprises: the analysis unit is used for detecting the lesson time information and generating a loading instruction based on the lesson time information; analyzing the loading instruction to obtain a segmented file name; and inquiring the corresponding segmented file in the disk space based on the segmented file name.
8. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to perform the method steps according to any one of claims 1 to 6.
9. An electronic device, comprising: a memory and a processor; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1 to 6.
CN202110150872.6A 2021-02-03 2021-02-03 Method and device for loading signaling file, storage medium and electronic equipment Active CN112954444B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110150872.6A CN112954444B (en) 2021-02-03 2021-02-03 Method and device for loading signaling file, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110150872.6A CN112954444B (en) 2021-02-03 2021-02-03 Method and device for loading signaling file, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN112954444A CN112954444A (en) 2021-06-11
CN112954444B true CN112954444B (en) 2023-04-07

Family

ID=76243386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110150872.6A Active CN112954444B (en) 2021-02-03 2021-02-03 Method and device for loading signaling file, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112954444B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115941794A (en) * 2022-11-16 2023-04-07 北京奇艺世纪科技有限公司 File storage method, system and device and electronic equipment
CN118093519A (en) * 2022-11-17 2024-05-28 中兴通讯股份有限公司 File storage method, data loading method and related equipment
CN118535101B (en) * 2024-07-19 2024-10-08 成都融见软件科技有限公司 Mass data loading method, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101833464A (en) * 2010-04-16 2010-09-15 深圳市五巨科技有限公司 Method and device for sectionally loading application programs by mobile terminal
CN102447681A (en) * 2010-10-13 2012-05-09 中兴通讯股份有限公司 Monitoring client sub-system, video monitoring system and video replaying method
CN108600777A (en) * 2018-04-09 2018-09-28 北京大米科技有限公司 A kind of stream media playback server, client
WO2019196577A1 (en) * 2018-04-09 2019-10-17 北京大米科技有限公司 Streaming media playback method, server, client and computer device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170310752A1 (en) * 2016-04-21 2017-10-26 Samsung Electronics Company, Ltd. Utilizing a Content Delivery Network as a Notification System

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101833464A (en) * 2010-04-16 2010-09-15 深圳市五巨科技有限公司 Method and device for sectionally loading application programs by mobile terminal
CN102447681A (en) * 2010-10-13 2012-05-09 中兴通讯股份有限公司 Monitoring client sub-system, video monitoring system and video replaying method
CN108600777A (en) * 2018-04-09 2018-09-28 北京大米科技有限公司 A kind of stream media playback server, client
WO2019196577A1 (en) * 2018-04-09 2019-10-17 北京大米科技有限公司 Streaming media playback method, server, client and computer device

Also Published As

Publication number Publication date
CN112954444A (en) 2021-06-11

Similar Documents

Publication Publication Date Title
CN112954444B (en) Method and device for loading signaling file, storage medium and electronic equipment
WO2020108085A1 (en) Resource allocation method and apparatus, terminal, and storage medium
CN111107442B (en) Method and device for acquiring audio and video files, server and storage medium
CN110912870B (en) Method, device, medium and electronic equipment for synchronizing data of electronic whiteboard
CN111405381A (en) Online video playing method, electronic device and computer readable storage medium
CN112416775B (en) Software automatic test method and device based on artificial intelligence and electronic equipment
CN113268303A (en) Interface element configuration method and device, storage medium and electronic equipment
CN111666820A (en) Speaking state recognition method and device, storage medium and terminal
CN112286904A (en) Cluster migration method and device and storage medium
CN111601154B (en) Video processing method and related equipment
CN114040189A (en) Multimedia test method, device, storage medium and electronic equipment
CN111008312A (en) Course reviewing method and system suitable for network teaching
CN111708704A (en) Cloud real machine testing method and device, terminal and storage medium
CN111523343B (en) Reading interaction method, device, equipment, server and storage medium
CN109803153B (en) Live video whiteboard drawing method and device
CN114840421A (en) Log data processing method and device
CN113117340A (en) Game running method and device, storage medium and electronic equipment
CN114745594A (en) Method and device for generating live playback video, electronic equipment and storage medium
CN109859293B (en) Animation multi-state switching method and device for android device
CN112308511A (en) Task plan generation method and device, electronic equipment and storage medium
CN112560809A (en) Method and device for displaying recognition effect in real time
CN111081101A (en) Interactive recording and broadcasting system, method and device
CN111009021A (en) Playback method of electronic whiteboard and related equipment
CN114297420B (en) Note generation method and device for network teaching, medium and electronic equipment
CN114827703B (en) Queuing playing method, device, equipment and medium for views

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