CN110765382B - Picture reading material loading method and device, storage medium and computer equipment - Google Patents

Picture reading material loading method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN110765382B
CN110765382B CN201910974086.0A CN201910974086A CN110765382B CN 110765382 B CN110765382 B CN 110765382B CN 201910974086 A CN201910974086 A CN 201910974086A CN 110765382 B CN110765382 B CN 110765382B
Authority
CN
China
Prior art keywords
picture
reading
picture reading
chapter
downloaded
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
CN201910974086.0A
Other languages
Chinese (zh)
Other versions
CN110765382A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910974086.0A priority Critical patent/CN110765382B/en
Publication of CN110765382A publication Critical patent/CN110765382A/en
Application granted granted Critical
Publication of CN110765382B publication Critical patent/CN110765382B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Facsimiles In General (AREA)

Abstract

The application relates to a picture reading material loading method, a picture reading material loading device, a storage medium and computer equipment, wherein the method comprises the following steps: when the picture switching operation of the picture reading is monitored, acquiring the reading progress of the current picture reading; when the reading progress of the picture reading materials meets the preloading conditions in the chapters, preloading the picture reading materials on the basis of the preloaded picture reading material link set of the current chapters; when the reading progress of the picture reading materials meets the cross-chapter preloading condition, preloading a picture reading material link set of an adjacent chapter of the current chapter, and continuing to perform picture reading material preloading based on the picture reading material link set of the adjacent chapter; displaying the pre-loaded picture reading material when the picture reading progress progresses to the pre-loaded picture reading material. The scheme provided by the application can improve the loading efficiency of the picture reading material, so that the display efficiency of the picture reading material is improved.

Description

