A method, device and equipment for playing and processing layout documents

By converting layout documents into streaming data and generating playlists, the problem that layout documents are difficult to support massive concurrent reading is solved, and the massive dissemination and distribution of layout documents and live broadcast applications are realized.

CN119211209BActive Publication Date: 2025-02-14BEIJING SUWELL TECHNOLOGY CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411707522.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-02-14
Estimated Expiration
2044-11-27

AI Technical Summary

Technical Problem

Layout documents are difficult to support massive concurrent reading, and it is difficult to control the unified reading progress of users, limiting their application in education, demonstration and other scenarios.

Method used

By obtaining the layout document, performing conversion processing to obtain multiple stream data, performing statistical processing to obtain list data, and sending the list data to the client, so that the client can play based on the list data. This method combines the playlist method of network streaming media to convert the layout document with page numbers as unit format to form a playlist that conforms to the preset format specification.

Benefits of technology

It realizes the massive dissemination and distribution of layout documents, supports live broadcast or other value-added applications, and expands the application scenarios of layout documents.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211209B_ABST
    Figure CN119211209B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device and equipment for playing and processing layout documents, which belongs to the field of computer information processing technology and solves the problem that layout documents are difficult to support massive concurrent reading. The method includes: obtaining a layout document; converting and processing the layout document to obtain multiple streaming data; statistically processing the multiple streaming data to obtain list data; sending the list data to the client so that the client plays according to the list data. The solution uses the streaming media playback format to encapsulate and transmit the layout document, so that the layout document can support massive concurrent reading, expanding the application scenarios of the layout document.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer information processing, and in particular to a method, device and equipment for playing and processing layout documents. Background Art

[0002] A layout document format is an electronic document format with a fixed layout presentation effect. Commonly used formats include Portable Document Format (PDF) and Open Fixed-layout Document (OFD). The presentation of a layout document is independent of the device. When reading, printing or printing on various devices, the presentation results of the layout are consistent. Layout documents are mainly used for the release, dissemination and archiving of written documents. They are characterized by a fixed layout. The presentation effect will not change due to changes in the hardware and software environment or operation. They are completely consistent with paper documents in terms of layout, layout, font, font size, etc.

[0003] Traditional layout documents are opened and read in file-based mode. There are also Web-based readers, but they are all used for single-customer scenarios. This is because layout documents exist in file form, which makes it difficult to support massive access for reading and control the user's unified reading progress, making it difficult to apply layout documents in education, demonstration and other scenarios. Summary of the invention

[0004] The present invention provides a method, device and equipment for playing and processing layout documents, which solves the problem that layout documents are difficult to support massive concurrent reading.

[0005] In order to solve the above technical problems, the technical solution of the present invention is as follows:

[0006] An embodiment of the present invention provides a method for playing a layout document, which is applied to a server. The method includes:

[0007] Get the layout document;

[0008] Converting the format document to obtain multiple stream data;

[0009] Performing statistical processing on the plurality of stream data to obtain list data;

[0010] The list data is sent to the client, so that the client plays according to the list data.

[0011] Optionally, the layout document is converted to obtain a plurality of stream data, including:

[0012] Analyzing and processing the layout document to obtain a plurality of page data;

[0013] The plurality of page data are format-converted according to a preset encoding to obtain a plurality of stream data.

[0014] Optionally, the plurality of page data are format converted according to a preset encoding to obtain a plurality of stream data, including:

[0015] Get multiple subtitle data;

[0016] Matching and merging the plurality of page data with the plurality of commentary subtitle data to obtain merged data;

[0017] The combined data is format-converted according to a preset encoding to obtain a plurality of stream data.

[0018] Optionally, statistical processing is performed on the plurality of stream data to obtain list data, including:

[0019] Acquire multiple address data of the multiple stream data, wherein each stream data corresponds to one address data;

[0020] The plurality of address data are merged and processed according to the playback order of the plurality of stream data to obtain list data.

