Multimedia component triggering method and apparatus, electronic device, and storage medium

By responding to gesture operations in short video applications to determine the target trigger area, detect and trigger hidden components or video components, the problems of single interaction mode and operation conflict are solved, and diversified content display and user experience are achieved.

CN117676247BActive Publication Date: 2026-11-20DOUYIN VISION CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202211098310.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-08
Publication Date
2026-11-20
Estimated Expiration
2042-09-08

AI Technical Summary

Technical Problem

Existing short video applications suffer from limited interactive modes, few content display methods, low information content, and operational conflicts between hidden components and video components, leading to difficulties in interaction.

Method used

By responding to gesture operations, the target trigger area is determined, hidden components or video components are detected and triggered, operation conflicts are avoided, and dynamic Easter egg triggering and diversified content display are achieved.

Benefits of technology

It enhances the interactivity and content diversity during video playback, thereby improving user experience and information richness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117676247B_ABST
    Figure CN117676247B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a multimedia component triggering method and device, electronic equipment and storage medium. The method comprises: determining a target triggering area in response to a gesture operation on a video playing interface, the target triggering area being a contact area of the gesture operation on the video playing interface, the video playing interface being used for playing a target video currently displayed; detecting the target triggering area, and triggering a hidden component or a video component according to a detection result, wherein the hidden component is used for displaying a corresponding target page in the video playing interface after being triggered, and the video component is used for executing a first application function on the target video after being triggered. First, the corresponding target triggering area is determined according to the gesture operation, and then the hidden component or the video component should be triggered based on the detection result of the target triggering area, thereby avoiding the operation conflict between the hidden component and the video component, and improving the interactive interest and content display diversity in the video playing process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of Internet technology, and in particular to a method, apparatus, electronic device and storage medium for triggering multimedia components. Background Technology

[0002] Currently, internet-based short video applications are gaining increasing popularity due to their advantages such as free publishing and rich content. In existing technologies, these short video applications typically push videos to terminal devices using feed streaming technology, allowing users to conveniently watch the videos on their devices via gestures such as swiping up and down.

[0003] However, existing solutions can only implement simple interactive operations such as video switching and video liking for the currently playing video, and cannot implement more complex interactive operations. Therefore, there are problems such as a single interaction mode, limited content display methods, and low information content during video playback. Summary of the Invention

[0004] This disclosure provides a multimedia component triggering method, apparatus, electronic device, and storage medium to overcome problems such as single interaction mode, limited content display methods, and low information content during video playback.

[0005] In a first aspect, embodiments of this disclosure provide a multimedia component triggering method, including:

[0006] In response to a gesture operation on the video playback interface, a target trigger area is determined, which is the contact area of ​​the gesture operation on the video playback interface, which is used to play the currently displayed target video; the target trigger area is detected, and based on the detection result, a hidden component or a video component is triggered, wherein the hidden component is used to display the corresponding target page within the video playback interface after being triggered, and the video component is used to execute a first application function for the target video after being triggered.

[0007] In a second aspect, embodiments of this disclosure provide a multimedia component triggering device, comprising:

[0008] A response module is used to respond to gesture operations on the video playback interface and determine the target trigger area, which is the contact area of ​​the gesture operation on the video playback interface, and the video playback interface is used to play the currently displayed target video.

[0009] The triggering module is used to detect the target triggering area and trigger a hidden component or a video component based on the detection result. The hidden component is used to display the corresponding target page in the video playback interface after being triggered, and the video component is used to execute a first application function for the target video after being triggered.

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

[0011] A processor, and a memory communicatively connected to the processor;

[0012] The memory stores computer-executed instructions;

[0013] The processor executes computer execution instructions stored in the memory to implement the multimedia component triggering method described in the first aspect and various possible designs of the first aspect.

[0014] Fourthly, embodiments of this disclosure provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the multimedia component triggering method described in the first aspect and various possible designs of the first aspect.

[0015] Fifthly, embodiments of this disclosure provide a computer program product, including a computer program that, when executed by a processor, implements the multimedia component triggering method described in the first aspect and various possible designs of the first aspect.

[0016] The multimedia component triggering method, apparatus, electronic device, and storage medium provided in this embodiment determine a target triggering area by responding to a gesture operation on a video playback interface. The target triggering area is the contact area of ​​the gesture operation on the video playback interface, which is used to play the currently displayed target video. The method detects the target triggering area and, based on the detection result, triggers a hidden component or a video component. The hidden component, upon being triggered, displays a corresponding target page within the video playback interface, and the video component, upon being triggered, executes a first application function for the target video. Because the terminal device, after detecting a gesture operation on the video playback page, first determines the corresponding target triggering area based on the gesture operation, and then determines whether to trigger a hidden component or a video component based on the detection result of the target triggering area, operational conflicts between the hidden component and the video component are avoided, ensuring normal triggering of the hidden component and thereby improving the interactive fun and content display diversity during video playback. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is an application scenario diagram of the multimedia component triggering method provided in the embodiments of this disclosure;