Picture reading material loading method and device, storage medium and computer equipment
Technical Field
The application relates to the technical field of computer networks, in particular to a picture reading loading method, a picture reading loading device, a storage medium and computer equipment.
Background
With the continuous development of computer network technology, electronic reading materials gradually replace paper reading materials due to the characteristics of large capacity, convenience in acquisition and use and the like. Among various electronic reading materials, the picture reading material embodies the plot in a form of combining characters and/or patterns, and is more and more favored by people.
At present, picture reading materials are read on line through a webpage, and the picture reading materials are loaded and displayed in real time by a terminal according to the reading progress of the picture reading materials of a user. However, the loading method of the image reading materials is limited by the network performance, and there may be a problem of low loading efficiency of the image reading materials, especially when the network is in an off-line state, the loading efficiency of the image reading materials is further reduced, so that the display efficiency of the image reading materials is reduced.
Disclosure of Invention
In view of the above, it is necessary to provide a method and an apparatus for loading picture reading material, a storage medium, and a computer device for solving the technical problem of low display efficiency of picture reading material.
An image reading material loading method comprises the following steps:
when the picture switching operation of the picture reading is monitored, acquiring the reading progress of the current picture reading;
when the reading progress of the picture reading material meets the preloading condition in the chapter, then
Preloading the picture reading materials based on the preloaded picture reading material link set of the current chapter;
when the reading progress of the picture reading material meets the cross-chapter preloading condition, then
Preloading picture reading matter link sets of adjacent chapters of the current chapter, and continuing to perform picture reading matter preloading based on the picture reading matter link sets of the adjacent chapters;
displaying the pre-loaded picture reading material when the picture reading progress progresses to the pre-loaded picture reading material.
A picture reading loading device, the device comprising:
the monitoring module is used for acquiring the reading progress of the current picture reading material when the picture switching operation of the picture reading material is monitored;
the first preloading module is used for preloading the picture reading material based on the preloaded picture reading material link set of the current chapter when the reading progress of the picture reading material meets the preloading condition in the chapter;
the second preloading module is used for preloading the picture reading material link set of the adjacent chapter of the current chapter when the picture reading material reading progress meets the cross-chapter preloading condition, and continuing to perform picture reading material preloading based on the picture reading material link set of the adjacent chapter;
the display module is used for displaying the pre-loaded picture reading material when the picture reading material reading progress is advanced to the pre-loaded picture reading material.
A computer device comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of the above-described picture reading loading method.
A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, causes the processor to perform the steps of the above-described picture reading loading method.
According to the picture reading material loading method, the picture reading material loading device, the storage medium and the computer equipment, when the picture switching operation of the picture reading material is monitored, the picture reading material preloading flow in the chapters or the picture reading material preloading flow across the chapters is triggered according to the current picture reading material reading progress, so that the picture reading material loading efficiency is improved, and when the picture reading material reading progress is advanced to the preloaded picture reading material, the preloaded picture reading material is displayed, so that the picture reading material display efficiency is improved. The picture reading materials in the current chapter are preloaded based on the picture reading material link set of the current chapter, or the picture reading material link sets of the adjacent chapters are preloaded, the picture reading materials of the cross-chapter are preloaded based on the picture reading material link set, and the loading efficiency of the picture reading materials can be improved.
Drawings
FIG. 1 is a diagram illustrating an exemplary embodiment of a method for loading a picture reading;
FIG. 2 is a schematic flow chart illustrating a method for loading a picture reading in one embodiment;
FIG. 3 is a flowchart illustrating steps of downloading picture readings in batches according to one embodiment;
FIG. 4 is a flowchart illustrating a step of downloading the picture reading materials in batch according to another embodiment;
fig. 5 is a timing chart of reporting reading status data in the method for loading the picture reading material according to an embodiment;
FIG. 6 is a schematic flow chart illustrating a method for loading a picture reading material according to another embodiment;
FIG. 7 is a flow chart illustrating the steps of automatically cleaning expired image readings in one embodiment;
FIG. 8 is a schematic diagram of a method for loading a picture reading in one embodiment;
FIG. 9 is a block diagram showing the construction of a picture reading loading apparatus according to an embodiment;
FIG. 10 is a block diagram showing a configuration of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Fig. 1 is an application environment diagram of a picture reading loading method in one embodiment. Referring to fig. 1, the image reading loading method is applied to an image reading loading system. The picture reading material loading system comprises a terminal 110 and a server 120. The terminal 110 and the server 120 are connected through a network. The terminal 110 may specifically be a desktop terminal or a mobile terminal, and the mobile terminal may specifically be at least one of a mobile phone, a tablet computer, a notebook computer, and the like. The server 120 may be implemented as a stand-alone server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, a picture reading loading method is provided. The embodiment is mainly illustrated by applying the method to the terminal 110 in fig. 1. Referring to fig. 2, the method for loading the picture reading specifically includes the following steps:
s202, when the picture switching operation of the picture reading material is monitored, the reading progress of the current picture reading material is obtained.
The picture switching operation is an operation triggered by a user and used for switching the currently displayed picture reading. The picture switching operation may specifically be a triggering operation such as sliding, clicking, or pressing, where the sliding is, for example, a sliding operation on a terminal touch screen, such as a sliding up operation or a sliding down operation, and the clicking is, for example, a clicking operation on a preset picture switching button, and the picture switching button may be a virtual triggering control. The picture switching operation may specifically include a forward slide operation such as a slide-up operation and a slide-left operation for switching the picture reading after the currently displayed picture reading is displayed, and a backward slide operation such as a slide-down operation and a slide-right operation for switching the picture reading before the currently displayed picture reading is displayed.
The picture reading progress is data for reflecting the reading progress of the user on the picture reading, and specifically may be data reflecting the reading progress of the user on the picture reading in the current chapter. The reading progress of the picture reading materials, such as the serial number of the picture reading materials in the current chapter, is used for reflecting which picture reading material in the current chapter the user reads.
Specifically, the terminal monitors the picture switching operation of a user on the currently displayed picture reading in real time, and when the picture switching operation is monitored, the current picture reading progress is obtained according to the monitored picture switching operation.
In one embodiment, when the picture switching operation is monitored, the terminal acquires the serial number of the currently displayed picture reading material in the current chapter, and the reading progress of the current picture reading material is determined according to the acquired serial number.
In one embodiment, the picture switching operation is a slide operation. When the sliding operation of a user on the currently displayed picture reading material is monitored, the terminal acquires the display time length of the currently displayed picture reading material, the display time length is used as the reading time length of the corresponding picture reading material, and the sliding distance and the current picture reading progress are acquired. The sliding distance and the reading duration can be used for assisting in judging whether the user has the intention of reading the picture reading material adjacent to the currently displayed picture reading material, so that the picture reading material is preloaded when the user is judged to have the reading intention.
In one embodiment, the picture reading material may be a cartoon, a photo, an image set, a magazine in the form of a picture, an electronic book, or the like, and is not limited herein.
And S204, when the reading progress of the picture reading material meets the preloading condition in the chapters, preloading the picture reading material based on the preloaded picture reading material link set of the current chapter.
The chapter internal preloading condition is the basis or condition for preloading the picture reading material in the current chapter. The pre-loading condition in the chapters can specifically be that the reading progress of the current picture reading material is matched with a preset reading progress range, and the preset reading progress range is dynamically determined according to the total number of the picture reading materials in the current chapters and the picture switching operation. For example, assuming that the total number of the picture readings in the current chapter is 20, and the picture switching operation is a sliding operation, the preset reading progress range may be [1,18], so that when the reading progress of the current picture reading is matched with any value in the reading progress range, it indicates that the reading progress of the current picture reading meets the chapter pre-loading condition. It is understood that the preset reading progress range may also be [1,19] or [1,17], which may be set according to practical situations and is not limited specifically herein.
The picture reading material link set is a set composed of at least one picture reading material link. Each chapter comprises at least one picture reading material, each picture reading material corresponds to a respective picture reading material link, and therefore the picture reading material link set corresponding to each chapter comprises the picture reading material link corresponding to each picture reading material in the chapter.
Specifically, the terminal compares the reading progress of the acquired picture reading material with the pre-loading condition in the chapter corresponding to the current chapter. And when the reading progress of the picture reading material meets the preloading condition in the corresponding chapter, the terminal acquires the picture reading material link to be loaded from the preloaded picture reading material link set of the current chapter, and performs picture reading material preloading according to the acquired picture reading material link so as to realize the preloading of the picture reading material to be loaded.
In one embodiment, the terminal dynamically determines the pre-loading condition in the chapter corresponding to the current chapter according to the monitored picture switching operation, and pre-loads the picture reading in the current chapter when the reading progress of the current picture reading meets the pre-loading condition in the dynamically determined chapter.
In one embodiment, when the reading progress of the picture reading material meets the pre-loading condition in the chapter, the terminal determines the picture reading material to be loaded according to the monitored picture switching operation and the currently displayed picture reading material, obtains a picture reading material link corresponding to the picture reading material to be loaded from the picture reading material link set of the current chapter, and then pre-loads the corresponding picture reading material according to the obtained picture reading material link. The terminal can pre-load at least one picture reading before or after the currently displayed picture reading according to the picture switching operation.
When the picture switching operation is a slide-up operation, the terminal preloads and sequences at least one picture reading material behind the currently displayed picture reading material, namely at least one picture reading material with a preloading serial number greater than and closest to the serial number of the currently displayed picture reading material. For example, the number of the currently displayed picture reading is 1, the terminal may preload the picture reading with the number of 2 in the current chapter, and may preload the picture reading with the numbers of 2 and 3 in the current chapter. It should be noted that if the number of the locally pre-loaded picture readings remains unchanged, since a part of the picture readings is pre-loaded in the pre-loading process before the secondary pre-loading process, only one picture reading needs to be pre-loaded in the secondary pre-loading process. For example, assuming that the number of the locally preloaded picture readings is 2, and the number of the currently displayed picture reading is 2, since the picture reading with the number of 3 has been preloaded in the previous preloading process, the preloading process only needs to preload the picture reading with the number of 4.
When the picture switching operation is a downslide operation, the terminal preloads the picture reading materials before the currently displayed picture reading materials according to the preloading logic similar to the preloading logic, and details are not repeated herein.
In one embodiment, when the reading progress of the picture reading material meets the pre-loading condition in the chapter, the terminal determines the picture reading material to be loaded according to the picture switching operation, detects whether the picture reading material to be loaded is stored locally, if so, the picture reading material is not pre-loaded, the picture reading material which is stored locally is directly determined as the pre-loaded picture reading material, and if not, the picture reading material is pre-loaded.
S206, when the reading progress of the picture reading materials meets the cross-chapter pre-loading condition, pre-loading the picture reading material link set of the adjacent chapter of the current chapter, and continuously pre-loading the picture reading materials based on the picture reading material link set of the adjacent chapter.
The cross-chapter preloading condition is the basis or condition for preloading the picture reading materials in the adjacent chapters of the current chapter. The cross-chapter preloading condition may specifically be that the reading progress of the current picture reading material is not matched with a preset reading progress range, and the preset reading progress range is dynamically determined according to the total number of the picture reading materials in the current chapter and the picture switching operation. For example, assuming that the total number of the picture readings in the current chapter is 20, the picture switching operation is a sliding operation, the preset reading progress range is [1,18], and if the current picture reading progress is 19 or 20, since the picture reading progress is not matched with the preset reading progress range, it indicates that the picture reading progress satisfies the cross-chapter preloading condition.
The adjacent chapter refers to a chapter adjacent to the current chapter, and specifically may be a front adjacent chapter or a rear adjacent chapter. The adjacent chapter may be determined by a chapter number, and the chapter having the chapter number closest to the chapter number of the current chapter may be understood as the adjacent chapter of the current chapter.
Specifically, the terminal compares the reading progress of the acquired picture reading material with the cross-chapter preloading condition corresponding to the current chapter. When the reading progress of the picture reading materials meets the corresponding cross-chapter pre-loading condition, the terminal determines the adjacent chapters of the current chapter to be loaded according to the monitored picture switching operation, pre-loads the picture reading material link sets of the adjacent chapters through the server, acquires the picture reading material links to be loaded in the adjacent chapters from the picture reading material link sets of the adjacent chapters, and then pre-loads the corresponding picture reading materials according to the acquired picture reading material links.
In one embodiment, the terminal dynamically determines a cross-chapter preloading condition corresponding to the current chapter according to the monitored picture switching operation. And when the reading progress of the picture reading materials meets the dynamically determined cross-chapter preloading condition, the terminal acquires the picture reading material link set of the adjacent chapter from the server according to the adjacent chapter to be loaded, and preloads the picture reading materials in the adjacent chapter according to the acquired picture reading material link set.
In one embodiment, the terminal can preload at least one picture reading material ranked at the top in the adjacent chapter according to the picture reading material link set of the adjacent chapter, and can also load each picture reading material in the adjacent chapter in batch.
In one embodiment, when the reading progress of the picture reading materials meets the cross-chapter preloading condition, the terminal detects whether the picture reading materials in the adjacent chapters to be loaded exist locally, if so, the picture reading materials in the adjacent chapters are not preloaded, otherwise, the picture reading materials are preloaded according to the picture reading material link set of the adjacent chapters.
And S208, when the reading progress of the picture reading materials progresses to the preloaded picture reading materials, displaying the preloaded picture reading materials.
Specifically, when the reading progress of the picture reading material progresses to the pre-loaded picture reading material, it indicates that the user currently wants to read the pre-loaded picture reading material, the terminal needs to display the pre-loaded picture reading material, and the terminal acquires and displays the pre-loaded picture reading material from the local for the user to read.
In one embodiment, when a user makes a picture reading progress to a preloaded picture reading through a picture switching operation, if a network is in an online state, a terminal can perform preloading of the picture reading according to the picture switching operation of the user while displaying the preloaded picture reading; and if the network is in an off-line state, the terminal directly displays the preloaded picture reading materials. Therefore, offline reading of the picture reading material in an offline state can be realized, and reading fluency is guaranteed. And when the network is switched from the off-line state to the on-line state, the terminal can continue to pre-load the picture reading according to the monitored picture switching operation.
In one embodiment, when there are a plurality of the pre-loaded picture readings, the terminal displays the plurality of pre-loaded picture readings in sequence according to the reading progress of the picture readings.
According to the picture reading material loading method, when the picture switching operation of the picture reading material is monitored, the picture reading material preloading flow in the chapters or the picture reading material preloading flow across the chapters is triggered according to the current picture reading material reading progress so as to improve the loading efficiency of the picture reading material, and when the picture reading material reading progress is progressed to the preloaded picture reading material, the preloaded picture reading material is displayed so as to improve the display efficiency of the picture reading material. The picture reading materials in the current chapter are preloaded based on the picture reading material link set of the current chapter, or the picture reading material link sets of the adjacent chapters are preloaded, the picture reading materials of the cross-chapter are preloaded based on the picture reading material link set, and the loading efficiency of the picture reading materials can be improved.
As shown in fig. 3, in an embodiment, a schematic flow chart of a step of downloading picture reading materials in batch in a picture reading material loading method is provided, where the step specifically includes:
s302, when the batch downloading operation of the picture readings is monitored, a picture reading link set of chapters to be downloaded is obtained.
S304, downloading the picture reading materials in the corresponding chapters to be downloaded in batch according to the picture reading material link set.
And S306, encrypting and storing the downloaded picture reading materials.
And S308, when the reading progress of the current picture reading material is advanced to the picture reading material stored in an encrypted mode, displaying the picture reading material stored in the encrypted mode.
The batch downloading operation is used for triggering a batch downloading process of the picture reading materials. The batch download operation corresponds to at least one chapter to be downloaded. The batch downloading may specifically refer to downloading a batch of picture readings in a serial or parallel manner.
Specifically, the terminal monitors batch downloading operation triggered by a user in real time, determines pre-selected chapters to be downloaded according to the monitored batch downloading operation when the batch downloading operation is monitored, and acquires a picture reading link set of each chapter to be downloaded from the server. And the terminal downloads the picture readings in the chapters to be downloaded in batch according to the picture reading link set of each chapter to be downloaded. After the picture reading is downloaded successfully, the terminal encrypts the downloaded picture reading and stores the encrypted picture reading locally to obtain the encrypted and stored picture reading. When the current picture reading progress is advanced to the picture reading materials stored in an encrypted mode, the fact that the user wants to read the picture reading materials stored in the encrypted mode is indicated, and the terminal acquires the picture reading materials stored in the encrypted mode from the local and displays the picture reading materials for the user to read.
In one embodiment, the terminal determines a plurality of chapters to be downloaded according to the monitored batch downloading operation, acquires the picture reading link set of each chapter to be downloaded, and downloads the picture reading in the plurality of chapters to be downloaded in batch in a parallel and serial combination mode according to the acquired picture reading link set. The terminal can download the picture reading materials in the plurality of chapters to be downloaded in a batch mode in a parallel mode, and the picture reading materials in each chapter to be downloaded can be downloaded in a serial mode.
In one embodiment, the terminal encrypts and stores the downloaded picture reading materials through a preset picture encryption algorithm. The preset picture Encryption algorithm may be a symmetric Encryption algorithm, such as 3DES (Triple Data Encryption Standard), AES (Advanced Encryption Standard), or an asymmetric Encryption algorithm, such as RSA (an asymmetric Encryption algorithm). When the user locally exports the encrypted and stored picture reading material from the client and displays the picture reading material through other clients, the other clients cannot normally display the exported picture reading material, and therefore the safety and controllability of the picture reading material are guaranteed.
In one embodiment, the terminal stores each downloaded picture reading material in an encrypted manner through a picture encryption algorithm. In one embodiment, the terminal acquires a corresponding picture file compression package from an online network or other equipment according to the picture reading material link, and decompresses the picture file compression package to obtain the downloaded picture reading material so as to realize the downloading of the picture reading material. Such as a terminal or server for storing picture readings.
In one embodiment, when monitoring the picture switching operation of a user for a downloaded picture reading material, a terminal determines the picture reading material to be displayed according to the current reading progress of the picture reading material, locally acquires the picture reading material to be displayed and stored in an encrypted manner, and displays the acquired picture reading material. It can be understood that the terminal can decrypt the encrypted and stored picture reading and display the decrypted picture reading.
In one embodiment, when the terminal downloads the corresponding picture reading according to the picture reading link, format conversion is performed on the picture reading to be downloaded through a sharp picture technology (a technology for compressing and encoding pictures), and the picture reading after format conversion is encrypted and stored. Therefore, the size and the flow of the picture reading materials can be reduced, the downloading efficiency of the picture reading materials can be improved, and the storage space of the picture reading materials can be saved. For example, the picture types of the initial picture reading materials can be png, jpg and gif, and the picture reading materials of different picture types can be uniformly converted into the picture reading materials in a sharp format through sharp picture technology.
In the above embodiment, the batch downloading of the picture readings is performed based on the monitored batch downloading operation, so that the downloaded picture readings are directly displayed when the reading progress of the picture readings progresses to the downloaded picture readings, the display efficiency of the picture readings can be improved, and the downloaded picture readings can still be directly displayed in an off-line state, thereby realizing the off-line reading of the picture readings. And moreover, the downloaded picture reading materials are encrypted and stored, so that the controllability of the reading authority of the picture reading materials is ensured.
In one embodiment, when the batch downloading operation of the picture reading is monitored, acquiring a picture reading link set of chapters to be downloaded includes: when the batch downloading operation of the picture reading materials is monitored, obtaining a picture reading material link set and data volume of chapters to be downloaded; triggering download confirmation information corresponding to the chapters to be downloaded based on the data volume; downloading the picture reading materials in the corresponding chapters to be downloaded in batches according to the picture reading material link set, wherein the method comprises the following steps: and when a download confirmation instruction corresponding to the download confirmation information is detected, downloading the picture readings in the corresponding chapters to be downloaded in batch according to the picture reading link set.
The data volume is the total quantity of the picture readings in the chapter to be downloaded, and can be used for representing the flow consumed by downloading the picture readings in the chapter to be downloaded and representing the memory capacity occupied by the picture readings in the chapter to be downloaded. The download confirmation information is information for confirming again whether to download the picture reading in the chapter to be downloaded. And confirming the downloading instruction to be used for instructing the terminal to download the picture reading materials in the chapters to be downloaded in batch.
Specifically, when the terminal monitors batch downloading operation of the picture reading materials, the chapters to be downloaded are determined according to the monitored batch downloading operation, and the picture reading material link set and the data volume of each chapter to be downloaded are obtained from the server. And when one chapter to be downloaded is available, the terminal triggers and generates download confirmation information corresponding to the chapter to be downloaded according to the acquired data volume. When the number of the chapters to be downloaded is multiple, the terminal calculates the data volume of the plurality of chapters to be downloaded according to the data volume of each chapter to be downloaded, and triggers and generates download confirmation information corresponding to the plurality of chapters to be downloaded according to the calculated data volume.
And the terminal displays the generated download confirmation information, detects confirmation operation triggered by the user aiming at the displayed download confirmation information, and generates a corresponding confirmation instruction according to the detected confirmation operation. And when the download confirmation operation triggered by the user according to the displayed download confirmation information is detected, generating a download confirmation instruction in a triggering mode, and downloading the picture reading materials in the corresponding chapters to be downloaded in batches according to the acquired picture reading material link set. And when the download canceling operation triggered by the user according to the displayed download confirmation information is detected, triggering to generate a download canceling instruction, and not downloading the picture reading materials in the chapters to be downloaded.
In one embodiment, the terminal obtains the picture file compression package according to the picture reading material link, and decompresses the picture file compression package to obtain the downloaded picture reading material. Therefore, each picture reading material corresponds to one picture file compression package, and the picture file compression packages corresponding to the picture reading materials in each chapter to be downloaded form the download package corresponding to the chapter to be downloaded. The data size of the chapter to be downloaded may specifically be a data size of a download packet corresponding to the chapter to be downloaded, which may be understood as a packet size.
FIG. 4 is a flowchart illustrating steps of downloading picture reading materials in batches according to another embodiment. When monitoring the downloading trigger operation of the user, the terminal starts to enter the downloading process of the picture reading material and acquires the chapter list information to be downloaded from the server according to the downloading trigger operation. A download trigger operation such as a user's trigger operation of a download button. The terminal displays the acquired chapter list information, detects chapters to be downloaded selected by the user according to the displayed chapter list information, and detects batch downloading operation triggered corresponding to the selected chapters to be downloaded. The chapter list information includes chapter information for each chapter and user download right data. The terminal judges whether the selected chapter can be downloaded or not according to the chapter information corresponding to the selected chapter to be downloaded and the user downloading authority data; if not, the terminal triggers prompt information for exchanging reading coupons to guide the user to obtain the reading coupons, for example, if the user does not exchange reading coupons of a corresponding chapter, the user is guided to exchange the reading coupons, and if resources for exchanging the reading coupons are insufficient, the user is guided to recharge; if the download confirmation information is detected, the picture reading materials in the corresponding chapters to be downloaded are downloaded in batch according to the picture reading material link set.
The method comprises the steps that in the process of downloading picture readings in batches, a terminal dynamically verifies whether the picture readings are successfully downloaded; if the downloading is not successful for the reasons of network environment and the like, retrying is carried out, and the downloading is continued on the basis of the downloaded picture reading; if the downloading is successful, the downloaded picture file compression packet is decompressed locally, and the picture reading obtained through decompression is encrypted and stored. If the type of the picture reading materials is a borrowing type, the terminal can also locally record corresponding borrowing expiration time, specifically, the chapter expiration time of each chapter can be recorded by taking the chapter as a unit. And when the terminal finishes the batch downloading of the picture reading materials, finishing the downloading process.
In the embodiment, the downloading of the picture reading materials is confirmed based on the data volume of the chapters to be downloaded, and the picture reading materials are downloaded in batch according to the download confirmation instruction, so that the phenomenon that the picture reading materials are downloaded in batch to consume too much flow and occupy too much memory capacity can be avoided.
In one embodiment, the downloading of the picture reading materials in the corresponding chapters to be downloaded in batch according to the picture reading material link set comprises: sequentially downloading the picture readings which are not downloaded in the corresponding chapter to be downloaded according to the picture reading link set; when the network is in an off-line state, stopping executing the step of sequentially downloading the picture readings which are not downloaded in the corresponding chapters to be downloaded according to the picture reading link set; and when the network is in an online state, continuing to execute the step of sequentially downloading the picture readings which are not downloaded in the corresponding chapter to be downloaded according to the picture reading link set until all the picture readings in the chapter to be downloaded are downloaded.
Specifically, when the network is in an online state, for each chapter to be downloaded, the terminal downloads the picture readings not yet downloaded in the chapter to be downloaded in sequence according to the picture reading link set of the chapter to be downloaded. And when the network is switched from the online state to the offline state, the terminal stops executing the steps of sequentially downloading the picture readings which are not downloaded in the chapter to be downloaded according to the picture reading link set of the chapter to be downloaded so as to realize the suspension of the picture readings. And when the network is recovered to the online state from the offline state, the terminal continues to execute the picture reading link set according to the chapters to be downloaded, and sequentially downloads the picture reading which is not downloaded in the chapters to be downloaded so as to realize the automatic downloading of the picture reading until all the picture reading in the chapters to be downloaded is completely downloaded.
In one embodiment, when the network is restored from the offline state to the online state, the terminal continues to download the picture readings on the basis of the downloaded picture readings, so that the breakpoint continuous transmission of the picture readings is realized, and all the picture readings in the chapter to be downloaded are downloaded. Therefore, when all the picture readings in the chapter to be downloaded are not successfully downloaded at one time due to problems of network environment and the like, the terminal retries when the network is recovered so as to complete the downloading of the picture readings.
In one embodiment, when the network is restored from the offline state to the online state, the terminal detects the current network type. And when the network type is FIWI, the terminal continues downloading the picture reading materials in the chapter to be downloaded until all the picture reading materials in the chapter to be downloaded are downloaded. When the network type is non-WIFI, the terminal triggers the confirmation information of breakpoint continuous transmission, and when a confirmation instruction triggered by the user aiming at the confirmation information is detected, the downloading of the picture reading materials in the section to be downloaded is continued until all the picture reading materials in the section to be downloaded are downloaded.
In one embodiment, there are multiple chapters to be downloaded. And the terminal downloads the picture reading materials according to the processing logic for each chapter to be downloaded until the picture reading materials in each chapter to be downloaded are completely downloaded.
In one embodiment, the picture reading loading method can also realize batch exchange and downloading of paid chapters. And the terminal displays the chapter list information acquired from the server and marks out the payment chapters according to the chapter information. When the payment chapters selected in batch by the user are detected, the terminal calculates the total amount of resources required for exchanging the selected payment chapters through the server, and acquires chapter list information to be downloaded from the server when the user obtains reading tickets or downloading rights of the selected payment chapters based on the resource exchange consistent with the calculated total amount of resources, so as to realize batch downloading and storage of the picture readings of the plurality of chapters. The terminal downloads the corresponding picture reading according to the picture reading link set of each chapter, and locally and correspondingly records chapter identification, chapter serial number, data volume, picture reading link set, chapter expiration time and other data.
In the embodiment, under the condition that the network environment is unstable, the pause downloading and the automatic downloading of the picture reading materials are dynamically realized based on the real-time network state, so that the downloading efficiency of the picture reading materials is improved under the condition that the effective downloading of the picture reading materials is ensured.
In one embodiment, displaying the encrypted stored picture reading when the current picture reading progress progresses to the encrypted stored picture reading includes: when the current picture reading progress is advanced to the picture reading materials stored in an encrypted mode and the network is in an off-line state, displaying the picture reading materials stored in the encrypted mode; correspondingly recording the work identification corresponding to the displayed picture reading material and the current reading state data; when the network is switched from an off-line state to an on-line state, the recorded reading state data and the work identification are reported to a server; the reading state data is used for indicating the server to locally update the reading state data corresponding to the work identification.
The work identifier, that is, the reading identifier, is used to uniquely identify the reading or the work, and may specifically be the name, number, or code of the reading or the work. A work includes at least one chapter, each chapter including at least one picture reading. The reading state data is data for reflecting the reading state of the user, and can be understood as core data, and specifically includes data such as work reading progress, work reading duration, collection state and the like. The work reading progress is data used for reflecting the progress of the user in reading the work, and particularly can be used for reflecting the fact that the user reads the next chapter of the work, or reflecting the fact that the user reads the next picture reading in the next chapter of the work. The reading progress of the work is such as the 5 th chapter, or the 2 nd picture reading in the 5 th chapter. The work reading time period is used to reflect the length of time that the user spends reading the work, such as 1 hour. The collection states include a collected state and an uncontracted state.
Specifically, when the network is in an offline state, the terminal can display the downloaded picture reading material according to the picture switching operation of the user, so as to realize offline reading of the picture reading material. And when the current picture reading progress is advanced to the picture reading materials stored in an encrypted mode and the current network is in an off-line state, the terminal acquires the picture reading materials stored in the encrypted mode from the local and displays the picture reading materials for the user to read. When displaying the encrypted and stored picture reading materials, the terminal dynamically acquires the current reading state data and dynamically records the work identification corresponding to the picture reading materials in the local. When the network is switched from the off-line state to the on-line state, the terminal reports the reading state data recorded locally and the corresponding work identification to the middle server. And the server locally updates the reading state data corresponding to the work identification according to the received reading state data and the work identification so as to update the received reading state data corresponding to the work identification to the local.
In one embodiment, when the network is switched from the offline state to the online state, the work data and the reading state data recorded by the terminal are merged to obtain the reporting data with the fixed format, and the reporting data with the fixed format is reported to the server.
In one embodiment, the terminal encrypts the combined report data according to a preset data encryption algorithm, and reports the encrypted report data to the server. And the server decrypts the received reported data according to the data decryption algorithm corresponding to the data encryption algorithm, and updates the reading state data corresponding to the work identification according to the decrypted reported data. The preset data encryption algorithm may be a symmetric encryption algorithm such as DES or 3 DES.
In one embodiment, when the reading progress of the current picture reading material is advanced to the picture reading material which is stored in an encrypted mode and the network is in an online state, the terminal displays the picture reading material which is stored in the encrypted mode and reports the current reading state data and the corresponding work identification to the server dynamically.
Fig. 5 is a timing chart of reporting reading status data in the method for loading the image reading material according to an embodiment. When the network is switched from the off-line state to the on-line state, the terminal obtains data to be reported according to the combination of the work identification recorded locally and the current reading state data, encrypts the data to be reported and reports the encrypted data to be reported to the server. The server decrypts the encrypted data to be reported, analyzes the decrypted data to be reported to obtain reading state data such as work reading progress, work reading duration and the like, updates the reading state data obtained by analysis locally corresponding to the work identification, and returns a reporting result to the terminal after the updating is successful. And the terminal clears the local record according to the report result returned by the server so as to avoid repeated reporting. It can be understood that the server updates the parsed reading state data and the work identification locally corresponding to the user identification. The terminal can specifically execute the above operations through a client applicable to an Android and/or IOS operating system, and the server can specifically be a Web server, which can be understood as a server corresponding to the client.
In one embodiment, the terminal locally records reading state data such as work reading progress, work reading duration and the like according to the work dimension. For example, two records are corresponding to one work, and when the reading progress of the work is a chapter mark, the structure or format of the record is as follows:
work identification _ chapter identification Work identification _ work reading duration
In the above embodiment, when the network is switched from the offline state to the online state, the reading state data locally recorded corresponding to the work identifier in the offline state is reported to the server, so that synchronization of the reading state data is realized, and the integrity of the reading state data can be ensured. Therefore, the synchronization of the reading state data among different terminals can be realized, so that when a user changes the terminal and continues to read the same work, the reading progress of the work read in the previous time can be quickly and accurately positioned. Moreover, the server can count the reading condition of each work based on the synchronized reading state data, and determine the pushing strategy parameters of the works based on the counted reading condition.
In one embodiment, when the reading progress of the picture reading material meets the cross-chapter preloading condition, preloading a picture reading material link set of a chapter adjacent to the current chapter, including: when the reading progress of the picture reading material meets the cross-chapter preloading condition, acquiring user downloading authority data corresponding to adjacent chapters of the current chapter; and when the representation of the user downloading authority data has the downloading authority, preloading the picture reading material link set of the adjacent chapters.
The user downloading authority data is data reflecting the downloading authority of the user to the picture reading materials in the corresponding chapters. The user downloading permission data may specifically be whether the corresponding chapter can be downloaded, or whether the reading ticket of the corresponding chapter is provided. The reading tickets of the chapters can be exchanged for equivalent resources.
Specifically, when the reading progress of the current picture reading material meets the cross-chapter pre-loading condition, the terminal determines adjacent chapters of the current chapter, determines adjacent chapters to be downloaded from the determined adjacent chapters according to the monitored picture switching operation, and acquires user downloading authority data corresponding to the adjacent chapters to be downloaded from the server. And the terminal analyzes the acquired user downloading authority data to determine the downloading authority of the user to the adjacent chapters to be downloaded. And when the user is judged to have the download right of the adjacent chapter to be downloaded, the terminal acquires the picture reading material link set of the adjacent chapter to be downloaded from the server so as to realize the preloading of the picture reading material link set of the adjacent chapter.
In one embodiment, when the reading progress of the picture reading material meets the cross-chapter preloading condition, the terminal acquires chapter data and user downloading authority data of chapters adjacent to the current chapter from the server. The chapter data includes chapter identification, chapter number, and pay-per-view chapter. The user download right data includes whether the chapter is downloadable or whether the chapter has been purchased, and the like. And the terminal preloads the picture reading materials in the adjacent chapters according to the acquired chapter data and the user downloading authority data. When the chapter data shows that the adjacent chapters are paid chapters, the terminal judges whether the user has the downloading authority of the adjacent chapters or reads the coupons according to the user downloading authority data. If the downloading permission is judged to be met or the automatic buckled ticket downloading is set by the user, the terminal automatically preloads the picture readings in the adjacent sections and performs decrement updating on the reading volume so as to realize the automatic buckled ticket downloading. And if the download permission is judged not to be provided or the automatic buckled ticket downloading is not set by the user, the terminal triggers corresponding prompt information to prompt the user to obtain a corresponding reading book.
In another embodiment, as shown in fig. 6, a method for loading a picture reading is provided. Referring to fig. 6, the method for loading the picture reading specifically includes the following steps:
s602, when the picture switching operation of the picture reading material is monitored, the reading progress of the current picture reading material is obtained.
S604, when the reading progress of the picture reading materials meets the preloading conditions in the chapters, the picture reading materials are preloaded based on the preloaded picture reading material link set of the current chapters.
And S606, when the reading progress of the picture reading material meets the cross-chapter preloading condition, acquiring user downloading authority data corresponding to the adjacent chapters of the current chapter.
S608, when the representation of the user download authority data has the download authority, preloading the picture reading matter link set of the adjacent chapter, and continuing to perform picture reading matter preloading based on the picture reading matter link set of the adjacent chapter.
And S610, displaying the pre-loaded picture reading material when the picture reading material reading progress is advanced to the pre-loaded picture reading material.
In the embodiment, the picture reading materials of the adjacent chapters are preloaded based on the user downloading authority data, so that the loading efficiency of the picture reading materials is ensured on the basis of ensuring the authority control of the picture reading materials, and the display efficiency of the picture reading materials is ensured.
In one embodiment, the type of the image reading material is a borrowing type, the chapter corresponding to the preloaded image reading material corresponds to a chapter expiration time, and the image reading material loading method further includes: acquiring chapter expiration time; and when the section expiration time meets the expiration clearing condition, automatically clearing the picture readings preloaded in the corresponding sections.
The borrowing type picture reading material refers to a picture reading material which is obtained and read in a borrowing mode. The borrowing type picture reading material has a certain borrowing period, namely, the borrowing expiration time. The chapter expiration time refers to borrowing expiration time corresponding to chapters, the borrowing expiration time is generally recorded by taking chapters as units for the picture readings of the borrowing class, the borrowing expiration time of each picture reading in the chapters is consistent, and therefore the chapter expiration time specifically refers to the borrowing expiration time recorded by the picture reading which corresponds to the earliest preloaded picture reading in the corresponding chapter. The chapter expiration time may be a time point, such as 10/20/2019, indicating that the user does not have the reading right of the picture reading of the corresponding chapter after the time point. The chapter expiration time may also be a time length, such as 20 days, indicating that the user has a reading right for the time length for the picture reading of the corresponding chapter, and beyond the time length, the user no longer has the reading right.
The expiration cleaning condition is a basis or condition for automatically cleaning the preloaded picture reading materials, and specifically may be that the chapter expiration time is less than the current reference time, or the chapter expiration time is less than or equal to a preset time threshold, where the preset time threshold is, for example, 0.
Specifically, the type of the picture reading material is a borrowing type, and when the terminal preloads the picture reading material in the adjacent chapter according to the picture reading material link set of the adjacent chapter, the chapter expiration time of the chapter is correspondingly recorded. The terminal regularly acquires chapter expiration time of local records according to a preset period, and compares the acquired chapter expiration time with preset expiration cleaning conditions. And when the chapter expiration time meets the expiration clearing condition, the terminal automatically clears the picture readings in the corresponding chapter preloaded locally. The preset period can be customized according to actual conditions, such as 1 day.
In one embodiment, the terminal periodically acquires the current server time from the server according to a preset period as the current reference time, and compares the acquired reference time with the chapter expiration time. And when the chapter expiration time is less than the reference time, the terminal automatically cleans the picture readings in the corresponding chapter. The terminal can acquire the current reference time through an online network or other reliable ways. Compared with the method that the current time of the terminal is determined as the current reference time, the method can avoid the problem that the section expiration time does not meet the expiration clearing condition all the time due to the fact that the current reference time is inaccurate when the current time of the terminal is modified by a user.
In one embodiment, the chapter expiration time is a length of time. The terminal periodically acquires chapter expiration time according to a preset period, and dynamically updates the locally recorded chapter expiration time when the acquired chapter expiration time does not meet an expiration clearing condition.
In one embodiment, for the batch-downloaded borrowing picture reading materials, the terminal locally records the chapter expiration time corresponding to each chapter. And the terminal automatically cleans the locally downloaded picture reading according to the recorded chapter expiration time according to the similar processing logic.
FIG. 7 is a flowchart illustrating the steps of automatically cleaning expired image readings according to one embodiment. The terminal regularly triggers an automatic cleaning process of the expired picture reading according to a preset period. And after entering the automatic cleaning process, the terminal requests the current server time from the server to serve as the current reference time, and reads the locally downloaded chapter information to acquire the chapter expiration time. And the terminal compares the acquired chapter expiration time with the server time to judge whether the chapter expiration time is less than the current server time. And if the section expiration time is judged to be less than the server time, the terminal automatically cleans the local download package of the corresponding section, and the flow is ended after cleaning is finished. Otherwise, the flow is directly ended. The download package includes the downloaded picture reading.
In one embodiment, the terminal deletes the downloaded picture reading according to the cleaning triggering operation of the user so as to realize manual cleaning of the picture reading.
In the embodiment, the automatic clearing of the expiration of the borrowed picture reading materials is realized, so that the memory capacity occupied by the expired picture reading materials can be reduced on the basis of realizing the effective control of the reading right, and the terminal resources can be released. Moreover, automatic cleaning of expired image reading materials is a requirement for realizing service functions, so as to ensure the realization of downloading an expired logic, thereby avoiding the risk that the expired image reading materials can still be read by corresponding users.
Fig. 8 is a schematic diagram of a method for loading a picture reading provided in one embodiment. As shown in fig. 4, the loading method of the picture reading materials includes two parallel loading modes of pre-loading and batch downloading. Preloading comprises two preloading modes of intra-chapter preloading and cross-chapter preloading. For the preloading mode, when monitoring the picture switching operation of the picture reading material, the terminal acquires the reading progress of the current picture reading material; when the reading progress of the picture reading materials meets the preloading conditions in the chapters, the terminal preloads the picture reading materials based on the preloaded picture reading material link set of the current chapter; and when the reading progress of the picture reading materials meets the cross-chapter preloading condition, the terminal preloads the picture reading material link sets of the adjacent chapters of the current chapter, and continues to preload the picture reading materials based on the picture reading material link sets of the adjacent chapters. Further, when the picture reading progress progresses to the preloaded picture reading, the preloaded picture reading is displayed.
For the batch downloading mode, when monitoring batch downloading operation of the picture reading materials, the terminal acquires a picture reading material link set of chapters to be downloaded; the terminal downloads the picture reading materials in the corresponding chapters to be downloaded in batch according to the acquired picture reading material link sets; and the terminal encrypts and stores the downloaded picture reading materials. Further, when the reading progress of the picture reading material progresses to the encrypted and stored picture reading material, the encrypted and stored picture reading material is displayed.
It can be understood that, when the picture reading materials in the chapters or across the chapters are preloaded in the preloading mode, if the picture reading materials to be loaded are downloaded to the local in a batch downloading mode, the preloading operation is not performed on the downloaded picture reading materials.
In one embodiment, the steps performed by the terminal in the various embodiments of the present application may be performed by a client running on the terminal. The client is an APP (Application) installed in the terminal, taking picture readings as cartoons as an example, and the client may be specifically a cartoon APP. The cartoon APP is used as an application program installed on the terminal, contents such as picture readings and the like are stored in the server, and the client pulls corresponding contents from the server for displaying according to the triggering operation of the user. Cartoon APP as content consumption type APP needs to provide the capability or function of downloading online content to the local for local reading, and also needs to ensure smooth and complete reading experience. The picture reading loading method provided by one or more embodiments of the application can realize local reading of the picture reading and can ensure smooth and complete reading experience. In addition, the integrity of the core data can be guaranteed through the report of the reading state data, and data support is provided for the data construction of products.
In one embodiment, currently, the picture reading material is generally an online picture reading material, and online reading needs to be performed through an internet terminal device such as a mobile phone. When the client reads the picture reading materials, the client needs to be capable of supporting off-line reading of the picture reading materials, that is, the picture reading materials can still be read under the condition of network disconnection or poor network environment. The picture reading material loading method can be used for realizing off-line reading of the picture reading material.
It can be understood that both the novel APP and the video APP can realize off-line reading, but the novel or video scene has certain difference from the picture reading scene in the application. The novel APP is basically text content, and the text content is usually stored in a local directory of a client during reading, or chapter content is supported to be downloaded to the local directory so as to be loaded and displayed in weak network or no network. Video APPs typically support video content caching, preloading video content for a period of time to cache when played, or supporting downloading of selected episodes to a local directory for viewing without a network. Compared with text contents, the image reading material in the application has larger data volume, and the pre-loading in chapters and across chapters needs to be considered, and scenes such as automatic cleaning, encrypted storage and the like of expired image reading materials need to be considered. Compared with video streams, the picture reading materials have great difference in the aspects of preloading, batch downloading, caching and the like, and the video player and the picture player have great difference in the implementation mechanisms.
According to the method and the device, through the intra-chapter preloading and cross-chapter preloading of the picture reading, the non-perception preloading of the picture reading can be achieved, the loading efficiency of the picture reading is guaranteed, and the display efficiency of the picture reading is guaranteed. According to the method and the device, the batch downloading of the picture reading materials can be realized under the condition that the user has the downloading authority, and the functions of breakpoint continuous transmission, flow downloading reminding and the like of the picture reading material downloading can be realized in the batch downloading process. In addition, for the borrowed picture reading materials, the expired picture reading materials can be automatically cleaned.
It should be understood that, although the steps in the flowcharts of the embodiments of the present application are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in various embodiments may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
As shown in fig. 9, in one embodiment, there is provided a picture reading loading apparatus 900, the picture reading loading apparatus 900 including: a monitoring module 902, a first pre-loading module 904, a second pre-loading module 906, and a display module 908, wherein,
the monitoring module 902 is configured to acquire a current reading progress of the image reading material when an image switching operation of the image reading material is monitored;
the first pre-loading module 904 is configured to perform pre-loading of the picture reading material based on a pre-loaded picture reading material link set of a current chapter when the reading progress of the picture reading material meets a pre-loading condition in the chapter;
the second preloading module 906 is configured to preload the picture reading link set of the adjacent chapter of the current chapter when the picture reading progress meets the cross-chapter preloading condition, and continue to perform picture reading preloading based on the picture reading link set of the adjacent chapter;
a display module 908 for displaying the pre-loaded picture reading material when the picture reading progress progresses to the pre-loaded picture reading material.
In one embodiment, the image reading material loading device 900 further includes: a batch download module;
the batch downloading module is used for acquiring a picture reading link set of chapters to be downloaded when the batch downloading operation of the picture reading is monitored; downloading the picture readings in the corresponding chapters to be downloaded in batch according to the picture reading link set; encrypting and storing the downloaded picture reading; and when the reading progress of the current picture reading material is advanced to the picture reading material stored in an encrypted mode, displaying the picture reading material stored in the encrypted mode.
In one embodiment, the batch downloading module is further configured to acquire a picture reading link set and a data volume of the chapters to be downloaded when the batch downloading operation of the picture reading is monitored; triggering download confirmation information corresponding to the chapters to be downloaded based on the data volume; and when a download confirmation instruction corresponding to the download confirmation information is detected, downloading the picture readings in the corresponding chapters to be downloaded in batch according to the picture reading link set.
In one embodiment, the batch downloading module is further configured to sequentially download the picture readings that have not been downloaded in the corresponding chapters to be downloaded according to the picture reading link set; when the network is in an off-line state, stopping executing the step of sequentially downloading the picture readings which are not downloaded in the corresponding chapters to be downloaded according to the picture reading link set; and when the network is in an online state, continuing to execute the step of sequentially downloading the picture readings which are not downloaded in the corresponding chapter to be downloaded according to the picture reading link set until all the picture readings in the chapter to be downloaded are downloaded.
In one embodiment, the batch downloading module is further configured to display the encrypted and stored picture reading materials when the current picture reading material reading progress is advanced to the encrypted and stored picture reading materials and the network is in an offline state; correspondingly recording the work identification corresponding to the displayed picture reading material and the current reading state data; when the network is switched from an off-line state to an on-line state, the recorded reading state data and the work identification are reported to a server; the reading state data is used for indicating the server to locally update the reading state data corresponding to the work identification.
In one embodiment, the second preloading module 906 is further configured to, when the reading progress of the image reading material meets the cross-chapter preloading condition, obtain user download permission data corresponding to a chapter adjacent to the current chapter; and when the representation of the user downloading authority data has the downloading authority, preloading the picture reading material link set of the adjacent chapters.
In one embodiment, the type of the picture reading material is a borrowing type, and the section corresponding to the preloaded picture reading material corresponds to section expiration time; the picture reading material loading device 900 further includes: an expired cleaning module;
the overdue cleaning module is used for acquiring chapter expiration time; and when the section expiration time meets the expiration clearing condition, automatically clearing the picture readings preloaded in the corresponding sections.
FIG. 10 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be the terminal 110 in fig. 1. As shown in fig. 10, the computer apparatus includes a processor, a memory, a network interface, an input device, and a display screen connected through a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program which, when executed by the processor, causes the processor to implement the picture reading loading method. The internal memory may also store a computer program, and the computer program, when executed by the processor, may cause the processor to perform the method for loading the image reading material. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the image reading material loading device provided by the present application can be implemented in the form of a computer program, and the computer program can be run on a computer device as shown in fig. 10. The memory of the computer device may store various program modules constituting the picture reading material loading apparatus, such as the monitoring module 902, the first preloading module 904, the second preloading module 906 and the display module 908 shown in fig. 9. The computer program constituted by the respective program modules causes the processor to execute the steps in the picture reading material loading method of the respective embodiments of the present application described in the present specification.
For example, the computer device shown in fig. 10 may execute step S202 through the monitoring module 902 in the picture reading material loading apparatus shown in fig. 9. The computer device may perform step S204 by the first preload module 904. The computer device may perform step S206 by the second preload module 906. The computer device may perform step S208 through the display module 908.
In one embodiment, a computer device is provided, which includes a memory and a processor, the memory storing a computer program, the computer program, when executed by the processor, causing the processor to perform the steps of the above-described picture reading loading method. The steps of the image reading material loading method may be steps in the image reading material loading methods of the above embodiments.
In one embodiment, a computer-readable storage medium is provided, which stores a computer program that, when executed by a processor, causes the processor to perform the steps of the above-described picture reading loading method. The steps of the image reading material loading method may be steps in the image reading material loading methods of the above embodiments.
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 can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
All possible combinations of the technical features in the above embodiments may not be described for the sake of brevity, but should be considered as being within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (12)