[0021] Optionally, the list data also includes preset coding data.

[0022] The embodiment of the present invention further provides a method for playing a layout document, which is applied to a client, and the method includes:

[0023] Receive list data sent by the server;

[0024] Parsing the list data to obtain preset coding data and multiple address data;

[0025] Obtaining a plurality of stream data according to the plurality of address data;

[0026] The plurality of stream data are parsed and processed according to the preset encoding data to obtain playback data and the playback data is played.

[0027] The embodiment of the present invention further provides a layout document playback processing device, which is applied to a server and includes:

[0028] Acquisition module, used to obtain layout documents;

[0029] The first processing module is used to convert the format document to obtain a plurality of stream data; perform statistical processing on the plurality of stream data to obtain list data;

[0030] The sending module is used to send the list data to the client so that the client plays according to the list data.

[0031] The embodiment of the present invention further provides a layout document playback processing device, which is applied to a client and includes:

[0032] A receiving module, used for receiving list data sent by the server;

[0033] A second processing module is used to parse the list data to obtain preset coding data and multiple address data;

[0034] The receiving module is further used to obtain a plurality of stream data according to the plurality of address data;

[0035] The second processing module is further used to parse and process the plurality of stream data according to the preset encoding data to obtain playback data and play the playback data.

[0036] An embodiment of the present invention further provides a computing device, comprising: a processor and a memory storing a computer program, wherein the computer program executes the above method when executed by the processor.

[0037] An embodiment of the present invention further provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the above method.

[0038] The technical solution of the present invention includes at least the following effects:

[0039] The above scheme of the present invention obtains a layout document; converts the layout document to obtain multiple streaming data; performs statistical processing on the multiple streaming data to obtain list data; sends the list data to a client, so that the client plays according to the list data. It can be combined with the play list method of network streaming media playback, and the layout document is formatted with page numbers as units, and a play list that meets the preset format specifications is composed in the format of streaming media, so that the network can be used for massive dissemination and distribution, and live broadcast or other value-added applications of layout documents can be realized. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] 1 is a flow chart of a method for playing a layout document provided by an embodiment of the present invention;

[0041] 2 is a flowchart of a method for playing a layout document provided by an embodiment of the present invention;

[0042] 3 is a structural diagram of a playback processing device for a layout document on a server provided in an embodiment of the present invention;

[0043] 4 is a structural diagram of a layout document playback processing device for a client provided in an embodiment of the present invention;

[0044] FIG. 5 is a schematic diagram of the structure of a computing device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0045] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.

[0046] As shown in FIG. 1 , an embodiment of the present invention provides a method for playing a layout document, which is applied to a server. The method includes:

[0047] Step 11, obtaining the layout document;

[0048] Step 12, converting the layout document to obtain a plurality of stream data;

[0049] Step 13, performing statistical processing on the plurality of stream data to obtain list data;

[0050] Step 14: Send the list data to the client, so that the client plays according to the list data.

[0051] In this embodiment, the layout document refers to a document with a fixed layout, such as files in portable document format (PDF), open fixed-layout document (OFD) and other formats; the positions of the text, pictures, tables and other elements in these documents on the page are fixed and will not change due to different software or devices; the layout document can be obtained in a variety of ways, including but not limited to reading from a local file system, downloading from a network server, extracting from a database, etc.;

[0052] Read the structure and content of the layout document, and then convert it into corresponding stream data as needed; for example, for a PDF document, you can use the PDF parsing library to extract text and image information; after the conversion process, the original layout document is decomposed into multiple independent stream data, each of which is saved in the server as a separate stream file;

[0053] Aggregating, classifying, and sorting multiple streaming files to generate list data with a specific structure and format, in which the list data records the download addresses, playback order, and decoding information of the multiple streaming files;

[0054] The list data is sent to the client through a network protocol (such as HTTP, WebSocket, etc.); after the client receives the list data, it can download each streaming file to the local cache according to the download address of multiple streaming files, and decode and play them locally in sequence according to the playback order and decoding information recorded in the list data.

