Dynamic image display method and device, and storage medium
By detecting user operation status and the visibility of dynamic images, the playback status of dynamic images is controlled, which solves the problem of wasted computing resources in the interface view and improves interface loading speed and user experience.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-09-18
- Publication Date
- 2026-04-02
AI Technical Summary
In an interface view containing multiple dynamic images, the display of dynamic images consumes a lot of computing resources, resulting in slow interface loading speed, lag during swiping operations, and affecting the user experience.
By detecting the user's operation status on the interface view and the visibility status of the target dynamic image, the playback status is determined, and control is performed according to the playback status to avoid unnecessary waste of computing resources.
It reduces the consumption of computing resources, improves the smoothness of user swiping operations, and enhances the loading speed of interface views and user experience.
Smart Images

Figure CN2025122230_02042026_PF_FP_ABST
Abstract
Description
Dynamic image display method, device, and storage medium
[0001] Cross-reference to Related Applications
[0002] This application claims priority to the Chinese Patent Application No. 202411376750.9, filed on September 29, 2024, and entitled "Dynamic image display method, device, and storage medium", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0003] Embodiments of the present disclosure relate to the technical field of computer and network communication, and particularly relate to a dynamic image display method, device, and storage medium. BACKGROUND
[0004] A dynamic image refers to an image that produces a certain dynamic effect when a specific set of static images is switched at a specified frequency. A common form on the network is a GIF dynamic image, which is generated by switching different images in multiple layers according to time to achieve an animation effect. SUMMARY
[0005] Embodiments of the present disclosure provide a dynamic image display method, device, and storage medium.
[0006] In a first aspect, embodiments of the present disclosure provide a dynamic image display method, comprising:
[0007] determining a current operation state of a user on an interface view; wherein the interface view includes a target dynamic image;
[0008] determining a visible state of the target dynamic image according to whether the target dynamic image in the interface view is located within a display area of the interface view; wherein the display area of the interface view is a part of the interface view, and the display area of the interface view can change position according to a sliding operation of the user on the interface view;
[0009] determining a play state of the target dynamic image according to the operation state and the visible state of the target dynamic image, and performing play control on the target dynamic image according to the play state of the target dynamic image.
[0010] In a second aspect, embodiments of the present disclosure provide a dynamic image display device, comprising:
[0011] an operation state detection unit configured to determine a current operation state of a user on an interface view; wherein the interface view includes a target dynamic image;
[0012] The visible state detection unit is configured to determine a visible state of the target dynamic image according to whether the target dynamic image in the interface view is located in a display region of the interface view, wherein the display region of the interface view is a partial region in the interface view, and the display region of the interface view is capable of changing a position according to a sliding operation of a user on the interface view.
[0013] The control unit is configured to determine a playing state of the target dynamic image according to the operation state and the visible state of the target dynamic image, and perform playing control on the target dynamic image according to the playing state of the target dynamic image.
[0014] In a third aspect, an electronic device is provided, including at least one processor and a memory.
[0015] The memory stores computer-executable instructions.
[0016] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the dynamic image display method as described in the first aspect and various possible designs of the first aspect.
[0017] In a fourth aspect, a computer-readable storage medium is provided, and the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the dynamic image display method as described in the first aspect and various possible designs of the first aspect is implemented.
[0018] In a fifth aspect, a computer program product is provided, and the computer program product includes computer-executable instructions. When a processor executes the computer-executable instructions, the dynamic image display method as described in the first aspect and various possible designs of the first aspect is implemented.
[0019] The dynamic image display method, device, and storage medium provided by the embodiments of the present disclosure determine the current operation state of a user on an interface view, wherein the interface view includes a target dynamic image. The visible state of the target dynamic image is determined according to whether the target dynamic image in the interface view is located in a display region of the interface view, wherein the display region of the interface view is a partial region in the interface view, and the display region of the interface view is capable of changing a position according to a sliding operation of a user on the interface view. The playing state of the target dynamic image is determined according to the operation state and the visible state of the target dynamic image, and playing control is performed on the target dynamic image according to the playing state of the target dynamic image. BRIEF DESCRIPTION OF DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are some embodiments of the present disclosure, and for those skilled in the art, other drawings can also be obtained from these drawings without creative labor.
[0021] Fig. 1 is a schematic diagram of an interface view of a dynamic image display method according to an embodiment of the present disclosure;
[0022] Fig. 2 is a schematic diagram of a flow of a dynamic image display method according to an embodiment of the present disclosure;
[0023] Fig. 3 is a schematic diagram of a flow of a dynamic image display method according to another embodiment of the present disclosure;
[0024] Fig. 4 is a schematic diagram of a flow of a dynamic image display method according to another embodiment of the present disclosure;
[0025] Fig. 5 is a structural block diagram of a dynamic image display device according to an embodiment of the present disclosure;
[0026] Fig. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0027] In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure clearer, the following will combine the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are some, but not all of the embodiments of the present disclosure. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present disclosure.
[0028] Dynamic images such as GIF dynamic images and the like need to consume CPU, GPU and other computing resources for decoding and rendering when displayed. GIF (Graphics Interchange Format) is an image file storage format, and a GIF image file stores image-related information in units of blocks. A GIF file is composed of data blocks representing graphics / images, data sub-blocks, and control information blocks for displaying graphics / images, referred to as a GIF data stream; all control information blocks and data blocks in the data stream must be between the header (Header) and the end of the file block (Trailer); the GIF file format uses the LZW (Lempel-Ziv Walch) compression algorithm to store image data, and defines a transparency attribute that allows users to set the background for images; in addition, the GIF file format can store multiple color graphics / images in one file; if multiple images are stored in a GIF file, they can be displayed like a slide show or demonstrated like an animation.
[0029] Dynamic images need to consume CPU, GPU and other computing resources for decoding and rendering when displayed. However, in an interface view containing multiple dynamic images, all dynamic images in the interface view will be downloaded, decoded and rendered, and the display of multiple dynamic images will consume a large amount of computing resources, resulting in slow loading of the interface view, stuttering of the sliding operation and other problems, affecting the user operation experience.
[0030] Of course, the same problems as described above also exist for some interface images containing multiple videos that can be automatically played.
[0031] To solve the above technical problems, the embodiments of the present disclosure provide a dynamic image display method, which determines the current operation state of the user on the interface view; wherein the interface view includes a target dynamic image, as shown in FIG. 1 (not limited to the display mode of FIG. 1); determines the visibility state of the target dynamic image according to whether the target dynamic image in the interface view is located within the display area of the interface view; wherein the display area of the interface view is a part of the interface view, and the display area of the interface view can change position according to the user's sliding operation on the interface view; determines the play state of the target dynamic image according to the operation state and the visibility state of the target dynamic image, and controls the play of the target dynamic image according to the play state of the target dynamic image. By detecting the user operation state and the visibility state of the target dynamic image to control the play state of the target dynamic image, unnecessary play of the target dynamic image can be avoided, the impact on the user's interface operation such as sliding can be reduced, and a balance between user experience and performance can be achieved.
[0032] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present disclosure are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation portal for user to choose authorization or refusal.
[0033] The dynamic image display method of the present disclosure will be described in detail below in combination with specific embodiments.
[0034] Referring to FIG. 2, FIG. 2 is a flowchart of a dynamic image display method provided by an embodiment of the present disclosure. The method of the present embodiment can be applied in a terminal device, and the dynamic image display method comprises:
[0035] S201, determining a current operation state of a user on an interface view; wherein the interface view comprises a target dynamic image.
[0036] In the present embodiment, the interface view comprises one or more dynamic images, which can be arranged in any arrangement, for example, in a list arrangement, wherein the dynamic image includes but is not limited to a moving picture, and can also include a video image and other automatically playable dynamic media content; and the moving picture is not limited to GIF format, but can also include other known moving picture formats such as WebP, APNG, etc.
[0037] In addition, the interface view can be relatively large, and the number of dynamic images included can be relatively large, and the screen of the terminal device can only be able to display a part of the interface view, i.e. the display area of the interface view (of course, the display area of the interface view can also not be the same as the size of the screen of the terminal device, and can also be smaller than the size of the screen of the terminal device, for example, a small window is used to display the display area of the interface view in the screen), and the display area of the interface view can change position according to the sliding operation (which can be a sliding operation in any direction, or other operations) of the user on the interface view, and some dynamic images of the interface view can be located in the display area of the interface view, or can not be located in the display area of the interface view.
[0038] Considering that the dynamic image needs to consume CPU, GPU and other computing resources for decoding and rendering when playing, which can affect the user's sliding operation experience, in order to control the playing of the dynamic image, the current operation state of the user on the interface view can be detected as a basis for controlling the playing of the dynamic image.
[0039] The operation state can include a sliding operation state and a non-sliding operation state. The sliding operation state includes a state in which a user touches the terminal device screen to perform a sliding operation, and can also include a state in which the user stops touching the terminal device screen, but the interface view is still sliding due to inertia, and can also include a sliding state generated by other sliding manners. The non-sliding operation state includes a user non-operation state, and can also include other possible operation states, such as a click operation state in the interface view, and the like.
[0040] S202, determining a visible state of the target dynamic image according to whether the target dynamic image is located in a display region of the interface view; wherein the display region of the interface view is a part of the interface view, and the display region of the interface view can change a position according to a sliding operation of the user on the interface view.
[0041] In this embodiment, for any one target dynamic image in the interface view, the target dynamic image can be located in the display region of the interface view, or can not be located in the display region of the interface view. For example, the terminal device screen can only display 9 dynamic images in 3 rows and 3 columns, that is, the display region of the interface view can display 9 dynamic images in 3 rows and 3 columns at most. If the interface view includes 15 dynamic images in 5 rows and 3 columns, 9 dynamic images in 3 rows and 3 columns in the 15 dynamic images can be displayed (that is, located in the display region of the interface view), and 6 dynamic images in 2 rows and 3 columns cannot be displayed (that is, located in the non-display region of the interface view).
[0042] Considering that the dynamic image needs to consume CPU, GPU and other resources for decoding and rendering when playing, which can affect the sliding operation experience of the user. However, the dynamic image located in the non-display region of the interface view cannot be watched by the user even if it is played, and the CPU, GPU and other computing resources are wasted, which also affects the sliding operation experience of the user. Therefore, the visible state of the dynamic image needs to be considered when playing the dynamic image.
[0043] It should be noted that as long as at least a part of the target dynamic image is located in the display region of the interface view, the visible state of the target dynamic image can be determined as visible. For example, the terminal device screen can display 9 dynamic images in 3 rows and 3 columns. During the sliding operation of the interface view upwards, the uppermost 1 dynamic image will gradually slide out of the display region of the interface view. Before the uppermost 1 dynamic image completely slides out of the non-display region of the interface view, at least a part of the dynamic image is located in the display region of the interface view. When all the target dynamic images are located outside the display region of the interface view, the visible state of the target dynamic image is determined as invisible.
[0044] S203, determine the playing state of the target dynamic image according to the operation state and the visible state of the target dynamic image, and perform playing control on the target dynamic image according to the playing state of the target dynamic image.
[0045] In this embodiment, after determining the operation state and the visible state of the target dynamic image, the playing state of the target dynamic image can be determined based on the operation state and the visible state of the target dynamic image, so as to avoid unnecessary playing of the target dynamic image as much as possible, reduce the consumption of computing resources such as CPU and GPU, and ensure the operation experience of the user.
[0046] Specifically, if the operation state is the non-sliding operation state and the visible state of the target dynamic image is visible, it indicates that the interface view is not currently being slid and the target dynamic image is located in the display area of the interface view, and the user may have the demand of watching the target dynamic image, so the playing state of the target dynamic image can be determined as needing to be played.
[0047] Alternatively, if the operation state is the sliding operation state and / or the visible state of the target dynamic image is invisible, the playing state of the target dynamic image is determined as not needing to be played. The following three cases are included.
[0048] 1) The operation state is the sliding operation state and the visible state of the target dynamic image is visible, that is, although the target dynamic image is located in the display area of the interface view, the interface view is still in the sliding process, the user has limited time to browse the target dynamic image, and the user has little demand to watch the target dynamic image, so the target dynamic image can not be played, that is, the playing state of the target dynamic image is determined as not needing to be played.
[0049] 2) The operation state is the sliding operation state and the visible state of the target dynamic image is invisible, wherein since the target dynamic image is not located in the display area of the interface view, even if the target dynamic image is played, the user cannot watch it, which wastes the computing resources such as CPU and GPU and affects the sliding operation experience of the user, so the target dynamic image can not be played, that is, the playing state of the target dynamic image is determined as not needing to be played.
[0050] 3) The operation state is the non-sliding operation state and the visible state of the target dynamic image is invisible, which is similar to case 2), and since the target dynamic image is not located in the display area of the interface view, the target dynamic image can not be played, that is, the playing state of the target dynamic image is determined as not needing to be played.
[0051] After determining the playing state of the target dynamic image, the target dynamic image can be played according to the playing state of the target dynamic image, including controlling when the target dynamic image starts playing or stops playing, and also controlling what the target dynamic image displays when it stops playing, and how to control the playing when the playing state changes, etc.
[0052] In an alternative embodiment, if the target dynamic image has been downloaded completely, the target dynamic image can be controlled to start playing or stop playing according to the playing state of the target dynamic image.
[0053] In this embodiment, if the target dynamic image has been downloaded completely, the target dynamic image can be controlled to start playing when the playing state of the target dynamic image is to play, and the target dynamic image can be controlled to stop playing when the playing state of the target dynamic image is not to play.
[0054] If the target dynamic image is played for the first time, the process of starting playing the target dynamic image includes decoding, rendering and playing the target dynamic image; if the target dynamic image is not played for the first time, the decoding data of the target dynamic image can be saved since the target dynamic image has been played before, and in this time of starting playing, the target dynamic image can be directly rendered and played based on the decoding data without decoding again.
[0055] Stopping playing the target dynamic image includes two cases. If the target dynamic image has not been played before, it can be kept not playing; if the playing state of the target dynamic image changes from playing to not playing after the target dynamic image starts playing, the target dynamic image needs to be controlled to stop playing, and the picture of the current playing frame when stopping playing can be kept displaying, i.e. the target dynamic image stops at the frame where it plays (of course, the first frame of the target dynamic image can also be displayed).
[0056] Starting playing the target dynamic image also includes that when the playing state of the target dynamic image changes from not playing to playing after the target dynamic image stops playing, the target dynamic image needs to be controlled to start playing, and the target dynamic image can be controlled to continue playing from the current playing frame when stopping playing (of course, the target dynamic image can also start playing from the first frame).
[0057] In another alternative embodiment, if the target dynamic image has not been downloaded completely, the target dynamic image can be controlled to start playing or only display the first frame after the target dynamic image is downloaded completely according to the playing state of the target dynamic image.
[0058] In the embodiment, if the target dynamic image is downloaded later than the user operation, the target dynamic image is controlled to play according to the play state of the target dynamic image after the target dynamic image is downloaded. Specifically, if the play state of the target dynamic image is to be played after the target dynamic image is downloaded, the target dynamic image is controlled to start playing, and the process of starting playing includes decoding, rendering and playing the target dynamic image. If the play state of the target dynamic image is not to be played after the target dynamic image is downloaded, the target dynamic image is only controlled to display the first frame, and the process of displaying the first frame includes decoding (or only decoding the first frame), rendering and displaying the first frame of the target dynamic image.
[0059] Optionally, on the basis of any of the above embodiments, the target dynamic image can be marked with a play state identifier after the play state of the target dynamic image is determined. The play state identifier is mainly used to control the target dynamic image to play directly based on the play state identifier after the target dynamic image is downloaded. However, considering that the play state of the target dynamic image can change at any time following the change of the operation state and / or the course state of the target dynamic image, the play state of the target dynamic image can be determined in real time, and the play state identifier of the target dynamic image can be updated when the play state of the target dynamic image changes. In this way, after the target dynamic image is downloaded, the latest play state of the target dynamic image can be determined according to the play state identifier of the target dynamic image, and the target dynamic image is controlled to start playing or only display the first frame according to the play state identifier of the target dynamic image. In the embodiment, the play state identifier of the target dynamic image is marked and updated, so that the latest play state of the target dynamic image can be quickly determined when the target dynamic image is downloaded, and the low efficiency and long delay caused by running a complete logic to determine the play state (determining the operation state and the course state, and then determining the play state) after the target dynamic image is downloaded can be avoided.
[0060] It should be noted that the order of execution of S201 and S202 is not limited in the embodiment, or S201 and S202 can be executed simultaneously.
[0061] The dynamic image display method provided in the embodiment determines a current operation state of a user on an interface view, wherein the interface view includes a target dynamic image; determines a visible state of the target dynamic image according to whether the target dynamic image in the interface view is located in a display region of the interface view; the display region of the interface view is a partial region in the interface view, and the display region of the interface view can change position according to a sliding operation of the user on the interface view; determines a playing state of the target dynamic image according to the operation state and the visible state of the target dynamic image, and controls playing of the target dynamic image according to the playing state of the target dynamic image. By detecting the operation state of the user and the visible state of the target dynamic image to control the playing state of the target dynamic image, unnecessary playing of the target dynamic image can be avoided, the waste of computing resources can be reduced, the influence on the interface operation such as sliding of the user can be reduced, and the balance between user experience and performance can be achieved.
[0062] On the basis of any of the above embodiments, during the sliding of the interface view, container reuse may occur, for example, a top dynamic image in the interface view is slid out of the display region of the interface view, and a dynamic image enters the display region of the interface view at the same time. The newly entered dynamic image reuses the container of the dynamic image that is slid out of the display region of the interface view, that is, needs to be loaded into the container. At this time, the starting playing or displaying only the first frame of the picture can also be controlled according to the playing state of the dynamic image.
[0063] In the above embodiment, if the target dynamic image reuses the container of another dynamic image that is not displayed, the starting playing or displaying only the first frame of the picture of the target dynamic image is controlled according to the playing state identifier of the target dynamic image, that is, the starting playing or displaying only the first frame of the picture of the target dynamic image in the new container is controlled. The latest playing state can be quickly determined when the target dynamic image is loaded into the new container, and the low efficiency and long delay caused by running complete logic to determine the playing state (determining the operation state and the visible state, and then determining the playing state) when the target dynamic image is loaded into the new container can be avoided.
[0064] On the basis of any of the above embodiments, there are certain differences in the dynamic image display method of the above embodiment when executed on terminal devices of iOS systems and terminal devices of Android systems. The dynamic image display method of the above embodiment will be described below from the terminal devices of iOS systems and the terminal devices of Android systems.
[0065] For the terminal device of the iOS system, the dynamic image display method is shown in FIG. 3, and specifically includes:
[0066] 1) Detect user operation through iOS system, determine the operation state of the user to the interface view at present; detect the visible state of the target dynamic image in the interface view through the iOS system;
[0067] 2) In the view element manager, according to the operation state and the visible state of the target dynamic image, call different interfaces of the custom component, control the playing state of the target dynamic image, and mark the legality identification of the target dynamic image (the legality identification is equivalent to the playing state identification above, the legality represents the need to play, and the illegality represents the need not to play);
[0068] Wherein, when calling different interfaces of the custom component to control the playing state of the target dynamic image, if the target dynamic image has completed downloading, the target dynamic image can be played when calling the start playing interface, and the target dynamic image can be stopped playing when calling the stop playing interface.
[0069] If the target dynamic image has not completed downloading, that is, the target dynamic image completes downloading later than the user operation, the subsequent playing state of the dynamic image can be controlled according to the legality identification, the normal decoding playing process is performed when the legality identification is legal, and only the first frame is rendered and displayed when the legality identification is illegal.
[0070] For terminal devices of the Android system, the dynamic image display method is shown in FIG. 4, which specifically includes:
[0071] 1) Register the sliding detector of the Android system to the UI display container such as RecyclerView, ViewPager and the like, detect the user sliding operation through the sliding detector, judge whether the current is in the sliding state, if in the sliding operation state, mark the playing state as not needing to play in the dynamic image playing controller, if not in the sliding operation state, mark the playing state as needing to play;
[0072] 2) The visible element of the dynamic image that has completed downloading detects the current playing state, and executes playing or stopping playing according to the playing state, that is, if the playing state is not needing to play, stopping playing is executed, if the playing state is needing to play, playing is executed;
[0073] 3) The visible element of the dynamic image that has not completed downloading acquires the current playing state from the dynamic image playing controller when the dynamic image is downloaded, and executes playing or only displays the first frame according to the playing state, that is, if the playing state is not needing to play, only the first frame is rendered and displayed, if the playing state is needing to play, start playing is executed.
[0074] Corresponding to the dynamic image display method of the above embodiment, FIG. 5 is a structural block diagram of a dynamic image display device provided by an embodiment of the present disclosure. For ease of illustration, only parts related to the embodiment of the present disclosure are shown. Referring to FIG. 5, the dynamic image display device 500 includes an operation state detection unit 501, a visible state detection unit 502, and a control unit 503.
[0075] The operation state detection unit 501 is configured to determine a current operation state of a user on an interface view, wherein the interface view includes a target dynamic image.
[0076] The visible state detection unit 502 is configured to determine a visible state of the target dynamic image according to whether the target dynamic image in the interface view is located within a display region of the interface view, wherein the display region of the interface view is a partial region of the interface view, and the display region of the interface view is capable of changing position according to a sliding operation of the user on the interface view.
[0077] The control unit 503 is configured to determine a playing state of the target dynamic image according to the operation state and the visible state of the target dynamic image, and perform playing control on the target dynamic image according to the playing state of the target dynamic image.
[0078] In one or more embodiments of the present disclosure, when the control unit 503 determines the playing state of the target dynamic image according to the operation state and the visible state of the target dynamic image, the control unit 503 is configured to:
[0079] if the operation state is a non-sliding operation state and the visible state of the target dynamic image is visible, determine that the playing state of the target dynamic image is to be played; or
[0080] if the operation state is a sliding operation state and / or the visible state of the target dynamic image is invisible, determine that the playing state of the target dynamic image is not to be played.
[0081] In one or more embodiments of the present disclosure, when the control unit 503 performs playing control on the target dynamic image according to the playing state of the target dynamic image, the control unit 503 is configured to:
[0082] if the target dynamic image has been completely downloaded, control the target dynamic image to start playing or stop playing according to the playing state of the target dynamic image; or
[0083] if the target dynamic image has not been completely downloaded, control the target dynamic image to start playing or only display a first frame of picture after the target dynamic image is completely downloaded according to the playing state of the target dynamic image.
[0084] In one or more embodiments of the present disclosure, the control unit 503 is configured to, when controlling the target dynamic image to start playing or only display the first frame of the target dynamic image according to the playing state of the target dynamic image after the target dynamic image is downloaded completely, perform the following operations:
[0085] If the playing state of the target dynamic image is to be played after the target dynamic image is downloaded completely, the control unit 503 controls the target dynamic image to start playing; or
[0086] If the playing state of the target dynamic image is not to be played after the target dynamic image is downloaded completely, the control unit 503 controls the target dynamic image to only display the first frame of the target dynamic image.
[0087] In one or more embodiments of the present disclosure, the control unit 503 is configured to, after determining the playing state of the target dynamic image, perform the following operations:
[0088] Marking a playing state identifier for the target dynamic image, and updating the playing state identifier for the target dynamic image after determining the playing state of the target dynamic image in real time;
[0089] The control unit 503 is configured to, when controlling the target dynamic image to start playing or only display the first frame of the target dynamic image according to the playing state of the target dynamic image after the target dynamic image is downloaded completely, perform the following operations:
[0090] Controlling the target dynamic image to start playing or only display the first frame of the target dynamic image according to the playing state identifier of the target dynamic image after the target dynamic image is downloaded completely.
[0091] In one or more embodiments of the present disclosure, the control unit 503 is further configured to:
[0092] If the target dynamic image multiplexes a container of another dynamic image that has not been displayed, the control unit 503 controls the target dynamic image to start playing or only display the first frame of the target dynamic image according to the playing state identifier of the target dynamic image.
[0093] In one or more embodiments of the present disclosure, the control unit 503 is configured to, when controlling the target dynamic image to start playing or stop playing according to the playing state of the target dynamic image, perform the following operations:
[0094] If the playing state of the target dynamic image changes from to be played to not to be played after the target dynamic image starts playing, the control unit 503 controls the target dynamic image to stop playing and keep displaying the frame of the current playing frame when the target dynamic image stops playing; or
[0095] If the playing state of the target dynamic image is changed from not needing to play to needing to play after the target dynamic image stops playing, the target dynamic image is controlled to continue playing from the current playing frame at the time of stopping playing.
[0096] In one or more embodiments of the present disclosure, the visible state detection unit 502 is configured to determine the visible state of the target dynamic image according to whether the target dynamic image is located within the display area of the interface view.
[0097] If at least a part of the target dynamic image is located within the display area of the interface view, the visible state of the target dynamic image is determined to be visible; or
[0098] If the target dynamic image is located outside the display area of the interface view, the visible state of the target dynamic image is determined to be invisible.
[0099] The device provided by the embodiment can be used to execute the technical solutions of the above-mentioned method embodiments, and has similar implementation principles and technical effects, which will not be described here again.
[0100] Referring to FIG. 6, a structural schematic diagram of an electronic device 600 suitable for implementing the embodiments of the present disclosure is shown, which can be a terminal device or a server. The terminal device can include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (PDA), tablet computers, portable multimedia players (PMP), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in FIG. 6 is only an example, and should not impose any limitation on the functions and use range of the embodiments of the present disclosure.
[0101] As shown in FIG. 6, the electronic device 600 can include a processing device (such as a central processor, a graphics processor, etc.) 601, which can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 602 or loaded into a random access memory (RAM) 603 from a storage device 608. Various programs and data required for the operation of the electronic device 600 are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0102] Generally, the following devices can be connected to the I / O interface 605: input devices 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, and the like; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 608 including, for example, a tape, a hard disk, and the like; and communication devices 609. The communication devices 609 can allow the electronic device 600 to communicate wirelessly or wiredly with other devices to exchange data. Although FIG. 6 illustrates the electronic device 600 with various devices, it is understood that all of the illustrated devices are not required to be implemented or possessed. More or less devices can be alternatively implemented or possessed.
[0103] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer readable medium, the computer program containing program code for executing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network through the communication devices 609, or installed from the storage devices 608, or installed from the ROM 602. When the computer program is executed by the processing devices 601, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are performed.
[0104] It should be noted that the computer-readable medium in the above disclosure can be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or apparatus, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or apparatus. In the present disclosure, the computer-readable signal medium can include a data signal carried in a baseband or as a part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take many forms, including but not limited to an electromagnetic signal, an optical signal or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, which can send, propagate or transmit a program for use by or in conjunction with an instruction execution system, device or apparatus. The program code contained in the computer-readable medium can be transmitted by any suitable medium, including but not limited to a wire, a cable, an RF (radio frequency) or the like, or any suitable combination of the above.
[0105] The computer-readable medium described above can be contained in the electronic device described above; or can exist separately and not be assembled into the electronic device.
[0106] The computer-readable medium described above carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above embodiments.
[0107] Computer program code for carrying out operations of the present disclosure can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0108] The flow diagrams and the block diagrams in the drawings are meant as possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flow diagrams and the block diagrams can represent a module, a segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently or the blocks can sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and / or flow diagrams, and combinations thereof, can be implemented by special purpose hardware-based systems that perform the specified functions or operations, or combinations of special purpose hardware and computer instructions.
[0109] The units described in the embodiments of the present disclosure can be implemented by software, or by hardware. In some cases, the name of the unit does not constitute a limitation on the unit itself. For example, the first obtaining unit can also be described as a unit for obtaining at least two Internet protocol addresses.
[0110] The functions described in this specification can be implemented in part or in whole by one or more hardware logic components. For example, and without limitation, illustrative types of hardware logic components that can be used include Field-programmable Gate Arrays (FPGAs), Program-specific Integrated Circuits (ASICs), Program-specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), etc.
[0111] In the context of this disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium will include one or more lines of electrical connections, portable computer disks, hard disk drives, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), optical fibers, portable compact disc read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0112] In a first aspect, according to one or more embodiments of the present disclosure, a dynamic image display method is provided, comprising:
[0113] determining a current operation state of a user on an interface view; wherein the interface view comprises a target dynamic image;
[0114] determining a visible state of the target dynamic image according to whether the target dynamic image in the interface view is located within a display area of the interface view; wherein the display area of the interface view is a partial area in the interface view, and the display area of the interface view is capable of changing position according to a sliding operation of the user on the interface view;
[0115] determining a play state of the target dynamic image according to the operation state and the visible state of the target dynamic image, and performing play control on the target dynamic image according to the play state of the target dynamic image.
[0116] According to one or more embodiments of the present disclosure, the determining of the play state of the target dynamic image according to the operation state and the visible state of the target dynamic image comprises:
[0117] if the operation state is a non-sliding operation state and the visible state of the target dynamic image is visible, determining that the play state of the target dynamic image is to be played; or
[0118] if the operation state is a sliding operation state and / or the visible state of the target dynamic image is invisible, determining that the play state of the target dynamic image is not to be played.
[0119] According to one or more embodiments of the present disclosure, the performing of the play control on the target dynamic image according to the play state of the target dynamic image comprises:
[0120] if the target dynamic image is currently downloaded completely, controlling the target dynamic image to start playing or stop playing according to a playing state of the target dynamic image; or
[0121] if the target dynamic image is currently not downloaded completely, controlling the target dynamic image to start playing or only display a first frame of picture according to a playing state of the target dynamic image after the target dynamic image is downloaded completely.
[0122] According to one or more embodiments of the present disclosure, the controlling the target dynamic image to start playing or only display a first frame of picture according to a playing state of the target dynamic image after the target dynamic image is downloaded completely comprises:
[0123] if the playing state of the target dynamic image after the target dynamic image is downloaded completely is that the target dynamic image needs to play, controlling the target dynamic image to start playing; or
[0124] if the playing state of the target dynamic image after the target dynamic image is downloaded completely is that the target dynamic image does not need to play, controlling the target dynamic image to only display a first frame of picture.
[0125] According to one or more embodiments of the present disclosure, the determining the playing state of the target dynamic image further comprises:
[0126] labeling a playing state identifier of the target dynamic image, and updating the playing state identifier of the target dynamic image after determining the playing state of the target dynamic image in real time;
[0127] the controlling the target dynamic image to start playing or only display a first frame of picture according to a playing state of the target dynamic image after the target dynamic image is downloaded completely comprises:
[0128] controlling the target dynamic image to start playing or only display a first frame of picture according to a playing state identifier of the target dynamic image after the target dynamic image is downloaded completely.
[0129] According to one or more embodiments of the present disclosure, the method further comprises:
[0130] if the target dynamic image multiplexes a container of other dynamic images which have not been displayed, controlling the target dynamic image to start playing or only display a first frame of picture according to a playing state identifier of the target dynamic image.
[0131] According to one or more embodiments of the present disclosure, the controlling the target dynamic image to start playing or stop playing according to a playing state of the target dynamic image comprises:
[0132] If the playing state of the target dynamic image changes from needing to play to not needing to play after the target dynamic image starts playing, the target dynamic image is controlled to stop playing, and a picture of a current playing frame at the time of stopping playing is kept displaying; or
[0133] If the playing state of the target dynamic image changes from not needing to play to needing to play after the target dynamic image stops playing, the target dynamic image is controlled to continue playing from a current playing frame at the time of stopping playing.
[0134] According to one or more embodiments of the present disclosure, the determining of the visible state of the target dynamic image according to whether the target dynamic image is located within the display area of the interface view includes:
[0135] If at least a part of the target dynamic image is located within the display area of the interface view, the visible state of the target dynamic image is determined to be visible; or
[0136] If the target dynamic image is located outside the display area of the interface view, the visible state of the target dynamic image is determined to be invisible.
[0137] In a second aspect, according to one or more embodiments of the present disclosure, a dynamic image display device is provided, including:
[0138] An operation state detection unit is configured to determine a current operation state of a user on an interface view; wherein the interface view includes a target dynamic image.
[0139] A visible state detection unit is configured to determine a visible state of the target dynamic image according to whether the target dynamic image is located within a display area of the interface view; wherein the display area of the interface view is a part of the interface view, and the display area of the interface view is capable of changing position according to a sliding operation of the user on the interface view.
[0140] A control unit is configured to determine a playing state of the target dynamic image according to the operation state and the visible state of the target dynamic image, and perform playing control on the target dynamic image according to the playing state of the target dynamic image.
[0141] According to one or more embodiments of the present disclosure, when determining the playing state of the target dynamic image according to the operation state and the visible state of the target dynamic image, the control unit is configured to:
[0142] If the operation state is a non-sliding operation state, and the visible state of the target dynamic image is visible, the playing state of the target dynamic image is determined to be needing to play; or
[0143] If the operation state is a sliding operation state, and / or the visibility state of the target dynamic image is invisible, it is determined that the playing state of the target dynamic image is not required to be played.
[0144] According to one or more embodiments of the present disclosure, when the control unit controls the playing of the target dynamic image according to the playing state of the target dynamic image, the control unit is configured to:
[0145] If the target dynamic image has been completely downloaded, the control unit controls the target dynamic image to start playing or stop playing according to the playing state of the target dynamic image; or
[0146] If the target dynamic image has not been completely downloaded, the control unit controls the target dynamic image to start playing or only display the first frame of picture according to the playing state of the target dynamic image after the target dynamic image has been completely downloaded.
[0147] According to one or more embodiments of the present disclosure, when the control unit controls the target dynamic image to start playing or only display the first frame of picture according to the playing state of the target dynamic image after the target dynamic image has been completely downloaded, the control unit is configured to:
[0148] If the playing state of the target dynamic image is required to be played after the target dynamic image has been completely downloaded, the control unit controls the target dynamic image to start playing; or
[0149] If the playing state of the target dynamic image is not required to be played after the target dynamic image has been completely downloaded, the control unit controls the target dynamic image to only display the first frame of picture.
[0150] According to one or more embodiments of the present disclosure, after the control unit determines the playing state of the target dynamic image, the control unit is further configured to:
[0151] The control unit labels a playing state identifier for the target dynamic image, and updates the playing state identifier for the target dynamic image after determining the playing state of the target dynamic image in real time.
[0152] When the control unit controls the target dynamic image to start playing or only display the first frame of picture according to the playing state of the target dynamic image after the target dynamic image has been completely downloaded, the control unit is configured to:
[0153] The control unit controls the target dynamic image to start playing or only display the first frame of picture according to the playing state identifier of the target dynamic image after the target dynamic image has been completely downloaded.
[0154] According to one or more embodiments of the present disclosure, the control unit is further configured to:
[0155] If the target dynamic image is multiplexed in a container of another dynamic image which is not displayed, the target dynamic image is controlled to start playing or only display the first frame according to the playing state of the target dynamic image.
[0156] According to one or more embodiments of the present disclosure, when the control unit controls the target dynamic image to start playing or stop playing according to the playing state of the target dynamic image, the control unit is configured to:
[0157] If the playing state of the target dynamic image changes from playing to not playing after the target dynamic image starts playing, the target dynamic image is controlled to stop playing and keep displaying the frame of the current playing frame when the target dynamic image stops playing; or
[0158] If the playing state of the target dynamic image changes from not playing to playing after the target dynamic image stops playing, the target dynamic image is controlled to continue playing from the current playing frame when the target dynamic image stops playing.
[0159] According to one or more embodiments of the present disclosure, when the visible state detection unit determines the visible state of the target dynamic image in the interface view according to whether the target dynamic image is located in the display area of the interface view, the visible state detection unit is configured to:
[0160] If at least a part of the target dynamic image is located in the display area of the interface view, the visible state of the target dynamic image is determined to be visible; or
[0161] If all of the target dynamic image is located outside the display area of the interface view, the visible state of the target dynamic image is determined to be invisible.
[0162] In a third aspect, according to one or more embodiments of the present disclosure, an electronic device is provided, including at least one processor and a memory;
[0163] The memory stores computer-executable instructions;
[0164] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the dynamic image display method as described in the first aspect and various possible designs of the first aspect.
[0165] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, and the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the dynamic image display method as described in the first aspect and various possible designs of the first aspect is implemented.
[0166] In a fifth aspect, according to one or more embodiments of the present disclosure, a computer program product is provided, including computer execution instructions, when a processor executes the computer execution instructions, implementing the dynamic image display method as described in the first aspect above and various possible designs of the first aspect.
[0167] The above description is merely illustrative of the exemplary embodiments of the present disclosure and the principles of the technology involved. It is understood that the disclosed scope of the present disclosure is not limited to the technical solutions formed by the specific combinations of the above technical features, and should also cover other technical solutions formed by the combinations of the above technical features or equivalent features, without departing from the above disclosed concept. For example, the above technical features can be replaced with the technical features disclosed in the present disclosure (but not limited to) having similar functions to form technical solutions.
[0168] In addition, although each operation is described in a particular order, this should not be understood as requiring the operations to be performed in the specific order shown or in a sequential order. In certain circumstances, multitasking and parallel processing can be advantageous. Similarly, although several implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Certain features described in the context of separate embodiments can also be combined in a single embodiment. Conversely, various features described in the context of a single embodiment can also be separated and implemented in multiple embodiments.
[0169] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
Claims
1. A dynamic image display method, comprising: determining a current operation state of a user on an interface view; wherein the interface view comprises a target dynamic image; determining a visibility state of the target dynamic image according to whether the target dynamic image in the interface view is located within a display area of the interface view; wherein the display area of the interface view is a partial area in the interface view, and the display area of the interface view is capable of changing position according to a sliding operation of the user on the interface view; determining a play state of the target dynamic image according to the operation state and the visibility state of the target dynamic image, and performing play control on the target dynamic image according to the play state of the target dynamic image. 2.The method of claim 1, wherein the determining the play state of the target dynamic image according to the operation state and the visibility state of the target dynamic image comprises: if the operation state is a non-sliding operation state and the visibility state of the target dynamic image is visible, determining that the play state of the target dynamic image is to be played; or if the operation state is a sliding operation state and / or the visibility state of the target dynamic image is invisible, determining that the play state of the target dynamic image is not to be played. 3.The method of claim 2, wherein the performing play control on the target dynamic image according to the play state of the target dynamic image comprises: if the target dynamic image has been completely downloaded, controlling the target dynamic image to start playing or stop playing according to the play state of the target dynamic image; or if the target dynamic image has not been completely downloaded, controlling the target dynamic image to start playing or only display a first frame of picture according to the play state of the target dynamic image after the target dynamic image is completely downloaded. 4.The method of claim 3, wherein the controlling the target dynamic image to start playing or only display a first frame of picture according to the play state of the target dynamic image after the target dynamic image is completely downloaded comprises: if the play state of the target dynamic image is to be played after the target dynamic image is completely downloaded, controlling the target dynamic image to start playing; or if the play state of the target dynamic image is not to be played after the target dynamic image is completely downloaded, controlling the target dynamic image to only display a first frame of picture. 5.The method of claim 3 or 4, wherein after the determining the play state of the target dynamic image, the method further comprises: marking a play state identifier for the target dynamic image, and updating the play state identifier for the target dynamic image after determining the play state of the target dynamic image in real time; and the controlling the target dynamic image to start playing or only display a first frame of picture according to the play state of the target dynamic image after the target dynamic image is completely downloaded comprises: controlling the target dynamic image to start playing or only display a first frame of picture according to the play state identifier for the target dynamic image after the target dynamic image is completely downloaded. 6. The method of claim 5, wherein the method further comprises: if the target dynamic image is multiplexed in a container of other dynamic images which have not been displayed, controlling the target dynamic image to start playing or only display the first frame according to the playing state of the target dynamic image.
7. The method of claim 3, wherein the controlling the target dynamic image to start playing or stop playing according to the playing state of the target dynamic image comprises: if the playing state of the target dynamic image changes from needing to play to not needing to play after the target dynamic image starts playing, controlling the target dynamic image to stop playing and keep displaying the frame of the current playing frame at the time of stopping playing; or if the playing state of the target dynamic image changes from not needing to play to needing to play after the target dynamic image stops playing, controlling the target dynamic image to continue playing from the current playing frame at the time of stopping playing.
8. The method of claim 1, wherein the determining the visible state of the target dynamic image according to whether the target dynamic image is located within the display area of the interface view in the interface view comprises: if at least a part of the target dynamic image is located within the display area of the interface view, determining that the visible state of the target dynamic image is visible; or if the target dynamic image is located outside the display area of the interface view, determining that the visible state of the target dynamic image is invisible.
9. A dynamic image display device, comprising: an operation state detection unit configured to determine a current operation state of a user on an interface view; wherein the interface view comprises a target dynamic image; a visible state detection unit configured to determine a visible state of the target dynamic image according to whether the target dynamic image is located within a display area of the interface view in the interface view; wherein the display area of the interface view is a part of the interface view, and the display area of the interface view is capable of changing position according to a sliding operation of the user on the interface view; a control unit configured to determine a playing state of the target dynamic image according to the operation state and the visible state of the target dynamic image, and to control playing of the target dynamic image according to the playing state of the target dynamic image. at least one processor and a memory; 10. An electronic device comprising: the memory stores computer-executable instructions; the at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method of any one of claims 1-8.
11. A computer-readable storage medium, the computer-readable storage medium storing computer-executable instructions, when a processor executes the computer-executable instructions, the method of any one of claims 1-8 is implemented.
12. A computer program product, the computer program product comprising computer-executable instructions, when a processor executes the computer-executable instructions, the method of any one of claims 1-8 is implemented.
Citation Information
Patent Citations
Dynamic picture display method and device, electronic equipment and computer storage medium
CN111475245A
Moving image control method, program, and display device
CN113302678A
Content distribution device, content distribution method, content distribution program, and program for terminal
JP2013232225A