Page display processing method and device, equipment and storage medium
By detecting and adjusting the display offset parameter value of the target page, optimizing the player state and view component positions, the problem of abnormal page display during video browsing was resolved, improving the display effect and user experience.
Patent Information
- Application Number
- CN202410502388.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-24
- Publication Date
- 2025-10-24
AI Technical Summary
In existing technologies, page display is prone to offset and other abnormalities during video browsing, resulting in poor display quality.
By detecting the display offset parameter value of the target page, it is determined whether it meets the preset offset conditions. If it does not meet the conditions, adjustments are made to optimize the display parameters to reduce the probability of whole-page offset. At the same time, the playback status of multiple players is controlled and the display position of view components is corrected.
It effectively reduces the probability of page display errors, improves page display stability and user experience.
Smart Images

Figure CN120832192A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the field of data processing, and particularly relates to a page display processing method and device, equipment and a storage medium. BACKGROUND
[0002] At present, some display abnormal phenomena may occur on a page during the user browsing a video, such as page offset display and the like.
[0003] Therefore, how to optimize the page display effect and reduce the probability of page display abnormality is a technical problem to be solved at present. SUMMARY
[0004] In order to solve the above technical problems, the embodiments of the present disclosure provide a page display processing method, device, equipment and a storage medium.
[0005] In a first aspect, the present disclosure provides a page display processing method, comprising:
[0006] In response to the display state of a target page meeting a preset display condition, determining whether a display offset parameter value of the target page meets a preset offset condition; wherein the preset offset condition is used to represent that the target page is not in a whole page offset state;
[0007] If it is determined that the display offset parameter value of the target page does not meet the preset offset condition, adjusting the display offset parameter value of the target page to obtain an adjusted offset parameter value; wherein the adjusted offset parameter value meets the preset offset condition;
[0008] Displaying the target page based on the adjusted offset parameter value.
[0009] In an optional implementation, the target page is used to play a video by using a target player, and the method further comprises:
[0010] Determining whether the target player corresponding to the target page is in a playing state;
[0011] If it is determined that the target player is in the playing state, detecting whether there are multiple players in the playing state at present;
[0012] If it is determined that there are multiple players in the playing state at present, controlling the players other than the target player among the multiple players to pause playing.
[0013] In an optional implementation, the method further comprises:
[0014] Detecting whether there is display occlusion between view components on the target page;
[0015] If it is determined that there is a display occlusion between view components on the target page, an occlusion image corresponding to the display occlusion is obtained; wherein the occlusion image is used to update the display position of the view components on the target page.
[0016] In an optional implementation, the method further includes:
[0017] If it is determined that the target player is not in a playing state, the target player is controlled to start playing.
[0018] In an optional implementation, after the target page is displayed based on the adjusted offset parameter value, the method further includes:
[0019] Timing is started;
[0020] Correspondingly, the determination of whether the target player corresponding to the target page is in a playing state includes:
[0021] When the timing reaches a preset time length, it is determined whether the target player corresponding to the target page is in a playing state.
[0022] In an optional implementation, the target page is used to play a video based on a target video stream; and before the determination of whether the display offset parameter value of the target page meets a preset offset condition in response to the display state of the target page meeting a preset display condition, the method further includes:
[0023] In response to a page sliding operation triggered by a user, the page corresponding to the target video stream is controlled to slide and display;
[0024] Correspondingly, the determination of whether the display offset parameter value of the target page meets a preset offset condition in response to the display state of the target page meeting a preset display condition includes:
[0025] In response to the page corresponding to the target video stream stopping sliding and displaying to display the target page, it is determined whether the display offset parameter value of the target page meets a preset offset condition.
[0026] In an optional implementation, the preset offset condition includes that the display offset parameter value is an integer multiple of a page height.
[0027] In a second aspect, the disclosure also provides a page display processing device, the device includes:
[0028] A first determination module is configured to determine whether a display offset parameter value of a target page meets a preset offset condition in response to a display state of the target page meeting a preset display condition; wherein the preset offset condition is used to represent that the target page is not in an integral page offset state.
[0029] an adjusting module configured to adjust the display offset parameter value of the target page to obtain an adjusted offset parameter value when the display offset parameter value of the target page does not meet the preset offset condition, wherein the adjusted offset parameter value meets the preset offset condition;
[0030] a displaying module configured to display the target page based on the adjusted offset parameter value.
[0031] In a third aspect, the present disclosure provides a computer readable storage medium, wherein the computer readable storage medium stores instructions, and the instructions, when executed on a terminal device, cause the terminal device to implement the method described above.
[0032] In a fourth aspect, the present disclosure provides a page display processing device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the method described above when executing the computer program.
[0033] In a fifth aspect, the present disclosure provides a computer program product, comprising computer programs / instructions, and the computer programs / instructions, when executed on a processor, implement the method described above.
[0034] The technical solutions provided by the embodiments of the present disclosure have at least the following advantages compared with the prior art:
[0035] The embodiments of the present disclosure provide a page display processing method. Specifically, first, in response to the display state of a target page meeting a preset display condition, it is determined whether a display offset parameter value of the target page meets a preset offset condition, wherein the preset offset condition is used to represent that the target page is not in a whole-page offset state. Then, if it is determined that the display offset parameter value of the target page does not meet the preset offset condition, the display offset parameter value of the target page is adjusted to obtain an adjusted offset parameter value, wherein the adjusted offset parameter value meets the preset offset condition. Furthermore, the target page is displayed based on the adjusted offset parameter value.
[0036] As can be seen, the embodiments of the present disclosure can detect the display offset parameter value of the target page to determine whether the target page has a whole-page offset display abnormality, and in the case of a whole-page offset display abnormality, the display effect of the target page is optimized by adjusting the display offset parameter value, thereby reducing the probability of page display abnormality. BRIEF DESCRIPTION OF DRAWINGS
[0037] The accompanying drawings, which are incorporated herein and form part of the specification, illustrate embodiments consistent with the present disclosure and, together with the description, further serve to explain the principles of the present disclosure.
[0038] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0039] Figure 1 A flowchart of a page display processing method provided by an embodiment of the present disclosure;
[0040] Figure 2 A schematic diagram of a target page provided in an embodiment of the present disclosure;
[0041] Figure 3 A schematic diagram of another target page provided in an embodiment of the present disclosure;
[0042] Figure 4 A schematic diagram of a page display processing method provided by an embodiment of the present disclosure;
[0043] Figure 5 A schematic diagram of the structure of a page display processing device provided by an embodiment of the present disclosure;
[0044] Figure 6 A schematic diagram of the structure of a page display processing device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0045] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features therein can be combined with each other in the absence of conflict.
[0046] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0047] Currently, when users are browsing videos, some abnormal phenomena may appear on the page, such as page offset display and other abnormal phenomena.
[0048] Therefore, how to optimize the page display effect and reduce the probability of page display anomalies is a technical problem that needs to be solved urgently.
[0049] To this end, the embodiment of the present disclosure provides a page display processing method, specifically, first, in response to the display state of the target page satisfying a preset display condition, it is determined whether the display offset parameter value of the target page meets a preset offset condition, wherein the preset offset condition is used to represent that the target page is not in a whole page offset state, then, if it is determined that the display offset parameter value of the target page does not meet the preset offset condition, the display offset parameter value of the target page is adjusted to obtain an adjusted offset parameter value, wherein the adjusted offset parameter value meets the preset offset condition, and then, the target page is displayed based on the adjusted offset parameter value.
[0050] It can be seen that the embodiment of the present disclosure can detect the display offset parameter value of the target page to determine whether the target page has a whole page offset display abnormality, and in the case of a whole page offset display abnormality, the display effect of the target page is optimized by adjusting the display offset parameter value, thereby reducing the probability of page display abnormality.
[0051] Specifically, the embodiment of the present disclosure provides a page display processing method, referring to Figure 1 A flowchart of a page display processing method provided by the embodiment of the present disclosure, specifically comprising:
[0052] S101: In response to the display state of the target page satisfying a preset display condition, it is determined whether the display offset parameter value of the target page meets a preset offset condition.
[0053] The preset offset condition is used to represent that the target page is not in a whole page offset state.
[0054] The page display processing method provided by the embodiment of the present disclosure can be applied to a client, wherein the client can be deployed on a terminal such as a smart phone, a tablet computer, a notebook computer, a desktop computer, etc.
[0055] In the embodiment of the present disclosure, the target page can be any display page, for example, the target page can be a page for playing a video based on a target video stream, and the display state of the target page satisfying the preset display condition can be used to represent that the target page is in a stable display state, for example, the target page in the stable display state can include a page in a video stable playing stage after experiencing a video start playing stage.
[0056] In the embodiments of the present disclosure, the preset display condition can be a preset display condition used to determine whether the display offset parameter of the target page is detected when the target page is in a certain state. The display state of the target page satisfying the preset display condition can include: after receiving a display triggering operation of the target page, the page sliding display of playing a video based on a target video stream is stopped to display the target page. That is, when the page sliding display of playing a video based on the target video stream is stopped to display the target page, it is triggered to determine whether the display offset parameter value of the target page meets the preset offset condition.
[0057] The display offset parameter of the target page can be used to represent the offset of the display position of the target page relative to the preset initial display position.
[0058] In the embodiments of the present disclosure, the preset offset condition can be a preset offset condition used to determine whether the target page is offset.
[0059] In an optional implementation, the preset offset condition can include that the display offset parameter value is an integer multiple of the page height. If the display offset parameter of the target page is an integer multiple of the page height, it indicates that the display offset parameter value of the target page meets the preset offset condition, the target page is not in the full-page offset state, and the display content on the target page is completely displayed. If the display offset parameter of the target page is not an integer multiple of the page height, it indicates that the display offset parameter value of the target page does not meet the preset offset condition, the target page is in the full-page offset state, and the display content on the target page is not completely displayed. The page height can be specifically set based on requirements, and the embodiments of the present disclosure do not make any limitation in this regard.
[0060] For example, as shown in FIG. 1A, a schematic diagram of a target page is provided in the embodiments of the present disclosure. As shown in FIG. 1A, a first video 201 and a second video 202 are displayed in the target page, wherein the first video and the second video are two adjacent videos in the same video stream. At this moment, the page A is in the full-page offset state. Figure 2 Figure 2 In another optional implementation, the preset offset condition can also include identifying the display content of the target page by using image recognition technology. If the display content on the target page is identified by using the image recognition technology as not being completely displayed, it indicates that the target page is in the full-page offset state. If the display content on the target page is identified by using the image recognition technology as being completely displayed, it indicates that the target page is not in the full-page offset state.
[0061] In the embodiments of the present disclosure, when it is received that the display state of the target page meets the preset display condition, it is detected whether the display offset parameter value of the target page meets the preset offset condition.
[0062] In the embodiments of the present disclosure, when it is received that the display state of the target page meets the preset display condition, it is detected whether the display offset parameter value of the target page meets the preset offset condition.
[0063] In an optional implementation, when a user triggers a page sliding operation, the target video stream corresponding page sliding display is controlled. If it is received that the page sliding display based on the target video stream playing video is stopped to display a target page, it is detected whether the display offset parameter value of the target page meets a preset offset condition.
[0064] In S102, if it is determined that the display offset parameter value of the target page does not meet the preset offset condition, the display offset parameter value of the target page is adjusted to obtain an adjusted offset parameter value.
[0065] The adjusted offset parameter value meets the preset offset condition.
[0066] In the embodiments of the present disclosure, the adjusted offset parameter value is an integer multiple of the page height. By adjusting the display offset parameter value of the target page, the target page can be displayed in a non-integer page offset state, that is, the target page can be displayed completely.
[0067] Adjusting the display offset parameter value of the target page to obtain an adjusted offset parameter value can include recalculating the display offset parameter value of the target page and taking the calculated display offset parameter value as the adjusted offset parameter value.
[0068] In S103, the target page is displayed based on the adjusted offset parameter value.
[0069] In the embodiments of the present disclosure, the target page displayed based on the adjusted offset parameter value is in a non-integer page offset state.
[0070] As shown in the A figure in the target page shown in the above Figure 2 When it is detected that the display offset parameter value of the page A does not meet the preset offset condition, the display offset parameter value of the page is adjusted to obtain an adjusted offset parameter value, and the target page is displayed based on the adjusted offset parameter value, as shown in the B figure in the page shown in Figure 2 The first video 201 is displayed in the B figure.
[0071] In the page display processing method provided by the embodiments of the present disclosure, first, in response to the display state of the target page meeting a preset display condition, it is determined whether the display offset parameter value of the target page meets a preset offset condition, wherein the preset offset condition is used to represent that the target page is in a non-integer page offset state. Then, if it is determined that the display offset parameter value of the target page does not meet the preset offset condition, the display offset parameter value of the target page is adjusted to obtain an adjusted offset parameter value, wherein the adjusted offset parameter value meets the preset offset condition. Furthermore, the target page is displayed based on the adjusted offset parameter value.
[0072] It can be seen that the display offset parameter value of the target page is detected to determine whether the target page has a whole-page offset display abnormality, and the display effect of the target page is optimized by adjusting the display offset parameter value in the case of the whole-page offset display abnormality, thereby reducing the probability of page display abnormality.
[0073] In actual application, since one video corresponds to one player, when the target page is displayed, the videos of other pages may also be in the process of playing, that is, the players corresponding to the other pages are in the starting state, therefore, on the basis of detecting the display offset of the target page, to further reduce the probability of display abnormality of the target page, the display state of the target player corresponding to the target page is also detected. The target page is used to play a video by using the target player.
[0074] Specifically, it is determined whether the target player corresponding to the target page is in the playing state, if it is detected that the target player is in the playing state, it is detected whether there are multiple players in the playing state. The display triggering operation of the target page can include a sliding triggering operation for a page based on a target video stream.
[0075] If it is determined that there are multiple players in the playing state, the players other than the target player in the multiple players are controlled to pause playing, that is, only the target player corresponding to the target page is kept to play the video.
[0076] If it is determined that the target player is not in the playing state, the target player is first controlled to start playing, then it is detected whether there are multiple players in the playing state, if it is determined that there are multiple players in the playing state, the players other than the target player in the multiple players are controlled to pause playing. The target player not being in the playing state can include that the target player is paused or the target player is not started.
[0077] In actual application, since the page rendering display precedes the page sound playing when the page is displayed, to improve the accuracy of detecting the playing state of the player corresponding to the page, in the present disclosure, a delay is set when the page is displayed, and the playing state of the player corresponding to the page is detected after the delay ends. For example, the delay is 0.5s.
[0078] In an optional embodiment, a timing operation is set, when the page is displayed, the timing starts, and when the timing reaches a preset time length, the playing state of the target player corresponding to the page is detected. The timing operation is used to determine when to detect the playing state of the target player corresponding to the target page. The preset time length can be a pre-set time length.
[0079] In an application scenario, a first video is played by a first player and a second video is played by a second player, and the first video and the second video are two videos having an adjacent relationship in a target video stream.
[0080] Taking that the first video is currently played by the first player as an example, when a page sliding operation triggered by a user is received, the page sliding display of playing the first video is controlled, when the page sliding display of playing the first video is stopped to display a page of playing the second video, timing is started, and when the timing reaches a preset time length, a playing state of a second player corresponding to the page of playing the second video is detected.
[0081] If it is detected that the second player is in the playing state, it is detected whether there is another player also in the playing state, if it is detected that the first player is also in the playing state, the first player playing the first video is controlled to pause playing, at this time, only the second player plays the second video.
[0082] If it is detected that the second player is not in the playing state, the second player playing the second video is first controlled to start, and then, it is detected whether there is another player in the playing state, if it is detected that the first player is in the playing state, the first player playing the first video is controlled to pause.
[0083] By detecting the playing state of the player corresponding to the current page, it is ensured that only one player is in the playing state when the page is displayed, and the probability of page display abnormality is reduced.
[0084] In actual application, when a target page is displayed, abnormal phenomena of display occlusion may occur between view components on the target page. Therefore, to further reduce the probability of target page display abnormality, the disclosure embodiments can also detect whether abnormal phenomena of display occlusion exist between view components on the target page.
[0085] For example, as shown in FIG. 1, a schematic diagram of a target page is provided by the disclosure embodiments. As can be seen from the schematic diagram of the target page, abnormal phenomena of display overlap exist between view components 301 and 302 on the target page. Figure 3
[0086] Specifically, it is detected whether abnormal phenomena of display occlusion exist between view components on the target page, if it is determined that abnormal phenomena of display occlusion exist between view components on the target page, an occlusion image corresponding to the display occlusion is acquired.
[0087] When it is determined that abnormal phenomena of display occlusion exist between view components on the target page, the occlusion image is acquired and used to update the display position of the view components on the target page.
[0088] In actual application, after the occlusion image is acquired, the position information of the view component in the occlusion image is determined, the adjusted position information of the view component is obtained, and the target page and the view component on the target page are displayed based on the adjusted position information. The adjusted position information is used to correct the display position of the view component on the target page, so as to reduce the probability of display occlusion abnormality of the view component on the target page.
[0089] The page display optimization in three dimensions of page display offset, abnormal playing state of the player corresponding to the page, and display occlusion abnormality of the view component on the page is introduced to introduce the page display processing method provided by the embodiments of the present disclosure.
[0090] Specifically, when the display state of the target page meets the preset display condition, it is determined whether the display offset parameter value of the target page meets the preset offset condition. If it is detected that the display offset parameter value of the target page does not meet the preset offset condition, the display offset parameter value of the target page is adjusted to obtain an adjusted offset parameter value, and the target page is displayed based on the adjusted offset parameter value.
[0091] Then, after displaying the target page based on the adjusted offset parameter value, timing is started. When the timing reaches a preset time length, it is determined whether the target player corresponding to the target page is in a playing state. If it is detected that the target player is in the playing state, it is detected whether there are multiple players in the playing state at present. If it is detected that there are multiple players in the playing state at present, the players other than the target player in the multiple players are controlled to pause playing.
[0092] If it is detected that the target player is not in the playing state, the target player is controlled to start playing. Then, it is detected whether there are multiple players in the playing state at present. If it is detected that there are multiple players in the playing state at present, the players other than the target player in the multiple players are controlled to pause playing.
[0093] When only the target player corresponding to the target page is in the playing state, it is detected whether there is display occlusion between the view components on the target page. If it is detected that there is display occlusion between the view components on the target page, an occlusion image corresponding to the display occlusion is acquired, the position information of the view component is determined based on the occlusion image, the adjusted position information of the view component is obtained, and the target page and the view component on the target page are displayed based on the adjusted position information.
[0094] In order to facilitate understanding of the above embodiments, the page display processing method provided by the embodiments of the present disclosure will be introduced by taking a video playing client as an example. As shown in Figure 4 The flowchart of the page display processing method provided by the embodiments of the present disclosure is shown in
[0095] In an application scenario, during browsing of a video, when a page sliding trigger operation of a user is received, page sliding display is stopped to display a page A, wherein the page A is played by using a third player.
[0096] Firstly, it is detected whether the display offset parameter value of the page A meets a preset offset condition, that is, whether the display offset parameter value of the page A is an integer multiple of a page height. If it is detected that the display offset parameter value of the page A is not an integer multiple of the page height, the display offset parameter value of the page A is adjusted to obtain an adjusted offset parameter value, and the page A is displayed based on the adjusted offset parameter value. If it is detected that the display offset parameter value of the page A is an integer multiple of the page height, the display offset parameter value of the page A does not need to be adjusted.
[0097] Then, after the page A is displayed based on the display offset parameter value or based on the adjusted offset parameter value, timing is started. When the timing reaches a preset time length, it is detected whether the third player corresponding to the page A is in a playing state.
[0098] Firstly, it is detected whether the third player corresponding to the page A is in a playing state. If it is detected that the third player is in the playing state, it is detected whether there is another player in the playing state. If it is detected that there is another player in the playing state, the other player is controlled to pause playing.
[0099] If it is detected that the third player is in a non-playing state, the third player is controlled to start playing. Then, it is detected whether there is another player in the playing state. If it is detected that there is another player in the playing state, the other player is controlled to pause playing.
[0100] On the basis that only the third player corresponding to the page A is in the playing state, it is detected whether there is an abnormal phenomenon of display occlusion between view components on the page A. If it is detected that there is the display occlusion between the view components on the page A, an occlusion image corresponding to the display occlusion is obtained. Based on the occlusion image, position information of the view components is determined to obtain adjusted position information of the view components. The target page and the view components on the target page are displayed based on the adjusted position information.
[0101] The embodiments of the present disclosure can support multiple dimensions of page display offset, abnormal playing state of a player corresponding to a page, and abnormal display occlusion of page components. The page is detected and displayed to reduce the probability of page display abnormality and improve the browsing experience of a user.
[0102] Based on the above method embodiments, the present disclosure further provides a page display processing apparatus, which is described with reference to Figure 5A structural schematic diagram of a page display processing apparatus provided by an embodiment of the present disclosure is shown in FIG. 1. The apparatus includes a first determining module 501, a second determining module 502, and a display module 503.
[0103] The first determining module 501 is configured to determine whether a display offset parameter value of a target page meets a preset offset condition in response to a display state of the target page meeting a preset display condition. The preset offset condition is used to represent that the target page is not in a full-page offset state.
[0104] The second determining module 502 is configured to adjust the display offset parameter value of the target page to obtain an adjusted offset parameter value when the display offset parameter value of the target page does not meet the preset offset condition. The adjusted offset parameter value meets the preset offset condition.
[0105] The display module 503 is configured to display the target page based on the adjusted offset parameter value.
[0106] In an optional embodiment, the target page is used to play a video by using a target player. The apparatus further includes a third determining module 504, a fourth determining module 505, a first detecting module 506, and a first control module 507.
[0107] The third determining module 504 is configured to determine whether the target player corresponding to the target page is in a playing state.
[0108] The first detecting module 506 is configured to detect whether there are multiple players in a playing state when the target player is in the playing state.
[0109] The first control module 507 is configured to control players other than the target player among the multiple players to pause playing when there are currently multiple players in the playing state.
[0110] In an optional embodiment, the apparatus further includes a second detecting module 508 and a second control module 509.
[0111] The second detecting module 508 is configured to detect whether there is display occlusion between view components on the target page.
[0112] The acquisition module is configured to acquire an occlusion image corresponding to the display occlusion when there is display occlusion between the view components on the target page. The occlusion image is used to update a display position of the view components on the target page.
[0113] In an optional embodiment, the apparatus further includes a third control module 510.
[0114] The third control module 510 is configured to control the target player to start playing when the target player is not in the playing state.
[0115] In an optional embodiment, the apparatus further includes a fourth control module 511.
[0116] a timing module, configured to start timing;
[0117] Correspondingly, the second determining module is specifically configured to:
[0118] determine whether the target player corresponding to the target page is in a playing state when the timing reaches the preset time length.
[0119] In an optional implementation, the target page is configured to play a video based on a target video stream; and the apparatus further comprises:
[0120] a third control module, configured to control the page corresponding to the target video stream to slide display in response to a page sliding operation triggered by a user.
[0121] Correspondingly, the first determining module is specifically configured to:
[0122] determine whether the display offset parameter value of the target page meets a preset offset condition in response to the page corresponding to the target video stream stopping to slide display to display the target page.
[0123] In an optional implementation, the preset offset condition comprises that the display offset parameter value is an integer multiple of a page height.
[0124] The embodiments of the present disclosure provide a page display processing apparatus. Specifically, first, in response to a display state of a target page meeting a preset display condition, it is determined whether a display offset parameter value of the target page meets a preset offset condition, wherein the preset offset condition is used to represent that the target page is not in a full-page offset state. Then, if it is determined that the display offset parameter value of the target page does not meet the preset offset condition, the display offset parameter value of the target page is adjusted to obtain an adjusted offset parameter value, wherein the adjusted offset parameter value meets the preset offset condition. Further, the target page is displayed based on the adjusted offset parameter value.
[0125] It can be seen that the embodiments of the present disclosure can detect the display offset parameter value of the target page to determine whether the target page has a full-page offset display abnormality, and in the case of the full-page offset display abnormality, the display effect of the target page is optimized by adjusting the display offset parameter value, thereby reducing the probability of page display abnormality.
[0126] In addition to the above method and apparatus, the embodiments of the present disclosure further provide a computer-readable storage medium, which stores instructions. When the instructions run on a terminal device, the terminal device implements the page display processing method provided by the embodiments of the present disclosure.
[0127] The embodiment of the present disclosure further provides a computer program product, which comprises computer programs / instructions, and the computer programs / instructions are executed by a processor to implement the page display processing method provided by the embodiment of the present disclosure.
[0128] In addition, the embodiment of the present disclosure further provides a page display processing device, as shown in Figure 6 may comprise:
[0129] The page display processing device can comprise a processor 601, a memory 602, an input device 603 and an output device 604. The number of processors 601 in the page display processing device can be one or more, Figure 6 In some embodiments of the present disclosure, the processor 601, the memory 602, the input device 603 and the output device 604 can be connected through a bus or other means, wherein, Figure 6 In some embodiments of the present disclosure, the processor 601, the memory 602, the input device 603 and the output device 604 can be connected through a bus or other means, wherein,
[0130] The memory 602 can be used to store software programs and modules, and the processor 601 can execute various functional applications and data processing of the page display processing device by running the software programs and modules stored in the memory 602. The memory 602 can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required by a function, etc. In addition, the memory 602 can comprise a high-speed random access memory, and can also comprise a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device. The input device 603 can be used to receive input digital or character information, and generate signal input related to user settings and function control of the page display processing device.
[0131] Specifically in the present embodiment, the processor 601 will load the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and run the application program stored in the memory 602 by the processor 601, thereby realizing the various functions of the page display processing device described above.
[0132] It can be understood that before using the technical solutions disclosed in the embodiments of the present disclosure, the user should be informed of the type of information involved in the present disclosure, the use range, the use scenario, etc. and obtain the authorization of the user through appropriate means according to relevant laws and regulations.
[0133] For example, in response to receiving an active request of a user, a prompt information is sent to the user to explicitly prompt the user that the operation requested to be performed by the user will need to acquire and use personal information of the user. Thus, the user can autonomously select whether to provide the personal information to the software or hardware such as an electronic device, an application program, a server or a storage medium performing the operation of the technical solution of the present disclosure according to the prompt information.
[0134] As an optional but non-limiting implementation, in response to receiving an active request of a user, the manner of sending a prompt information to the user may, for example, be a pop-up window manner, and the prompt information may, for example, be presented in the pop-up window in the form of text. In addition, the pop-up window may, for example, also carry a selection control for the user to select “agree” or “disagree” to provide personal information to the electronic device.
[0135] It can be understood that the above notification and acquisition of user authorization process is only illustrative, and does not limit the implementation of the present disclosure, and other manners meeting the relevant laws and regulations can also be applied to the implementation of the present disclosure.
[0136] It should be noted that, in this document, relational terms such as “first” and “second”, and the like, are 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. Moreover, the terms “comprises”, “comprising”, or any other variations 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 can include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without limitation, an element preceded by “comprises... a” does not, without more constraints, foreclose the existence of additional identical elements in the process, method, article, or apparatus that comprises the element.
[0137] The above description is merely one specific implementation of the present disclosure, which enables those skilled in the art to understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to these embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A page display processing method characterized by comprising: Comprise: In response to the display state of the target page meeting a preset display condition, determine whether the display offset parameter value of the target page meets a preset offset condition; wherein the preset offset condition is used to represent that the target page is not in a whole page offset state; If it is determined that the display offset parameter value of the target page does not meet the preset offset condition, adjust the display offset parameter value of the target page to obtain an adjusted offset parameter value; wherein the adjusted offset parameter value meets the preset offset condition; Display the target page based on the adjusted offset parameter value.
2. The method of claim 1, wherein, The target page is used to play a video using a target player, and the method further comprises: Determine whether the target player corresponding to the target page is in a playing state; If it is determined that the target player is in a playing state, detect whether there are multiple players in a playing state at present; If it is determined that there are multiple players in a playing state at present, control the players other than the target player among the multiple players to pause playing.
3. The method according to claim 1 or 2, characterized in that, The method further comprises: Detect whether there is display occlusion between view components on the target page; If it is determined that there is display occlusion between view components on the target page, obtain an occlusion image corresponding to the display occlusion; wherein the occlusion image is used to update the display position of the view components on the target page.
4. The method according to claim 1 or 2, characterized in that, The method further comprises: If it is determined that the target player is not in a playing state, control the target player to start playing.
5. The method according to claim 1 or 2, characterized in that, After the target page is displayed based on the adjusted offset parameter value, the method further comprises: Start timing; Correspondingly, the determination of whether the target player corresponding to the target page is in a playing state comprises: When the timing reaches a preset time length, determine whether the target player corresponding to the target page is in a playing state.
6. The method according to claim 1, characterized in that The target page is used to play a video based on a target video stream; Before the determination of whether the display offset parameter value of the target page meets a preset offset condition in response to the display state of the target page meeting a preset display condition, the method further comprises: In response to a page sliding operation triggered by a user, control the page corresponding to the target video stream to slide and display; Correspondingly, the determination of whether the display offset parameter value of the target page meets a preset offset condition in response to the display state of the target page meeting a preset display condition comprises: In response to the stop of the page corresponding to the target video stream to slide and display to display the target page, determine whether the display offset parameter value of the target page meets a preset offset condition.
7. The method of claim 6, wherein, The preset offset condition comprises that the display offset parameter value is an integer multiple of the page height.
8. A page display processing apparatus characterized by comprising: The device comprises: A first determination module, configured to determine whether the display offset parameter value of the target page meets a preset offset condition in response to the display state of the target page meeting a preset display condition; wherein the preset offset condition is used to represent that the target page is not in a whole page offset state; The adjusting module is configured to adjust the display offset parameter value of the target page to obtain an adjusted offset parameter value when the display offset parameter value of the target page does not meet the preset offset condition; and the adjusted offset parameter value meets the preset offset condition. The display module is configured to display the target page based on the adjusted offset parameter value.
9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores instructions, and when the instructions run on the terminal device, the terminal device implements the method in any one of claims 1-7.
10. A page display processing apparatus characterized by comprising: The computer program product comprises the computer program / instructions, and the computer program / instructions are executed by the processor to implement the method in any one of claims 1-7. The computer program product comprises the computer program / instructions, and the computer program / instructions are executed by the processor to implement the method in any one of claims 1-7.
11. A computer program product, characterised in that,