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

By responding to the long press operation in the media content display interface and executing different events according to the current trigger time of the long press operation, the problem of single event execution methods in the prior art is solved, and the enrichment of event execution methods and simplification of operations is achieved.

CN120066352APending Publication Date: 2025-05-30BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510147838.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-10
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

In the prior art, the associated event execution method of media content is relatively single, lacking diversity and flexibility.

Method used

By responding to the long press operation in the media content display interface, the events corresponding to the current trigger time of the long press operation are executed, and different events corresponding to different trigger time are executed.

Benefits of technology

The function of executing different events through a single long press operation is realized, enriching the execution method of events and simplifying the operation of switching to execute different events.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120066352A_ABST
    Figure CN120066352A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an event execution method and device, electronic equipment, a storage medium and a program product. The method comprises the following steps: displaying media content on a media content display interface; and in response to a first long-press operation acting in the media content display interface, executing an event corresponding to the current trigger duration of the first long-press operation, and when the current trigger duration is different, executing different events. By means of the technical scheme, the execution modes of the events associated with the media content can be enriched, and the operation needing to be executed for switching and executing the different events associated with the media content is simplified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computer technologies, and in particular, to an event execution method, apparatus, electronic device, storage medium, and program product. Background Art

[0002] In some applications, when presenting media content, different associated events of the media content can be executed based on different trigger operations of the user on the media content, such as performing play control, liking, or commenting on the media content. However, the execution manner of the associated events of the media content is relatively single. Summary of the Invention

[0003] Embodiments of the present disclosure provide an event execution method, apparatus, electronic device, storage medium, and program product to enrich the execution manner of the associated events of media content.

[0004] In a first aspect, an event execution method provided by an embodiment of the present disclosure includes:

[0005] Presenting media content on a media content presentation interface;

[0006] Responding to a first long press operation within the media content presentation interface, and executing an event corresponding to the current trigger duration of the first long press operation, where when the current trigger durations are different, the executed events are different.

[0007] In a second aspect, an event execution apparatus provided by an embodiment of the present disclosure includes:

[0008] A media content presentation module, configured to present media content on a media content presentation interface;

[0009] A first event execution module, configured to respond to a first long press operation within the media content presentation interface, and execute an event corresponding to the current trigger duration of the first long press operation, where when the current trigger durations are different, the executed events are different.

[0010] In a third aspect, an electronic device provided by an embodiment of the present disclosure includes:

[0011] One or more processors;

[0012] A memory, configured to store one or more programs,

[0013] 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 the present disclosure.

[0014] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the event execution method as described in the embodiment of the present disclosure is implemented.

[0015] In a fifth aspect, the embodiments of the present disclosure further provide a computer program product. When the computer program product is executed by a computer, the computer implements the event execution method as described in the embodiments of the present disclosure.

[0016] The event execution method, device, electronic device, storage medium and program product provided by the embodiments of the present disclosure execute an event corresponding to the current trigger duration of the long press operation in response to a long press operation acting on the media content display interface. Thus, different events can be executed when the current trigger duration of the long press operation is different, and / or different events can be switched for execution as the current trigger duration of the long press operation changes. Different events can be executed through a single long press operation, enriching the event execution method and simplifying the operations required to switch to execute different events. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent 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 A flowchart of an event execution method provided by an embodiment of the present disclosure;

[0019] Figure 2 A flowchart of another event execution method provided by an embodiment of the present disclosure;

[0020] Figure 3 A schematic diagram of displaying media content provided by an embodiment of the present disclosure;

[0021] Figure 4 A display intention of a preset interface provided in an embodiment of the present disclosure;

[0022] Figure 5 A schematic diagram showing a preset prompt element provided in an embodiment of the present disclosure;

[0023] Figure 6 A schematic diagram showing another preset interface provided in an embodiment of the present disclosure;

[0024] Figure 7 A schematic diagram of a multiple-speed display of media content provided by an embodiment of the present disclosure;

[0025] Figure 8Block diagram of an event execution device provided by an embodiment of the present disclosure;

[0026] Figure 9 Schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. Detailed implementation manners

[0027] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. On the contrary, these embodiments are provided to more thoroughly and completely understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not used to limit the protection scope of the present disclosure.

[0028] It should be understood that the various steps recited in the method embodiments of the present disclosure can be executed in a different order and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this regard.