[0019] Figure 2 Flowchart of the multimedia component triggering method provided in the embodiments of this disclosure Figure 1 ;

[0020] Figure 3 A schematic diagram of a video playback interface provided in an embodiment of this disclosure;

[0021] Figure 4 A schematic diagram of a target triggering area provided in an embodiment of this disclosure;

[0022] Figure 5 for Figure 2 The flowchart of the specific implementation method of step S101 in the embodiment shown is as follows;

[0023] Figure 6 This is a schematic diagram illustrating a process for determining a target triggering region, provided in an embodiment of the present disclosure.

[0024] Figure 7 for Figure 2 The flowchart of the specific implementation method of step S102 in the embodiment shown is as follows;

[0025] Figure 8 This is a schematic diagram illustrating a process for determining and triggering a hidden component, as provided in an embodiment of this disclosure.

[0026] Figure 9 A schematic diagram of a dynamic target object provided in an embodiment of this disclosure;

[0027] Figure 10 Flowchart of the multimedia component triggering method provided in the embodiments of this disclosure Figure 2 ;

[0028] Figure 11 A schematic diagram of the logical structure of a video playback interface provided in an embodiment of this disclosure;

[0029] Figure 12 This is a schematic diagram illustrating a process of triggering a hidden component through a long-press gesture, as provided in an embodiment of this disclosure.

[0030] Figure 13A schematic diagram illustrating a method for triggering a hidden component based on a page container, as provided in an embodiment of this disclosure;

[0031] Figure 14 This is a structural block diagram of a multimedia component triggering device provided in an embodiment of the present disclosure;

[0032] Figure 15 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure;

[0033] Figure 16 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0034] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.

[0035] The application scenarios of the embodiments of this disclosure are explained below:

[0036] Figure 1 This diagram illustrates an application scenario of the multimedia component triggering method provided in this disclosure. The multimedia component triggering method provided in this disclosure can be applied to short video playback scenarios, and more specifically, to scenarios where hidden information is triggered within a short video. Figure 1 As shown, the method provided in this disclosure can be applied to terminal devices, such as smartphones and tablets. For example, a short video application runs on the terminal device. During the playback of a target video (short video) through the application's video playback interface, certain hidden information, i.e., "Easter eggs," is hidden within the video playback interface. When the user performs a gesture operation on the video playback interface, if the multimedia component corresponding to the Easter egg is triggered (shown in the figure as being triggered by a long press gesture), a hidden page corresponding to the hidden information, i.e., an "Easter egg page," is displayed on top of the video playback interface. More specifically, this could be a promotional video or a promotional activity page, thereby achieving the purpose of triggering hidden information within the short video.

[0037] In existing technologies, short video applications based on feed streaming technology can only implement simple interactive operations such as video switching and liking for the currently playing video, and cannot add more complex interactive operations, such as triggering Easter eggs in the short video (see Easter eggs for more details). Figure 1The operation described in the application scenario is as follows: In short video applications, the video component used to display videos has preset native operation modes. For example, a long press gesture can achieve the "like" function for the currently playing video; a swipe gesture can achieve the "switch" function for the currently playing video. An Easter egg, on the other hand, is a page display mode that enhances interactive fun and content display diversity by hiding trigger controls (not displaying the position of the trigger controls). It requires the user to trigger a hidden component within a specific area using gestures. During this process, when the trigger area of ​​the hidden component overlaps with the trigger area of ​​the video component, it can cause a conflict between the Easter egg's trigger logic and the application's native operation logic, resulting in the hidden component or the video component becoming unusable. This disclosure provides a multimedia component triggering method to solve the above problems.

[0038] refer to Figure 2 , Figure 2 Flowchart of the multimedia component triggering method provided in the embodiments of this disclosure Figure 1 The method of this embodiment can be applied in a terminal device, and the multimedia component triggering method includes:

[0039] Step S101: Respond to the gesture operation on the video playback interface, determine the target trigger area, which is the contact area of ​​the gesture operation on the video playback interface, and the video playback interface is used to play the currently displayed target video.

[0040] For example, the execution subject of the method provided in this embodiment can be a terminal device, such as a smartphone or tablet computer. The terminal device runs an application for playing videos, more specifically, such as a short video application based on feed streaming technology, wherein the application plays short videos through a video playback interface. Figure 3 This is a schematic diagram of a video playback interface provided in an embodiment of the present disclosure, such as... Figure 3 As shown, the video playback interface can be a functional module implemented within the target application based on the operating system's function class for playing videos. While playing the target video, the video playback interface can respond to the user's gesture operations on the video playback interface and execute corresponding application functions, such as switching videos by swiping gestures or saving videos by long-pressing gestures.