[0055] The above-mentioned embodiment of the present invention uses the streaming media playback format to encapsulate and transmit the layout document, so that the layout document can support massive concurrent reading, thereby expanding the application scenarios of the layout document.

[0056] In an optional embodiment of the present invention, step 12 may include:

[0057] Step 121, analyzing and processing the layout document to obtain a plurality of page data;

[0058] Step 122 , performing format conversion processing on the plurality of page data according to a preset encoding to obtain a plurality of stream data.

[0059] In this embodiment, the layout document is analyzed and processed, the structure of the layout document is read, the pages in the document are identified, and a plurality of page data are obtained; the extracted page content is format-converted according to a preset encoding, such as the highly compressed digital video codec standard (H.264 encoding) and the advanced audio coding (Advanced Audio Coding, AAC), to obtain a plurality of stream data, each of which is stored in the server in the form of a separate stream file; wherein, information such as commentary and subtitles can also be added in this process to adapt to various application scenarios; specifically, a plurality of commentary and subtitle data are first obtained; the plurality of page data are matched and merged with the plurality of commentary and subtitle data to obtain merged data; the merged data is format-converted according to the preset encoding to obtain a plurality of stream data.

[0060] In an optional embodiment of the present invention, step 13 may include:

[0061] Step 131, obtaining a plurality of address data of the plurality of stream data, wherein each stream data corresponds to one address data;

[0062] Step 132 , merging the plurality of address data according to the play order of the plurality of stream data to obtain list data.

[0063] In this embodiment, after the streaming data is saved in the server in the form of a separate streaming file, each streaming data corresponds to a unique network address, and the streaming data can be accessed and downloaded based on this network address; multiple address data of the multiple streaming data are obtained, and the multiple address data are merged according to the playback order of the multiple streaming data to obtain list data, wherein the list data includes the download addresses, playback order and decoding information of the multiple streaming files.

[0064] As shown in FIG. 2 , a specific embodiment of the method for playing a layout document provided by an embodiment of the present invention is as follows:

[0065] Step 1, obtain the layout document;

[0066] The layout document can be obtained by reading from the local file system, downloading from a network server, extracting from a database, etc.

[0067] Step 2, converting the layout document to obtain a plurality of stream data;

[0068] In the specific implementation, the layout document is converted into a video format supported by the playlist. That is, in order to make the layout document playable using a traditional video player, the layout document needs to be transcoded into a video format on a page basis, that is, transcoding from image to video format, and the encapsulation format uses the Transport Stream (TS) format.

[0069] Here, a playlist is a multimedia playlist file format, mainly used for online video playback. The playlist includes an index file, which is parsed to obtain the network address of the video placed on the server, thereby realizing online playback, including but not limited to M3U8 playlists.

[0070] In this conversion process, in addition to converting the document into a video format by adding presentation duration parameters based on pages, you can also add information such as commentary and subtitles to adapt to various application scenarios. The advantage of this method is that it can be played and presented using an ordinary streaming media player, which can adapt to various device terminals and operating system platforms; the program code of the conversion process is as follows:

[0071] #EXTM3U

[0072] #EXT-X-VERSION:3

[0073] #EXT-X-TARGETDURATION:10

[0074] #EXT-X-MEDIA-SEQUENCE:0 .........

[0075] #EXTINF:10,

[0076] http: / / media.example.com / page1.ts

[0077] #EXTINF:10,

[0078] http: / / media.example.com / page2.ts

[0079] #EXTINF:10,

[0080] http: / / media.example.com / page3.ts .........

[0081] #EXT-X-ENDLIST

[0082] The above code shows that a layout document is converted to video in units of pages. Each page of the layout document will generate a video file with the suffix ts.

[0083] Step 3, performing statistical processing on the plurality of stream data to obtain list data;