[0029] As used herein, the term "including" and its variations are open-ended, that is, "including but not limited to". The term "based on" is "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". The relevant definitions of other terms will be given in the following description.

[0030] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used 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 interdependent relationships.

[0031] It should be noted that the modifications of "one" and "plural" mentioned in the present disclosure are illustrative rather than restrictive. Those skilled in the art should understand that, unless otherwise clearly specified in the context, it should be understood as "one or more".

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

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

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

[0035] S101. Display media content on a media content display interface.

[0036] Among them, the media content display interface can be understood as an interface for displaying media content, such as an interface for displaying a certain media content and / or an interface for switching and displaying different media contents. The media content displayed on the media content display interface can be understood as the currently displayed media content in the media content display interface. In other words, the current media content in the media content display interface. The type of this current media content is not limited. Exemplarily, this current media content can be video content, graphic and text content, or a combination of video content and graphic and text content, etc.

[0037] Exemplarily, media content can be displayed on the media content display interface. For example, based on a user's media content display operation, the media content corresponding to this media content display operation is displayed on the media content display interface.

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

[0039] Among them, the first long-press operation can be understood as a long-press operation that supports switching to execute different events associated with the media content displayed in the media content display interface as the trigger duration changes. Exemplarily, the first long-press operation can be an operation of long-pressing a preset area of the media content display interface. The specific position 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, etc. The long-press operation can be understood as a press event with a continuous duration greater than or equal to a set duration threshold. For example, when a press event is detected, if the continuous duration of this press event is greater than or equal to the set duration threshold, it can be determined that a long-press operation is received; if the continuous duration of this press event is less than the set duration threshold, it can be determined that a long-press operation is not received, such as it can be determined that a click operation is received, etc. This set duration threshold can be flexibly set as needed. For example, the set duration threshold can be set to 0.4s or 0.5s, etc. The current trigger duration of the first long-press operation can be understood as the duration that the first long-press operation currently lasts. As the first long-press operation is executed, its current trigger duration can continuously increase.

[0040] The events executed based on the current trigger duration of the first long-press operation are not limited. Exemplarily, this event can be associated with the media content in the media content display interface. Such events can include, but are not limited to, interface display events, display control events, and / or interaction events, etc., associated with the media content in the media content display interface. For example, when the current trigger durations are different, different types of events or different events under a certain type associated with the media content in the media content display interface can be executed, etc., which can be specifically flexibly set as needed. The interface display event can be understood as an event of displaying an 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, etc. The display control event can be understood as an event of performing display control on the media content displayed in the media content display interface, such as an event of adjusting the display progress, display state, and / or display speed of the media content, etc. This display state can include, for example, the ongoing display state and the paused display state, etc. The interaction event can be an event of interacting with the media content displayed in the media content display interface, such as an event of liking, commenting, sharing, and / or collecting the media content displayed in the media content display interface, etc. In addition, it should be noted that the events executed based on the current trigger duration of the first long-press operation can also be not associated with the media content in the media content display interface.

[0041] Specifically, when the first long press operation acting on the media content display interface is received, an event corresponding to the current trigger duration of the first long press operation can be executed. For example, when the first long press operation is received, the current trigger duration of the first long press operation can be obtained, such as during the execution of the long press operation, the current trigger duration of the long press operation is detected in real time or periodically; an event corresponding to the current trigger duration is determined, and the event is executed.

[0042] In this embodiment, the event executed in response to the first long press operation is determined based on the current triggering 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 to be executed as the user long press duration changes. Different events can be executed through a single long press operation in the media content display interface, enriching the execution methods of events and simplifying the operations required to switch to execute different events.

[0043] In this embodiment, when the current trigger duration of the first long press operation is different, different events can be executed. Exemplarily, different events can be switched to be executed as the current trigger duration of the first long press operation changes. For example, 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.

[0044] In some embodiments, the execution of an 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; 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.

[0045] Among them, 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 and the aforementioned set duration threshold of the long press operation can be the same or different. 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.

[0046] The first event and the second event may be different events, such as different events associated with the media content displayed in the media content display interface. Exemplarily, the first event and the second event may be different types of events, for example, the first event may be an interface display event, and the second event may be a display control event; or, the first event may be a display control event, and the second event may be an interface display event, etc. In addition, the first event and the second event may also be different events of a certain type, and exemplarily, the first event and the second event may be display events of different interfaces associated with the media content in the media content display interface, such as different interfaces for displaying media content; or, the first event and the second event may be different display control events for the media content in the media content display interface, such as for switching the current display speed of the media content to a different speed, etc.