[0041] Based on the above description of the video playback interface, for example, when a user applies a gesture operation to the video playback interface displayed in the target application through the interaction unit of the terminal device, such as a touch screen, the interaction unit can determine the contact area of ​​the gesture operation on the video playback interface by checking the gesture operation, and the contact area is the target trigger area. Figure 4This is a schematic diagram of a target triggering area provided in an embodiment of the present disclosure, such as... Figure 4 As shown, the interaction unit is, for example, a touchscreen, and the gesture operation is, for example, a click gesture. When a click gesture is applied to the touchscreen of the terminal device, it causes a change in the touchscreen's capacitance. The touchscreen determines the specific contact position of the click gesture by detecting the capacitance change; more specifically, it determines the coordinates of the contact position, i.e., the contact coordinates. Then, based on the area to which the contact coordinates belong, a target trigger area is determined, wherein the contact coordinates are located within the target trigger area. Furthermore, the outline shape of the target trigger area can be implemented in various ways, such as non-rectangular, circular, or other irregular shapes, which will not be elaborated here.

[0042] Furthermore, in one possible implementation, such as Figure 5 As shown, the specific implementation steps of step S102 include:

[0043] Step S1011: Detect the contact coordinates corresponding to the gesture operation. The contact coordinates represent the coordinates of the contact point of the gesture operation on the video playback interface.

[0044] Step S1012: Based on the contact coordinates, determine the hidden trigger area within the first distance from the contact coordinates as the target trigger area, wherein the hidden trigger area is the area with a hidden component.

[0045] For example, after detecting the contact coordinates corresponding to the gesture operation, one possible implementation is to determine the target trigger area corresponding to the contact coordinates based on a preset mapping relationship between contact coordinates and trigger areas. This implementation will not be elaborated further. Another possible implementation is to search for hidden trigger areas within a preset range centered on the contact coordinates. If the preset range includes a hidden trigger area, then that hidden trigger area is determined as the target trigger area. Figure 6 This is a schematic diagram illustrating a process for determining a target triggering region, as provided in an embodiment of this disclosure. Figure 6 As shown, after determining the contact coordinate A, a circular area Zoom_1 with the contact coordinate A as the center and the first distance R as the radius is detected. After detection, the preset hidden trigger area Zoom_2 partially overlaps with Zoom_1. Therefore, the hidden trigger area is considered to be within the first distance of the contact coordinate, and the hidden trigger area Zoom_2 is determined as the target trigger area.

[0046] In this embodiment, the target trigger area is preferentially determined within the hidden trigger area by detecting the hidden trigger area within the preset range of the contact coordinates corresponding to the gesture operation. Since the Easter egg (hidden information) is usually invisible in the application scenario of triggering the Easter egg in short videos, it will cause the user's gesture operation to be inaccurate. Through the method of the steps in this embodiment, the contact coordinates can be automatically adjusted when they are located in the surrounding area of ​​the hidden trigger area, thereby increasing the probability of the user triggering the Easter egg and improving the user experience.

[0047] Step S102: Detect the target trigger area and trigger the hidden component or the video component according to the detection result. The hidden component is used to display the corresponding target page in the video playback interface after being triggered, and the video component is used to execute the first application function for the target video after being triggered.

[0048] For example, after determining the target trigger area, the target trigger area is further detected. The detection result is used to determine whether the target trigger area is used to trigger a hidden component or a video component. If the target trigger area is used to trigger a hidden component, the hidden component is triggered, and after calling the corresponding program, the corresponding target page is displayed in the video playback interface to achieve the purpose of triggering hidden information. If the target trigger area is used to trigger a video component, the video component is triggered, and after calling the corresponding program, the first application function is executed for the target video to achieve the regular application functions for the target video, such as liking, favorites, video switching, etc.

[0049] In one possible implementation, the position of the hidden trigger area changes dynamically as the target video plays. For example... Figure 7 As shown, exemplarily, the specific implementation steps of step S102 include:

[0050] Step S1021: Detect the location of the target trigger area.

[0051] Step S1022: If the target trigger area is located within the recognition outline of the target object in the target video, the hidden component is triggered, wherein the target object is obtained by image recognition of the current frame of the target video.

[0052] Step S1023: If the target trigger area is outside the recognition outline of the target object in the target video, then the video component is triggered.

[0053] For example, the target object is an image element determined based on the semantic information of the target video, such as a face, a person, or a characteristic object, such as a car or a house in the video. This can be obtained through image recognition technology, which will not be elaborated here. After detecting the location of the target trigger area, it is determined whether the target trigger area falls within the recognition contour of the target object in the target video, based on the location of the target trigger area. The recognition contour refers to the contour formed by extending the outer contour of the target object outwards by a preset distance, where the preset distance is greater than or equal to 0. For example, the area corresponding to the recognition contour is the hidden trigger area.

[0054] Furthermore, if the target trigger area falls within the recognition outline of the target object, then the target trigger area belongs to the hidden trigger area, and the hidden component is triggered, and the subsequent corresponding calling procedure is executed; if the target trigger area does not fall within the recognition outline of the target object, then the target trigger area does not belong to the hidden trigger area, and the video component is triggered, and the subsequent corresponding calling procedure is executed.