[0084] In this step, statistical processing is performed on multiple stream data according to the play list to obtain list data and form a list file, that is, a play list of a layout document;

[0085] The list generation process can be one-time or dynamic, page by page; this is suitable for live broadcast application scenarios;

[0086] Each entry in the list data represents the download address of a layout document; since the video files with ts as the suffix are not files using the standard video format, the client cannot use the traditional streaming media player to play these video files with ts as the suffix, but must use a specific player that supports layout document parsing to play them; the program code of the statistical processing process is as follows:

[0087] #EXT-X-VERSION:3

[0088] #EXT-X-TARGETDURATION:10

[0089] #EXT-X-MEDIA-SEQUENCE:0 .........

[0090] #EXTINF:10,

[0091] http: / / media.example.com / page1.ofd

[0092] #EXTINF:10,

[0093] http: / / media.example.com / page2.ofd

[0094] #EXTINF:10,

[0095] http: / / media.example.com / page3.ofd .........

[0096] #EXT-X-ENDLIST

[0097] Step 4: Send the list data to the client, so that the client plays according to the list data.

[0098] In this step, a server that supports the HTTP(s) protocol can be used for data transmission distribution, such as the Nginx server, which supports various common Internet distribution strategies and technologies such as load balancing.

[0099] After the list data is sent to the client, the client downloads and plays the data, including:

[0100] (1) Get sub-playlist: The client downloads the selected sub-playlist, which contains the download addresses (URLs) of the media segments.

[0101] (2) Downloading slices: The client downloads the media slices through HTTP requests in the order of the sub-playlist;

[0102] (3) Buffered playback: The client buffers the segments and plays them continuously while downloading to achieve the effect of streaming media playback;

[0103] (4) Dynamic update: The sub-playlist may be updated as the live broadcast progresses. The client needs to periodically re-download the sub-playlist to obtain new slice information. For documents in layout format, the corresponding layout document parser is called to parse and present the documents.

[0104] The above-mentioned embodiment of the present invention transcodes the layout document into a video format by taking pages as units, for example, transcoding from an image to a video format, and the encapsulation format adopts the Transport Stream (TS) format; in the case where the layout document file format needs to be retained, it does not need to be transcoded into a video format, but the single-page layout document is directly segmented by page, and the original layout document will generate a corresponding number of layout files according to the number of page numbers. Regardless of whether the pages of the layout document are transcoded into a video format, the index list file of the playlist is generated in the same manner, and the fields in the standard playlist index file format include:

[0105] EXT-X-TARGETDURATION, this tag specifies the maximum duration of the media file. The duration of the media file in the play file list defined in the EXTINF tag must be less than or equal to the duration specified by this tag;

[0106] EXT-X-MEDIA-SEQUENCE, the Uniform Resource Identifier (URI) of each media file (TS) in the playlist file has a fixed unique sequence number in the playlist file. The sequence number of the URI is equal to the sequence number of the previous URI plus 1, that is, the sequence number between adjacent ones is increased by 1; this sequence number is used to switch the bit rate for alignment when the master boot record (MBR, Master Boot Record) is switched. EXT-X-MEDIA-SEQUENCE indicates the sequence number of the first URI that appears in the playlist file;

[0107] EXTINF, the duration of the segment playback, in seconds;

[0108] URL link, which is the relative or absolute link address of each fragment;

[0109] This embodiment of the present invention utilizes the characteristics of the playlist format for multiple streams. In addition to supporting multiple streams, it can also realize the multi-version real-time switching function of the layout document; the source layout document is not necessarily prepared in advance, and the layout document stream can be generated in real time by using the template or large model technology to realize real-time transcoding and update the playlist index, so as to realize the live broadcast of the layout document, which is very useful in the field of education. The layout document and the video can be combined, such as playing a layout document page and then playing a video, so as to form a presentation method of text and video, which is more enriched to the application scenario.