[0047] 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, it is possible to take into account both the preset interface call-up and the speed display of the media content through a single operation, realize seamless switching between the two events, and simplify the operations required to execute the two events. This case is used as an example for explanation below.

[0048] Exemplarily, when a first long press operation is received within a media content display interface, the current trigger duration of the first long press operation can be detected, and when the current trigger duration of the first long press operation reaches a first duration threshold, a first event associated with the media content displayed in the media content display interface is executed; as the first long press operation is executed, the current trigger duration of the first long press operation continues to increase, and 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 the first long press operation can be switched, such as executing a second event associated with the media content displayed in the media content display interface.

[0049] In this embodiment, as the current trigger duration of the first long press operation changes, the event executed in response to the first long press operation can be switched. After the executed event is switched, such as when executing the event after the switch, the event before the switch can maintain the executed state, or the execution of the event before the switch can be canceled. 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 first event can be maintained or canceled. This embodiment does not limit this.

[0050] In the above embodiments, during the triggering process of the first long-press operation, in response to this first long-press operation, an event corresponding to its current triggering duration can be executed. When the triggering of the first long-press operation ends, the current event executed at the end of the trigger can be continued or the execution of the current event executed at the end of the trigger can be cancelled, so as to further enrich the execution manner of the event.

[0051] In some examples, regardless of what event the current event executed in response to the first long-press operation is when the triggering of the first long-press operation ends, when it is detected that the triggering of the first long-press operation ends, this current event can be kept executed or the execution of this current event can be cancelled according to the preset settings.

[0052] In some examples, it can be considered what event the current event executed in response to the first long-press operation is when the triggering of the first long-press operation ends. When the current events are different, different processing can be performed when the triggering of the first long-press operation ends. Taking the first event as the event of displaying a preset interface and the second event as the event of switching the current display speed as an example, if the current event executed in response to the first long-press operation when the triggering of the first long-press operation ends is the first event, that is, if the total triggering 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 this first event can be kept executed after the triggering of 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 the triggering of the first long-press operation ends is the second event, that is, if the total triggering duration of the first long-press operation is greater than or equal to the second duration threshold, then the execution of the second event can be cancelled after the triggering of 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 execution of the second event.

[0053] In some embodiments, in addition to supporting the user to execute the second event by switching from the first event to the second event through the first long-press operation, it can also support the user to execute the second event through the second long-press operation. For example, it supports the user to trigger the execution of the second event through the second long-press operation after triggering the execution of the first event through the first long-press operation, so as to further enrich the execution manner of the event and meet the user's needs for executing different events.

[0054] Optionally, after executing the first event associated with the media content, it 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.

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

[0056] Specifically, when a second long - press operation acting within the media content display interface is received, a second event associated with the media content displayed in the media content display interface can be executed.

[0057] Taking the first event as the display event of a preset interface as an example, when a preset interface associated with the media content displayed in the media content display interface is currently displayed, the user can be supported to execute a second event associated with the media content displayed in the media content display interface by long - pressing the central region and / or the edge region 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; for the case where the preset interface is displayed, when a second long - press operation acting within the media content display interface is received, in response to this second long - press operation, a second event associated with the media content displayed in the media content display interface can be executed, and the preset interface of the media content displayed in the media content display interface can be further maintained or canceled without the user having to re - execute the first long - press operation or re - execute the first long - press operation after closing the preset interface, thereby further enriching the execution method of the second event and simplifying the operations required to execute the second event after the first event.

[0058] In addition, when the preset interface associated with the media content displayed in the media content display interface is not currently displayed, the user can also be supported to directly execute a second event associated with the media content displayed in the media content display interface by long - pressing a set region (such as the edge region) of the media content display interface. For example, when a long - press operation acting within the edge region of the media content display interface is received, in response to this long - press operation, a second event associated with the media content displayed in the media content display interface can be directly executed without displaying the preset interface of the media content displayed in the media content display interface.

[0059] The event execution method provided in this embodiment displays media content in a media content display interface; in response to a first long press operation acting in the media content display interface, an event corresponding to the current trigger duration of the first long press operation is executed. When the current trigger duration of the first long press operation is different, the executed event is different. This embodiment utilizes the above-mentioned technical scheme to execute an event corresponding to the current trigger duration of the long press operation in response to a long press operation acting in the media content display interface. Thus, 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 be executed as the current trigger duration of the long press operation changes. Different events can be executed through a single long press operation, enriching the event execution method and simplifying the operations required to switch to execute different events.