[0055] Figure 8 This is a schematic diagram illustrating a process for determining and triggering a hidden component, as provided in an embodiment of this disclosure. Figure 8 As shown, the target video includes two target objects: a "smartphone" and a "promotional display board." Each "smartphone" and "promotional display board" corresponds to a recognition contour. When a target trigger area is obtained through gesture detection, if the trigger area falls within the recognition contour of the "smartphone," the corresponding hidden component of the smartphone is triggered, for example, displaying target page A on the video playback interface, which displays the smartphone's parameters. If the trigger area falls within the recognition contour of the "promotional display board," the corresponding hidden component of the promotional display board is triggered, for example, displaying target page B on the video playback interface, which displays a video promoting the smartphone. Furthermore, if the trigger area does not fall within either the recognition contour of the "smartphone" or the "promotional display board," meaning it is outside the recognition contour of the target object in the target video, the corresponding video component is triggered based on the specific gesture operation, for example, the target video being played for the first time.

[0056] In this embodiment, by detecting the relationship between the target triggering area and the recognition contour of the target object, dynamic Easter egg triggering for different target objects is realized, enabling different target objects to trigger corresponding types of hidden information, thereby improving the diversity and richness of the information.

[0057] In one possible implementation, the position of the target object changes dynamically as the target video plays, and before step S1021, the method further includes:

[0058] Step S1020: Real-time detection of target objects in the target video.

[0059] For example, during the playback of the target video, the content of the target video will change as the playback progresses. That is, the content displayed in the current frame of the target video will change. In each video frame, the target object corresponding to the target video may be in the same or different positions, and the target object may or may not exist.

[0060] Figure 9 This is a schematic diagram of a dynamic target object provided in an embodiment of the present disclosure, such as... Figure 9 As shown, the target object is, for example Figure 9 "Promotional display board" in the reference Figure 9 As shown, in frame N1 of the target video, the "promotional display board" is located on the left side of the target video (current video frame); in frame N2 of the target video, the "promotional display board" is located on the right side of the target video (current video frame); and in frame N3 of the target video, the "promotional display board" is located outside the target video (current video frame), meaning there is no target object in the target video. When the target trigger area falls within the recognition outline of the target object, the hiding component is triggered, and the hiding information is triggered based on subsequent steps; when the target trigger area falls outside the recognition outline, the corresponding video component is triggered according to the specific gesture operation, or the process returns to step S1020 and re-executes the above steps to re-detect the target object and gesture operation.

[0061] In this embodiment, by detecting the relationship between the target trigger area and the real-time target object's outline in the target video, the dynamic hiding of the trigger area for the target video is realized, enabling the hidden trigger area to follow the specific target object in real time, thereby improving the flexibility and fun of triggering multimedia components.

[0062] In this embodiment, a target trigger area is determined by responding to a gesture operation on the video playback interface. The target trigger area is the contact area of ​​the gesture operation on the video playback interface, which is used to play the currently displayed target video. The target trigger area is detected, and based on the detection result, a hidden component or a video component is triggered. The hidden component is used to display the corresponding target page within the video playback interface after being triggered, and the video component is used to execute a first application function for the target video after being triggered. Since the terminal device first determines the corresponding target trigger area based on the gesture operation after detecting a gesture operation on the video playback page, and then determines whether to trigger the hidden component or the video component based on the detection result of the target trigger area, operational conflicts between the hidden component and the video component are avoided, and normal triggering of the hidden component is achieved. This improves the interactive fun and content display diversity during video playback in the hidden information trigger mode.

[0063] refer to Figure 10 , Figure 10 Flowchart of the multimedia component triggering method provided in the embodiments of this disclosure Figure 2 This embodiment is in Figure 2 Based on the illustrated embodiment, step S102 is further refined, wherein the video playback interface includes an overlapping video container and a page container, wherein the page container is on top of the video container. The multimedia component triggering method provided in this embodiment includes:

[0064] Step S201: Set the page container to a visible state and display the indicator corresponding to the hidden component within the page container. The indicator is used to indicate the trigger area corresponding to the hidden component.

[0065] For example, Figure 11 This is a schematic diagram of the logical structure of a video playback interface provided in an embodiment of this disclosure. The video playback interface includes an overlapping video container and a page container, each corresponding to a layer. Therefore, the video container and the page container can also be referred to as the video container layer and the page container layer. By default, the page container is set above the video container, but the page container is invisible. The video container is used to display the target video and set video components, while the page container is used to display the target page and set hidden components. The page container is invisible until a gesture operation is performed on the video playback interface. Further, both the video container and the page container are software modules implemented through corresponding classes. For example, the video container is implemented based on canvas, and the page container is implemented based on a Lynx container.

[0066] During the playback of the target video on the video playback interface, under preset conditions, an indicator will be displayed within the page container to indicate the location of the hidden component. More specifically, for example, the hidden trigger area will be highlighted to prompt the user in which area the Easter egg video is triggered, thereby improving interaction efficiency. It should be noted that step S201 is an optional step in this embodiment, and subsequent steps can be performed without executing step S201.

[0067] Step S202: Respond to the gesture operation on the video playback interface, determine the target trigger area, which is the contact area of ​​the gesture operation on the video playback interface, and the video playback interface is used to play the currently displayed target video.

[0068] S203: Detect the target trigger area of ​​the page container.