1. An image reading material loading method comprises the following steps:
when the picture switching operation of the picture reading is monitored, acquiring the reading progress of the current picture reading;
when the reading progress of the picture reading material meets the preloading condition in the chapter, then
Preloading the picture reading materials based on the preloaded picture reading material link set of the current chapter;
when the reading progress of the picture reading material meets the cross-chapter preloading condition, then
Preloading picture reading matter link sets of adjacent chapters of the current chapter, and continuing to perform picture reading matter preloading based on the picture reading matter link sets of the adjacent chapters;
displaying the pre-loaded picture reading material when the picture reading material reading progress is advanced to the pre-loaded picture reading material;
the method further comprises the following steps:
when the batch downloading operation of the picture readings is monitored, acquiring a picture reading link set of chapters to be downloaded;
downloading the picture reading materials in the corresponding chapters to be downloaded in batch according to the picture reading material link set;
encrypting and storing the downloaded picture reading;
displaying the picture reading materials stored in an encrypted manner when the reading progress of the current picture reading materials is advanced to the picture reading materials stored in the encrypted manner;
when the current reading progress of the picture reading material is advanced to the picture reading material stored in an encrypted mode, the displaying of the picture reading material stored in the encrypted mode comprises the following steps:
when the current picture reading progress is advanced to the picture reading materials stored in an encrypted mode and the network is in an off-line state, displaying the picture reading materials stored in the encrypted mode;
correspondingly recording the work identification corresponding to the displayed picture reading material and the current reading state data;
when the network is switched from an off-line state to an on-line state, the recorded reading state data and the work identification are reported to a server; the reading state data is used for indicating the server to locally update the reading state data corresponding to the work identification.
2. The method according to claim 1, wherein the step of acquiring the linked set of the picture reading materials of the chapters to be downloaded when the batch downloading operation of the picture reading materials is monitored comprises the steps of:
when the batch downloading operation of the picture reading materials is monitored, obtaining a picture reading material link set and data volume of chapters to be downloaded;
triggering download confirmation information corresponding to the chapters to be downloaded based on the data volume;
the downloading of the picture reading materials in the corresponding chapters to be downloaded in batches according to the picture reading material link set comprises the following steps:
and when a download confirmation instruction corresponding to the download confirmation information is detected, downloading the picture readings in the corresponding chapters to be downloaded in batch according to the picture reading link set.
3. The method according to claim 1, wherein the downloading of the picture reading materials in the corresponding chapters to be downloaded in batches according to the picture reading material link set comprises:
according to the picture reading matter link set, sequentially downloading the picture reading matters which are not downloaded in the corresponding chapters to be downloaded;
when the network is in an off-line state, stopping executing the step of sequentially downloading the picture readings which are not downloaded in the corresponding chapters to be downloaded according to the picture reading link set;
and when the network is in an online state, continuing to execute the step of sequentially downloading the picture readings which are not downloaded in the corresponding chapter to be downloaded according to the picture reading link set until all the picture readings in the chapter to be downloaded are downloaded.
4. The method of claim 1, wherein when the reading progress of the picture reading material meets a cross-chapter preloading condition, then preloading a picture reading material link set of a chapter adjacent to a current chapter, comprises:
when the reading progress of the picture reading material meets the cross-chapter preloading condition, acquiring user downloading authority data corresponding to the adjacent chapters of the current chapter;
and when the representation of the user downloading authority data has the downloading authority, preloading the picture reading material link set of the adjacent chapters.
5. The method of any one of claims 1 to 4, wherein the type of the picture reading material is a borrowing type, and the corresponding section of the preloaded picture reading material corresponds to a section expiration time, and the method further comprises the following steps:
acquiring the section expiration time;
and when the section expiration time meets an expiration clearing condition, automatically clearing the picture readings preloaded in the corresponding section.
6. A picture reading loading device, comprising:
the monitoring module is used for acquiring the reading progress of the current picture reading material when the picture switching operation of the picture reading material is monitored;
the first preloading module is used for preloading the picture reading material based on the preloaded picture reading material link set of the current chapter when the reading progress of the picture reading material meets the preloading condition in the chapter;
the second preloading module is used for preloading the picture reading material link set of the adjacent chapter of the current chapter when the picture reading material reading progress meets the cross-chapter preloading condition, and continuing to perform picture reading material preloading based on the picture reading material link set of the adjacent chapter;
the display module is used for displaying the pre-loaded picture reading material when the picture reading material reading progress is advanced to the pre-loaded picture reading material;
the picture reading loading device also comprises a batch downloading module, wherein the batch downloading module is used for acquiring a picture reading link set of chapters to be downloaded when the batch downloading operation of the picture reading is monitored; downloading the picture readings in the corresponding chapters to be downloaded in batch according to the picture reading link set; encrypting and storing the downloaded picture reading; displaying the encrypted and stored picture reading material when the reading progress of the current picture reading material is advanced to the encrypted and stored picture reading material;
the batch downloading module is also used for displaying the encrypted and stored picture reading materials when the reading progress of the current picture reading materials is advanced to the encrypted and stored picture reading materials and the network is in an off-line state; correspondingly recording the work identification corresponding to the displayed picture reading material and the current reading state data; when the network is switched from an off-line state to an on-line state, the recorded reading state data and the work identification are reported to a server; the reading state data is used for indicating the server to locally update the reading state data corresponding to the work identification.
7. The device of claim 6, wherein the batch downloading module is further configured to acquire the picture reading link set and the data volume of the chapters to be downloaded when the batch downloading operation of the picture reading is monitored; triggering download confirmation information corresponding to the chapters to be downloaded based on the data volume; and when a download confirmation instruction corresponding to the download confirmation information is detected, downloading the picture readings in the corresponding chapters to be downloaded in batch according to the picture reading link set.
8. The device of claim 6, wherein the batch downloading module is further configured to sequentially download the picture readings not downloaded in the corresponding chapters to be downloaded according to the picture reading link set; when the network is in an off-line state, stopping executing the step of sequentially downloading the picture readings which are not downloaded in the corresponding chapters to be downloaded according to the picture reading link set; and when the network is in an online state, continuing to execute the step of sequentially downloading the picture readings which are not downloaded in the corresponding chapter to be downloaded according to the picture reading link set until all the picture readings in the chapter to be downloaded are downloaded.
9. The device of claim 6, wherein the second preloading module is further configured to obtain user download permission data corresponding to a chapter adjacent to a current chapter when the reading progress of the picture reading meets a cross-chapter preloading condition; and when the representation of the user downloading authority data has the downloading authority, preloading the picture reading material link set of the adjacent chapters.
10. The device as claimed in any one of claims 6 to 9, wherein the type of the picture reading material is a borrowing type, and the corresponding chapter of the preloaded picture reading material corresponds to a chapter expiration time; the picture reading loading device further comprises: the overdue cleaning module is used for acquiring chapter expiration time; and when the section expiration time meets the expiration clearing condition, automatically clearing the picture readings preloaded in the corresponding sections.
11. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 5.
12. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 5.
CN201910974086.0A 2019-10-14 2019-10-14 Picture reading material loading method and device, storage medium and computer equipment Active CN110765382B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910974086.0A CN110765382B (en) 2019-10-14 2019-10-14 Picture reading material loading method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910974086.0A CN110765382B (en) 2019-10-14 2019-10-14 Picture reading material loading method and device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN110765382A CN110765382A (en) 2020-02-07
CN110765382B true CN110765382B (en) 2022-05-17