[0060] Figure 2 A flow chart of another event execution method provided for an embodiment of the present disclosure. The scheme in this embodiment can be combined with one or more optional schemes in the above-mentioned 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 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.

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

[0062] Correspondingly, such as Figure 2 As shown, the event execution method provided in this embodiment may include:

[0063] S201: Display media content on a media content display interface.

[0064] For example, in response to a user's media content display operation, media content may be displayed in a media content display interface, such as Figure 3 shown.

[0065] S202: Receive a first long press operation on the media content display interface.

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

[0067] 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 the interface for displaying the controls associated with this media content. For example, at least one control element can be displayed in this control interface, 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. Exemplarily, one or more feedback controls, one or more display control controls, a forward control, a share control, and / or a save control, etc. of the media content can be displayed in the control interface. The third event can be understood as the event executed by triggering the control element in the control interface, such as a feedback event, a display control event, a forward event, a share event, and / or a save event, etc.

[0068] Taking the preset interface as the control interface as an example, in the case of receiving a first long press operation within the media content display interface, if it is detected that the trigger duration of this first long press operation reaches the 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, such as Figure 4 shown, so that the user can execute the third event corresponding to this 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, the third event corresponding to this control element can be executed.

[0069] 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; it is also possible to keep the media content display interface displayed and display the preset interface on the upper layer of at least part of the area of the media content display interface, such as Figure 4 shown, so as to avoid interrupting the user's viewing of the media content displayed in the media content display interface and improve the user's media content viewing experience. In this case, optionally, the displaying of the preset interface of the media content includes: keeping the media content display interface displayed and displaying the preset interface of the media content on the upper layer of at least part of the area of the media content display interface. Among them, the preset interface can be displayed in the form of a floating layer, a panel or a window on the upper layer of at least part of the area of the media content display interface, and this embodiment does not make a limitation on this.

[0070] In some embodiments, in the case where the current trigger duration of the first long press operation reaches the first duration threshold, in addition to displaying the preset interface 40, preset elements can be further displayed, such as Figure 4As shown, it is convenient for the user to perform display control on the 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 a first duration threshold, displaying a preset element for performing display control on the media content.

[0071] Among them, the preset element may be an interface element for performing display control on the media content in the media content display interface. The type of the preset element is not limited. Optionally, the preset element includes at least one of the display progress element 41 of the media content 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 prompt the long press progress corresponding to the second event. The display progress element 41 of the media content may be an element for indicating and / or adjusting the current display progress of the media content, such as a display progress bar of the media content. The preset prompt element 42 can be used to prompt the long press progress corresponding to the second event. When this long press progress reaches 100%, the second event can be triggered to execute. In some examples, the preset prompt element 42 may 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 may be 0, such as the long press progress identifier being located at the starting point of the long press progress bar, as Figure 4 shown; 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 identifier gradually moving towards the end point of the long press progress bar, as Figure 5 shown; when the long press progress indicated by this long press progress bar reaches 100%, such as when the long press progress identifier moves to the end point of the long press progress bar, the second event can be triggered to execute.

[0072] The display position of the preset element is not limited. For example, the preset element may be displayed within the media content display interface or on the upper layer of the layer where the media content display interface is located; and / or, the preset element may be displayed at a preset position or at an associated position of the preset interface 40. This embodiment does not make a limitation in this regard. The associated position of the preset interface 40 can be understood as a position associated with the preset interface 40, such as above, below, left, or right of the preset interface 40. Hereinafter, an example where the preset element is displayed above the preset interface 40 will be described.

[0073] In some embodiments, when the current triggering duration of the first long - press operation reaches the first duration threshold, in addition to displaying the preset interface 40, the display states of at least some of the interface elements originally displayed in the preset interface can be further adjusted to reduce the occlusion of the media content displayed in the media content display interface by this at least some of the interface elements. In such a case, optionally, the event execution method may further include: in response to the current triggering duration of the first long - press operation reaching the first duration threshold, adjusting the display states of at least some of the interface elements in the media content display interface.

[0074] In the above - mentioned embodiments, the manner of adjusting the display states 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 cancelled from display; and / or, the display styles of at least some of the interface elements originally displayed in the media content display interface can be adjusted, such as increasing the transparency and / or display color of at least some of the interface elements originally displayed in the media content display interface.