[0069] S204: If a hidden component exists in the target trigger area of ​​the page container, the first call function corresponding to the hidden component is called, and the corresponding target page is displayed in the page container according to the call result of the first call function.

[0070] For example, after a user performs a gesture operation on the video playback interface, the terminal device detects the gesture operation and determines the corresponding target trigger area. The specific implementation method of this step is described in... Figure 2 Step S101 of the illustrated embodiment has been described in detail and will not be repeated here.

[0071] Subsequently, based on the obtained target trigger area, the terminal device first detects the page container to determine whether there are hidden components within the target trigger area of ​​the page container. The specific implementation method is achieved by calling the corresponding functional interface of the page container, which will not be elaborated further. Figure 11 As illustrated in the embodiments and the above description of the prior art, both the page container and the application container can respond to user gesture operations. Since the page container is overlaid on the application container, both containers need to respond to the gesture operation upon detection, potentially leading to logical conflicts. In this embodiment, responding to gesture operations on the video playback interface first detects the target trigger area of ​​the page container. If a hidden component exists in the target trigger area, the first function corresponding to the hidden component is called to implement the corresponding function, i.e., displaying the target page within the page container to trigger the hidden information. Then, if no hidden component exists in the target trigger area of ​​the page container, the second function corresponding to the video component within the video container is called to implement the corresponding function, i.e., executing the first application function, such as liking a video. This resolves the logical conflict between the page container and the application container.

[0072] Further, and more specifically, for example, the page container is a Lynx container, and the video container is a Canva container. The specific implementation is as follows: Add `user-interaction-enabled=false` to the bottom full-screen canvas to indicate that it does not need to respond to events. The other elements above the canvas do not have `user-interaction-enabled=false` added and respond to events normally. When the user detects an action on the screen (e.g., a click), the terminal device (the target application running within it) will detect the element that should respond to the event based on the click coordinates. For overlapping elements (here referring to the bottom video and the top full-screen canvas), the default behavior is that the top element will consume the event regardless of whether a click call function is bound to it. However, because the canvas has `user-interaction-enabled=false` set, it cannot be used as an event target during the detection phase. The event target detection mechanism continues until the bottom video element is found. After the user long-presses the guide gesture, the page container's layer rises to the top layer, playing the full-screen target page.

[0073] In one possible implementation, exemplarily, the gesture operation is a long press gesture operation. The specific implementation of step S204 includes:

[0074] Step S2041: In response to a long press gesture, display the guide icon.

[0075] Step S2042: After detecting that the long press gesture operation has lasted for a first duration, the hidden component corresponding to the target trigger area is triggered, and the target page corresponding to the hidden component is displayed in the video playback interface.

[0076] For example, in application scenarios that trigger hidden information, considering the invisibility of the hidden component, users' gesture operations may result in accidental touches. For instance, if the duration of a "long press" gesture is too short, it may be confused with a "click" gesture, leading to accidental touches and affecting the user experience.

[0077] Figure 12 This is a schematic diagram illustrating a process of triggering a hidden component through a long-press gesture, as provided in an embodiment of this disclosure. Figure 12 As shown, after the user applies a long-press gesture to the video playback interface, the terminal device displays a guide icon on the video playback interface. The guide icon can be an icon that changes over time, as shown in the reference. Figure 12As shown, exemplarily, the guide is represented by a circular progress bar. As the long-press gesture continues, the progress bar advances, reaching its end after a first duration. Subsequently, the hidden component corresponding to the target trigger area is activated, displaying the target page on the page container. This target page, for example, is used to play an Easter egg video.

[0078] In this embodiment, by setting a guiding identifier, the hidden component is triggered after a continuous long press for a first duration, thus avoiding errors and improving interaction efficiency and user experience.

[0079] Step S205: If there is no hidden component in the target trigger area of ​​the page container, the second call function corresponding to the video component in the video container is called, and the first application function is executed based on the call result of the second call function.

[0080] For example, in another case, since the video container for the target application is usually full-screen, gesture operations can be performed anywhere within the video playback interface to trigger the video component. Therefore, if there is no hidden component in the target trigger area of ​​the page container, it means that this area is not a hidden trigger area. In this case, the video component of the video container is triggered, and the second calling function corresponding to the video component is called, thereby realizing the control of the target video and executing the first application function.

[0081] Figure 13 This is a schematic diagram illustrating a method for triggering a hidden component based on a page container, as provided in an embodiment of this disclosure. Figure 13 As shown, the page container overlaps the video container. When a trigger event corresponding to a gesture operation is generated, the first step is to determine whether there is a hidden component in the target trigger area of ​​the page container. If there is a hidden component, the page container consumes the trigger event and displays the target page in full screen within the page container (triggering the hidden component). If there is no hidden component, the trigger event passes through the page container, reaches the video container, and is consumed by the video container to execute the first application function, such as liking a video.

[0082] In this embodiment, by using overlapping page containers and video containers, hidden components within the target trigger area of ​​the page container are first detected, and the hidden component or video component is triggered based on the detection result, thus avoiding logical conflicts between the hidden component and the video component.