[0110] When the client plays and presents the layout document, if it is a layout document after video transcoding, it can be played using a regular player. This type of player has corresponding software on various hardware platforms and operating systems, and is very easy to obtain and use.

[0111] If it is an original layout document that has not been transcoded, it will form a small layout file according to the paging. At this time, the traditional player cannot parse and present it, and it is necessary to develop a dedicated decoder plug-in to complete the parsing and playback; because it uses streaming media for transmission, it can take advantage of the characteristics of streaming media transmission to achieve real-time explanation, live demonstration, and even insert advertising functions during playback. When used as a live broadcast application, since new content is constantly generated in real time, the incremental update feature of the playlist mechanism can be used here to achieve streaming playback of layout documents.

[0112] After the layout document is converted into the index file of the playlist, all small files are stored on the HTTP server to ensure that the link addresses in the playlist are accessible links. The CDN mechanism can be used to load balance the distribution network to cope with massive users and concurrent requests. The multi-stream feature of the playlist can be used to select the desired playback bit rate according to the user needs of different terminals.

[0113] The above-mentioned embodiments of the present invention, combined with the playlist method of network streaming media playback, convert the format of the layout document using page numbers as units, and compose a playlist that complies with the playlist format specifications in the format of streaming media, so that streaming media distribution technology can be used to utilize the CDN network for massive dissemination and distribution, thereby realizing live broadcast or other value-added applications of the layout document.

[0114] The embodiment of the present invention further provides a method for playing a layout document, which is applied to a client, and the method includes:

[0115] Step 21, receiving the list data sent by the server;

[0116] Step 22, parsing the list data to obtain preset coding data and multiple address data;

[0117] Step 23, obtaining a plurality of stream data according to the plurality of address data;

[0118] Step 24: parse and process the plurality of stream data according to the preset encoding data to obtain playback data and play the playback data.

[0119] In this embodiment, the client receives list data from the server through a network connection, parses the list data, identifies and separates preset coding data and multiple address data; the preset coding data is a specific coding scheme or key used for subsequent decoding of the streaming data; the address data points to the server or resource location where the streaming data is stored or transmitted; the system uses the address data parsed from the list data to obtain the actual streaming data, and the acquisition process includes establishing a network connection, sending a request, receiving response data, and handling any possible errors or retry logic; finally, the client parses the multiple streaming data obtained so that it can be played; uses the preset coding data to decode the streaming data and converts the decoded data into a format suitable for playback; once the streaming data is successfully decoded and converted into playback data, the client can to send it to the display and speakers for playback; if it is a layout document after video transcoding, it can be played with a regular player. This type of player has corresponding software on various hardware platforms and various operating systems, and is very easy to obtain and use; if it is an original layout document that has not been transcoded, multiple files will be formed according to the paging. At this time, traditional players cannot parse and present it, and it is necessary to develop a dedicated decoder plug-in to complete the parsing and playback; since streaming media is used for transmission, the characteristics of streaming media transmission can be used to achieve real-time commentary, live demonstration, and even advertising insertion during playback; when used as a live broadcast application, since new content is continuously generated in real time, the incremental update feature of the playlist mechanism can be used here to achieve streaming playback of layout documents.

[0120] As shown in FIG. 3 , the embodiment of the present invention further provides a layout document playback processing device 30, which is applied to a server and includes:

[0121] An acquisition module 31 is used to acquire a layout document;

[0122] The first processing module 32 is used to convert the format document to obtain a plurality of stream data; perform statistical processing on the plurality of stream data to obtain list data;

[0123] The sending module 33 is used to send the list data to the client, so that the client plays according to the list data.

[0124] Optionally, the first processing module 32 is specifically used for:

[0125] Analyzing and processing the layout document to obtain a plurality of page data;

[0126] The plurality of page data are format-converted according to a preset encoding to obtain a plurality of stream data.

[0127] Optionally, the plurality of page data are format converted according to a preset encoding to obtain a plurality of stream data, including:

[0128] Get multiple subtitle data;

