Event execution method and apparatus, electronic device, storage medium, and program product

WO2026166110A1PCT designated stage Publication Date: 2026-08-13BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-10-10
Publication Date
2026-08-13

Smart Images

  • Figure CN2025126709_13082026_PF_FP_ABST
    Figure CN2025126709_13082026_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide an event execution method and apparatus, an electronic device, a storage medium, and a program product. The method comprises: displaying media content in a media content display interface; and in response to a first long press operation acting within the media content display interface, executing an event corresponding to a current trigger duration of the first long press operation, wherein when the current trigger duration varies, the executed event varies accordingly.
Need to check novelty before this filing date? Find Prior Art

Description

Event execution methods, apparatuses, electronic devices, storage media, and program products Cross-references to related applications

[0001] This application claims priority to Chinese Patent Application No. 202510147838.1, entitled “Event Execution Method, Apparatus, Electronic Device, Storage Medium and Program Product”, filed on February 10, 2025, which is incorporated herein by reference in its entirety. Technical Field

[0002] This disclosure relates to the field of computer technology, and more particularly to an event execution method, apparatus, electronic device, storage medium, and program product. Background Technology

[0003] In some applications, when displaying media content, different associated events can be executed based on different user actions triggered by the media content, such as playback control, liking, or commenting. Summary of the Invention

[0004] This disclosure provides an event execution method, apparatus, electronic device, storage medium, and program product.

[0005] In a first aspect, embodiments of this disclosure provide an event execution method, including:

[0006] Display media content on the media content display interface;

[0007] In response to a first long press operation within the media content display interface, an event corresponding to the current trigger duration of the first long press operation is executed, wherein the executed events are different when the current trigger duration is different.

[0008] Secondly, embodiments of this disclosure also provide an event execution apparatus, comprising:

[0009] The media content display module is used to display media content on the media content display interface;

[0010] The first event execution module is used to respond to a first long press operation within the media content display interface and execute an event corresponding to the current trigger duration of the first long press operation, wherein the executed events are different when the current trigger durations are different.

[0011] Thirdly, embodiments of this disclosure also provide an electronic device, including:

[0012] One or more processors;

[0013] Memory, used to store one or more programs.

[0014] When the one or more programs are executed by the one or more processors, the one or more processors implement the event execution method as described in the embodiments of this disclosure.

[0015] Fourthly, embodiments of this disclosure also provide a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the event execution method as described in embodiments of this disclosure.

[0016] Fifthly, embodiments of this disclosure also provide a computer program product that, when executed by a computer, causes the computer to implement the event execution method as described in embodiments of this disclosure. Attached Figure Description

[0017] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.

[0018] Figure 1 is a flowchart illustrating an event execution method provided in an embodiment of this disclosure;

[0019] Figure 2 is a flowchart illustrating another event execution method provided in an embodiment of this disclosure;

[0020] Figure 3 is a schematic diagram illustrating a media content display provided in an embodiment of this disclosure;

[0021] Figure 4 illustrates a preset interface provided in an embodiment of this disclosure;

[0022] Figure 5 is a schematic diagram showing a preset prompt element provided in an embodiment of this disclosure;

[0023] Figure 6 is a schematic diagram showing another preset interface provided in an embodiment of this disclosure;

[0024] Figure 7 is a schematic diagram of a media content display at a faster speed according to an embodiment of this disclosure;

[0025] Figure 8 is a structural block diagram of an event execution device provided in an embodiment of this disclosure;

[0026] Figure 9 is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0027] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.

[0028] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.

[0029] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.

[0030] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.

[0031] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0032] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0033] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.

[0034] As mentioned above, in some applications, when displaying media content, different associated events of the media content can be executed based on different user actions triggered by the media content, such as controlling playback, liking, or commenting on the media content. However, the execution methods of associated events of media content are relatively simple.

[0035] Figure 1 is a flowchart illustrating an event execution method provided in an embodiment of this disclosure. This method can be executed by an event execution device, which can be implemented in software and / or hardware and can be configured in an electronic device, typically a computer, mobile phone, or tablet computer. The event execution method provided in this embodiment is applicable to scenarios where different associated events of media content are switched through a single long-press operation. As shown in Figure 1, the event execution method provided in this embodiment may include:

[0036] S101. Display media content on the media content display interface.

[0037] The media content display interface can be understood as an interface used to display media content, such as an interface for displaying a specific type of media content and / or an interface for switching between displaying different types of media content. The media content displayed on the media content display interface can be understood as the media content currently displayed within the interface; in other words, the current media content in the media content display interface. The type of this current media content is not limited; for example, it can be video content, text and image content, or a combination of video content and text and image content.

[0038] For example, media content can be displayed in the media content display interface, such as displaying media content corresponding to a user's media content display operation in the media content display interface.

[0039] S102. In response to a first long press operation within the media content display interface, execute an event corresponding to the current trigger duration of the first long press operation, wherein the executed events are different when the current trigger duration is different.