[0083] Corresponding to the multimedia component triggering method provided in the above embodiments, Figure 14 This is a structural block diagram of a multimedia component triggering device provided in an embodiment of this disclosure. For ease of explanation, only the parts relevant to the embodiments of this disclosure are shown. (Refer to...) Figure 14 The multimedia component triggering device 3 includes:

[0084] The response module 31 is used to respond to gesture operations on the video playback interface, determine the target trigger area, which is the contact area of ​​the gesture operation on the video playback interface, and the video playback interface is used to play the currently displayed target video.

[0085] Trigger module 32 is used to detect the target trigger area and trigger the hidden component or video component according to the detection result. The hidden component is used to display the corresponding target page in the video playback interface after being triggered, and the video component is used to execute the first application function for the target video after being triggered.

[0086] In one embodiment of this disclosure, the response module 31 is specifically used to: obtain the contact coordinates corresponding to the gesture operation, the contact coordinates representing the coordinates of the contact point of the gesture operation on the video playback interface; and determine the hidden trigger area within a first distance from the contact coordinates as the target trigger area, wherein the hidden trigger area is an area with a hidden component.

[0087] In one embodiment of this disclosure, the triggering module 32 is specifically used for: real-time detection of a target object in a target video; if the target triggering area is within the recognition outline of the target object in the target video, then the hiding component is triggered, wherein the target object is obtained by image recognition of the current frame of the target video; if the target triggering area is outside the recognition outline of the target object in the target video, then the video component is triggered.

[0088] In one embodiment of this disclosure, the video playback interface includes an overlapping video container and a page container, wherein the video container is used to display a target video and set video components, and the page container is used to display a target page and set hidden components. The page container is invisible before responding to a gesture operation on the video playback interface.

[0089] In one embodiment of this disclosure, the triggering module 32 is specifically used to: detect the target triggering area of ​​the page container; if there is a hidden component in the target triggering area of ​​the page container, call the first calling function corresponding to the hidden component, and display the corresponding target page in the page container according to the calling result of the first calling function.

[0090] In one embodiment of this disclosure, the triggering module 32 is further configured to: if there is no hidden component in the target triggering area of ​​the page container, call the second calling function corresponding to the video component in the video container, and execute the first application function based on the calling result of the second calling function.

[0091] In one embodiment of this disclosure, the video container is implemented based on canvas; the page container is implemented based on the Lynx container.

[0092] In one embodiment of this disclosure, before determining the target trigger area in response to a gesture operation on the video playback interface, the trigger module 32 is further configured to: set the page container to a visible state and display an indicator corresponding to the hidden component within the page container, the indicator being used to indicate the trigger area corresponding to the hidden component.

[0093] In one embodiment of this disclosure, the gesture operation is a long press gesture operation; before triggering the hidden component, the trigger module 32 is further configured to: display a guide icon in response to the long press gesture operation;

[0094] When triggering the hidden component, the trigger module 32 is specifically used to: after detecting a long press gesture operation lasting for a first duration, trigger the hidden component corresponding to the target trigger area, and display the target page corresponding to the hidden component in the video playback interface.

[0095] The response module 31 and the trigger module 32 are connected. The multimedia component triggering device 3 provided in this embodiment can execute the technical solution of the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0096] Figure 15 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure, such as... Figure 15 As shown, the electronic device 4 includes:

[0097] Processor 41, and memory 42 communicatively connected to processor 41;

[0098] Memory 42 stores instructions executed by the computer;

[0099] The processor 41 executes computer execution instructions stored in the memory 42 to achieve, for example, Figures 2-13 The multimedia component triggering method in the illustrated embodiment.

[0100] Optionally, the processor 41 and the memory 42 are connected via a bus 43.

[0101] For relevant instructions, please refer to the corresponding text. Figures 2-13 The relevant descriptions and effects of the steps in the corresponding embodiments are understood, and will not be elaborated on here.

[0102] refer to Figure 16The diagram illustrates a structural schematic of an electronic device 900 suitable for implementing embodiments of the present disclosure. The electronic device 900 can be a terminal device or a server. The terminal device can include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, personal digital assistants (PDAs), portable Android devices (PADs), portable media players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 16 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0103] like Figure 16 As shown, 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.

[0104] 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 Figure 16 An electronic device 900 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

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

[0106] 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.

[0107] 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.

[0108] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above embodiments.

[0109] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and 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).

[0110] 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.

[0111] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".

[0112] 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.

[0113] 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.

[0114] In a first aspect, according to one or more embodiments of this disclosure, a multimedia component triggering method is provided, comprising:

[0115] In response to a gesture operation on the video playback interface, a target trigger area is determined, which is the contact area of ​​the gesture operation on the video playback interface, which is used to play the currently displayed target video; the target trigger area is detected, and based on the detection result, a hidden component or a video component is triggered, wherein the hidden component is used to display the corresponding target page within the video playback interface after being triggered, and the video component is used to execute a first application function for the target video after being triggered.

