CN106933964A - A kind of method, device and electronic equipment for determining to read duration - Google Patents
A kind of method, device and electronic equipment for determining to read duration Download PDFInfo
- Publication number
- CN106933964A CN106933964A CN201710068238.1A CN201710068238A CN106933964A CN 106933964 A CN106933964 A CN 106933964A CN 201710068238 A CN201710068238 A CN 201710068238A CN 106933964 A CN106933964 A CN 106933964A
- Authority
- CN
- China
- Prior art keywords
- reading
- current
- current reading
- time length
- time
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 110
- 230000001960 triggered effect Effects 0.000 claims abstract description 27
- 238000012790 confirmation Methods 0.000 claims description 5
- 230000004913 activation Effects 0.000 abstract 1
- 238000012217 deletion Methods 0.000 abstract 1
- 230000037430 deletion Effects 0.000 abstract 1
- 238000004321 preservation Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 14
- 238000009825 accumulation Methods 0.000 description 9
- 230000005540 biological transmission Effects 0.000 description 8
- 230000000694 effects Effects 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 230000001186 cumulative effect Effects 0.000 description 6
- 238000001514 detection method Methods 0.000 description 5
- 230000015572 biosynthetic process Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 238000003786 synthesis reaction Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/02—Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators
- G06F15/025—Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators adapted to a specific application
- G06F15/0291—Digital computers in general; Data processing equipment in general manually operated with input through keyboard and computation using a built-in program, e.g. pocket calculators adapted to a specific application for reading, e.g. e-books
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2458—Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
- G06F16/2462—Approximate or statistical queries
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Probability & Statistics with Applications (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Fuzzy Systems (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Telephonic Communication Services (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Embodiments of the invention disclose it is a kind of determine to read the method for duration, device and electronic equipment, be related to e-book reading technical field, be capable of the reading duration of more accurately counting user.The method for determining to read duration, including:Determine user's reading current book reads duration when secondary;Time data ought be read to be preserved, it is described when time read data include it is described when time reading duration and correspondence is described when the duration mark for time reading duration distribution;When machine is triggered when sending, will be described when time reading data is activation is to server, so that the reading duration of user described in the server statistics;If receiving the duration mark that the server is returned, data deletion will be read when secondary described in preservation.Determination of the present invention suitable for e-book reading duration.
Description
Technical Field
The invention relates to the technical field of electronic book reading, in particular to a method and a device for determining reading time and electronic equipment.
Background
With the development of science and technology, more and more electronic digital devices have the function of reading electronic books, and even have terminal devices specially used for reading electronic books.
The electronic book is also called e-book, and the contents of the book are manufactured into an electronic version and then put on the internet for sale. After a purchaser pays by using a credit card or electronic money, the purchaser can download and use a special browser to perform offline reading on a computer or other tools which can be added with reader applications, such as a mobile phone and electronic paper, and enhance reading experience through searching, annotation, hyperlink and the like, and the adopted page turning system is similar to page turning of a paper book.
In order to enhance the reading experience of the user, the server can determine the average reading speed of the user according to the reading time length and the reading character number of each time of the user uploaded by the client, so that the time length for the user to finish reading the electronic book is determined, and the user is prompted in time.
In the prior art, a client uploads reading time length data of a user to a server, and a server performs accumulation statistics on each reading time length of the user to obtain the overall reading time length of the user for a certain book. Because a confirmation process is not established between the client and the server, the problem that the reading time length statistics is inaccurate due to the fact that the server does not receive the reading time length data or repeatedly calculates the reading time length easily occurs.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for determining a reading duration, and an electronic device, which can count the reading duration more accurately.
In a first aspect, an embodiment of the present invention provides a method for determining a reading duration, including:
determining the current reading time of a user reading a current book;
storing current reading data locally, wherein the current reading data comprises the current reading time length and a time length identifier distributed corresponding to the current reading time length;
when the sending opportunity is triggered, sending the current reading data to a server so that the server counts the reading duration of the user;
if the time length identification returned by the server is received, deleting the stored current reading data;
and if the time length identification returned by the server is not received, the current reading data is sent to the server again when the next sending opportunity is triggered.
With reference to the first aspect, in a first implementation manner of the first aspect, the sending opportunity includes: the current book close, home screen key is triggered and/or account number switches.
With reference to the first aspect, in a second implementation manner of the first aspect, the determining a current reading time of the user reading the current book includes:
recording the current reading starting time after detecting that a user opens a book content page;
when a preset reading interruption event is detected, recording the current reading ending time; wherein the predetermined reading interruption event is a reading stop event except for the book content page which is actively closed by the user;
and calculating the current reading time length according to the current reading starting time and the current reading ending time.
With reference to the second implementation manner of the first aspect, in a third implementation manner of the first aspect, the predetermined reading interruption event includes: in the reading process, the event of covering the reading interface by a half screen or a full screen, the killing of the reading process or the crash of the reading software are carried out.
With reference to the second implementation manner of the first aspect, in a fourth implementation manner of the first aspect, when a predetermined reading interruption event is detected, the method further includes:
when a preset reading pause event is detected, recording current reading pause time;
after the preset reading pause event is detected to be finished, recording the current reading continuing time;
wherein, according to the current reading starting time and the current reading ending time, calculating the current reading time length comprises:
and calculating the current reading time length according to the current reading starting time, the current reading pause time, the current continuous reading time and the current reading ending time.
With reference to the fourth embodiment of the first aspect, in a fifth embodiment of the first aspect, the predetermined reading pause event comprises: view catalog, content search, pop-up menu, or order half-screen mask.
With reference to the first aspect or any one of the first to fifth embodiments of the first aspect, in a sixth embodiment of the first aspect,
after determining the current reading time length for the user to read the current book, the method further comprises:
determining the total page number of effective pages in the displayed content pages of the book in the current reading time length;
determining the number of characters in each effective page;
determining the total number of characters of the content page displayed by the book in the current reading time length according to the total number of effective pages in the content page displayed by the book in the current reading time length and the number of characters in each effective page;
wherein, the current reading data further comprises: and the total number of characters of the content page displayed by the book in the current reading time length.
With reference to the sixth implementation manner of the first aspect, in a seventh implementation manner of the first aspect, the determining a total number of pages of valid pages in content pages displayed by the book in the current reading time period includes: determining whether a duration of a first content page displayed by the book within the current reading duration is greater than a predetermined threshold; if the first content page is larger than a preset threshold value, determining that the first content page is a valid page; and counting the total number of effective pages in the displayed content pages of the book in the current reading time.
In a second aspect, an embodiment of the present invention provides an apparatus for determining a reading duration, including:
the reading duration determining module is used for determining the current reading duration of the current book read by the user;
the storage module is used for storing current reading data, and the current reading data comprises the current reading time length and a time length identifier distributed corresponding to the current reading time length;
the sending module is used for sending the current reading data to a server when the sending opportunity is triggered so as to enable the server to count the reading duration of the user;
and the deleting module is used for deleting the stored current reading data if the time length identification returned by the server is received, and informing the sending module to send the current reading data to the server again when the next sending opportunity is triggered if the time length identification returned by the server is not received.
With reference to the second aspect, in a first implementation manner of the second aspect, the sending opportunity includes: the current book close, home screen key is triggered and/or account number switches.
With reference to the second aspect, in a second implementation manner of the second aspect, the reading duration determining module includes:
the first detection submodule is used for recording the current reading starting time after detecting that a user opens a book content page;
the second detection submodule is used for counting and recording the current reading ending time when a preset reading interruption event is detected; wherein the predetermined reading interruption event is a reading stop event except for the book content page which is actively closed by the user;
and the first calculating submodule is used for calculating the current reading time length according to the current reading starting time and the current reading ending time.
With reference to the second embodiment of the second aspect, in a third embodiment of the second aspect, the predetermined reading interruption event comprises: in the reading process, the event of covering the reading interface by a half screen or a full screen, the killing of the reading process or the crash of the reading software are carried out.
With reference to the second implementation manner of the second aspect, in a fourth implementation manner of the second aspect, the second detection sub-module is further configured to count the current reading pause time when a predetermined reading pause event is detected before the current reading end time when a predetermined reading interruption event is detected; after the preset reading pause event is detected to be finished, recording the current reading continuing time;
the first calculating submodule is specifically configured to calculate a current reading time length according to the current reading start time, the current reading pause time, the current continuous reading time, and the current reading end time.
With reference to the fourth embodiment of the second aspect, in a fifth embodiment of the second aspect, the predetermined reading pause event comprises: view catalog, content search, pop-up menu, or order half-screen mask.
With reference to the second aspect or any one of the first to fifth embodiments of the second aspect, in a sixth embodiment of the second aspect, the apparatus further comprises:
the character number determining module is used for determining the total page number of effective pages in the content pages displayed in the current reading time length of the book; determining the number of characters in each effective page; determining the total number of characters of the content page displayed by the book in the current reading time length according to the total number of effective pages in the content page displayed by the book in the current reading time length and the number of characters in each effective page;
wherein, the current reading data further comprises: and the total number of characters of the content page displayed by the book in the current reading time length.
With reference to the sixth implementation manner of the second aspect, in a seventh implementation manner of the second aspect, the character number determination module includes:
the first determining submodule is used for determining the total page number of effective pages in the displayed content pages of the book in the current reading time length;
a second determining submodule for determining the number of characters in each effective page;
and the third determining submodule is used for determining the total number of characters of the content page displayed in the current reading time length of the book according to the total number of effective pages in the content page displayed in the current reading time length of the book and the number of characters in each effective page.
With reference to the seventh implementation manner of the second aspect, in an eighth implementation manner of the second aspect, the first determining submodule includes:
the judging unit is used for determining whether the time length of a first content page displayed by the book in the current reading time length is greater than a preset threshold value;
a determining unit, configured to determine that a first content page displayed in the current reading time period of the book is a valid page if the time period of the first content page is greater than a predetermined threshold;
and the counting unit is used for counting the total page number of the effective pages in the content pages displayed in the current reading time of the book.
In a third aspect, an embodiment of the present invention provides a method for determining a reading duration, including:
receiving current reading data sent by a client, wherein the current reading data comprises current reading time length and a time length identifier distributed corresponding to the current reading time length;
counting the reading time of the user according to the current reading time;
and returning the time length identification to the client so that the client deletes the stored current reading data according to the time length identification.
With reference to the third aspect, in a first implementation manner of the third aspect, the counting, according to the current reading time length, the reading time length of the user includes:
if the time length identification is not stored, counting the reading time length of the user according to the current reading time length, and storing the time length identification;
and if the time length identification is stored, giving up the statistics of the reading time length.
With reference to the third aspect, in a second implementation manner of the third aspect, the counting reading time periods of the user according to the current reading time period includes:
and according to the current reading data, performing accumulation statistics on the reading time of the user reading the book to obtain the overall reading time spent by the user reading the book.
With reference to the third aspect and the first or second implementation manner of the third aspect, in a third implementation manner of the third aspect, the current reading data further includes: the total number of characters of the content page displayed by the book in the current reading time length;
after counting the reading duration of the user according to the current reading duration, the method further comprises the following steps:
accumulating and counting the total number of characters of the content page displayed by the book in each reading time of the user to obtain the total number of the characters read by the user;
and determining the average reading speed of the user according to the total number of words read by the user for reading the book and the overall reading time spent by the user for reading the book.
With reference to the third embodiment of the third aspect, in a fourth embodiment of the third aspect, the method for determining the reading duration further includes:
and determining the total time length spent by the user for reading the book according to the average reading speed of the user and the total number of characters of the book.
In a fourth aspect, an embodiment of the present invention provides an apparatus for determining a reading duration, including:
the reading data receiving module is used for receiving current reading data sent by a client, and the current reading data comprises current reading time length and a time length identifier distributed corresponding to the current reading time length;
the counting module is used for counting the reading time of the user according to the current reading data;
and the receiving confirmation module is used for returning the time length identification to the client so that the client deletes the stored current reading data according to the time length identification.
With reference to the fourth aspect, in a first implementation manner of the fourth aspect, the statistical module includes:
the judgment submodule is used for judging whether the time length mark is stored or not;
the accumulation control submodule is used for counting the reading time length of the user according to the current reading time length and storing the time length identification if the time length identification is not stored; and if the time length identification is stored, giving up the statistics of the reading time length.
With reference to the fourth aspect, in a second implementation manner of the fourth aspect, the statistics module is specifically configured to perform cumulative statistics on the reading time of the user reading the book according to the current reading data, so as to obtain an overall reading time that the user has spent reading the book.
With reference to the fourth aspect, the first or second implementation manner of the fourth aspect, in a third implementation manner of the fourth aspect, the current reading data further includes: the total number of characters of the content page displayed by the book in the current reading time length;
wherein the apparatus further comprises:
a total character number accumulation module, configured to perform accumulation statistics on the total character number of the content page displayed by the book in each reading duration of the user, so as to obtain the total read character number of the book read by the user;
and the reading speed determining module is used for determining the average reading speed of the user according to the total number of words read by the user for reading the book and the overall reading time spent by the user for reading the book.
With reference to the third embodiment of the fourth aspect, in a fourth embodiment of the fourth aspect, the apparatus further comprises: and the total duration determining module is used for determining the total duration spent by the user for reading the book according to the average reading speed of the user and the total number of characters of the book.
In a fifth aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, and is used for executing the method for determining the reading time length in any one of the foregoing embodiments.
The method, the device and the electronic equipment for determining the reading time provided by the embodiment of the invention can return the carried time length identification to the client after the server receives the current reading data reported by the client, and the client determines whether the current reading data needs to be sent to the server again according to the receiving condition of the time length identification. Based on the use of the time length identifier, on one hand, the client can send data to the server again when the server does not receive the current reading data, so that the loss of the server side reading data is prevented; on the other hand, when the server successfully receives the current reading data, the repeated transmission of the current reading data is avoided. Therefore, the server can count the reading time of the user more accurately.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating a first embodiment of a method for determining a reading duration according to the present invention;
FIG. 2 is a flowchart illustrating a second embodiment of a method for determining a reading duration according to the present invention;
FIG. 3 is a flowchart illustrating a third embodiment of a method for determining a reading duration according to the present invention;
FIG. 4 is a flowchart illustrating a fourth embodiment of the method for determining a reading duration according to the present invention;
FIG. 5 is a schematic structural diagram of a first apparatus for determining a reading duration according to the present invention;
FIG. 6 is a schematic structural diagram of a second apparatus for determining a reading duration according to the present invention;
FIG. 7 is a schematic structural diagram of a fourth embodiment of the device for determining reading duration according to the present invention;
FIG. 8 is a flowchart illustrating a fifth embodiment of the method for determining a reading duration according to the present invention;
FIG. 9 is a flowchart illustrating a sixth embodiment of a method for determining a reading duration according to the present invention;
FIG. 10 is a flowchart illustrating a seventh embodiment of the method for determining a reading duration according to the present invention;
FIG. 11 is a schematic structural diagram of a fifth embodiment of the device for determining reading duration according to the present invention;
FIG. 12 is a schematic structural diagram of a sixth embodiment of the device for determining reading duration according to the present invention;
FIG. 13 is a schematic structural diagram of a seventh embodiment of the device for determining a reading time length according to the present invention;
fig. 14 is a schematic structural diagram of an embodiment of an electronic device according to the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
The method is used for accurately counting the reading time of the user in the process of reading an electronic book by the user. The method can be applied to electronic equipment which can read electronic books, such as mobile phones, tablet computers, desktop computers and the like. The following description mainly takes the example that the user reads the electronic book through the mobile phone to determine the reading time of the user.
Fig. 1 is a flowchart illustrating a first embodiment of a method for determining a reading duration according to the present invention. As shown in fig. 1, the method of this embodiment may include:
step 101, determining the current reading time of the current book read by the user.
In this embodiment, the client installed on the mobile phone may count the current reading start time after detecting that the user opens the book content page, count the current reading end time after the user closes the book, and determine the time length between the current reading end time and the current reading start time as the current reading time length for the user to read the current book.
The book can be a finished network continuous book or a published book made into an electronic book. The book content page has contents such as characters and/or symbols for a user to read.
And 102, locally storing the current reading data.
In this embodiment, the current reading data includes the current reading time length and a time length identifier allocated to the current reading time length. Optionally, the current reading data may further include: the current user ID (Identification, Identification number or unique code) and the current book ID, so that the server can count the whole reading time spent by the user for reading the book according to the current reading data.
The current reading data may be saved in a database in the local system folder.
And 103, sending the current reading data to a server.
In this embodiment, the client sends the current reading data to the server, so that the server counts the reading duration of the user.
The reading time of the user may be the total reading time spent by the same user when reading different books, or the total reading time spent by the same user when reading the same book.
As an optional implementation manner, in this embodiment, the sending, by the client, the current reading data to the server may include: judging whether a preset sending opportunity is triggered or not; and if the preset sending opportunity is triggered, sending the locally stored current reading data to a server. Wherein the preset sending opportunity comprises: closing the current book, pressing a Home key (the key is triggered to return to the main screen) by the user, and/or switching accounts.
In this embodiment, after the preset sending opportunity is triggered, if the network is normal, the current reading data stored locally can be uploaded to the server. If the network is abnormal, such as the network is disconnected or the connection between the server is failed, or the current reading data is uploaded unsuccessfully, the current reading data is continuously stored locally, and the current reading data is uploaded continuously after a preset sending opportunity is triggered next time.
And step 104, judging whether the time length mark returned by the server is received or not.
In this embodiment, after receiving the reading data sent by the client, the server sends the duration identifier to the client, so as to indicate that the server receives the current reading data uploaded by the client.
In this embodiment, if the client has uploaded the current reading data but does not receive the duration identifier returned by the server, it indicates that the server may not receive the current reading data, or the server receives the data but cannot send the duration identifier to the client due to a network reason. In this case, that is, if the client does not receive the time length identifier returned by the server, the current reading data is sent to the server again when the preset sending opportunity is triggered next time.
And if the client uploads the current reading data and receives the time length identifier returned by the server, which indicates that the server has successfully received the data, executing step 105.
And 105, deleting the data which is stored locally and read at the current time.
In this embodiment, after the server receives the current reading data reported by the client, the time length identifier carried in the current reading data can be returned to the client, and the client determines whether the current reading data needs to be sent to the server again according to the receiving condition of the time length identifier. Based on the use of the time length identifier, on one hand, the client can send data to the server again when the server does not receive the current reading data, so that the loss of the server side reading data is prevented; on the other hand, when the server successfully receives the current reading data, the repeated transmission of the current reading data is avoided. Therefore, the server can count the reading time of the user more accurately.
Example two
Fig. 2 is a flowchart illustrating a second embodiment of the method for determining a reading duration according to the present invention. As shown in fig. 2, the method of this embodiment may include:
step 201, after detecting that the user opens the content page of the book, recording the current reading start time.
In this embodiment, after detecting that the user opens a book content page, the client installed on the mobile phone counts and records the current reading start time.
The book can be a finished network continuous book or a published book made into an electronic book. The book content page has contents such as characters and/or symbols for a user to read.
Step 202, recording the current reading ending time when a preset reading interruption event is detected.
In this embodiment, when the client detects that a predetermined reading interruption event occurs, the current reading end time is recorded.
The predetermined reading interruption event is a reading stop event except for the book content page which is actively closed by the user. The predetermined reading interruption event mainly comprises: in the reading process, the event of covering the reading interface by a half screen or a full screen, the killing of the reading process or the crash of the reading software are carried out. For example, pressing home screen key, black screen, lock screen, call-up login box, order popup box, skip circle reward page, custom background, full screen setting, eye-protection setting, or voice synthesis plug-in download.
Step 203, calculating the current reading time length according to the current reading starting time and the current reading ending time.
In this embodiment, the client calculates the current reading time length according to the current reading start time and the current reading end time. The time length between the time when reading starts and the time when reading ends is the time length when reading.
And step 204, locally storing the current reading data.
In this embodiment, the description of the current reading data and the process of locally storing the current reading data are similar to the step 102 of the above method embodiment, and are not repeated here.
And step 205, sending the current reading data to a server.
In this embodiment, the process of sending the current reading data to the server is similar to step 103 of the above method embodiment, and details are not described here.
And step 206, judging whether the duration identifier returned by the server is received.
In this embodiment, after receiving the reading data sent by the client, the server sends the duration identifier to the client, so as to indicate that the server receives the current reading data uploaded by the client.
In this embodiment, if the client does not receive the time length identifier returned by the server, the current reading data is sent to the server again when the preset sending opportunity is triggered next time, and if the time length identifier returned by the server is received, step 207 is executed.
And step 207, deleting the data which is locally stored and read at the current time.
In the embodiment, the current reading time can be calculated more accurately according to the current reading starting time and the current reading ending time by recording the current reading starting time after detecting that the user opens the book content page, recording the current reading ending time when detecting that a preset reading interruption event occurs in the process of reading the book by the user. Further, after the server receives the current reading data reported by the client, the time length identifier carried in the current reading data can be returned to the client, and the client determines whether the current reading data needs to be sent to the server again according to the receiving condition of the time length identifier. Based on the use of the time length identifier, on one hand, the client can send data to the server again when the server does not receive the current reading data, so that the loss of the server side reading data is prevented; on the other hand, when the server successfully receives the current reading data, the repeated transmission of the current reading data is avoided. Therefore, the server can count the reading time of the user more accurately.
EXAMPLE III
Fig. 3 is a flowchart illustrating a third embodiment of the method for determining a reading duration according to the present invention. As shown in fig. 3, the method of this embodiment may include:
step 301, recording the current reading start time after detecting that the user opens the book content page.
In this embodiment, the process of recording the current reading start time after detecting that the user opens the book content page is similar to step 201 of the above method embodiment, and details are not repeated here.
Step 302, when a predetermined reading pause event is detected, recording the current reading pause time.
In this embodiment, when the client detects that a predetermined reading pause event occurs, the current reading pause time is recorded.
The predetermined reading pause event may include: viewing events such as catalogs, content searches, pop-up menus, or order half-screen masks.
And step 303, recording the current continuous reading time after the preset reading pause event is detected to be finished.
In this embodiment, after the client detects that the predetermined reading pause event is ended, the current reading continuation time is recorded.
And step 304, recording the current reading ending time when a preset reading interruption event is detected.
In this embodiment, the process of recording the current reading ending time when the predetermined reading interruption event is detected is similar to step 202 of the above method embodiment, and details are not repeated here.
And 305, calculating the current reading time length according to the current reading starting time, the current reading pause time, the current continuous reading time and the current reading ending time.
In this embodiment, the time length between the reading start time and the reading end time is subtracted by the time length between the reading pause time and the reading continuation time, which is the reading time length of the user.
And step 306, storing the current reading data locally.
In this embodiment, the description of the current reading data and the process of locally storing the current reading data are similar to the step 102 of the above method embodiment, and are not repeated here. Wherein, the current reading data further comprises: and the total number of characters of the content page displayed by the book in the current reading time length.
And 307, sending the current reading data to a server.
In this embodiment, the process of sending the current reading data to the server is similar to step 103 of the above method embodiment, and details are not described here.
And step 308, judging whether the duration identifier returned by the server is received.
In this embodiment, after the server receives the current reading data sent by the client, the duration identifier is sent to the client to indicate that the server receives the current reading data uploaded by the client.
In this embodiment, if the client does not receive the time length identifier returned by the server, the current reading data is sent to the server again when the preset sending opportunity is triggered next time, and if the time length identifier returned by the server is received, step 309 is executed.
And 309, deleting the data which is stored locally and is read at the current time.
In the embodiment, the current reading time can be calculated more accurately by recording the current reading start time after the user opens the book content page, recording the current reading end time when the user detects that a preset reading interruption event occurs in the process of reading the book, and filtering the reading pause time caused by the preset reading pause event. Further, after the server receives the current reading data reported by the client, the time length identifier carried in the current reading data can be returned to the client, and the client determines whether the current reading data needs to be sent to the server again according to the receiving condition of the time length identifier. Based on the use of the time length identifier, on one hand, the client can send data to the server again when the server does not receive the current reading data, so that the loss of the server side reading data is prevented; on the other hand, when the server successfully receives the current reading data, the repeated transmission of the current reading data is avoided. Therefore, the server can count the reading time of the user more accurately.
Example four
Fig. 4 is a flowchart illustrating a fourth embodiment of the method for determining a reading duration according to the present invention. As shown in fig. 4, the method of this embodiment may include:
step 401, after detecting that the user opens the book content page, recording the current reading start time.
In this embodiment, the process of recording the current reading start time after detecting that the user opens the book content page is similar to step 201 of the above method embodiment, and details are not repeated here.
Step 402, recording the current reading pause time when detecting the occurrence of a preset reading pause event.
In this embodiment, when the client detects that a predetermined reading pause event occurs, the current reading pause time is recorded. The predetermined reading pause event may include: viewing events such as catalogs, content searches, pop-up menus, or order half-screen masks.
And 403, recording the current continuous reading time after the preset reading pause event is detected to be finished.
In this embodiment, after the client detects that the predetermined reading pause event is ended, the current reading continuation time is recorded.
And step 404, recording the current reading ending time when a preset reading interruption event is detected.
In this embodiment, the process of recording the current reading ending time when the predetermined reading interruption event is detected is similar to step 202 of the above method embodiment, and details are not repeated here.
And step 405, calculating the current reading time length according to the current reading starting time, the current reading pause time, the current continuous reading time and the current reading ending time.
In this embodiment, the time length between the reading start time and the reading end time is subtracted by the time length between the reading pause time and the reading continuation time, which is the reading time length of the user.
Step 406, determining the total number of characters of the content page displayed in the current reading time of the book.
In this embodiment, determining the total number of characters of the content page displayed by the book in the current reading time period may include the following steps:
s1: and determining the total page number of effective pages in the displayed content pages of the book in the current reading time.
In this embodiment, when the user rapidly turns the content page of the book, it is considered that the turning of the page is interrupted rather than the reading behavior. The functions of influencing page turning are as follows: clicking the next page; clicking a chapter, a bookmark and a note idea in the catalog; the progress of the current chapter is selected. Whenever one of the above three functions is triggered, the page turning function may be considered to be triggered.
In order to more accurately obtain the reading time of the user, in this embodiment, the reading time data during page turning is ignored, that is, the content page turned over in the rapid page turning process is treated as an invalid page, and the corresponding reading time is not calculated.
In this embodiment, valid pages of the content pages displayed by the book within the current reading time are: and subtracting the content pages which are turned over in the rapid page turning process from all the content pages displayed in the current reading time of the book.
As an optional implementation, the determining the total number of pages of the valid pages in the content pages displayed in the current reading time period of the book includes: determining whether a duration of a first content page displayed by the book within the current reading duration is greater than a predetermined threshold; if the first content page is larger than a preset threshold value, determining that the first content page is a valid page; and counting the total number of effective pages in the displayed content pages of the book in the current reading time. Wherein, the predetermined threshold value can be preset to be 0.5 second or 1 second, etc.
S2: the number of characters in each valid page is determined.
Factors that affect the number of characters displayed on a read page include: the size of the font size; line spacing, segment spacing, up-down spacing, left-right spacing; the resolution ratio of a mobile phone screen; horizontal and vertical screens and vertical typesetting. The client acquires the parameters corresponding to the functions, and can calculate the total number of characters (including punctuations and special symbols) appearing on the current page.
S3: and determining the total number of characters of the content page displayed in the current reading time length of the book.
In this embodiment, the client adds up the number of characters of each content page displayed by the book in the current reading time, so as to obtain the total number of characters of the content page displayed by the book in the current reading time. Wherein the number of characters may include text and punctuation.
For example, when reading time is tiThe time length t of the book in the current readingiContent page p shown thereini5 pages in total, wherein the number w of characters on each page is 2000, and the time length t of the book in the current reading isiTotal number of characters W of content page displayed ini=pi× w is 5 × 2000 w is 10000.
And 407, locally storing the current reading data.
In this embodiment, the description of the reading data and the process of locally storing the current reading data are similar to step 102 of the above method embodiment, and are not repeated here. Wherein, the current reading data further comprises: and the total number of characters of the content page displayed by the book in the current reading time length.
In this embodiment, the current reading data includes, in addition to the current reading time length, the total number of characters of the content page displayed in the current reading time length, so that the server can calculate the reading speed of the user.
And step 408, sending the current reading data to a server.
In this embodiment, the process of sending the current reading data to the server is similar to step 103 of the above method embodiment, and details are not described here.
Step 409, judging whether the duration identifier returned by the server is received.
In this embodiment, after receiving the reading data sent by the client, the server sends the duration identifier to the client, so as to indicate that the server receives the current reading data uploaded by the client.
In this embodiment, if the client does not receive the time length identifier returned by the server, the current reading data is sent to the server again when the preset sending opportunity is triggered next time, and if the time length identifier returned by the server is received, step 410 is executed.
And step 410, deleting the data which is stored locally and is read at the current time.
In this embodiment, the client sends the current reading data to the server, so that the server can count the average reading speed of the user conveniently. Further, after the server receives the current reading data reported by the client, the time length identifier carried in the current reading data can be returned to the client, and the client determines whether the current reading data needs to be sent to the server again according to the receiving condition of the time length identifier. Based on the use of the time length identifier, on one hand, the client can send data to the server again when the server does not receive the current reading data, so that the loss of the server side reading data is prevented; on the other hand, when the server successfully receives the current reading data, the repeated transmission of the current reading data is avoided. Therefore, the server can count the reading time of the user more accurately.
EXAMPLE five
FIG. 5 is a schematic structural diagram of a first apparatus for determining a reading duration according to the present invention. As shown in fig. 5, the apparatus of the present embodiment may include: the reading device comprises a reading time length determining module 11, a storage module 12, a sending module 13 and a deleting module 14; wherein,
a reading duration determining module 11, configured to determine a current reading duration for a user to read a current book;
the storage module 12 is configured to store current reading data locally, where the current reading data includes the current reading time length and a time length identifier allocated to the current reading time length. Optionally, the current reading data may further include: the current user ID and current book ID.
And the sending module 13 is configured to send the current reading data to a server when the sending opportunity is triggered, so that the server counts the reading duration of the user.
A deleting module 14, configured to delete the current reading data stored locally if the duration identifier returned by the server is received, and notify the sending module to send the current reading data to the server again when the next sending opportunity is triggered if the duration identifier returned by the server is not received.
In this embodiment, optionally, the sending time includes: the current book close, home screen key is triggered and/or account number switches.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 1, and the implementation principle and the technical effect are similar, which are not described herein again.
EXAMPLE six
Fig. 6 is a schematic structural diagram of a second apparatus for determining a reading duration according to the present invention. As shown in fig. 6, the device of this embodiment is based on the structure of the device shown in fig. 5, and further, the reading duration determining module 11 includes: a first detection submodule 111, a second detection submodule 112 and a first calculation submodule 113; wherein,
the first detecting module 111 is configured to record current reading start time after detecting that a user opens a book content page;
a second detecting module 112, configured to count a current reading ending time when a predetermined reading interruption event is detected; wherein the predetermined reading interruption event is a reading stop event except for the book content page which is actively closed by the user; for example, the predetermined reading interruption event includes: in the reading process, the event of covering the reading interface by a half screen or a full screen, the killing of the reading process or the crash of the reading software are carried out. Pressing back to a main screen key, a black screen, a screen locking, a log-in box calling, an order popup box, a jumping circle appreciation page, a self-defined background, a full screen setting, an eye protection setting, or a voice synthesis plug-in downloading event and the like;
the first calculating module 113 is configured to calculate a current reading time length according to the current reading start time and the current reading end time.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 2, and the implementation principle and the technical effect are similar, which are not described herein again.
EXAMPLE seven
In the third embodiment of the apparatus for determining a reading time length according to the present invention, based on the apparatus structure shown in fig. 6, further, the second detecting sub-module 112 may be further configured to count the current reading pause time when a predetermined reading interruption event is detected, and when a predetermined reading pause event is detected before the current reading end time; after the preset reading pause event is detected to be finished, recording the current reading continuing time; the predetermined reading pause event may include: viewing events such as catalogs, content searches, pop-up menus, or order half-screen masks.
The first calculating submodule 113 is specifically configured to calculate a current reading time length according to the current reading start time, the current reading pause time, the current reading continuation time, and the current reading end time.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 3, and the implementation principle and the technical effect are similar, which are not described herein again.
Example eight
Fig. 7 is a schematic structural diagram of a fourth embodiment of the device for determining a reading time length according to the present invention, as shown in fig. 7, the device of the present embodiment is based on the device structure shown in fig. 5 or fig. 6, and further includes:
the character number determining module 16 is configured to determine a total number of pages of valid pages in the content pages displayed in the current reading time of the book; determining the number of characters in each effective page; determining the total number of characters of the content page displayed by the book in the current reading time length according to the total number of effective pages in the content page displayed by the book in the current reading time length and the number of characters in each effective page;
wherein, the current reading data further comprises: and the total number of characters of the content page displayed by the book in the current reading time length.
In this embodiment, optionally, the character number determining module 16 includes: the first determining submodule is used for determining the total page number of effective pages in the displayed content pages of the book in the current reading time length; a second determining submodule for determining the number of characters in each effective page; and the third determining submodule is used for determining the total number of characters of the content page displayed in the current reading time length of the book according to the total number of effective pages in the content page displayed in the current reading time length of the book and the number of characters in each effective page.
In this embodiment, optionally, the first determining sub-module may include: the judging unit is used for determining whether the time length of a first content page displayed by the book in the current reading time length is greater than a preset threshold value; a determining unit, configured to determine that a first content page displayed in the current reading time period of the book is a valid page if the time period of the first content page is greater than a predetermined threshold; and the counting unit is used for counting the total page number of the effective pages in the content pages displayed in the current reading time of the book.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 4, and the implementation principle and the technical effect are similar, which are not described herein again.
Example nine
Fig. 8 is a flowchart illustrating a fifth embodiment of the method for determining a reading duration according to the present invention. Referring to fig. 8, the method of the present embodiment may include:
step 501, receiving current reading data sent by a client.
In this embodiment, the current reading data includes a current reading time length and a time length identifier allocated to the current reading time length. When a user reads a book each time, the client sends the reading data of the user to the server each time. The server may store the time duration identifier in the reading data received each time, for example, in a hash table.
Optionally, the current reading data may further include: and the user ID and the book ID are used for counting the whole reading time spent by the user for reading the book according to the current reading data.
And 502, counting the reading time of the user according to the current reading time.
In this embodiment, the reading duration of the user may be a total reading duration that has been spent by the same user when reading different books, or a total reading duration that has been spent by the same user when reading the same book.
The server performs cumulative statistics on the reading duration according to the latest received reading data to obtain the reading duration of the user, for example, performs cumulative statistics on the reading duration of the user reading the book to obtain the overall reading duration that the user has spent reading the book.
Step 503, returning the duration identifier to the client.
In this embodiment, the server returns the duration identifier to the client, so that the client deletes the stored current reading data according to the duration identifier.
In this embodiment, after the server receives the current reading data reported by the client, the time length identifier carried in the current reading data can be returned to the client, and the client determines whether the current reading data needs to be sent to the server again according to the receiving condition of the time length identifier. Based on the use of the time length identifier, on one hand, the client can send data to the server again when the server does not receive the current reading data, so that the loss of the server side reading data is prevented; on the other hand, when the server successfully receives the current reading data, the repeated transmission of the current reading data is avoided. Therefore, the server can count the reading time of the user more accurately.
Example ten
Fig. 9 is a flowchart illustrating a sixth embodiment of the method for determining a reading duration according to the present invention. Referring to fig. 9, the method of the present embodiment may include:
step 601, receiving current reading data sent by a client.
In this embodiment, the description of the current reading data and the process of receiving the reading data sent by the client are similar to step 501 of the above method embodiment, and are not repeated here.
Step 602, judging whether the duration mark is stored locally.
In this embodiment, the server determines whether the reading duration identifier is locally stored, for example, whether the duration identifier exists in the hash table is searched. If the duration identifier is not locally saved, step 603 is executed, and if the duration identifier is locally saved, step 605 is executed.
And 603, locally storing the duration identifier and returning the duration identifier to the client.
And step 604, counting the reading time of the user according to the current reading time.
In this embodiment, the process of counting the reading duration of the user according to the current reading duration is similar to the step 502 of the method embodiment, and details are not repeated here.
And 605, giving up the accumulated statistics of the reading time length.
In this embodiment, after the server receives the current reading data reported by the client, the time length identifier carried in the current reading data can be returned to the client, and the client determines whether the current reading data needs to be sent to the server again according to the receiving condition of the time length identifier. Based on the use of the time length identifier, on one hand, the client can send data to the server again when the server does not receive the current reading data, so that the loss of the server side reading data is prevented; on the other hand, when the server successfully receives the current reading data, the repeated transmission of the current reading data is avoided. Therefore, the server can count the reading time of the user more accurately.
In addition, in practical application, there may be a case that the server receives the current reading data uploaded by the client but cannot return the duration identifier to the client, or the server returns the duration identifier to the client but the client cannot actually receive the duration identifier. Under the condition, the client does not actually receive the time length identification returned by the server, so that the stored current reading data cannot be deleted, the current reading data can be repeatedly uploaded after the uploading opportunity is triggered next time, and the current reading data cannot be deleted until the client receives the time length identification, so that the accuracy of the server for counting the reading time length of the user can be ensured.
EXAMPLE eleven
Fig. 10 is a flowchart illustrating a seventh embodiment of the method for determining a reading duration according to the present invention. Referring to fig. 10, the method of the present embodiment may include:
step 701, receiving current reading data sent by a client.
In this embodiment, the description of the current reading data and the process of receiving the reading data sent by the client are similar to step 501 of the above method embodiment, and are not repeated here. Wherein, the current reading data further comprises: and the total number of characters of the content page displayed by the book in the current reading time length.
Step 702, judging whether the duration mark is stored locally.
In this embodiment, the process of determining whether the duration identifier is stored locally is similar to step 602 of the foregoing method embodiment, and details are not repeated here.
In this embodiment, if the duration identifier is not locally saved, step 703 is executed, and if the duration identifier is locally saved, step 707 is executed.
And 703, locally storing the time length identification, performing accumulation statistics on the reading time length of the book read by the user, and sending the time length identification to a client.
Step 704, performing cumulative statistics on the total number of characters of the content page displayed by the book in each reading time of the user.
In this embodiment, the total number of characters of the content page displayed by the book in each reading time of the user is accumulated and counted to obtain the total number of characters read by the user.
Step 705, determining the average reading speed of the user.
In this embodiment, the average reading speed of the user is determined according to the total number of words read by the user reading the book and the overall reading time spent by the user reading the book.
The server can calculate the average reading speed of the user according to the following formula
Wherein, WiThe total number of characters of the content page displayed in the ith reading time length for the user; t is tiThe ith reading time length of the user; i is 1 or more.
The server can push the average reading speed of the user to the client side to be displayed to the user.
Optionally, in order to obtain the average reading speed of the user, the client may not send the current reading time length and the total number of characters of the content page displayed by the book in the current reading time length to the server, and locally and directly determine the average reading speed of the user according to the current reading time length and the total number of characters of the content page displayed by the book in the current reading time length, or, in order to obtain a more accurate average reading speed of the user, may also determine the average reading speed of the user according to locally recorded reading time lengths of the book by the user and the total number of characters corresponding to the reading time lengths.
Step 706, determining the total time length that the user needs to read the book.
In this embodiment, according to the average reading speed of the user and the total number of characters of the book, the total time taken for the user to finish reading the book can be determined.
In this embodiment, the server may calculate the total time length T for the user to read the book according to the following formulat:
Wherein, WtThe total number of characters of each content page of the book, namely the total number of characters of all content pages of the book;is the average reading speed of the user.
The server can push the total time spent by the user for reading the book to the client side to be displayed to the user.
And 707, giving up the cumulative statistics of the reading time of the book read by the user this time.
In this embodiment, after the server receives the current reading data reported by the client, the time length identifier carried in the current reading data can be returned to the client, and the client determines whether the current reading data needs to be sent to the server again according to the receiving condition of the time length identifier. Based on the use of the time length identifier, on one hand, the client can send data to the server again when the server does not receive the current reading data, so that the loss of the server side reading data is prevented; on the other hand, when the server successfully receives the current reading data, the repeated transmission of the current reading data is avoided. Therefore, the server can count the reading time of the user more accurately.
Example twelve
Fig. 11 is a schematic structural diagram of a fifth embodiment of the device for determining reading duration according to the present invention. Referring to fig. 11, the apparatus of the present embodiment may include: a read data receiving module 51, a counting module 52 and a reception confirmation module 53; the reading data receiving module 51 is configured to receive current reading data sent by a client, where the current reading data includes a current reading time length and a time length identifier allocated to the current reading time length; optionally, the current reading data may further include: a user ID and a book ID; the counting module 52 is configured to count the reading duration of the user according to the current reading data; and the receiving confirmation module 53 is configured to return the duration identifier to the client, so that the client deletes the current reading data locally stored at the client according to the duration identifier.
In this embodiment, optionally, the counting module 52 may be specifically configured to perform cumulative counting on the reading time of the book read by the user according to the current reading data, so as to obtain the overall reading time spent by the user in reading the book.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 8, and the implementation principle and the technical effect are similar, which are not described herein again.
EXAMPLE thirteen
Fig. 12 is a schematic structural diagram of a sixth embodiment of the device for determining reading duration according to the present invention. Referring to fig. 12, the apparatus of this embodiment, based on the apparatus structure shown in fig. 11, further, the statistical module 52 includes: the judgment submodule 522 is configured to judge whether the duration identifier is locally stored; the accumulation control submodule 523 is configured to count the reading duration of the user according to the current reading duration and store the duration identifier if the duration identifier is not locally stored; and if the time length identification is stored locally, giving up the accumulated statistics of the reading time length of the user for reading the book this time.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 9, and the implementation principle and the technical effect are similar, which are not described herein again.
Example fourteen
Fig. 13 is a schematic structural diagram of a seventh apparatus for determining a reading duration according to the present invention. Referring to fig. 13, the apparatus of the present embodiment, based on the apparatus structure shown in fig. 12, further wherein the apparatus further comprises: a total character number accumulation module 54, configured to perform accumulation statistics on the total characters of the content pages displayed by the book in each reading time of the user, so as to obtain the total read characters of the book read by the user; a reading speed determining module 55, configured to determine an average reading speed of the user according to the total number of words read by the user when reading the book and the overall reading time spent by the user when reading the book.
In this embodiment, the current reading data further includes: and the total number of characters of the content page displayed by the book in the current reading time length.
Optionally, the apparatus further comprises: a total duration determining module 56, configured to determine, according to the average reading speed of the user and the total number of characters of the book, a total duration that the user needs to read the book.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 10, and the implementation principle and the technical effect are similar, which are not described herein again.
Example fifteen
Fig. 14 is a schematic structural diagram of an embodiment of an electronic device according to the present invention. As shown in fig. 14, the electronic device may include: the device comprises a shell 41, a processor 42, a memory 43, a circuit board 44 and a power circuit 45, wherein the circuit board 44 is arranged inside a space enclosed by the shell 41, and the processor 42 and the memory 43 are arranged on the circuit board 44; a power supply circuit 45 for supplying power to each circuit or device of the electronic apparatus; the memory 43 is used for storing executable program code; the processor 42 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 43, and is used for executing the method for determining the reading time length according to any one of the foregoing embodiments.
The electronic device exists in a variety of forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include: smart phones (e.g., iphones), multimedia phones, functional phones, etc.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play multimedia content. This type of device comprises: audio, video players (e.g., ipods), handheld game consoles, electronic books, and smart toys and portable car navigation devices.
(4) And other electronic equipment with data interaction function.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. The term "comprising", without further limitation, means that the element so defined is not excluded from the group consisting of additional identical elements in the process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments.
In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
For convenience of description, the above devices are described separately in terms of functional division into various units/modules. Of course, the functionality of the units/modules may be implemented in one or more software and/or hardware implementations of the invention.
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 computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. A method of determining a reading duration, comprising:
determining the current reading time of a user reading a current book;
storing current reading data, wherein the current reading data comprises the current reading time length and a time length identifier distributed corresponding to the current reading time length;
when the sending opportunity is triggered, sending the current reading data to a server so that the server counts the reading duration of the user;
if the time length identification returned by the server is received, deleting the stored current reading data;
and if the time length identification returned by the server is not received, the current reading data is sent to the server again when the next sending opportunity is triggered.
2. The method of claim 1, wherein the sending opportunity comprises: the current book close, home screen key is triggered and/or account number switches.
3. The method for determining reading duration according to claim 1, wherein the determining the duration of the current reading duration of the current book read by the user comprises:
recording the current reading starting time after detecting that a user opens a book content page;
when a preset reading interruption event is detected, recording the current reading ending time; wherein the predetermined reading interruption event is a reading stop event except for the book content page which is actively closed by the user;
and calculating the current reading time length according to the current reading starting time and the current reading ending time.
4. The method of determining reading session of claim 3, wherein said predetermined reading interruption event comprises: in the reading process, the event of covering the reading interface by a half screen or a full screen, the killing of the reading process or the crash of the reading software are carried out.
5. The method of claim 3, wherein upon detecting the occurrence of a predetermined reading interruption event, the end time of the current reading is recorded, the method further comprising:
when a preset reading pause event is detected, recording current reading pause time;
after the preset reading pause event is detected to be finished, recording the current reading continuing time;
wherein, according to the current reading starting time and the current reading ending time, calculating the current reading time length comprises:
and calculating the current reading time length according to the current reading starting time, the current reading pause time, the current continuous reading time and the current reading ending time.
6. An apparatus for determining a reading session, comprising:
the reading duration determining module is used for determining the current reading duration of the current book read by the user;
the storage module is used for storing current reading data, and the current reading data comprises the current reading time length and a time length identifier distributed corresponding to the current reading time length;
the sending module is used for sending the current reading data to a server when the sending opportunity is triggered so as to enable the server to count the reading duration of the user;
and the deleting module is used for deleting the stored current reading data if the time length identification returned by the server is received, and informing the sending module to send the current reading data to the server again when the next sending opportunity is triggered if the time length identification returned by the server is not received.
7. A method of determining a reading duration, comprising:
receiving current reading data sent by a client, wherein the current reading data comprises current reading time length and a time length identifier distributed corresponding to the current reading time length;
counting the reading time of the user according to the current reading time;
and returning the time length identification to the client so that the client deletes the stored current reading data according to the time length identification.
8. The method for determining reading duration according to claim 7, wherein the counting the reading duration of the user according to the current reading duration comprises:
if the time length identification is not stored, counting the reading time length of the user according to the current reading time length, and storing the time length identification;
and if the time length identification is stored, giving up the statistics of the reading time length.
9. An apparatus for determining a reading session, comprising:
the reading data receiving module is used for receiving current reading data sent by a client, and the current reading data comprises current reading time length and a time length identifier distributed corresponding to the current reading time length;
the counting module is used for counting the reading time of the user according to the current reading data;
and the receiving confirmation module is used for returning the time length identification to the client so that the client deletes the stored current reading data according to the time length identification.
10. An electronic device, characterized in that the electronic device comprises: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing the method of determining a reading duration as set forth in any one of the preceding claims 1 to 5 or 7 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710068238.1A CN106933964B (en) | 2017-02-07 | 2017-02-07 | A kind of determining method, apparatus and electronic equipment for reading duration |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710068238.1A CN106933964B (en) | 2017-02-07 | 2017-02-07 | A kind of determining method, apparatus and electronic equipment for reading duration |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106933964A true CN106933964A (en) | 2017-07-07 |
CN106933964B CN106933964B (en) | 2018-06-19 |
Family
ID=59422938
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710068238.1A Active CN106933964B (en) | 2017-02-07 | 2017-02-07 | A kind of determining method, apparatus and electronic equipment for reading duration |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106933964B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107491252A (en) * | 2017-08-21 | 2017-12-19 | 掌阅科技股份有限公司 | Read the statistical method and electronic equipment of duration |
CN107766460A (en) * | 2017-09-27 | 2018-03-06 | 风变科技(深圳)有限公司 | Synchronous timing method, device, terminal device and storage medium based on reading |
CN109902058A (en) * | 2019-01-25 | 2019-06-18 | 上海基分文化传播有限公司 | Arrangement for reading and the method for detecting user's reading behavior and effective reading duration |
CN110633255A (en) * | 2018-06-05 | 2019-12-31 | 北京世纪好未来教育科技有限公司 | Method and device for acquiring user use duration |
CN111767969A (en) * | 2020-06-30 | 2020-10-13 | 刘剑宇 | Device and method for acquiring, collecting and analyzing reading behavior data of paper book |
CN112052760A (en) * | 2020-08-25 | 2020-12-08 | 北京金和网络股份有限公司 | Method and device for judging learning effectiveness aiming at different article types |
CN112328529A (en) * | 2020-11-03 | 2021-02-05 | 北京奇艺世纪科技有限公司 | Method and device for determining reading progress of electronic book, terminal and storage medium |
CN112765476A (en) * | 2020-07-27 | 2021-05-07 | 上海斐杰教育科技有限公司 | Parent-child reading resource recommendation service system and method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104090741A (en) * | 2014-06-17 | 2014-10-08 | 小米科技有限责任公司 | Statistical method and device for electronic book reading |
US20150026630A1 (en) * | 2010-05-15 | 2015-01-22 | Roddy McKee Bullock | Enhanced E-Book and Enhanced E-book Reader |
CN104850409A (en) * | 2015-06-05 | 2015-08-19 | 北京京东尚科信息技术有限公司 | Webpage staying duration statistic method |
CN105677845A (en) * | 2016-01-06 | 2016-06-15 | 北京京东尚科信息技术有限公司 | Pushing method and device for electronic books |
-
2017
- 2017-02-07 CN CN201710068238.1A patent/CN106933964B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150026630A1 (en) * | 2010-05-15 | 2015-01-22 | Roddy McKee Bullock | Enhanced E-Book and Enhanced E-book Reader |
CN104090741A (en) * | 2014-06-17 | 2014-10-08 | 小米科技有限责任公司 | Statistical method and device for electronic book reading |
CN104850409A (en) * | 2015-06-05 | 2015-08-19 | 北京京东尚科信息技术有限公司 | Webpage staying duration statistic method |
CN105677845A (en) * | 2016-01-06 | 2016-06-15 | 北京京东尚科信息技术有限公司 | Pushing method and device for electronic books |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107491252A (en) * | 2017-08-21 | 2017-12-19 | 掌阅科技股份有限公司 | Read the statistical method and electronic equipment of duration |
CN107491252B (en) * | 2017-08-21 | 2018-05-29 | 掌阅科技股份有限公司 | Read the statistical method and electronic equipment of duration |
CN107766460A (en) * | 2017-09-27 | 2018-03-06 | 风变科技(深圳)有限公司 | Synchronous timing method, device, terminal device and storage medium based on reading |
CN110633255A (en) * | 2018-06-05 | 2019-12-31 | 北京世纪好未来教育科技有限公司 | Method and device for acquiring user use duration |
CN110633255B (en) * | 2018-06-05 | 2021-06-11 | 北京世纪好未来教育科技有限公司 | Method and device for acquiring user use duration |
CN109902058A (en) * | 2019-01-25 | 2019-06-18 | 上海基分文化传播有限公司 | Arrangement for reading and the method for detecting user's reading behavior and effective reading duration |
CN111767969A (en) * | 2020-06-30 | 2020-10-13 | 刘剑宇 | Device and method for acquiring, collecting and analyzing reading behavior data of paper book |
CN112765476A (en) * | 2020-07-27 | 2021-05-07 | 上海斐杰教育科技有限公司 | Parent-child reading resource recommendation service system and method |
CN112052760A (en) * | 2020-08-25 | 2020-12-08 | 北京金和网络股份有限公司 | Method and device for judging learning effectiveness aiming at different article types |
CN112328529A (en) * | 2020-11-03 | 2021-02-05 | 北京奇艺世纪科技有限公司 | Method and device for determining reading progress of electronic book, terminal and storage medium |
CN112328529B (en) * | 2020-11-03 | 2023-09-05 | 北京奇艺世纪科技有限公司 | Method, device, terminal and storage medium for determining reading progress of electronic book |
Also Published As
Publication number | Publication date |
---|---|
CN106933964B (en) | 2018-06-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106933964B (en) | A kind of determining method, apparatus and electronic equipment for reading duration | |
CN106570157B (en) | Picture pushing method and device and electronic equipment | |
US20190236099A1 (en) | Picture processing method and apparatus, and electronic device | |
CN107688637A (en) | Information-pushing method, device, storage medium and electric terminal | |
CN105045488A (en) | Application start control method and mobile terminal | |
CN105808714B (en) | Method and device for acquiring network file resources and electronic equipment | |
CN106815509B (en) | Multimedia file protection method and device and electronic equipment | |
CN105608616B (en) | Method and device for remotely assisting controlled equipment | |
CN106815284A (en) | The recommendation method and recommendation apparatus of news video | |
CN110046162A (en) | Aucillary document deposits card method, system, device and equipment | |
US20150213280A1 (en) | Method, electronic device and computer program product for screen shield | |
WO2009133232A1 (en) | Method, apparatus, and computer program product for providing usage analysis | |
CN109064283A (en) | Commodity recommendation method and device and computer-readable storage medium | |
CN103488784A (en) | Method for recommending multimedia files and electronic device | |
CN112631945A (en) | Test case generation method and device and storage medium | |
CN106815285A (en) | The method of the video recommendations based on video website, device and electronic equipment | |
CN105095743B (en) | Method and device for setting locking strategy and electronic equipment | |
CN112740178B (en) | Small game access method and related equipment | |
CN107766563A (en) | Method, apparatus, storage medium and the electronic equipment updated the data | |
CN105528443B (en) | Application management method and device and electronic equipment | |
CN107766550A (en) | comment information processing method, device, terminal device and storage medium | |
CN103530410A (en) | Multimedia file collecting method and electronic device | |
CN104571812A (en) | Information processing method and electronic equipment | |
CN107820118A (en) | Game video recording, player method and device | |
CN113961857A (en) | Shuttle frame data loading method and device and electronic equipment |
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 |