[0040] The first long press operation can be understood as supporting the switching of long press operations related to different events displayed in the media content display interface as the trigger duration changes. For example, the first long press operation can be a long press operation on a preset area of ​​the media content display interface. The specific location of this preset area is not limited; for example, the preset area can be the central area or the edge area of ​​the media content display interface. A long press operation can be understood as a press event with a duration greater than or equal to a set duration threshold. For example, when a press event is detected, if the duration of this press event is greater than or equal to the set duration threshold, it can be determined that a long press operation has been received; if the duration of this press event is less than the set duration threshold, it can be determined that no long press operation has been received, such as a click operation. This set duration threshold can be flexibly set as needed, such as setting it to 0.4s or 0.5s, etc. The current trigger duration of the first long press operation can be understood as the current duration of the first long press operation, which continuously increases as the first long press operation is executed.

[0041] The events executed based on the current trigger duration of the first long press are not limited. For example, this event can be associated with media content in the media content display interface. Such events may include, but are not limited to, interface display events, display control events, and / or interactive events associated with the media content in the media content display interface. For instance, different types of events or different events under a certain type can be executed when the current trigger duration is different, and can be flexibly set as needed. Interface display events can be understood as events that display the interface associated with the media content displayed in the media content display interface. This interface can be, for example, a preset interface, such as a control interface and / or a publisher interface. Display control events can be understood as events that control the display of the media content displayed in the media content display interface, such as adjusting the display progress, display status, and / or display speed. This display status may include, for example, a displaying state and a paused display state. Interactive events can be events that interact with the media content displayed in the media content display interface, such as liking, commenting, sharing, and / or saving the media content displayed in the media content display interface. In addition, it should be noted that the event executed based on the current trigger duration of the first long press operation may not be related to the media content in the media content display interface.

[0042] Specifically, upon receiving a first long-press operation within the media content display interface, an event corresponding to the current trigger duration of this first long-press operation can be executed. For example, upon receiving a first long-press operation, the current trigger duration of this first long-press operation can be obtained, such as during the execution of this long-press operation, the current trigger duration of this long-press operation can be detected in real time or periodically; the event corresponding to this current trigger duration can be determined and executed.

[0043] In this embodiment, the event executed in response to the first long-press operation is determined based on the current trigger duration of the first long-press operation. Therefore, different events can be executed when the user long-presses for different durations, and / or, different events can be switched as the user's long-press duration changes. This allows for the execution of different events with a single long-press operation within the media content display interface, enriching the event execution methods and simplifying the operations required to switch between different events. In other words, this embodiment enriches the execution methods of events associated with media content and simplifies the operations required to switch between different events associated with media content.

[0044] In this embodiment, different events can be executed when the current trigger duration of the first long press operation is different. For example, different events can be switched to be executed as the current trigger duration of the first long press operation changes. For instance, the executed event can be switched when the duration value of the current trigger duration changes; or, the executed event can be switched when the duration interval in which the current trigger duration is located changes. This embodiment does not limit this to any particular event.

[0045] In some implementations, executing the event corresponding to the current trigger duration of the first long press operation includes: in response to the current trigger duration of the first long press operation reaching a first duration threshold, executing a first event associated with the media content; and in response to the current trigger duration of the first long press operation reaching a second duration threshold, executing a second event associated with the media content, wherein the second duration threshold is greater than the first duration threshold.

[0046] The first duration threshold and the second duration threshold are different duration thresholds. The values ​​of the first duration threshold and the second duration threshold can be flexibly set as needed. For example, the first duration threshold can be the same as or different from the aforementioned duration threshold set for the long press operation. For example, the first duration threshold can be set to 0.4s or 0.5s, etc.; the second duration threshold can be a value greater than the first duration threshold. For example, the second duration threshold can be set to 0.9s, 1s, or 1.1s, etc.

[0047] The first event and the second event can be different events, such as different events associated with the media content displayed in the media content display interface. For example, the first event and the second event can be events of different types; for instance, the first event can be an interface display event, and the second event can be a display control event; or, the first event can be a display control event, and the second event can be an interface display event, etc. Furthermore, the first event and the second event can also be different events of a certain type. For example, the first event and the second event can be display events for different interfaces associated with the media content in the media content display interface, such as different interfaces used to display the media content; or, the first event and the second event can be different display control events for the media content in the media content display interface, such as events used to switch the current display speed of the media content to different speeds, etc.

[0048] Optionally, the first event includes a preset interface display event, and / or the second event includes a current display speed switching event. For example, the first event can be used to display the preset interface of the media content, and the second event can be used to switch the current display speed of the media content. Thus, a single operation can simultaneously handle both the preset interface activation and the media content speed display, achieving seamless switching between these two events and simplifying the operations required to execute these two events. The following explanation uses this scenario as an example.

[0049] For example, upon receiving a first long-press operation on the media content display interface, the current trigger duration of this first long-press operation can be detected. If the current trigger duration of the first long-press operation reaches a first duration threshold, a first event associated with the media content displayed on the media content display interface can be executed. As the first long-press operation is executed, the current trigger duration of the first long-press operation continues to increase. When the current trigger duration of the first long-press operation increases to reach a second duration threshold, the event currently executed in response to this first long-press operation can be switched, such as executing a second event associated with the media content displayed on the media content display interface.

[0050] In this embodiment, as the current trigger duration of the first long press operation changes, the event executed in response to this first long press operation can be switched. After switching the executed event, when executing the switched event, the event before the switch can maintain its executed state or the execution of the event before the switch can be cancelled. Taking the event before the switch as the first event and the event after the switch as the second event as an example, when executing the second event in response to the first long press operation, the execution of the first event can be maintained or the execution of the first event can be cancelled. This embodiment does not limit this.