[0116] According to one or more embodiments of this disclosure, the step of responding to a gesture operation on a video playback interface and determining a target trigger area includes: obtaining contact coordinates corresponding to the gesture operation, the contact coordinates representing the coordinates of the contact point of the gesture operation on the video playback interface; and determining a hidden trigger area within a first distance from the contact coordinates as the target trigger area based on the contact coordinates, wherein the hidden trigger area is an area provided with a hidden component.

[0117] According to one or more embodiments of this disclosure, detecting the target triggering region and triggering a hiding component or a video component based on the detection result includes: real-time detection of a target object in a target video; if the target triggering region is located within the recognition outline of the target object in the target video, then triggering the hiding component, wherein the target object is obtained by image recognition of the current frame of the target video; if the target triggering region is located outside the recognition outline of the target object in the target video, then triggering the video component.

[0118] According to one or more embodiments of this disclosure, the video playback interface includes an overlapping video container and a page container, wherein the video container is used to display the target video and set the video component, the page container is used to display the target page and set the hidden component, and the page container is invisible before the response to a gesture operation on the video playback interface.

[0119] According to one or more embodiments of this disclosure, detecting the target triggering area and triggering a hidden component or video component based on the detection result includes: detecting the target triggering area of ​​the page container; if a hidden component exists in the target triggering area of ​​the page container, calling a first calling function corresponding to the hidden component, and displaying the corresponding target page within the page container based on the calling result of the first calling function.

[0120] According to one or more embodiments of this disclosure, the method further includes: if there is no hidden component in the target trigger area of ​​the page container, then calling a second calling function corresponding to the video component in the video container, and executing the first application function based on the calling result of the second calling function.

[0121] According to one or more embodiments of this disclosure, the video container is implemented based on canvas; the page container is implemented based on a Lynx container.

[0122] According to one or more embodiments of this disclosure, before determining the target trigger area in response to a gesture operation on the video playback interface, the method further includes: setting the page container to a visible state and displaying an indicator corresponding to the hidden component within the page container, the indicator being used to indicate the trigger area corresponding to the hidden component.

[0123] According to one or more embodiments of this disclosure, the gesture operation is a long press gesture operation; before triggering the hidden component, the method further includes: displaying a guide icon in response to the long press gesture operation; the triggering of the hidden component includes: after detecting that the long press gesture operation lasts for a first duration, triggering the hidden component corresponding to the target trigger area, and displaying a target page corresponding to the hidden component in the video playback interface.

[0124] Secondly, according to one or more embodiments of this disclosure, a multimedia component triggering device is provided, comprising:

[0125] A response module is used to respond to gesture operations on the video playback interface and determine the target trigger area, which is the contact area of ​​the gesture operation on the video playback interface, and the video playback interface is used to play the currently displayed target video.

[0126] The triggering module is used to detect the target triggering area and trigger a hidden component or a video component based on the detection result. The hidden component is used to display the corresponding target page in the video playback interface after being triggered, and the video component is used to execute a first application function for the target video after being triggered.

[0127] In one embodiment of this disclosure, the response module is specifically configured to: obtain the contact coordinates corresponding to the gesture operation, the contact coordinates representing the coordinates of the contact point of the gesture operation on the video playback interface; and determine the hidden trigger area within a first distance from the contact coordinates as the target trigger area, wherein the hidden trigger area is an area with a hidden component.

[0128] In one embodiment of this disclosure, the triggering module is specifically used for: real-time detection of a target object in a target video; if the target triggering area is located within the recognition outline of the target object in the target video, then the hiding component is triggered, wherein the target object is obtained by image recognition of the current frame of the target video; if the target triggering area is located outside the recognition outline of the target object in the target video, then the video component is triggered.

[0129] In one embodiment of this disclosure, the video playback interface includes an overlapping video container and a page container, wherein the video container is used to display the target video and set the video component, the page container is used to display the target page and set the hidden component, and the page container is invisible before the response to a gesture operation on the video playback interface.

[0130] In one embodiment of this disclosure, the triggering module is specifically configured to: detect the target triggering area of ​​the page container; if the target triggering area of ​​the page container contains a hidden component, then call the first calling function corresponding to the hidden component, and display the corresponding target page within the page container according to the calling result of the first calling function.

[0131] In one embodiment of this disclosure, the triggering module is further configured to: if there is no hidden component in the target triggering area of ​​the page container, call the second calling function corresponding to the video component in the video container, and execute the first application function based on the calling result of the second calling function.

[0132] In one embodiment of this disclosure, the video container is implemented based on canvas; the page container is implemented based on the Lynx container.

[0133] In one embodiment of this disclosure, before determining the target triggering area in response to a gesture operation on the video playback interface, the triggering module is further configured to: set the page container to a visible state and display an indicator corresponding to the hidden component within the page container, the indicator being used to indicate the triggering area corresponding to the hidden component.

[0134] In one embodiment of this disclosure, the gesture operation is a long press gesture operation; before triggering the hidden component, the triggering module is further configured to: display a guide icon in response to the long press gesture operation;

[0135] When the triggering module triggers the hidden component, it is specifically used to: after detecting that the long press gesture operation lasts for a first duration, trigger the hidden component corresponding to the target trigger area, and display the target page corresponding to the hidden component in the video playback interface.