[0075] Please continue to refer to Figure 4 , in some examples, when the current triggering duration of the first long - press operation reaches the first duration threshold, the first interface element originally displayed in the media content display interface can be cancelled from display, such as cancelling the display of the media content information originally displayed in the media content display interface and the controls associated with this media content (such as Figure 3 the publisher identifier, like control, comment control, favorite control, and / or share control shown in Figure 3 and 4 ); and the display style of the second interface element originally displayed in the media content display interface can be adjusted, such as increasing the transparency of the controls (such as

[0076] control A, control B, control C, and search control shown in

[0077] originally displayed in the top - navigation area of the media content display interface), and so on.In some embodiments, the preset interface for displaying the media content includes: a preset interface for displaying the media content in a first size; the method further includes: in response to a size adjustment operation performed within 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, where the size adjustment operation is performed continuously or discontinuously with the first long-press operation.

[0078] Among them, the size adjustment operation can be understood as a trigger operation for indicating the adjustment of the display size of the preset interface, such as a trigger operation for indicating an increase in the display size of the preset interface. The execution manner of the size adjustment operation is not limited. For example, this size adjustment operation may include an upward sliding operation within the media content display interface and / or the preset interface, etc. This size adjustment operation and the first long-press operation can be performed continuously or discontinuously. For example, the user can directly slide upward at the long-press position of the first long-press operation without lifting the finger after performing the first long-press operation to perform the size adjustment operation; or the user can lift the finger after performing the first long-press operation and then perform the size adjustment operation, such as sliding upward within the media content display interface or the preset interface.

[0079] In the above embodiments, in response to the first long-press operation, a preset interface can be displayed in a smaller size (such as the first size) to reduce the occlusion of the media content displayed in the media content display interface, and when a size adjustment operation for this preset interface is received, the display size of the preset interface is increased to meet the user's viewing requirements for the control elements in the preset interface. Thus, it is possible to balance the display of the media content in the media content display interface and the display of the control elements in the preset interface, meeting the different viewing needs of users.

[0080] Exemplarily, in response to the current trigger duration of the first long-press operation reaching a first duration threshold, a preset interface 40 for the media content displayed in at least a part of the area of the media content display interface is displayed in the first size, such as Figure 4 shown; in the case of receiving a size adjustment operation for the preset interface 40, such as in the case of detecting an upward sliding operation within the media content display interface or the preset interface 40, the interface size of the preset interface 40 can be increased from the first size to a second size, such as Figure 6 shown.

[0081] In the above embodiments, the preset interface 40 displays more interface content when presented in the second size than when presented in the first size. For example, when the preset interface 40 is presented in the first size, the first interface area 43 may be displayed while the second interface area 44 is not displayed; when the preset interface 40 is presented in the second size, at least some sub-areas of the first interface area 43 and the second interface area 44 may be displayed. For another example, when the preset interface 40 is presented in the first size, the first interface area 43 may be completely displayed, and further some sub-areas of the second area 44 may be displayed, as shown in Figure 4 ; when the preset interface 40 is presented in the second size, the first interface area 43 may be completely displayed, and further more sub-areas of the second interface area 44 may be displayed, such as the second interface area being completely displayed, as shown in Figure 6 .

[0082] 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 may be arranged in different layouts. 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 of control elements may be the same or different, and multiple control elements are displayed in at least some rows of control elements; the control elements in the second interface area may be arranged vertically. Among them, the first interface area can be understood as the diamond area of the preset interface, and this diamond area can be the area that carries the core functions and important information in the interface, generally located at the top or middle of the interface where users can easily see.

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

[0084] When the preset interface is presented in the first size or the second size, the user can also be supported to close the preset interface. For example, when a close operation for the preset interface is received, such as when a downward sliding operation acting on the media content display interface or within the preset interface is received, or when a click operation acting on the non-control area of the media content display interface is received, it can be restored to the state before the first long press operation, such as cancelling the display of the preset interface and the preset element, and restoring at least some of the foregoing interface elements in the media content display interface to the display state before the first long press operation, as shown in Figure 3 to facilitate the user to view the media content in the media content display interface.

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

[0086] Specifically, when the current triggering duration of the first long press operation reaches the second duration threshold, the preset interface display can be cancelled, 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 a preset display speed, etc., as Figure 7 shown.