[0051] In the above implementation, during the triggering of the first long press operation, an event corresponding to its current trigger duration can be executed in response to the first long press operation. When the first long press operation ends, the current event executed at the end of the trigger can continue to be executed or the current event executed at the end of the trigger can be canceled to further enrich the execution methods of the event.

[0052] In some examples, it is possible to disregard what the current event is in response to the first long press operation when it ends, and to either maintain or cancel the execution of the current event according to preset settings upon detecting the end of the first long press operation.

[0053] In some examples, we can consider what event is currently executed in response to the first long press operation when it ends. If the current event is different, we can handle it differently when the first long press operation ends. Taking the first event as the display event of the preset interface and the second event as the switching event of the current display speed as an example, if the current event executed in response to the first long press operation when it ends is the first event, that is, if the total trigger duration of the first long press operation is greater than or equal to the first duration threshold and less than the second duration threshold, then the first event can be maintained after the first long press operation ends, such as continuing to display the preset interface of the media content displayed in the media content display interface; if the current event executed in response to the first long press operation when it ends is the second event, that is, if the total trigger duration of the first long press operation is greater than or equal to the second duration threshold, then the second event can be canceled after the second long press operation ends, such as restoring the current display speed of the media content displayed in the media content display interface to the original display speed before the second event was executed.

[0054] In some implementations, in addition to supporting users to switch from the first event to the second event through the first long press operation to execute the second event, it is also possible to support users to execute the second event through the second long press operation. For example, after the user triggers the execution of the first event through the first long press operation, the user can trigger the execution of the second event through the second long press operation to further enrich the execution methods of the event and meet the user's needs to execute different events.

[0055] Optionally, after executing the first event associated with the media content, the method further includes: in response to a second long press operation acting within the media content display interface, executing a second event associated with the media content.

[0056] The second long press operation can be understood as a long press operation used to instruct the direct execution of the second event. The second long press operation and the first long press operation can be different long press operations. For example, the second long press operation and the first long press operation can be applied to different areas of the media content display interface; or, the second long press operation and the first long press operation can be long press operations executed under different circumstances. For example, the first long press operation can be a long press operation executed when the first event is not currently being executed, and the second long press operation can be a long press operation executed when the first event is currently being executed or has been executed. Taking the first event as the display event of the preset interface as an example, the first long press operation can be a long press operation executed when the preset interface is not currently displayed, and the second long press operation can be a long press operation executed when the preset interface is currently displayed, and so on.

[0057] Specifically, upon receiving a second long press operation within the media content display interface, a second event associated with the media content displayed in the media content display interface can be executed.

[0058] Taking the display event with the first event being the preset interface as an example, if a preset interface associated with the media content displayed in the media content display interface is currently being displayed, the user can execute a second event associated with the media content displayed in the media content display interface by long-pressing the central area and / or edge area of ​​the media content display interface. For example, if the user triggers the display of the preset interface through the first long-press operation and then ends the execution of the first long-press operation, the preset interface can currently be displayed. In the case where the preset interface is displayed, if a second long-press operation is received within the media content display interface, the user can respond to this second long-press operation by executing the second event associated with the media content displayed in the media content display interface. Furthermore, the user can maintain or cancel the display of the preset interface of the media content displayed in the media content display interface without having to re-execute the first long-press operation or re-execute the first long-press operation after closing the preset interface. This further enriches the execution methods of the second event and simplifies the operations required to execute the second event after the first event.

[0059] Furthermore, even when a preset interface associated with the media content displayed in the media content display interface is not currently displayed, users can also directly execute a second event associated with the media content displayed in the media content display interface by long-pressing a designated area (such as the edge area) of the media content display interface. For example, when a long-press operation is received in the edge area of ​​the media content display interface, the user can directly execute a second event associated with the media content displayed in the media content display interface in response to this long-press operation, without having to display the preset interface of the media content displayed in the media content display interface.

[0060] The event execution method provided in this embodiment displays media content on a media content display interface. In response to a first long-press operation within the media content display interface, it executes an event corresponding to the current trigger duration of this first long-press operation. When the current trigger duration of the first long-press operation is different, the executed events are different. This embodiment utilizes the above technical solution to execute an event corresponding to the current trigger duration of a long-press operation in response to a long-press operation within the media content display interface. Therefore, different events can be executed when the current trigger duration of the long-press operation is different, and / or, as the current trigger duration of the long-press operation changes, different events can be switched to execute. This allows for the execution of different events with a single long-press operation, enriching the event execution methods and simplifying the operations required to switch between different events.

[0061] Figure 2 is a flowchart illustrating another event execution method provided in an embodiment of this disclosure. The solution in this embodiment can be combined with one or more optional solutions in the above embodiments. Optionally, the first event includes a display event of a preset interface, and the execution of the first event associated with the media content includes: displaying a preset interface of the media content, wherein the preset interface displays at least one control element, and different control elements are configured to trigger the execution of different third events associated with the media content.

[0062] The second event includes an event for adjusting the current display speed, and the execution of the second event associated with the media content includes: adjusting the current display speed of the media content.