[0129] Matching and merging the plurality of page data with the plurality of commentary subtitle data to obtain merged data;

[0130] The combined data is format-converted according to a preset encoding to obtain a plurality of stream data.

[0131] Optionally, the first processing module 32 is further specifically configured to:

[0132] Acquire multiple address data of the multiple stream data, wherein each stream data corresponds to one address data;

[0133] The plurality of address data are merged and processed according to the playback order of the plurality of stream data to obtain list data.

[0134] Optionally, the list data also includes preset coding data.

[0135] It should be noted that the device is a device corresponding to the above-mentioned method for playing and processing layout documents for a server, and all implementation methods in the above-mentioned method embodiment are applicable to this embodiment and can achieve the same technical effect.

[0136] As shown in FIG. 4 , an embodiment of the present invention further provides a layout document playback processing device 40, which is applied to a client and includes:

[0137] The receiving module 41 is used to receive the list data sent by the server;

[0138] The second processing module 42 is used to parse the list data to obtain preset coding data and multiple address data;

[0139] The receiving module 41 is further used to obtain a plurality of stream data according to the plurality of address data;

[0140] The second processing module 42 is further used to parse and process the plurality of stream data according to the preset encoding data to obtain playback data and play the playback data.

[0141] It should be noted that the device is a device corresponding to the above-mentioned method for playing and processing layout documents for the client, and all implementation methods in the above-mentioned method embodiment are applicable to this embodiment and can achieve the same technical effect.

[0142] As shown in FIG5 , the embodiment of the present invention further provides a computing device 50, including a processor 51, a memory 52, and a program or instruction stored in the memory 52 and executable on the processor 51. When the program or instruction is executed by the processor 51, each process of the above-mentioned format document playback processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not described here. It should be noted that the computing device in the embodiment of the present invention includes the above-mentioned mobile electronic device and non-mobile electronic device.

[0143] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0144] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0145] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0146] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0147] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0148] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.

[0149] In addition, it should be pointed out that in the apparatus and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. Moreover, the steps of performing the above series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order, and some steps can be performed in parallel or independently of each other. For those of ordinary skill in the art, it is understandable that all or any steps or components of the method and apparatus of the present invention can be implemented in hardware, firmware, software or a combination thereof in any computing device (including processors, storage media, etc.) or a network of computing devices, which can be achieved by those of ordinary skill in the art using their basic programming skills after reading the description of the present invention.

[0150] Therefore, the purpose of the present invention can also be achieved by running a program or a group of programs on any computing device. The computing device can be a well-known general-purpose device. Therefore, the purpose of the present invention can also be achieved by simply providing a program product containing a program code for implementing a method or device. That is to say, such a program product also constitutes the present invention, and a storage medium storing such a program product also constitutes the present invention. Obviously, the storage medium can be any well-known storage medium or any storage medium developed in the future. It should also be pointed out that in the device and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. In addition, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order. Some steps can be performed in parallel or independently of each other.

[0151] The above are preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as within the scope of protection of the present invention.

Claims

1. A method for playing and processing a layout document, characterized in that: Applied to a server, the method comprises: Get the layout document; Converting the format document to obtain multiple stream data; Performing statistical processing on the plurality of stream data to obtain list data; Sending the list data to a client, so that the client plays the data according to the list data; The format document is converted to obtain a plurality of stream data, including: Analyzing and processing the layout document to obtain a plurality of page data; Performing format conversion processing on the plurality of page data according to a preset encoding to obtain a plurality of stream data; The plurality of page data are format converted according to a preset encoding to obtain a plurality of stream data, including: Get multiple subtitle data; Matching and merging the plurality of page data with the plurality of commentary subtitle data to obtain merged data; Performing format conversion processing on the combined data according to a preset encoding to obtain a plurality of stream data; The statistical processing of the plurality of stream data to obtain list data includes: Acquire multiple address data of the multiple stream data, wherein each stream data corresponds to one address data; The plurality of address data are merged and processed according to the playback order of the plurality of stream data to obtain list data.