[0087] In this embodiment, please continue to refer to Figure 7 , when adjusting the current display speed of the media content, exemplarily, the currently displayed interface can be switched from the media content display interface to the speed display interface of this media content, and this media content can be displayed in this speed display interface with the adjusted display speed (such as 2 times speed or 3 times speed, etc.); it is also possible to keep the media content display interface displayed, and further cancel the display of at least some other interface contents (such as each control in the top navigation area) originally displayed in the media content display interface except for the media content picture, so as to facilitate the user to view the media content picture.

[0088] The event execution method provided in this embodiment can realize the seamless switching of two functions, namely the display of the preset interface and the adjustment of the current display speed of the media content, through a single operation, without separately performing the interface display operation and the speed adjustment operation, which can enrich the display method of the preset interface and the adjustment method of the current display speed of the media content, and simplify the operations required for displaying the preset interface and adjusting the current display speed of the media content.

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

[0090] Display the media content in the media content display interface, such as Figure 3 shown.

[0091] Receive a long - press operation (i.e., the first long - press operation) of the user within a preset area of the media content display interface. After the duration of this long - press operation reaches 0.4 ms, display a long - press panel (i.e., the control interface) on the upper layer of at least part of the media content display interface with the first size. Display a display progress bar (i.e., the display progress element) and a long - press progress bar (i.e., the preset prompt element) above this long - press panel. Cancel the display of the original media content information and controls such as like, comment, and share associated with the media content in the media content display interface, and increase the transparency of at least part of the controls including the controls in the top - navigation area of the media content display interface, as Figure 4 shown.

[0092] When the long - press panel is displayed with the first size, if it is detected that the user releases the hand between 0.4 s and 1 s to end the execution of this long - press operation, the display of the long - press panel, the display progress bar, and the long - press progress bar can be maintained. Adjust the long - press progress indicated by the long - press progress bar to 0, and support updating the long - press progress indicated by the long - press progress bar based on this long - press operation when the user performs a long - press operation again. And when this long - press progress reaches 100%, such as when the trigger duration of the long - press operation performed again by the user reaches the difference between the first duration threshold and the second duration threshold (such as 0.6 s), control the media content to play at N times the speed, as Figure 7 shown. The value of N can be set in advance or determined based on the original display speed of the media content before the display speed adjustment. This embodiment does not limit this.

[0093] When the long - press panel is displayed with the first size, if it is detected that the user swipes upward at the original long - press position of the long - press operation, or swipes upward in the media content display interface or the long - press panel after ending the execution of the long - press operation, the display size of the long - press panel can be increased from the first size to the second size, as Figure 6 shown.

[0094] When the long - press panel is displayed with the first size or the second size, if it is detected that the user swipes downward in the media content display interface or the long - press panel, or it is detected that the user clicks on the non - control area of the media content display interface, cancel the display of the long - press panel, the display progress bar, and the long - press progress bar, re - display the original media content information and controls associated with the media content in the media content display interface, and restore the transparency of at least part of the controls in the media content display interface, as Figure 3 shown.

[0095] 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 to perform the first long press operation), or 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, such as Figure 5 And, when the long press progress indicated by the long press progress bar reaches 100%, such as when the triggering duration of the first long press operation reaches 1 second, or when the triggering duration of the second long press operation reaches the difference between the first duration threshold and the second duration threshold, the display of the long press panel, the display progress bar, the long press progress bar, and at least part of the interface content originally displayed in the media content display interface except for the media content screen can be canceled, and the interface content displayed in the media content display interface is controlled to be played at N times the speed, such as Figure 7 shown.

[0096] After the interface content displayed in the control media content display interface is played at N times the speed, if it is detected that the user releases the long press operation, the N times the 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 receiving the first long press operation, such as Figure 3 shown.

[0097] In this embodiment, the user can wake up the panel and play at double the speed with a single long press, which can improve the user's operating efficiency and the smoothness of the interactive link; in response to the user's long press operation, the long press panel is displayed in a smaller size, which can reduce the obstruction of the long press panel to the media content and optimize the user's media content viewing experience; the user is supported to swipe down to close the long press panel, which can enrich the closing methods of the long press panel, simplify the operations required to close the long press panel, and improve the convenience of interaction; and, some control element rows of the long press panel can support the display of multiple control elements, which can achieve efficient display of control elements and improve the display efficiency and user experience of the long press panel.

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

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