[0063] Accordingly, as shown in Figure 2, the event execution method provided in this embodiment may include:

[0064] S201. Display media content on the media content display interface.

[0065] For example, media content can be displayed in the media content display interface in response to the user's media content display operation, as shown in Figure 3.

[0066] S202, Receive the first long press operation within the media content display interface.

[0067] S203. In response to the current trigger duration of the first long press operation reaching a first duration threshold, a preset interface of the media content is displayed. The preset interface displays at least one control element, and different control elements are configured to trigger the execution of different third events associated with the media content.

[0068] In this embodiment, the preset interface can be the control interface of the media content displayed in the media content display interface. The control interface of the media content can be understood as an interface that displays controls associated with this media content. For example, this control interface can display at least one control element, and different control elements can be used to trigger the execution of different third events associated with this media content. The control elements displayed in the control interface are not limited. For example, the control interface can display one or more feedback controls, one or more display control controls, forwarding controls, sharing controls, and / or save controls, etc., of the media content. The third event can be understood as an event executed by triggering the control elements in the control interface, such as a feedback event, a display control event, a forwarding event, a sharing event, and / or a save event, etc.

[0069] Taking the preset interface as the control interface as an example, when a first long press operation is received within the media content display interface, if the trigger duration of this first long press operation is detected to reach a first duration threshold, the preset interface 40 of the media content can be displayed, and at least one control element associated with the media content displayed in the media content display interface can be displayed in the preset interface, as shown in Figure 4, so that the user can execute a third event corresponding to the control element by triggering the control element displayed in the preset interface 40. For example, when it is detected that the user triggers a certain control element displayed in the preset interface 40, a third event corresponding to the control element can be executed.

[0070] In this embodiment, the display method of the preset interface is not limited. For example, the currently displayed interface can be switched from the media content display interface to the preset interface; alternatively, the media content display interface can be kept on display, and the preset interface can be displayed on top of at least a portion of the media content display interface, as shown in Figure 4, to avoid interrupting the user's viewing of the media content displayed on the media content display interface and improve the user's media content viewing experience. In this case, optionally, displaying the preset interface of the media content includes: keeping the media content display interface on display and displaying the preset interface of the media content on top of at least a portion of the media content display interface. The preset interface on top of at least a portion of the media content display interface can be displayed in the form of a floating layer, panel, or window; this embodiment does not limit this.

[0071] In some implementations, when the current trigger duration of the first long-press operation reaches a first duration threshold, in addition to displaying the preset interface 40, a preset element can be further displayed, as shown in Figure 4, so that the user can control the display of media content based on this preset element. In this case, optionally, the event execution method may further include: in response to the current trigger duration of the first long-press operation reaching the first duration threshold, displaying the preset element, which is used to control the display of the media content.

[0072] The preset elements can be interface elements used to control the display of media content in the media content display interface. The type of preset element is not limited; optionally, the preset element includes at least one of the media content display progress element 41 and the preset prompt element 42. The display progress element 41 is used to adjust the display progress of the media content, and the preset prompt element 42 is used to indicate the long-press progress corresponding to the second event. The media content display progress element 41 can be an element used to indicate and / or adjust the current display progress of the media content, such as a media content display progress bar. The preset prompt element 42 can be used to indicate the long-press progress corresponding to the second event; when this long-press progress reaches 100%, the second event can be triggered. In some examples, the preset prompt element 42 can be displayed in the form of a long press progress bar. When initially displayed, the long press progress indicated by this long press progress bar can be 0, such as the long press progress indicator being located at the starting point of the long press progress bar, as shown in Figure 4. As the long press operation (such as the first long press operation or the second long press operation) is executed, the long press progress indicated by this long press progress bar gradually increases, such as the long press progress indicator gradually moving towards the end point of the long press progress bar, as shown in Figure 5. When the long press progress indicated by this long press progress bar reaches 100%, such as when the long press progress indicator moves to the end point of the long press progress bar, the execution of the second event can be triggered.

[0073] The display position of the preset element is not limited. For example, the preset element can be displayed within the media content display interface or above the layer on which the media content display interface is located; and / or, the preset element can be displayed in a preset position or in an associated position of the preset interface 40. This embodiment does not limit this. The associated position of the preset interface 40 can be understood as a position related to the preset interface 40, such as above, below, to the left, or to the right of the preset interface 40. The following explanation uses the example of the preset element being displayed above the preset interface 40.

[0074] In some implementations, when the current trigger duration of the first long-press operation reaches a first duration threshold, in addition to displaying the preset interface 40, the display state of at least some of the interface elements originally displayed in the preset interface can be further adjusted to reduce the obstruction of the media content displayed in the media content display interface by these at least some interface elements. Optionally, in this case, the event execution method may further include: adjusting the display state of at least some interface elements in the media content display interface in response to the current trigger duration of the first long-press operation reaching the first duration threshold.

[0075] In the above embodiments, the way to adjust the display state of the interface elements originally displayed in the media content display interface is not limited. For example, at least some of the interface elements originally displayed in the media content display interface can be canceled; and / or, the display style of at least some of the interface elements originally displayed in the media content display interface can be adjusted, such as increasing or adjusting the transparency and / or display color of at least some of the interface elements originally displayed in the media content display interface.

