Disclosure of Invention
In view of the above, there is a need to provide a method, apparatus, system, computer device and storage medium for feed stream deduplication that is completely free of duplication.
A feed stream deduplication method, the method comprising:
monitoring the position of a sliding window in feed stream application software when the sliding window slides downwards in real time;
determining two adjacent feed flow pages covered by the current sliding window according to the position;
and synchronously rendering the information content corresponding to the two adjacent feed stream pages.
In one embodiment, the synchronously rendering the information contents corresponding to the two adjacent feed stream pages includes:
requesting to obtain information content corresponding to the two adjacent feed stream pages, wherein the two adjacent feed stream pages comprise a first feed stream page and a second feed stream page corresponding to a next page;
comparing the information content of the first feed stream paging acquired by the last request with the information content of the second feed stream paging acquired by the current request;
when the comparison determines that the information content is repeated, synchronously rendering the information content of the first feed stream paging, which is obtained by the current request, and the information content of the second feed stream paging, which is obtained by the current request;
and when the information content is not repeated through comparison, rendering the information content of the second feed stream paging acquired by the current request.
In one embodiment, the requesting to obtain the information content corresponding to the two adjacent feed stream pages includes:
acquiring the displayable information quantity of the feed stream pages;
determining a content request starting position and a content request ending position according to the information quantity and the determined two adjacent feed stream pagings;
and acquiring the information content corresponding to the two adjacent feed stream pages according to the content request starting position and the content request ending position request.
In one embodiment, the obtaining the displayable information amount of the feed stream page includes:
determining the size of the sliding window according to the size of a display screen of equipment, wherein the size of the sliding window is equal to that of the display screen, and the size of the feed flow page is equal to that of the sliding window;
and determining the displayable information quantity of the feed stream pages according to the size of the sliding window and the display height of the single information content in the feed stream pages.
In one embodiment, the determining two adjacent feed stream pages currently covered by the sliding window according to the position includes:
after the sliding window slides down, obtaining a cached paging identifier, wherein the paging identifier is a paging identifier of a page at the bottom of the sliding window;
and determining two adjacent feed flow pages currently covered by the sliding window according to the paging identifier and the last paging identifier corresponding to the paging identifier.
A feed stream de-duplication apparatus, the apparatus comprising:
the monitoring module is used for monitoring the position of the sliding window in the feed stream application software when the sliding window slides down in real time;
a determining module, configured to determine two adjacent feed stream pages covered by the current sliding window according to the position;
and the rendering module is used for synchronously rendering the information content corresponding to the two adjacent feed stream pagings.
A feed stream deduplication system, the system comprising:
the terminal is used for monitoring the position of the sliding window in the feed stream application software when the sliding window slides down in real time; determining two adjacent feed flow pages covered by the current sliding window according to the position; requesting a server to acquire information contents corresponding to the two adjacent feed stream pages;
and the server is used for returning the information content corresponding to the two adjacent feed stream pagings to the terminal for synchronous rendering according to the request.
In one embodiment, the two adjacent feed stream pages include a first feed stream page and a second feed stream page corresponding to a next page; the server is further configured to:
when the terminal requests to acquire the information content corresponding to the two adjacent feed flow pages is received, comparing the information content of the first feed flow page acquired by the terminal last request with the information content of the second feed flow page acquired by the terminal currently request;
when the information content is determined to be repeated through comparison, the information content of the first feed flow page, which is obtained by the current request, and the information content of the second feed flow page, which is obtained by the current request, are simultaneously returned so that the terminal carries out synchronous rendering;
and when the comparison determines that the information content is not repeated, independently returning the information content of the second feed stream paging acquired by the current request to the terminal for rendering.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the feed stream deduplication method of any preceding claim when the computer program is executed by the processor.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the feed stream deduplication method of any of the preceding claims.
According to the feed stream de-duplication method, the device, the system, the computer equipment and the storage medium, after two adjacent feed stream pages currently covered by the sliding window are determined by monitoring the position of the sliding window of the equipment, the information contents of the two adjacent feed stream pages are synchronously rendered. Because two adjacent feed stream pages covered by the sliding window are rendered synchronously, namely, the information contents of the current page and the previous page are refreshed simultaneously, even if a certain information content is displayed in the next page due to heat reduction, the information content can be ensured not to be displayed in the previous page, so that the same information content can not be repeatedly displayed in the upper page and the lower page and can be simultaneously displayed in the visual field of a user when the user slides down to browse, the problem of information repetition in the same visual field is completely solved, and the uniqueness and the efficiency of pushing information are improved.
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.
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in 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.
In one embodiment, as shown in fig. 1, a feed stream deduplication method is provided, which is described by taking an example that the method is applied to a terminal, and includes the following steps:
and S102, monitoring the position of the sliding window in the feed stream application software when the sliding window slides down in real time.
The feed stream application software refers to information pushed through a feed stream, and dynamic application software, such as micro-blogging, trembling and the like. The sliding window is a flow control mechanism, and the size of the sliding window is the same as that of the terminal display screen, and the area capable of displaying information content on the terminal display screen can be understood as the area where the sliding window is located. The sliding window downslide refers to a process of causing the sliding window to display subsequent information contents by sliding, and is actually a process of sliding up the information contents displayed on the display screen.
Specifically, when the feed stream application software is opened for use, the terminal monitors whether the sliding window slides down in real time. And after the sliding window slides downwards, determining the position of the sliding window after sliding downwards. In this embodiment, the page identifier of the page at the bottom of the sliding window is recorded and updated in the cache in real time, so that the position of the sliding window when the sliding window slides down can be monitored by obtaining the page identifier of the cache.
And step S104, determining two adjacent feed stream pages covered by the current sliding window according to the position.
Specifically, the terminal determines two adjacent feed flow pages currently covered by the sliding window according to the monitored position, namely according to the obtained page identifier of the feed flow page at the bottom position of the sliding window.
And step S106, synchronously rendering the information content corresponding to the two adjacent feed stream pages.
Specifically, after the terminal determines that two adjacent feed stream pages currently covered by the sliding window are paged, the terminal requests to acquire information contents corresponding to the two adjacent feed stream pages. That is, two adjacent feed stream pages include a first feed stream page and a second feed stream page corresponding to a next page, and information content corresponding to the first feed stream page and information content corresponding to the second feed stream page are simultaneously obtained. Then, the terminal synchronously renders and displays the information content of the two adjacent feed stream pages. That is, after the sliding window slides down, the content of the next feed stream page needs to be obtained, and the content of the previous feed stream page is simultaneously obtained and re-rendered and refreshed, so that even if the information content changes the sequence due to the popularity, the information content is not repeatedly displayed in the same field of view due to re-rendering and refreshing.
According to the feed stream de-duplication method, after the two adjacent feed stream pagings currently covered by the sliding window are determined by monitoring the position of the sliding window of the equipment, the information contents of the two adjacent feed stream pagings are synchronously rendered. Because two adjacent feed stream pages covered by the sliding window are rendered synchronously, namely, the information contents of the current page and the previous page are refreshed simultaneously, even if a certain information content is displayed in the next page due to heat reduction, the information content can be ensured not to be displayed in the previous page, so that the same information content can not be repeatedly displayed in the upper page and the lower page and can be simultaneously displayed in the visual field of a user when the user slides down to browse, the problem of information repetition in the same visual field is completely solved, and the uniqueness and the efficiency of pushing information are improved.
In one embodiment, as shown in fig. 2, step S106 includes:
step S202, requesting to obtain information contents corresponding to two adjacent feed stream pages, wherein the two adjacent feed stream pages comprise a first feed stream page and a second feed stream page corresponding to a next page.
Specifically, the terminal sends an acquisition request to the server, and acquires the information content corresponding to the determined two adjacent feed stream pages from the server through the acquisition request.
Step S204, comparing the information content of the first feed flow page acquired by the last request with the information content of the second feed flow page acquired by the current request.
Step S206, when the comparison determines that the information content is repeated, the information content of the first feed stream paging acquired by the current request and the information content of the second feed stream paging acquired by the current request are synchronously rendered.
And step S208, when the comparison determines that the information content is not repeated, rendering the information content of the second feed stream paging acquired by the current request.
The last request acquisition refers to the current request acquisition corresponding to the previous request.
Specifically, since the first feed stream page of two adjacent feed pages is the last page, that is, the feed stream page for which the information content has been requested to be obtained and rendered is displayed. The second feed stream page is the next page, that is, the next page is gliding, and a new feed stream page which needs to acquire the corresponding information content for rendering and displaying appears. Therefore, after the terminal requests to acquire the information content of two adjacent feed pages at present, the information content of the first feed flow page acquired at the last request is compared with the information content of the second feed flow page acquired at the present request, and whether the information content is repeated is judged through comparison. If the information content repetition exists, the information content is reordered between the last request acquisition and the current request acquisition due to the hot refreshing, and the information content which is displayed in the previous page due to the hot display is in the information content corresponding to the next page due to the hot display. Therefore, since the sliding window covers the previous page and the next page at the same time, the extreme case of the duplication of the information content of the previous page and the next page can be avoided in order to only render the information content of the second feed stream page. In this embodiment, the information content of the first feed stream page currently requested to be acquired and the information content of the second feed stream page currently requested to be acquired are rendered and displayed synchronously. If the comparison and judgment result shows that the information content is not repeated, the extreme condition that the information content of the previous page is reduced to the next page does not occur between the last request acquisition and the current request acquisition no matter whether the heat is refreshed or not, and only the information content of the second feed stream page acquired by the current request can be directly rendered, so that the rendering resource is reduced, and the rendering speed is increased.
For example, it can be requested to determine that page 1 (first feed flow page) shows five dynamic states of dynamic 1 to dynamic 5 according to the popularity of the commodity. Then, when the user slides up the dynamic state to slide down the sliding window to cover page 1 and page 2 (second feed stream page), the hot refreshing of the goods at this time has already made the hot degree of dynamic 5 and dynamic 3 drop to the information content corresponding to page 2. Therefore, if only the information content corresponding to page 2 is requested to be rendered at this time, as is conventional, it is easy to cause dynamic 3 and dynamic 5 to be repeatedly displayed in page 1 and page 2. And the user's field of view is the content within the range of the sliding window, so the two dynamics, dynamic 3 and dynamic 5, within the user's field of view at this time are repeated. Therefore, in order to avoid the duplication problem, the embodiment requests to obtain the information contents of page 2 and page 1 simultaneously when the sliding window slides down to page 2. The information content of the page 1, namely, dynamic 1 to dynamic 5, obtained by the last request is compared with the content of the page 2, namely, dynamic 5, dynamic 3, dynamic 6 to dynamic 8, obtained by the current request. If the comparison is determined to be repeated, the currently acquired information content of the page 1 and the information content of the page 2 are rendered and displayed at the same time, and the original dynamic 5 and dynamic 3 of the page 1 are lowered into the page 2, so that the dynamic 5 and dynamic 3 are only displayed in the page 2 after being rendered and displayed at the same time, and the positions of the original dynamic 5 and dynamic 3 displayed in the page 1 should be other dynamic states with increased heat. Thereby, the problem of dynamic repetition within the field of view is avoided.
In the embodiment, the original information content of the first feed stream page and the currently acquired information content of the second feed stream page are synchronously rendered when being compared and determined to be repeated, and the information content of the second feed stream page is independently rendered without being repeated, so that the rendering efficiency is improved while the uniqueness is prevented from being repeatedly improved.
In one embodiment, the requesting of obtaining information content corresponding to two adjacent feed stream pages includes: acquiring the displayable information quantity of a feed stream page; determining a content request starting position and a content request ending position according to the information quantity and the determined adjacent two feed stream pages; and acquiring information contents corresponding to two adjacent feed stream pages according to the content request starting position and the content request ending position.
The information quantity refers to the quantity of information contents that can be displayed in one feed stream page, that is, the quantity of information contents that can be displayed in the range of the display screen and the sliding window of a terminal. The content request start position and the content request end position are the start position and the end position of the request for obtaining the information content.
Specifically, when a terminal requests to acquire information content corresponding to two adjacent feed stream pages, the number of information that can be displayed by one feed stream page is determined first. The information quantity is determined according to the size of the feed stream page and the size of the displayed information content. For example, if a feed stream page is 10 high and a content occupies 2 high, a feed stream page can display 5 contents, and the amount of information is 5. Then, the content request starting position and the content request ending position are determined according to the information quantity and the determined two adjacent feed stream pages. For example, the information amount is 5, and when two adjacent feed stream pages are assumed that the first feed stream page and the second feed stream page are the second feed stream page and the third feed stream page, respectively, the content request start position is the sixth information content, and the content request end position is the fifteenth information content. And finally, after the starting position and the ending position of the request are determined, generating an acquisition request carrying the starting position and the ending position of the content request, sending the acquisition request to the server, and acquiring the information content of the two adjacent feed stream pagings from the server through the acquisition request. When the server acquires the acquisition request, the server acquires the requested information content from the information content which is sequenced according to the popularity and returns the information content to the terminal according to the content request starting position and the content request ending position which are carried in the request.
In the embodiment, the acquisition request is generated according to the amount of the information which can be displayed and the determined adjacent feed flow pages to acquire the information content from the server, so that the information content matched with the amount of the information of the feed flow pages can be requested, and the acquisition accuracy is improved.
In one embodiment, obtaining the amount of information that a feed stream page can display includes: determining the size of a sliding window according to the size of a display screen of the equipment, wherein the size of the sliding window is equal to that of the display screen, and the size of a feed flow page is equal to that of the sliding window; and determining the amount of information which can be displayed by the feed stream page according to the size of the sliding window and the display height of the single information content in the feed stream page.
The display height of a single information content refers to the height occupied by the display of one information content. The display height of the information content can be adjusted according to different feed stream application software and requirements.
Specifically, the terminal obtains the size of the sliding window according to the size of the display screen recorded by the device parameter of the terminal. Then, the amount of information that can be displayed by the feed stream page is determined according to the size of the sliding window and the display height of the individual information content. Since the size of the feed stream page is equal to the size of the sliding window, that is, determining the amount of information that can be displayed by the feed stream page according to the size of the sliding window and the display height of the single information content is equivalent to determining the amount of information that can be displayed by the feed stream page according to the size of the feed stream page and the display height of the single information content. For example, if a feed stream page has a page height of 10 and a content height of 2, a feed stream page can display 5 contents, and the number of information is 5.
In this embodiment, after the size of the display screen determined by the device parameter is obtained and the size of the sliding window is obtained, the amount of information that can be displayed is determined, and the amount of information that matches the terminal accurately can be obtained.
In one embodiment, step S104 includes: after the sliding window slides down, obtaining a cached paging identifier, wherein the paging identifier is a paging identifier of a page at the bottom of the sliding window; and determining two adjacent feed flow pagings currently covered by the sliding window according to the paging identification and the last paging identification corresponding to the paging identification.
The page identifier is used to uniquely identify the corresponding feed stream page, and the preferred identifier in this embodiment is a serial number. I.e. different feed stream pages are identified by number.
Specifically, by caching the page identifier of the current page at the bottom of the sliding window in real time, for example, when the bottom of the sliding window is currently in the third feed stream page, the cache records that the page identifier is three. And when the bottom of the sliding window slides to the fourth page feed flow paging, the cache simultaneously updates the recorded paging identification to four. Therefore, when the sliding window is monitored to slide downwards, the position of the sliding window when sliding downwards is determined according to the page identifier recorded in the cache. That is, the currently cached page id is obtained. Then, since the sliding window slides down corresponding to the information content in the sliding window, the feed stream page covered by the sliding window is necessarily the previous page of the bottom corresponding page. Therefore, two adjacent feed stream pages currently covered by the sliding window are determined according to the page identifier and the last page identifier corresponding to the page identifier. For example, when the bottom of the sliding window is currently located in the third feed stream page, that is, the cached page identifier is three, and the last page identifier corresponding to the three is two according to the sorting of the page numbers, it may be determined that the two adjacent feed stream pages currently covered by the sliding window are the second feed stream page and the third feed stream page.
In this embodiment, the adjacent feed stream pages currently covered by the sliding window can be accurately determined by the pages located at the bottom of the sliding window.
In one embodiment, as shown in FIG. 3, a feed stream deduplication system is provided that includes a terminal 102 and a server 104. The above-mentioned feed stream deduplication method is applied to the feed stream deduplication system for detailed description. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by multiple servers.
Specifically, the terminal 102 is configured to monitor a position of a sliding window in the feed stream application software when the sliding window slides down in real time; determining two adjacent feed flow pages covered by the current sliding window according to the position; and requesting the server 104 to acquire the information content corresponding to the two adjacent feed stream pages. The server 104 is configured to return the information content corresponding to the two adjacent feed stream pages to the terminal for synchronous rendering according to the request.
In an embodiment, the step of returning the information content corresponding to two adjacent feed stream pages to the terminal for synchronous rendering by the server 104 according to the request includes: when receiving a request of the terminal 102 for acquiring information contents corresponding to two adjacent feed stream pages, comparing the information content of a first feed stream page acquired by the last request of the terminal 102 with the information content of a second feed stream page acquired by the current request of the terminal 102; when the information content is determined to be repeated through comparison, the information content of the first feed stream page requested to be acquired currently and the information content of the second feed stream page requested to be acquired currently are returned simultaneously so that the terminal 102 can perform synchronous rendering; and when the comparison determines that the information content is not repeated, independently returning the information content of the second feed stream paging acquired by the current request to the terminal 102 for rendering.
Specifically, after the server 104 receives the request of the terminal, the information content of the current first feed stream page and the information content of the second feed stream page in the two adjacent pages are obtained according to the request, and the information content of the first feed stream page obtained by the last request of the terminal 102 is compared with the information content of the second feed stream page obtained by the current request. When the comparison determines that the duplicate information content exists between the two, all the information content of the two adjacent feed stream pages currently requested by the terminal 102 is returned to the terminal 102. And the terminal 102 synchronously renders and displays the information after receiving the information content. When the comparison determines that no duplicate content exists between the two, the server 104 only returns the information content of the currently requested second sub-page feed stream to the terminal 102. The terminal 102 can only render the contents of the second feed stream page alone. For example, the start position currently requested by the terminal 102 is the sixth information content, and the end position is the fifteenth information content. But the server 104 determines that the contents are not duplicated after comparison, and only returns the tenth to fifteenth corresponding information contents. In the embodiment, the returned information content is selected by comparing whether the information content is repeated or not through the server, so that the transmission and rendering of resources can be reduced on the premise of ensuring that the terminal display is not repeated, and the efficiency is improved.
It should be understood that although the various steps in the flow charts of fig. 1-2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order 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 some of the steps in fig. 1-2 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in FIG. 4, there is provided a feed stream deduplication apparatus comprising: a monitoring module 402, a determination module 404, and a rendering module 406, wherein:
and the monitoring module 402 is configured to monitor a position of the sliding window in the feed stream application software when the sliding window slides down in real time.
And a determining module 404, configured to determine two adjacent feed stream pages covered by the current sliding window according to the position.
And a rendering module 406, configured to render the information content corresponding to two adjacent feed stream pages synchronously.
In one embodiment, the rendering module 406 is further configured to request to obtain information content corresponding to two adjacent feed stream pages, where the two adjacent feed stream pages include a first feed stream page and a second feed stream page corresponding to a next page; comparing the information content of the first feed flow page acquired by the last request with the information content of the second feed flow page acquired by the current request; when the information content is determined to be repeated through comparison, synchronously rendering the information content of the first feed flow page which is requested to be acquired currently and the information content of the second feed flow page which is requested to be acquired currently; and when the comparison determines that the information content is not repeated, rendering the information content of the second feed stream paging acquired by the current request.
In one embodiment, the rendering module 406 is further configured to obtain the amount of information that can be displayed by the feed subpage; determining a content request starting position and a content request ending position according to the information quantity and the determined two adjacent feed stream pagings; and acquiring information contents corresponding to two adjacent feed stream pages according to the content request starting position and the content request ending position.
In one embodiment, the rendering module 406 is further configured to determine a size of a sliding window according to a size of a display screen of the device, the size of the sliding window being equal to the size of the display screen, and the size of the feed stream page being equal to the size of the sliding window; and determining the amount of information which can be displayed by the feed stream page according to the size of the sliding window and the display height of the single information content in the feed stream page.
In one embodiment, the determining module 404 is further configured to obtain the cached page identifier after the sliding window slides down, where the page identifier is a page identifier of a page at the bottom of the sliding window; and determining two adjacent feed flow pages currently covered by the sliding window according to the page identifier and the last page identifier corresponding to the page identifier.
For the specific definition of the feed stream deduplication device, reference may be made to the above definition of the feed stream deduplication method, which is not described herein again. The various modules in the feed stream deduplication apparatus described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 5. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The communication interface of the computer device is used for communicating with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a feed stream deduplication method. 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. 5 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, a computer device is provided, comprising a memory having a computer program stored therein and a processor that when executing the computer program performs the steps of:
monitoring the position of a sliding window in feed stream application software when the sliding window slides downwards in real time;
determining two adjacent feed stream paginations covered by the current sliding window according to the position;
and synchronously rendering the information contents corresponding to two adjacent feed stream pages.
In one embodiment, the processor, when executing the computer program, further performs the steps of: requesting to obtain information contents corresponding to two adjacent feed stream pages, wherein the two adjacent feed stream pages comprise a first feed stream page and a second feed stream page corresponding to a next page; comparing the information content of the first feed flow page acquired by the last request with the information content of the second feed flow page acquired by the current request; when the information content is determined to be repeated through comparison, synchronously rendering the information content of the first feed flow page which is requested to be acquired currently and the information content of the second feed flow page which is requested to be acquired currently; and when the comparison determines that the information content is not repeated, rendering the information content of the second feed stream paging acquired by the current request.
In one embodiment, the processor when executing the computer program further performs the steps of: acquiring the displayable information quantity of the feed stream pages; determining a content request starting position and a content request ending position according to the information quantity and the determined adjacent two feed stream pages; and acquiring information contents corresponding to two adjacent feed stream pages according to the content request starting position and the content request ending position.
In one embodiment, the processor, when executing the computer program, further performs the steps of: determining the size of a sliding window according to the size of a display screen of the equipment, wherein the size of the sliding window is equal to that of the display screen, and the size of a feed flow page is equal to that of the sliding window; and determining the amount of information which can be displayed by the feed stream page according to the size of the sliding window and the display height of the single information content in the feed stream page.
In one embodiment, the processor, when executing the computer program, further performs the steps of: after the sliding window slides down, obtaining a cached paging identifier, wherein the paging identifier is a paging identifier of a page at the bottom of the sliding window; and determining two adjacent feed flow pagings currently covered by the sliding window according to the paging identification and the last paging identification corresponding to the paging identification.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
monitoring the position of a sliding window in feed stream application software when the sliding window slides downwards in real time;
determining two adjacent feed flow pages covered by the current sliding window according to the position;
and synchronously rendering the information contents corresponding to the two adjacent feed stream pages.
In one embodiment, the computer program when executed by the processor further performs the steps of: requesting to obtain information contents corresponding to two adjacent feed stream pages, wherein the two adjacent feed stream pages comprise a first feed stream page and a second feed stream page corresponding to a next page; comparing the information content of the first feed flow page acquired by the last request with the information content of the second feed flow page acquired by the current request; when the comparison determines that the information content is repeated, synchronously rendering the information content of the first feed flow paging which is required to be obtained currently and the information content of the second feed flow paging which is required to be obtained currently; and when the information content is not repeated through comparison, rendering the information content of the second feed stream paging acquired by the current request.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring the displayable information quantity of a feed stream page; determining a content request starting position and a content request ending position according to the information quantity and the determined adjacent two feed stream pages; and acquiring information contents corresponding to two adjacent feed stream pages according to the content request starting position and the content request ending position.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining the size of a sliding window according to the size of a display screen of the equipment, wherein the size of the sliding window is equal to that of the display screen, and the size of a feed flow page is equal to that of the sliding window; and determining the amount of information which can be displayed by the feed stream page according to the size of the sliding window and the display height of the single information content in the feed stream page.
In one embodiment, the computer program when executed by the processor further performs the steps of: after the sliding window slides down, obtaining a cached paging identifier, wherein the paging identifier is a paging identifier of a page at the bottom of the sliding window; and determining two adjacent feed flow pages currently covered by the sliding window according to the page identifier and the last page identifier corresponding to the page identifier.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification 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 invention. 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.