Family

ID=69331181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910974086.0A Active CN110765382B (en) 2019-10-14 2019-10-14 Picture reading material loading method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN110765382B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113791716A (en) * 2020-12-02 2021-12-14 北京沃东天骏信息技术有限公司 Picture display method and device, electronic equipment and computer readable medium
CN113934485A (en) * 2021-09-06 2022-01-14 青岛海信移动通信技术股份有限公司 Terminal device and interface display method

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6622168B1 (en) * 2000-04-10 2003-09-16 Chutney Technologies, Inc. Dynamic page generation acceleration using component-level caching
US20080119953A1 (en) * 2005-04-07 2008-05-22 Iofy Corporation Device and System for Utilizing an Information Unit to Present Content and Metadata on a Device
GB0622823D0 (en) * 2006-11-15 2006-12-27 British Broadcasting Corp Accessing content
CN101794567B (en) * 2010-02-10 2014-01-01 中兴通讯股份有限公司 Method and terminal for loading pictures
US20130238975A1 (en) * 2012-03-12 2013-09-12 Apple Inc. Off-line presentation of web content
CN103457960B (en) * 2012-05-15 2018-03-09 腾讯科技(深圳)有限公司 The method and system of load document in web game
CN104572650A (en) * 2013-10-11 2015-04-29 中兴通讯股份有限公司 Method and device for realizing browser intelligent reading and terminal comprising device
US9664577B1 (en) * 2014-08-26 2017-05-30 Amazon Technologies, Inc. Force-sensitive resistor assemblies and methods
CN105721340B (en) * 2014-12-05 2019-06-04 北大方正集团有限公司 A kind of online reading pre-load amount calculation method and device
CN106611032A (en) * 2015-10-27 2017-05-03 广州市动景计算机科技有限公司 Webpage pre-loading method and device
CN108228044B (en) * 2016-12-15 2021-02-09 北大方正集团有限公司 Method, system and terminal for turning pages in electronic book reading