[0076] Please continue to refer to Figure 4. In some examples, when the current trigger duration of the first long press operation reaches the first duration threshold, the original first interface elements displayed in the media content display interface can be removed, such as the original media content information and related controls (as shown in Figure 3, the publisher identifier, like control, comment control, favorite control, and / or share control) can be removed. The display style of the original second interface elements displayed in the media content display interface can also be adjusted, such as increasing the transparency of the controls originally displayed in the top navigation area of ​​the media content display interface (as shown in Figures 3 and 4, control A, control B, control C, and search control), etc.

[0077] In this embodiment, when a preset interface is displayed in response to a first long-press operation, the display size of this preset interface is not limited. For example, the preset interface can be displayed using either a first size or a second size in response to the first long-press operation. The second size is larger than the first size. The first and second sizes can be flexibly set as needed. In some examples, the second size can be the size when the preset interface is fully displayed, such as the size of the preset interface when all its content is displayed, or it can be determined based on a size adjustment operation for the preset interface. The first size can be the size of the preset interface when only a portion of its content is displayed.

[0078] In some implementations, the preset interface for displaying the media content includes: displaying the media content using a first size; the method further includes: in response to a size adjustment operation acting on the media content display interface or the preset interface, increasing the interface size of the preset interface from the first size to a second size, wherein the size adjustment operation is performed continuously or discontinuously with the first long press operation.

[0079] The size adjustment operation can be understood as a trigger operation used to instruct the adjustment of the display size of the preset interface, such as a trigger operation to instruct the display size of the preset interface to be increased. The execution method of the size adjustment operation is not limited; for example, this size adjustment operation may include an upward swipe operation within the media content display interface and / or the preset interface. This size adjustment operation and the first long press operation can be executed continuously or discontinuously. For example, after performing the first long press operation, the user can perform the size adjustment operation by swiping upwards from the long press position without lifting their finger; alternatively, the user can lift their finger after performing the first long press operation and then perform the size adjustment operation, such as swiping upwards within the media content display interface or the preset interface.

[0080] In the above embodiments, a preset interface can be displayed at a smaller size (such as the first size) in response to the first long press operation to reduce the obstruction of the media content displayed in the media content display interface. When a size adjustment operation for the preset interface is received, the display size of the preset interface is increased to meet the user's viewing needs for the control elements in the preset interface. Thus, the display of media content in the media content display interface and the display of control elements in the preset interface can be taken into account, thereby meeting the different viewing needs of the user.

[0081] For example, in response to the current trigger duration of the first long press operation reaching a first duration threshold, a preset interface 40 of the media content displayed in the media content display interface can be displayed on top of at least a portion of the media content display interface using a first size, as shown in Figure 4; upon receiving a size adjustment operation for the preset interface 40, such as when an upward swipe operation is detected on the media content display interface or within the preset interface 40, the interface size of the preset interface 40 can be increased from the first size to the second size, as shown in Figure 6.

[0082] In the above embodiments, the preset interface 40 displays more interface content when displayed at the second size than when displayed at the first size. For example, when displayed at the first size, the preset interface 40 may display the first interface area 43 but not the second interface area 44; when displayed at the second size, the preset interface 40 may display at least a portion of the first interface area 43 and the second interface area 44. Alternatively, when displayed at the first size, the preset interface 40 may fully display the first interface area 43 and further display a portion of the second interface area 44, as shown in Figure 4; when displayed at the second size, the preset interface 40 may fully display the first interface area 43 and further display more sub-areas of the second interface area 44, such as fully displaying the second interface area, as shown in Figure 6.

[0083] In some examples, the preset interface may include a first interface area and a second interface area. The interface elements in the first interface area and the interface elements in the second interface area can be arranged in different ways. For example, the first interface area may include one or more rows of control elements, and the number of control elements displayed in different rows may be the same or different, with at least some rows displaying multiple control elements; the control elements in the second interface area can be arranged vertically. The first interface area can be understood as the core area of ​​the preset interface; this core area is where the core functions and important information are contained, and it is generally located at the top or middle of the interface, in a position easily visible to the user.

[0084] In addition, in some examples, if a preset element is displayed in response to the first long press operation when a size adjustment operation is received for the preset interface, the preset element can be further de-displayed, as shown in Figure 6, to reduce the obstruction of the media content displayed in the media content display interface.

[0085] When a preset interface is displayed using either the first or second size, the user can also close the preset interface. For example, upon receiving a close operation on the preset interface, such as a swipe operation on the media content display interface or the preset interface, or a click operation on a non-control area of ​​the media content display interface, the system can revert to the state before the first long press operation. This includes canceling the display of the preset interface and preset elements, and restoring at least some of the aforementioned interface elements in the media content display interface to their display state before the first long press operation, as shown in Figure 3. This allows the user to view media content in the media content display interface.

[0086] S204. In response to the current trigger duration of the first long press operation reaching a second duration threshold, adjust the current display speed of the media content, wherein the second duration threshold is greater than the first duration threshold.

[0087] Specifically, when the current trigger duration of the first long press operation reaches the second duration threshold, the preset interface can be canceled, and the current display speed of the media content displayed in the media content display interface can be adjusted, such as increasing the current display speed of the media content displayed in the media content display interface and / or adjusting the current display speed of the media content displayed in the media content display interface to the preset display speed, as shown in Figure 7.