[0100] The first event execution module 803 is used to execute an event corresponding to the current trigger duration of the first long press operation in response to the first long press operation in the media content display interface, wherein when the current trigger duration is different, the executed event is different.

[0101] The event execution device provided in this embodiment displays media content in 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 event is different. This embodiment utilizes the above-mentioned technical scheme to execute the event corresponding to the current trigger duration of the long press operation in response to the long press operation acting in the media content display interface. Thus, 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 be executed as the current trigger duration of the long press operation changes. Different events can be executed through a single long press operation, enriching the event execution method and simplifying the operations required to switch to execute different events.

[0102] Optionally, the first event execution module 803 includes: a first event execution unit, used 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; a second event execution unit, used 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.

[0103] Optionally, the first event includes a display event of a preset interface, and the first event execution unit can be specifically used to: display a preset interface of the media content, 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.

[0104] Furthermore, the event execution device may also 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, and the preset element is used to control the display of the media content; 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 a first duration threshold.

[0105] Optionally, 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 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.

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

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

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

[0109] The event execution device provided in the embodiments of the present disclosure can execute the event execution method provided in any embodiment of the present disclosure, and has 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 the present disclosure.

[0110] Next, refer to Figure 9 , which shows a schematic structural diagram of an electronic device (such as a terminal device) 900 suitable for implementing the embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablet Computers), PMPs (Portable Multimedia Players), in-vehicle terminals (such as in-vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 9 The electronic device shown is only an example and should not impose any limitations on the functions and usage scope of the embodiments of the present disclosure.

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

[0112] Generally, the following devices may be connected to the I / O interface 905: an input device 906 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 908 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 909. The communication device 909 may allow the electronic device 900 to communicate with other devices wirelessly or wirelesly to exchange data. Although Figure 9 an electronic device 900 with various devices is shown, it should be understood that it is not required to implement or include all the shown devices. Instead, more or fewer devices may be implemented or included.

[0113] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart may be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes program codes for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication device 909, or installed from the storage device 908, or installed from the ROM 902. When the computer program is executed by the processing device 901, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0114] It should be noted that the computer-readable medium described above in the present disclosure can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. 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 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 disk, 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 that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, 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, and this computer-readable signal medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0115] In some embodiments, the client and the server can communicate using any currently known or future-developed network protocol such as HTTP (HyperText Transfer Protocol), and can be interconnected with digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include local area networks ("LAN"), wide area networks ("WAN"), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future-developed networks.

[0116] The above computer-readable medium can be included in the above electronic device; it can also exist separately without being assembled into the electronic device.

[0117] The above 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 within the media content display interface, execute an event corresponding to the current trigger duration of the first long press operation, wherein when the current trigger durations are different, the events executed are different.

[0118] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or combinations thereof. The programming languages include, but are not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may 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 case of a remote computer, the remote computer may 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 may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0119] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system for performing the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.

[0120] The units involved in the embodiments described in the present disclosure may be implemented in software or in hardware. In some cases, the name of the module does not constitute a limitation on the unit itself.

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

[0122] In the context of this disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection 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 include, 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 a machine-readable storage medium would include an electrical connection based on 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 Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

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

[0124] Display media content on a media content display interface;

[0125] 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, where when the current trigger durations are different, the events executed are different.

[0126] According to one or more embodiments of the present disclosure, Example 2 according to the method of Example 1, the executing an event corresponding to the current trigger duration of the first long press operation includes:

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

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

[0129] According to one or more embodiments of the present disclosure, Example 3 is based on the method described in Example 2. The first event includes a display event of a preset interface. Executing the first event associated with the media content includes:

[0130] Displaying a preset interface of the media content, where at least one control element is displayed in the preset interface, and different control elements are configured to trigger and execute different third events associated with the media content.

[0131] According to one or more embodiments of the present disclosure, Example 4 is based on the method described in Example 3. The method further includes at least one of the following:

[0132] In response to the current triggering duration of the first long-press operation reaching a first duration threshold, displaying a preset element for controlling the display of the media content.

[0133] In response to the current triggering duration of the first long-press operation reaching a first duration threshold, adjusting the display states of at least some interface elements in the media content display interface.

[0134] According to one or more embodiments of the present disclosure, Example 5 is based on the method described in Example 4. 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 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.

[0135] According to one or more embodiments of the present disclosure, Example 6 is based on the method described in Example 3. Displaying the preset interface of the media content includes:

[0136] Displaying the preset interface of the media content in a first size;

[0137] The method further includes:

[0138] In response to a size adjustment operation acting within 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, where the size adjustment operation is continuously or discontinuously executed with the first long-press operation.

[0139] According to one or more embodiments of the present disclosure, Example 7 is based on the method described in Example 2. The second event includes an adjustment event of the current display speed. Executing the second event associated with the media content includes:

[0140] Adjusting the current display speed of the media content.

[0141] According to one or more embodiments of the present disclosure, Example 8, based on the method according to any one of Examples 2-7, after executing the first event associated with the media content, further includes:

[0142] In response to a second long press operation acting within the media content display interface, execute a second event associated with the media content.

[0143] According to one or more embodiments of the present disclosure, Example 11 provides an event execution device, including:

[0144] A media content display module for displaying media content in a media content display interface;

[0145] A first event execution module for, in response to a first long press operation acting within the media content display interface, execute an event corresponding to the current trigger duration of the first long press operation, wherein when the current trigger durations are different, the executed events are different.

[0146] According to one or more embodiments of the present disclosure, Example 10 provides an electronic device, including:

[0147] One or more processors;

[0148] A memory for storing one or more programs,

[0149] When the one or more programs are executed by the one or more processors, the one or more processors implement the event execution method according to any one of Examples 1-8.

[0150] According to one or more embodiments of the present disclosure, Example 11 provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, it implements the event execution method according to any one of Examples 1-8.

[0151] According to one or more embodiments of the present disclosure, Example 12 provides a computer program product, when the computer program product is executed by a computer, the computer implements the event execution method according to any one of Examples 1-8.

[0152] The above description is only a preferred embodiment of the present disclosure and an explanation of the applied technical principles. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosure concept. For example, the technical solutions formed by mutually replacing the above features with the technical features (but not limited to) having similar functions disclosed in the present disclosure.

[0153] Moreover, although the operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although several specific implementation details are included in the foregoing discussion, these should not be construed as limitations on the scope of the present disclosure. Certain features that are described in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment may also be implemented separately or in any suitable subcombination in multiple embodiments.

[0154] Although the subject matter has been described in language specific to structural features and / or methodological acts, it should be understood that the subject matter 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 merely example forms of implementing the claims.

Claims

1. An event execution method, characterized in that: include: Display media content on a media content display interface; In response to a first long press operation performed within the media content display interface, an event corresponding to a current trigger duration of the first long press operation is executed, wherein when the current trigger durations are different, the executed events are different.

2. The method according to claim 1, characterized in that The executing an event corresponding to the current triggering duration of the first long press operation includes: In response to a current trigger duration of the first long press operation reaching a first duration threshold, executing a first event associated with the media content; In response to a 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.

3. The method according to claim 2, characterized in that The first event includes a display event of a preset interface, and the executing 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 execution of different third events associated with the media content.

4. The method according to claim 3, characterized in that The method further comprises at least one of the following: In response to a current triggering duration of the first long press operation reaching a first duration threshold, displaying a preset element, wherein the preset element is used to display and control the media content; In response to the current triggering duration of the first long press operation reaching a first duration threshold, adjusting the display status of at least some interface elements in the media content display interface.

5. The method according to claim 4, characterized in that 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 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.

6. The method according to claim 3, characterized in that The preset interface for displaying the media content includes: Displaying a preset interface of the media content in a first size; The method further comprises: 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 a second size, wherein the size adjustment operation and the first long press operation are performed continuously or discontinuously.

7. The method according to claim 2, characterized in that: The second event includes an event for adjusting the current display speed, and the executing the second event associated with the media content includes: Adjust the current display speed of the media content.

8. The method according to any one of claims 2 to 7, characterized in that: After the execution of the first event associated with the media content, the method further includes: In response to a second long press operation performed within the media content display interface, a second event associated with the media content is executed.

9. An event execution device, characterized in that: include: A media content display module, used to display media content on a media content display interface; The first event execution module is used to execute an event corresponding to the current trigger duration of the first long press operation in response to the first long press operation in the media content display interface, wherein when the current trigger duration is different, the executed event is different.

10. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the event execution method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the event execution method according to any one of claims 1 to 8 when executed.

12. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the event execution method according to any one of claims 1 to 8 is implemented.

Citation Information

Cited By

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

    WO2026166110A1