Also Published As

Publication number Publication date
CN110765382A (en) 2020-02-07

Similar Documents

Publication Publication Date Title
CN112182473B (en) Page operation behavior playback method and device, computer equipment and storage medium
CN111177616B (en) Page restoration display method and device, computer equipment and storage medium
CN110765382B (en) Picture reading material loading method and device, storage medium and computer equipment
US20090259730A1 (en) Content accumulating system, user terminal apparatus, content accumulating method,content accumulating program and storage medium
US20080183608A1 (en) Payment system and method for web-based video editing system
CN108334436A (en) Optimization method, device, equipment and the computer readable storage medium of application software
JP2001357312A (en) Information processor, file server, method and system for charging management, and recording medium with program recorded
CN102947793A (en) Information processing device
WO2014108182A1 (en) Storage system and method of storing and managing data
CN106066791A (en) The gray scale dissemination method of application and device
EP1906332A2 (en) Secure device having key management function and information processing apparatus
CN106412106B (en) Message sending method and device
CN107103560A (en) Reproduce the apparatus and method of content of multimedia
CN112714359A (en) Video recommendation method and device, computer equipment and storage medium
CN111698537B (en) Multimedia data processing method, device, equipment and storage medium
CN112416450B (en) Resource encryption and display method and system
US20160110526A1 (en) Systems and methods of sharing media content with digital rights management (drm)
CN114584821B (en) Video processing method and device
US8239508B2 (en) Storage system and data management method in storage system
WO2007109373A2 (en) Recording over the key in otp encryption
CN112035206B (en) Message processing method and device
CN111181905B (en) File encryption method and device
JP2008016040A (en) Accounting management server
EP1773059A1 (en) Data streaming method for portable tamper-proof devices
CN113014956B (en) Video playing method and device

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