[0088] In this embodiment, please continue to refer to Figure 7. When adjusting the current display speed of the media content, for example, the currently displayed interface can be switched from the media content display interface to the display interface of the media content at the adjusted speed (such as 2x or 3x speed). Alternatively, the media content display interface can be kept on, and at least some of the other interface content (such as the controls in the top navigation area) originally displayed in the media content display interface can be canceled to facilitate the user's viewing of the media content screen.

[0089] The event execution method provided in this embodiment can achieve seamless switching between displaying a preset interface and adjusting the current display speed of media content with a single operation, without having to perform the interface display operation and speed adjustment operation separately. This enriches the display methods of the preset interface and the adjustment methods of the current display speed of media content, and simplifies the operations required to display the preset interface and adjust the current display speed of media content.

[0090] In an optional embodiment, taking a first duration threshold of 0.4ms and a second duration threshold of 1s as an example, the event execution method provided in this embodiment can be described as follows:

[0091] The media content is displayed in the media content display interface, as shown in Figure 3.

[0092] The system receives a long-press operation (i.e., the first long-press operation) performed by the user within a preset area of ​​the media content display interface. After the duration of this long-press operation reaches 0.4ms, a long-press panel (i.e., the control interface) is displayed on top of at least a portion of the media content display interface using a first size. Above this long-press panel, a display progress bar (i.e., the display progress element) and a long-press progress bar (i.e., the preset prompt element) of the media content are displayed. The original media content information and controls associated with the media content, such as likes, comments, and shares, are removed from the display interface. The transparency of at least some controls, including the controls in the top navigation area of ​​the media content display interface, is increased, as shown in Figure 4.

[0093] When using the first size display of the long-press panel, if it is detected that the user releases the long press between 0.4s and 1s to end the long press operation, the display of the long press panel, the progress bar, and the long press progress bar can be maintained. The long press progress indicated by the long press progress bar is adjusted to 0, and the long press progress indicated by the long press progress bar can be updated based on the user's subsequent long press operation. Furthermore, when the long press progress reaches 100%, if the trigger duration of the user's subsequent long press operation reaches the difference between a first duration threshold and a second duration threshold (e.g., 0.6s), the media content is controlled to play at N times the speed, as shown in Figure 7. The value of N can be preset or determined based on the original display speed of the media content before the speed adjustment; this embodiment does not limit this.

[0094] When displaying the long-press panel using the first size, if it is detected that the user slides upward from the original long-press position, or slides upward within the media content display interface or long-press panel after the long-press operation ends, the display size of the long-press panel can be increased from the first size to the second size, as shown in Figure 6.

[0095] When displaying the long-press panel using the first or second size, if it is detected that the user is swiping down in the media content display interface or the long-press panel, or if it is detected that the user clicks on a non-control area of ​​the media content display interface, the display of the long-press panel, the display progress bar, and the long-press progress bar can be canceled, and the original media content information and controls associated with the media content in the media content display interface can be re-displayed, and the transparency of at least some of the controls in the media content display interface can be restored, as shown in Figure 3.

[0096] After displaying the long-press panel, the progress bar, and the long-press progress bar, if the user continues to long-press (i.e., continues the first long-press operation), or if the user ends the long-press operation and then long-presses again (i.e., performs the second long-press operation), the long-press progress indicated by the long-press progress bar can be increased based on the user's long press, as shown in Figure 5. Furthermore, when the long-press progress indicated by the long-press progress bar reaches 100%, such as when the trigger duration of the first long-press operation reaches 1 second, or when the trigger duration of the second long-press operation reaches the difference between the first duration threshold and the second duration threshold, the display of at least a portion of the original interface content (excluding the media content screen) in the long-press panel, the progress bar, the long-press progress bar, and the media content display interface can be canceled, and the interface content displayed in the media content display interface can be played at N times the speed, as shown in Figure 7.

[0097] After playing the content displayed in the media content display interface at N times speed, if it is detected that the user has released their hand to end the long press operation, the N times speed playback of the media content can be canceled, and the interface style of the media content display interface can be restored to the original style before the first long press operation was received, as shown in Figure 3.

[0098] In this embodiment, users can simultaneously activate the panel and adjust playback speed with a single long press, improving user efficiency and the smoothness of the interaction process. The long-press panel is displayed in a smaller size in response to the user's long press, reducing obstruction of media content and optimizing the user's media viewing experience. Users can swipe down to close the long-press panel, enriching the closing methods and simplifying the necessary steps, thus enhancing the convenience of interaction. Furthermore, multiple control elements can be displayed in certain rows of control elements within the long-press panel, enabling efficient display of control elements and improving the overall display efficiency and user experience of the long-press panel.

[0099] Figure 8 is a structural block diagram of an event execution device provided in an embodiment of this disclosure. This device can be implemented by software and / or hardware, and can be configured in an electronic device, typically a computer, mobile phone, or tablet computer. It can switch between different associated events of media content through a single long-press operation by executing an event execution method. As shown in Figure 8, the event execution device provided in this embodiment may include: a media content display module 801 and a first event execution module 802, wherein...

[0100] The media content display module 801 is used to display media content on the media content display interface;