2. The method for playing and processing a layout document according to claim 1, characterized in that: The list data also includes preset coding data.

3. A method for playing and processing a layout document, characterized in that: Applied to a client, the method comprises: Receive list data sent by the server; Parsing the list data to obtain preset coding data and multiple address data; Obtaining a plurality of stream data according to the plurality of address data; Parsing and processing the plurality of streaming data according to the preset encoding data to obtain playback data and playing the playback data; The plurality of stream data are obtained by converting the layout document, and include: Analyze and process the layout document to obtain multiple page data; Performing format conversion processing on the plurality of page data according to a preset encoding to obtain a plurality of stream data; The plurality of page data are format converted according to a preset encoding to obtain a plurality of stream data, including: Get multiple subtitle data; Matching and merging the plurality of page data with the plurality of commentary subtitle data to obtain merged data; Performing format conversion processing on the combined data according to a preset encoding to obtain a plurality of stream data; The list data is obtained by statistically processing the plurality of stream data, and includes: Acquire multiple address data of the multiple stream data, wherein each stream data corresponds to one address data; The plurality of address data are merged and processed according to the playback order of the plurality of stream data to obtain list data.

4. A playback processing device for a layout document, characterized in that: Applicable to servers, including: Acquisition module, used to obtain layout documents; The first processing module is used to convert the format document to obtain a plurality of stream data; perform statistical processing on the plurality of stream data to obtain list data; A sending module, used for sending the list data to a client, so that the client plays according to the list data; The format document is converted to obtain a plurality of stream data, including: Analyzing and processing the layout document to obtain a plurality of page data; Performing format conversion processing on the plurality of page data according to a preset encoding to obtain a plurality of stream data; The plurality of page data are format converted according to a preset encoding to obtain a plurality of stream data, including: Get multiple subtitle data; Matching and merging the plurality of page data with the plurality of commentary subtitle data to obtain merged data; Performing format conversion processing on the combined data according to a preset encoding to obtain a plurality of stream data; The statistical processing of the plurality of stream data to obtain list data includes: Acquire multiple address data of the multiple stream data, wherein each stream data corresponds to one address data; The plurality of address data are merged and processed according to the playback order of the plurality of stream data to obtain list data.

5. A playback processing device for a layout document, characterized in that: Applied to the client, including: A receiving module, used for receiving list data sent by the server; A second processing module is used to parse the list data to obtain preset coding data and multiple address data; The receiving module is further used to obtain a plurality of stream data according to the plurality of address data; The second processing module is further used to parse and process the plurality of streaming data according to the preset encoding data to obtain playback data and play the playback data; The plurality of stream data are obtained by converting the layout document, and include: Analyze and process the layout document to obtain multiple page data; Performing format conversion processing on the plurality of page data according to a preset encoding to obtain a plurality of stream data; The plurality of page data are format converted according to a preset encoding to obtain a plurality of stream data, including: Get multiple subtitle data; Matching and merging the plurality of page data with the plurality of commentary subtitle data to obtain merged data; Performing format conversion processing on the combined data according to a preset encoding to obtain a plurality of stream data; The list data is obtained by statistically processing the plurality of stream data, and includes: Acquire multiple address data of the multiple stream data, wherein each stream data corresponds to one address data; The plurality of address data are merged and processed according to the playback order of the plurality of stream data to obtain list data.

6. A computing device, characterized in that include: A processor and a memory storing a computer program, wherein when the computer program is executed by the processor, the method according to any one of claims 1 to 2 or the method according to claim 3 is executed.

7. A computer-readable storage medium, characterized in that: Instructions are stored, and when the instructions are executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 2 or the method according to claim 3.

Citation Information

Patent Citations

  • Playlists for real-time or near real-time streaming

    CN103650526A

  • Operating method of client for streaming service

    CN108702542A