[0136] Thirdly, according to one or more embodiments of the present disclosure, an electronic device is provided, including: a processor, and a memory communicatively connected to the processor;

[0137] The memory stores computer-executed instructions;

[0138] The processor executes computer execution instructions stored in the memory to implement the multimedia component triggering method described in the first aspect and various possible designs of the first aspect.

[0139] Fourthly, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein computer-executable instructions are stored therein, and when a processor executes the computer-executable instructions, the multimedia component triggering method described in the first aspect and various possible designs of the first aspect is implemented.

[0140] Fifthly, embodiments of this disclosure provide a computer program product, including a computer program that, when executed by a processor, implements the multimedia component triggering method described in the first aspect and various possible designs of the first aspect.

[0141] 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.

[0142] 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.

[0143] 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

1. A method for triggering a multimedia component, characterized in that, include: In response to a gesture operation on the video playback interface, a target trigger area is determined, wherein the target trigger area is the contact area of ​​the gesture operation on the video playback interface, and the video playback interface is used to play the currently displayed target video; The target trigger area is detected, and a hidden component or a video component is triggered based on the detection result. The hidden component is used to display the corresponding target page in the video playback interface after being triggered, and the video component is used to execute a first application function for the target video after being triggered. Detecting the target trigger area and triggering a hidden component or video component based on the detection result, including: Real-time detection of target objects in a target video; the position of the target object changes dynamically as the target video plays. If the target triggering area is located within the recognition outline of the target object in the target video, the hiding component is triggered, wherein the target object is obtained by image recognition of the current frame of the target video; If the target triggering area is located outside the recognition outline of the target object in the target video, the video component is triggered.

2. The method according to claim 1, characterized in that, The response to gesture operations on the video playback interface determines the target trigger area, including: Obtain the contact coordinates corresponding to the gesture operation, wherein the contact coordinates represent the coordinates of the contact point of the gesture operation on the video playback interface; Based on the contact coordinates, the hidden trigger area within a first distance from the contact coordinates is determined as the target trigger area, wherein the hidden trigger area is an area with a hidden component.

3. The method according to claim 1, characterized in that, The video playback interface includes an overlapping video container and a page container. The video container is used to display the target video and set the video component, and the page container is used to display the target page and set the hidden component. The page container is not visible before the response to a gesture operation on the video playback interface.

4. The method according to claim 3, characterized in that, Detecting the target trigger area and triggering a hidden component or video component based on the detection result, including: Detect the target trigger area of ​​the page container; If a hidden component exists in the target trigger area of ​​the page container, the first calling function corresponding to the hidden component is invoked, and the corresponding target page is displayed in the page container according to the calling result of the first calling function.

5. The method according to claim 4, characterized in that, The method further includes: If the target trigger area of ​​the page container does not contain a hidden component, the second calling function corresponding to the video component in the video container is called, and the first application function is executed based on the calling result of the second calling function.

6. The method according to claim 4, characterized in that, The video container is implemented based on canvas; the page container is implemented based on the Lynx container.

7. The method according to claim 3, characterized in that, Before determining the target trigger area in response to a gesture operation on the video playback interface, it also includes: Set the page container to a visible state and display the indicator corresponding to the hidden component within the page container. The indicator is used to indicate the trigger area corresponding to the hidden component.

8. The method according to any one of claims 1-7, characterized in that, The gesture operation is a long press gesture operation; Before triggering the hidden component, the following is also included: In response to the long press gesture, a guide icon is displayed; The triggering hidden component includes: After the long press gesture operation is detected to last for a first duration, the hidden component corresponding to the target trigger area is triggered, and the target page corresponding to the hidden component is displayed in the video playback interface.

9. A multimedia component triggering device, characterized in that, include: A response module is used to respond to gesture operations on the video playback interface and determine the target trigger area, which is the contact area of ​​the gesture operation on the video playback interface, and the video playback interface is used to play the currently displayed target video. The triggering module is used to detect the target triggering area and trigger a hidden component or a video component according to the detection result. The hidden component is used to display the corresponding target page in the video playback interface after being triggered, and the video component is used to execute a first application function for the target video after being triggered. The triggering module is specifically used to detect target objects in the target video in real time; the position of the target object changes dynamically as the target video plays. If the target triggering area is located within the recognition outline of the target object in the target video, the hiding component is triggered, wherein the target object is obtained by image recognition of the current frame of the target video; If the target triggering area is located outside the recognition outline of the target object in the target video, the video component is triggered.

10. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the multimedia component triggering method as described in any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by the processor, implement the multimedia component triggering method as described in any one of claims 1 to 8.

12. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the multimedia component triggering method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • On-line video playing control method, apparatus and on-line video player generating method

    CN101227594A

  • Sentence entry interaction method and apparatus, electronic device, and storage medium

    CN109359187A

  • Object information display method and device, electronic equipment and computer storage medium

    CN111726675A

  • Display control method and device, electronic equipment and readable storage medium

    CN114995713A