[0101] The first event execution module 803 is used to respond to a first long press operation within the media content display interface and execute an event corresponding to the current trigger duration of the first long press operation, wherein the executed events are different when the current trigger durations are different.

[0102] The event execution device provided in this embodiment displays media content on the media content display interface through the media content display module; and executes the event corresponding to the current trigger duration of the first long press operation through the first event execution module. When the current trigger duration of the first long press operation is different, the executed events are different. This embodiment utilizes the above technical solution to execute the event corresponding to the current trigger duration of the long press operation in response to a long press operation within the media content display interface. Therefore, different events can be executed when the current trigger duration of the long press operation is different, and / or, different events can be switched to execute as the current trigger duration of the long press operation changes. This allows for the execution of different events with a single long press operation, enriching the event execution methods and simplifying the operations required to switch between different events.

[0103] Optionally, the first event execution module 803 includes: a first event execution unit, configured to execute a first event associated with the media content in response to the current trigger duration of the first long press operation reaching a first duration threshold; and a second event execution unit, configured to execute a second event associated with the media content in response to the current trigger duration of the first long press operation reaching a second duration threshold, wherein the second duration threshold is greater than the first duration threshold.

[0104] Optionally, the first event includes a display event of a preset interface, and the first event execution unit may be specifically used to: display a preset interface of the media content, wherein the preset interface displays at least one control element, and different control elements are configured to trigger the execution of different third events associated with the media content.

[0105] Furthermore, the event execution device may further include at least one of the following: an element display module, used to display a preset element in response to the current trigger duration of the first long press operation reaching a first duration threshold, the preset element being used to control the display of the media content; and a state adjustment module, used to adjust the display state of at least some interface elements in the media content display interface in response to the current trigger duration of the first long press operation reaching the first duration threshold.

[0106] Optionally, the preset element includes at least one of the display progress element of the media content and the preset prompt element, wherein the display progress element is used to adjust the display progress of the media content, and the preset prompt element is used to prompt the long press progress corresponding to the second event.

[0107] Optionally, the first event execution unit may be specifically used to: display the media content in a preset interface with a first size; the event execution device may further include: a size adjustment module, used to increase the interface size of the preset interface from the first size to a second size in response to a size adjustment operation acting on the media content display interface or the preset interface, wherein the size adjustment operation is executed continuously or discontinuously with the first long press operation.

[0108] Optionally, the second event includes an adjustment event for the current display speed, and the second event execution unit may be specifically used to: adjust the current display speed of the media content.

[0109] Furthermore, the event execution device may further include: a second event execution module, configured to execute a second event associated with the media content in response to a second long-press operation performed within the media content display interface after the execution of the first event associated with the media content.

[0110] The event execution apparatus provided in this disclosure can execute the event execution method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects for executing the event execution method. Technical details not described in detail in this embodiment can be found in the event execution method provided in any embodiment of this disclosure.

[0111] Referring now to FIG9, a schematic diagram of the structure of an electronic device (e.g., a terminal device) 900 suitable for implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG9 is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present disclosure.

[0112] As shown in Figure 9, the electronic device 900 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 into a random access memory (RAM) 903. The RAM 903 also stores various programs and data required for the operation of the electronic device 900. The processing unit 901, ROM 902, and RAM 903 are interconnected via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0113] Typically, the following devices can be connected to I / O interface 905: input devices 906 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 907 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 908 including, for example, magnetic tapes, hard disks, etc.; and communication devices 909. Communication device 909 allows electronic device 900 to communicate wirelessly or wiredly with other devices to exchange data. Although FIG9 shows an electronic device 900 with various devices, it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0114] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 909, or installed from a storage device 908, or installed from a ROM 902. When the computer program is executed by a processing device 901, it performs the functions defined in the methods of embodiments of this disclosure.

[0115] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0116] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol), and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future-developed networks.

[0117] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0118] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to: display media content on a media content display interface; and, in response to a first long-press operation performed on the media content display interface, execute an event corresponding to the current trigger duration of the first long-press operation, wherein the executed events are different when the current trigger durations are different.

[0119] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including but not limited to object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0120] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0121] The units described in the embodiments of this disclosure can be implemented in software or hardware. The names of modules do not, in some cases, constitute a limitation on the unit itself.

[0122] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.

[0123] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0124] According to one or more embodiments of this disclosure, Example 1 provides an event execution method, including:

[0125] Display media content on the media content display interface;

[0126] In response to a first long press operation performed within the media content display interface, an event corresponding to the current trigger duration of the first long press operation is executed, wherein the executed events are different when the current trigger durations are different.

[0127] According to one or more embodiments of this disclosure, Example 2, based on the method described in Example 1, includes executing an event corresponding to the current trigger duration of the first long-press operation, comprising:

[0128] In response to the current trigger duration of the first long press operation reaching a first duration threshold, a first event associated with the media content is executed;

[0129] In response to the current trigger duration of the first long press operation reaching a second duration threshold, a second event associated with the media content is executed, wherein the second duration threshold is greater than the first duration threshold.

[0130] According to one or more embodiments of this disclosure, Example 3 describes the method according to Example 2, wherein the first event includes a display event of a preset interface, and the execution of the first event associated with the media content includes:

[0131] A preset interface for displaying the media content is provided, wherein at least one control element is displayed in the preset interface, and different control elements are configured to trigger the execution of different third events associated with the media content.

[0132] According to one or more embodiments of this disclosure, Example 4 describes the method according to Example 3, wherein the method further includes at least one of the following:

[0133] In response to the current trigger duration of the first long press operation reaching a first duration threshold, a preset element is displayed, which is used to control the display of the media content;

[0134] In response to the current trigger duration of the first long press operation reaching a first duration threshold, the display state of at least some interface elements in the media content display interface is adjusted.

[0135] According to one or more embodiments of this disclosure, Example 5 describes the method according to Example 4, wherein the preset element includes at least one of a display progress element of the media content and a preset prompt element, the display progress element being used to adjust the display progress of the media content, and the preset prompt element being used to prompt the long press progress corresponding to the second event.

[0136] According to one or more embodiments of this disclosure, Example 6 describes the method described in Example 3, wherein the preset interface for displaying the media content includes:

[0137] A preset interface is used to display the media content at a first size;

[0138] The method further includes:

[0139] In response to a size adjustment operation performed on the media content display interface or the preset interface, the interface size of the preset interface is increased from the first size to the second size, wherein the size adjustment operation is performed continuously or discontinuously with the first long press operation.

[0140] According to one or more embodiments of this disclosure, Example 7 describes the method according to Example 2, wherein the second event includes an adjustment event for the current display speed, and the execution of the second event associated with the media content includes:

[0141] Adjust the current display speed of the media content.

[0142] According to one or more embodiments of this disclosure, Example 8, following the execution of the first event associated with the media content, further includes, according to any one of Examples 2-7, the method described in this example:

[0143] In response to a second long press operation within the media content display interface, a second event associated with the media content is executed.

[0144] According to one or more embodiments of this disclosure, Example 11 provides an event execution apparatus, comprising:

[0145] The media content display module is used to display media content on the media content display interface;

[0146] The first event execution module is used to respond to a first long press operation within the media content display interface and execute an event corresponding to the current trigger duration of the first long press operation, wherein the executed events are different when the current trigger durations are different.

[0147] According to one or more embodiments of this disclosure, Example 10 provides an electronic device, including:

[0148] One or more processors;

[0149] Memory, used to store one or more programs.

[0150] When the one or more programs are executed by the one or more processors, the one or more processors implement the event execution method as described in any of Examples 1-8.

[0151] According to one or more embodiments of the present disclosure, Example 11 provides a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements an event execution method as described in any of Examples 1-8.

[0152] According to one or more embodiments of this disclosure, Example 12 provides a computer program product that, when executed by a computer, causes the computer to implement an event execution method as described in any of Examples 1-8.

[0153] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0154] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0155] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.

Claims

An event execution method, including: Display media content on the media content display interface; In response to a first long press operation within the media content display interface, an event corresponding to the current trigger duration of the first long press operation is executed, wherein the executed events are different when the current trigger duration is different. According to the method of claim 1, the execution of the event corresponding to the current trigger duration of the first long press operation includes: In response to the current trigger duration of the first long press operation reaching a first duration threshold, a first event associated with the media content is executed; In response to the current trigger duration of the first long press operation reaching a second duration threshold, a second event associated with the media content is executed, wherein the second duration threshold is greater than the first duration threshold. According to the method of claim 2, wherein the first event includes a display event of a preset interface, and the execution of the first event associated with the media content includes: A preset interface for displaying the media content is provided, wherein at least one control element is displayed in the preset interface, and different control elements are configured to trigger the execution of different third events associated with the media content. The method according to claim 3, wherein the method further comprises at least one of the following: In response to the current trigger duration of the first long press operation reaching a first duration threshold, a preset element is displayed, which is used to control the display of the media content; In response to the current trigger duration of the first long press operation reaching a first duration threshold, the display state of at least some interface elements in the media content display interface is adjusted. According to the method of claim 4, the preset element includes at least one of the display progress element of the media content and the preset prompt element, the display progress element is used to adjust the display progress of the media content, and the preset prompt element is used to prompt the long press progress corresponding to the second event. According to the method of claim 3, the preset interface for displaying the media content includes: A preset interface is used to display the media content at a first size; The method further includes: In response to a size adjustment operation performed on the media content display interface or the preset interface, the interface size of the preset interface is increased from the first size to the second size, wherein the size adjustment operation is performed continuously or discontinuously with the first long press operation. The method of claim 2, wherein the second event includes an adjustment event for the current display speed, and the execution of the second event associated with the media content includes: Adjust the current display speed of the media content. The method according to any one of claims 2-7, wherein after executing the first event associated with the media content, it further comprises: In response to a second long press operation within the media content display interface, a second event associated with the media content is executed. An event execution device, comprising: The media content display module is used to display media content on the media content display interface; The first event execution module is used to respond to a first long press operation within the media content display interface and execute an event corresponding to the current trigger duration of the first long press operation, wherein the executed events are different when the current trigger durations are different. An electronic device comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the event execution method according to any one of claims 1-8. A computer-readable storage medium storing computer instructions for causing a processor to execute the event execution method of any one of claims 1-8. A computer program product, wherein the computer program product includes a computer program that, when executed by a processor, implements the event execution method of any one of claims 1-8.