CN112181572A - Interactive special effect display method and device, terminal and storage medium - Google Patents

Interactive special effect display method and device, terminal and storage medium Download PDF

Info

Publication number
CN112181572A
CN112181572A CN202011045824.2A CN202011045824A CN112181572A CN 112181572 A CN112181572 A CN 112181572A CN 202011045824 A CN202011045824 A CN 202011045824A CN 112181572 A CN112181572 A CN 112181572A
Authority
CN
China
Prior art keywords
display area
special effect
display
interactive
video playing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011045824.2A
Other languages
Chinese (zh)
Inventor
王慧
赵军
徐兴灿
刘庆
马哲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202011045824.2A priority Critical patent/CN112181572A/en
Publication of CN112181572A publication Critical patent/CN112181572A/en
Priority to PCT/CN2021/113600 priority patent/WO2022062788A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation

Abstract

The disclosure relates to an interactive special effect display method, an interactive special effect display device, a terminal and a storage medium, and belongs to the technical field of internet. The method comprises the following steps: responding to the interactive operation aiming at the video playing interface, and displaying the interactive special effect corresponding to the interactive operation in a first display area of the video playing interface; determining a second display area which is not overlapped with the first display area in the video playing interface based on the first display area in response to the triggering time of the interactive operation within a target time period; and displaying the additional special effect corresponding to the target time period in the second display area. The second display area is a display area which does not have an overlapping area with the first display area where the interactive special effect is located, so that the interactive special effect and the additional special effect of the interactive operation displayed in the video playing interface are not overlapped, and the display effect of the special effect is further optimized.

Description

Interactive special effect display method and device, terminal and storage medium
Technical Field
The disclosure relates to the technical field of internet, and in particular, to a method, an apparatus, a terminal and a storage medium for displaying interactive special effects.
Background
With the development of internet technology, users can have more and more abundant activities through terminals. For example, a short video application is installed in the terminal, and the user views the short video file through the short video application installed in the terminal. In this process, the user can interact with the short video file through the terminal, and for example, the user can like the short video file in order to express a favorite of the short video file. Correspondingly, the terminal can display the interactive special effect corresponding to the interactive process. In order to improve the interest of interaction, developers also design additional special effects for the interaction special effects. For example, additional special effects corresponding to different festivals are designed for different festivals.
In the related art, when receiving an interactive operation, a terminal determines a display area corresponding to the interactive operation, and displays the interactive special effect and the additional special effect in the display area. For example, the interactive operation is a like operation, the interactive special effect is a love icon, the additional special effect is a flower icon, and the display area is a position where the like operation is triggered. Correspondingly, the terminal displays the love icon in a display area corresponding to the position of the praise operation, and displays the upward-floating flower icon in the display area randomly.
In the related art, the interactive effect and the additional effect are stacked together, resulting in a poor visual effect.
Disclosure of Invention
The embodiment of the disclosure provides an interactive special effect display method, an interactive special effect display device, a terminal and a storage medium, which can optimize the special effect display effect. The technical scheme is as follows:
according to an aspect of the embodiments of the present disclosure, there is provided an interactive special effect display method, including:
responding to an interactive operation aiming at a video playing interface, and displaying an interactive special effect corresponding to the interactive operation in a first display area of the video playing interface;
determining a second display area which is not overlapped with the first display area in the video playing interface based on the first display area in response to the triggering time of the interactive operation within a target time period;
and displaying an additional special effect corresponding to the target time period in the second display area.
In some embodiments, the determining, in the video playback interface based on the first display region, a second display region that does not overlap with the first display region includes:
determining a third display area in the video playing interface;
taking the third display area as the second display area when there is no overlapping area between the first display area and the third display area; alternatively, the first and second electrodes may be,
and returning to the step of determining a new third display area in the video playing interface when the first display area and the third display area have the overlapped area.
In some embodiments, the determining a third display area in the video playback interface includes:
determining a target position in the video playing interface;
determining size information of the additional special effect according to the special effect information of the additional special effect;
and determining the third display area taking the target position as the center in the video playing interface based on the size information.
In some embodiments, the determining a target location in the video playback interface includes:
determining a fourth display area in the video playing interface, wherein the fourth display area is a display area where a video picture played in the video playing interface is located;
reducing the fourth display area by using the target inner edge distance to obtain a fifth display area, wherein the target inner edge distance is the inner edge distance matched with the size information of the additional special effect;
in the fifth display area, the target position is determined.
In some embodiments, the determining, in the video playback interface based on the first display region, a second display region that does not overlap with the first display region includes:
determining at least one sixth display area in the video playing interface, wherein the at least one sixth display area is a display area where a special effect exists in the video playing interface;
determining a seventh display area in the video playing interface;
taking the seventh display area as the second display area when there is no overlapping area between the first display area and the seventh display area and there is no overlapping area between the seventh display area and the at least one sixth display area; alternatively, the first and second electrodes may be,
and under the condition that the first display area and the seventh display area are overlapped or the seventh display area and the at least one sixth display area are overlapped, returning to the step of determining a new seventh display area in the video playing interface.
In some embodiments, the displaying an interactive special effect corresponding to the interactive operation in the first display area of the video playing interface includes:
determining a first display area which is not overlapped with the at least one sixth display area in the video playing interface;
and displaying the interactive special effect corresponding to the interactive operation in the first display area.
In some embodiments, the determining, in the video playback interface based on the first display region, a second display region that does not overlap with the first display region includes:
determining the first display area;
and determining the peripheral area of the first display area as the second display area by taking the first display area as a central area.
In some embodiments, the second display area includes a plurality of second display areas, and the displaying of the additional special effects corresponding to the target time period in the second display areas includes:
sequentially displaying the additional special effects corresponding to the target time period in a clockwise manner through second display areas in the plurality of second display areas respectively; alternatively, the first and second electrodes may be,
and respectively displaying the additional special effects corresponding to the target time period in the second display areas in the multiple second display areas in sequence anticlockwise.
According to another aspect of the disclosed embodiments, there is provided an interactive special effect display device, the device including:
the first display unit is configured to respond to an interactive operation aiming at a video playing interface, and perform display of an interactive special effect corresponding to the interactive operation in a first display area of the video playing interface;
a determining unit configured to perform, in response to a trigger time of the interactive operation being within a target time period, determining, based on the first display area, a second display area that does not overlap with the first display area in the video playing interface;
and the second display unit is configured to display the additional special effect corresponding to the target time period in the second display area.
In some embodiments, the determining unit comprises:
a first determining subunit configured to perform determining a third display area in the video playing interface;
a second determination subunit configured to perform, in a case where there is no overlapping area of the first display area and the third display area, regarding the third display area as the second display area; alternatively, the first and second electrodes may be,
the second determining subunit is configured to, in a case where there is an overlapping area between the first display area and the third display area, return to the execution of the determining of the new third display area in the video playing interface.
In some embodiments, the second determining subunit is configured to determine a target position in the video playing interface; determining size information of the additional special effect according to the special effect information of the additional special effect; and determining the third display area taking the target position as the center in the video playing interface based on the size information.
In some embodiments, the second determining subunit is configured to determine a fourth display area in the video playing interface, where the fourth display area is a display area where a video picture played in the video playing interface is located; reducing the fourth display area by using the target inner edge distance to obtain a fifth display area, wherein the target inner edge distance is the inner edge distance matched with the size information of the additional special effect; in the fifth display area, the target position is determined.
In some embodiments, the determining unit comprises:
a third determining subunit, configured to determine at least one sixth display area in the video playing interface, where the at least one sixth display area is a display area where a special effect is already located in the video playing interface;
a fourth determining subunit configured to perform determining a seventh display area in the video playing interface;
a fifth determination subunit configured to perform, in a case where there is no overlapping area of the first display area and the seventh display area, and there is no overlapping area of the seventh display area and the at least one sixth display area, regarding the seventh display area as the second display area; alternatively, the first and second electrodes may be,
the fifth determining subunit is configured to, in a case where there is an overlapping area between the first display area and the seventh display area, or there is an overlapping area between the seventh display area and the at least one sixth display area, return to execution of determining a new seventh display area in the video playback interface.
In some embodiments, the first presentation unit is configured to perform determining a first display region in the video playback interface that does not overlap with the at least one sixth display region; and displaying the interactive special effect corresponding to the interactive operation in the first display area.
In some embodiments, the determining unit comprises:
a sixth determination subunit configured to perform determination of the first display region; and determining the peripheral area of the first display area as the second display area by taking the first display area as a central area.
In some embodiments, the second display area includes a plurality of second display areas, and the second presentation unit is configured to perform clockwise sequential presentation of additional special effects corresponding to the target time period in turn through the second display areas of the plurality of second display areas, respectively; alternatively, the first and second electrodes may be,
the second display unit is configured to sequentially display the additional special effects corresponding to the target time period in a counterclockwise direction through second display areas of the plurality of second display areas.
According to another aspect of the embodiments of the present disclosure, a terminal is provided, where the terminal includes a processor and a memory, where at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor, so as to implement the interactive special effect display method according to any one of the foregoing possible implementation manners.
According to another aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, in which at least one program code is stored, and the at least one program code is loaded and executed by a processor to implement the interactive special effect displaying method according to any one of the foregoing possible implementation manners.
According to another aspect of the embodiments of the present disclosure, there is provided a computer product, wherein when a processor of a terminal executes program codes in the computer product, the program codes implement instructions of the interactive special effect display method according to the embodiments of the present disclosure.
In the embodiment of the disclosure, the additional special effect corresponding to the target time period is displayed in a second display area in the video playing interface, wherein the second display area is a display area which does not have an overlapping area with the first display area where the interactive special effect is located, so that the interactive special effect and the additional special effect displayed in the video playing interface are not overlapped, and further, the display effect of the special effect is optimized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art to be able to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of an implementation environment involved in an interactive special effect presentation method according to an example embodiment;
FIG. 2 is a flowchart of an interactive special effects presentation method according to an example embodiment;
FIG. 3 is a flowchart of an interactive special effects presentation method provided in accordance with an exemplary embodiment;
FIG. 4 is a schematic diagram of a video playback interface provided in accordance with an exemplary embodiment;
FIG. 5 is a flowchart of an interactive special effects presentation method provided in accordance with an exemplary embodiment;
FIG. 6 is a schematic diagram of a video playback interface provided in accordance with an exemplary embodiment;
FIG. 7 is a flowchart of an interactive special effects presentation method provided in accordance with an exemplary embodiment;
FIG. 8 is a schematic diagram of a video playback interface provided in accordance with an exemplary embodiment;
FIG. 9 is a schematic diagram of a video playback interface provided in accordance with an exemplary embodiment;
FIG. 10 is a schematic diagram of a video playback interface provided in accordance with an exemplary embodiment;
FIG. 11 is a schematic diagram of a video playback interface provided in accordance with an exemplary embodiment;
FIG. 12 is a block diagram of an interactive special effects presentation device provided in accordance with an exemplary embodiment;
fig. 13 is a schematic structural diagram of a terminal according to an exemplary embodiment.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more apparent, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a schematic diagram of an implementation environment involved in an interactive special effect display method according to an exemplary embodiment. Referring to fig. 1, the implementation environment includes: a terminal 101 and a server 102. The terminal 101 and the server 102 are connected by a wireless network.
The terminal 101 has installed therein a target application that the server 102 provides services, and the user terminal 101 can perform data connection with the server 102 through the target application to implement functions such as data transmission, message interaction, and the like. In some embodiments, the target application is a video playback application, a short video playback application, a social application or an information browsing application with video playback capabilities, and the like. Correspondingly, the terminal 101 interacts with the video picture provided in the target application program through the target application program, and displays the corresponding interaction special effect.
The terminal 101 is a mobile phone, a tablet computer, a wearable device, a computer, or other electronic devices. The server 102 is a server, or a server cluster composed of a plurality of servers, or a cloud computing service center, which is not particularly limited in the embodiment of the present disclosure.
Fig. 2 is a flowchart of an interactive special effect display method according to an exemplary embodiment. As shown in fig. 2, the method comprises the steps of:
in step 201, in response to an interactive operation for a video playing interface, an interactive special effect corresponding to the interactive operation is displayed in a first display area of the video playing interface.
In step 202, in response to that the trigger time of the interactive operation is within a target time period, based on the first display area, a second display area that does not overlap with the first display area is determined in the video playing interface.
In step 203, an additional special effect corresponding to the target time period is displayed in the second display area.
In some embodiments, the determining, in the video playback interface based on the first display region, a second display region that does not overlap with the first display region includes:
determining a third display area in the video playing interface;
taking the third display area as the second display area when there is no overlapping area between the first display area and the third display area; alternatively, the first and second electrodes may be,
and returning to the step of determining a new third display area in the video playing interface under the condition that the first display area and the third display area have the overlapped area.
In some embodiments, the determining a third display area in the video playback interface includes:
determining a target position in the video playing interface;
determining size information of the additional special effect according to the special effect information of the additional special effect;
and determining the third display area taking the target position as the center in the video playing interface based on the size information.
In some embodiments, the determining the target location in the video playback interface includes:
determining a fourth display area in the video playing interface, wherein the fourth display area is a display area where a video picture played in the video playing interface is located;
performing reduction processing on the fourth display area by using a target inner edge distance to obtain a fifth display area, wherein the target inner edge distance is an inner edge distance matched with the size information of the additional special effect;
in the fifth display area, the target position is determined.
In some embodiments, the determining, in the video playback interface based on the first display region, a second display region that does not overlap with the first display region includes:
determining at least one sixth display area in the video playing interface, wherein the at least one sixth display area is a display area where a special effect exists in the video playing interface;
determining a seventh display area in the video playing interface;
taking the seventh display area as the second display area when there is no overlapping area between the first display area and the seventh display area and there is no overlapping area between the seventh display area and the at least one sixth display area; alternatively, the first and second electrodes may be,
and in the case that the first display area and the seventh display area have an overlapping area, or the seventh display area and the at least one sixth display area have an overlapping area, returning to the step of determining a new seventh display area in the video playing interface.
In some embodiments, the displaying an interactive special effect corresponding to the interactive operation in the first display area of the video playing interface includes:
determining a first display area which does not overlap with the at least one sixth display area in the video playing interface;
and displaying the interactive special effect corresponding to the interactive operation in the first display area.
In some embodiments, the determining, in the video playback interface based on the first display region, a second display region that does not overlap with the first display region includes:
determining the first display area;
and determining the peripheral area of the first display area as the second display area by taking the first display area as a central area.
In some embodiments, the second display area includes a plurality of second display areas, and the presenting of the additional special effect corresponding to the target time period in the second display area includes:
sequentially displaying the additional special effects corresponding to the target time period in a clockwise manner through second display areas in the plurality of second display areas; alternatively, the first and second electrodes may be,
and respectively displaying the additional special effects corresponding to the target time period in the second display areas in the plurality of second display areas in sequence anticlockwise.
In the embodiment of the disclosure, the additional special effect corresponding to the target time period is displayed in a second display area in the video playing interface, wherein the second display area is a display area which does not have an overlapping area with the first display area where the interactive special effect is located, so that the interactive special effect and the additional special effect displayed in the video playing interface are not overlapped, and further, the display effect of the special effect is optimized.
In the embodiment of the application, when the terminal receives the interactive operation, the interactive special effect corresponding to the interactive operation and the additional special effect generated by the interactive operation are determined. Fig. 3 is a flowchart of an interactive special effect display method according to an exemplary embodiment. In the embodiment of the present disclosure, a description is given taking an example in which a terminal determines a second display region from an existing first display region. As shown in fig. 3, the method comprises the steps of:
in step 301, in response to an interactive operation for a video playing interface, an interactive special effect corresponding to the interactive operation is displayed in a first display area of the video playing interface.
The first display area is a display area used for displaying the interactive special effect in the video playing interface. The video playing interface is used for displaying video pictures. The video picture is displayed to the user through the terminal and can transmit information to the user.
The video playing interface is an interface in a video playing application program or a short video playing application program, or the video playing interface is an interface in an instant messaging application program or an information browsing application program. In the embodiments of the present disclosure, this is not particularly limited.
It should be noted that the video playing interface is a full screen interface of the terminal, or the video playing interface is an interface of a terminal screen occupied by a video picture displayed in the terminal. In the embodiments of the present disclosure, this is not particularly limited.
The interactive operation is an operation received by the terminal through the video playing interface. For example, the interactive operation is a comment operation, a forward operation, and the like. The praise operation is click operation, double click operation, long press operation and the like of the video playing interface received by the terminal. Or, the terminal displays the approval button through the video playing interface, and the approval operation is the trigger operation of the approval button received by the terminal.
The comment operation is an operation completed by the comment of the user received by the terminal. Correspondingly, the terminal displays the comment frame and the completion button through the video playing interface, receives comment information input by a user through the comment frame in response to the fact that the comment frame is triggered, and determines that comment operation is received in response to the fact that the completion button is triggered. In some embodiments, the terminal receives the comment operation and directly displays the interactive special effect corresponding to the comment operation. In other embodiments, the terminal receives the comment operation, acquires comment information corresponding to the comment operation, and displays the comment information corresponding to the keyword in the comment operation in response to a preset target keyword included in the comment information.
The forwarding operation is the forwarding operation of the video picture in the video playing interface received by the terminal. Correspondingly, the terminal displays a forwarding button through the video playing interface, responds to the fact that the forwarding button is triggered, executes a forwarding process, and responds to the fact that the forwarding process is completed, the terminal determines that the receiving is sent to the forwarding operation.
The interactive special effect is preset, and the display content is composed of at least one element such as animation elements and pictures corresponding to the interactive operation. For example, the interactive special effect is an animation composed of icons, and the interactive special effect is a special effect composed of pictures and animation elements. Wherein, the animation element is a lottiie (an open source animation library) animation element, etc. Or the interactive special effect is an artistic character animation marked with target keywords or characters such as 'comment success', 'forward success', 'praise success' or 'thank you support', and the like.
And the terminal receives the interactive operation aiming at the video playing interface and determines the interactive special effect corresponding to the interactive operation. In some embodiments, the terminal obtains an interactive special effect corresponding to the interactive operation from the server in advance, and stores the obtained corresponding relationship between the interactive operation and the interactive special effect locally. Correspondingly, in this step, in response to the interactive operation for the video playing interface, the terminal invokes a pre-stored correspondence between the interactive operation and the interactive special effect, and obtains the interactive special effect corresponding to the interactive operation according to the interactive operation. In other embodiments, in response to an interactive operation for the video playing interface, the terminal obtains an interactive special effect corresponding to the interactive operation from the server. Correspondingly, in this step, the terminal sends an acquisition request to the server, the acquisition request carries the operation identifier of the interactive operation, the server receives the acquisition request, determines the interactive special effect corresponding to the operation identifier according to the operation identifier in the acquisition request, and sends the interactive special effect to the terminal, and correspondingly, the terminal receives the interactive special effect sent by the server.
In addition, before the terminal displays the interactive special effect through the first display area, the first display area is determined in the video playing interface. Correspondingly, the terminal determines a first display area for displaying the interactive special effect in the video playing interface according to the interactive operation.
In some embodiments, the first display area is an area where an operation button corresponding to the interactive operation is located. Correspondingly, the terminal determines an operation button corresponding to the interactive operation and determines a first display area corresponding to the operation button. The first display area is a display area around the operation button, or the first display area is any display area in a video playing interface.
In the implementation mode, the terminal determines the first display area in the video playing interface in advance, and the terminal does not need to determine the first display area in the process of displaying the interactive special effect, so that the efficiency of displaying the interactive special effect is improved.
In other embodiments, the first display area is a display area corresponding to a position generated by the interactive operation. Correspondingly, the terminal determines an operation position generated by the interactive operation, and the operation position is used as the central position of the first display area to obtain the first display area.
In the implementation mode, the terminal determines the position of the first display area according to the position generated by the interactive operation, so that the position of the first display area corresponds to the interactive operation position of the user, and the interestingness of the interactive operation is improved.
In step 302, in response to that the trigger time of the interactive operation is within the target time period, the terminal determines a third display area in the video playing interface.
And the third display area is a preselected display area determined by the terminal in the video playing interface according to the size information of the additional special effect. Wherein the additional special effect is an additional special effect displayed when the interactive operation is generated. The composition of the additional effect is similar to the interactive effect, and is not described in detail herein.
The target time period is a time period specified by the developer. For example, the target time period is a time period of any festival, or any time period in a day, or other time periods. It should be noted that the additional special effects in different target time periods are the same or different, and are not specifically limited in the embodiment of the present disclosure. For example, if the additional special effect is a special effect corresponding to any festival, the additional special effects generated by any operation are the same, for example, the additional special effects are all firework special effects.
In addition, the additional special effect is a special effect corresponding to a keyword included in the detected interactive operation in the target time period, and different keywords correspond to different special effects. Or, the additional special effect is a corresponding special effect when the target account generates the interactive operation in the target time period, and the additional special effects generated by different target accounts may be the same or different. The target account is a member account, an account with a grade exceeding a preset grade, and the like.
In this step, the process that the terminal determines the third display area in the video playing interface is realized through the following steps (1) - (3), including:
(1) and the terminal determines the target position in the video playing interface.
In some embodiments, the terminal randomly determines a position in the information display interface, and takes the randomly determined position as the target position. In another possible implementation manner, the terminal determines a fourth display area occupied by displaying a video picture in the video playing interface, performs reduction processing on the fourth display area, and randomly selects a target position in the display area after the reduction processing. The process is realized by the following steps (1-1) to (1-3), and comprises the following steps:
(1-1) the terminal determines a fourth display area in the video playing interface, wherein the fourth display area is a display area where a video picture played in the video playing interface is located.
The fourth display area is a display area in the terminal screen occupied by the video pictures. And the terminal converts rendering data corresponding to the video picture into coordinate data corresponding to a terminal screen coordinate system to obtain a fourth display area occupied by the video picture in the video playing interface.
(1-2) the terminal performs reduction processing on the fourth display area by using a target inner edge distance, so as to obtain a fifth display area, wherein the target inner edge distance is an inner edge distance matched with the size information of the additional special effect.
The fifth display area is a display area obtained by reducing the fourth display area according to the inner edge distance. The size information includes the shape of the special effect information and the maximum area of the display area occupied in the display process. In this step, the terminal acquires size information of the additional special effect, and determines the target inner edge distance according to the size information. The matching of the target inner-edge distance with the size information of the additional special effect means that the target inner-edge distance is not less than half of the maximum width of the additional special effect.
Accordingly, in this step, the terminal determines the target inner edge distance according to the size information of the additional special effect and the size information, and removes the edge portion of the fourth display area according to the target inner edge distance to obtain a fifth display area.
(1-3) the terminal determines the target position in the fifth display area.
The terminal randomly selects a position from the fifth display area as a target position.
It should be noted that, steps (1-1) - (1-3) are performed at any step before the step, and in the embodiment of the present disclosure, the order of performing steps (1-1) - (1-3) is not particularly limited.
In the implementation manner, the fifth display area is determined in the video playing interface, so that when the additional special effect is displayed in the display area of the special effect information generated by randomly selecting the target position in the fifth display area, the displayed additional special effect can be ensured to be all in the video playing interface when the additional special effect is displayed, and the displayed additional special effect is prevented from being lost.
(2) The terminal determines the size information of the additional special effect according to the special effect information of the additional special effect.
This step is similar to the process of determining the size information of the additional special effect by the terminal in step (1-2), and is not described herein again.
(3) And the terminal determines the third display area taking the target position as the center in the video playing interface based on the size information.
In this step, the terminal determines size information of a third display area according to the size information of the additional special effect with the target position as the center of the third display area, wherein the size of the third display area is not smaller than the size of the additional special effect.
In this implementation, the efficiency of determining the second display region is improved by determining a preselected third display region, such that the second display region is determined by determining whether the third display region overlaps with a display region of an existing special effect in the video playback interface.
After the terminal determines a third display area in the display area, the terminal determines whether an overlapping area exists between the third display area and the first display area. The terminal performs step 303 if there is no overlapping area between the third display area and the first display area, and performs step 304 if there is an overlapping area between the third display area and the first display area. And the terminal determines whether the first display area and the third display area store the overlapping area or not through a coordinate intersection judgment method.
In step 303, in the case where there is no overlapping area between the first display area and the third display area, the terminal sets the third display area as the second display area.
The second display area is a display area used for displaying the additional special effects in the video playing interface. In this step, if there is no overlapping area between the first display area and the third display area, the contents displayed between the first display area and the third display area will not affect each other, and the third display area is determined as the second display area for displaying the additional special effect.
In step 304, in the case that there is an overlapping area between the first display area and the third display area, the terminal returns to step 302 to determine a new third display area in the video playing interface.
In this step, if there is an overlapping area between the first display area and the third display area, and the contents displayed between the first display area and the third display area will affect each other, the terminal executes step 302 to re-determine a new third display area, and then determines whether the re-determined third display area and the first display area store the overlapping area, and so on, until there is no overlapping area between the first display area and the third display area, and determines the third display area as the second display area. Wherein the new third display area and the original third display area are different display areas.
In the implementation manner, the second display area is determined by determining whether the third display area is overlapped with the existing special-effect display area in the video playing interface, so that the selected second display area is prevented from being overlapped with the first display area, and the display effect is optimized.
It should be noted that, in some embodiments, the terminal further counts a number of times of repeatedly determining the third display region, and in response to determining that the number of times of determining the third display region exceeds a preset threshold, the terminal determines that the third display region is directly determined as the second display region. The process is as follows: the terminal counts the times of determining a third display area in the video playing interface; and determining the third display area as the second display area in response to the number of times exceeding a preset threshold.
The preset threshold is set as needed, and in the embodiment of the present disclosure, the preset threshold is not specifically limited. For example, the preset threshold is 10, 15, 20, or the like.
In the implementation manner, the number of times of re-determining the third display area is counted, and the third display area is not determined repeatedly under the condition that the number of times exceeds the preset threshold, so that the rendering area with the additional special effect can be determined within the preset time.
In step 305, the terminal displays an additional special effect corresponding to the target time period in the second display area.
In this step, the terminal renders the additional special effect to the video playing interface corresponding to the second display area. Referring to fig. 4, a schematic diagram of a video playback interface provided in accordance with an exemplary embodiment is shown. In some embodiments, the video playing interface includes tags such as "home page", "pick", "column", and "i", and also includes currently presented video frames, account numbers of publishers of the video frames, video titles corresponding to the video frames, background music used, and the like, and head portraits, attention tags, comment buttons, share buttons, and the like of the video publishers.
An additional special effect is shown in the second display area, the additional special effect being a festival icon, for example, an icon in the form of "happy festival". And displaying an interactive special effect in the first display area, wherein the interactive special effect is a heart-shaped icon generated after praise.
In the embodiment of the disclosure, the additional special effect corresponding to the target time period is displayed in a second display area in the video playing interface, wherein the second display area is a display area which does not have an overlapping area with the first display area where the interactive special effect is located, so that the interactive special effect and the additional special effect displayed in the video playing interface are not overlapped, and further, the display effect of the special effect is optimized.
In some embodiments, the terminal continuously receives interactive operations input by a user, each interactive operation generates a corresponding interactive special effect and an additional special effect, and each interactive special effect and the additional special effect are displayed in the video playing interface for a preset duration, so that a situation that a plurality of special effects are simultaneously displayed in the video playing interface occurs. Fig. 5 is a flowchart of an interactive special effect display method according to an exemplary embodiment. In the embodiment of the present disclosure, the description will be made taking an example in which the terminal determines the second display area based on the existing first display area and the existing special sixth display area. As shown in fig. 5, the method comprises the steps of:
in step 501, in response to an interactive operation for a video playing interface, an interactive special effect corresponding to the interactive operation is displayed in a first display area of the video playing interface.
This step is similar to step 301 and will not be described herein again.
In step 502, in response to that the trigger time of the interactive operation is within the target time period, the terminal determines at least one sixth display area in the video playing interface.
And the at least one sixth display area is a display area where a special effect exists in the video playing interface. The existing special effect is an interactive special effect generated by interactive operation before the current interactive operation and a display area occupied by the additional special effect in the video playing interface.
In step 503, the terminal determines a seventh display area in the video playing interface.
This step is similar to step 302 and will not be described herein again.
In step 504, the terminal regards the seventh display area as the second display area when there is no overlapping area between the first display area and the seventh display area and there is no overlapping area between the seventh display area and the at least one sixth display area.
This step is similar to step 303 and will not be described herein again.
In step 505, in case that there is an overlapping area between the first display area and the seventh display area, or the seventh display area and the at least one sixth display area, the terminal returns to step 503 to determine a new seventh display area in the video playing interface.
This step is similar to step 304 and will not be described herein again.
In step 506, the terminal displays an additional special effect corresponding to the target time period in the second display area.
This step is similar to step 305 and will not be described herein again.
Referring to fig. 6, a schematic diagram of a video playback interface provided in accordance with an exemplary embodiment is shown. And displaying an additional special effect of the current interaction operation corresponding to the target time period in the second display area, wherein the additional special effect is a festival icon, for example, the additional special effect is an icon in a word of 'happy festival'. The first display area displays an interactive special effect corresponding to the current interactive operation, the interactive special effect is a heart-shaped icon generated after praise, and the video playing interface also displays an interactive special effect and an additional special effect corresponding to the interactive operation before the current interactive operation, for example, an icon of a character such as 'success forwarding' corresponding to the previous forwarding operation, or an additional special effect corresponding to other interactive operations on a festival.
In addition, it should be noted that, in the embodiment of the present disclosure, in the process of determining the first display area, the terminal also determines a display area having no overlapping area with the at least one sixth display area. Accordingly, the process of determining the first display area by the terminal is realized by the following steps (1) - (2), including:
(1) the terminal determines a first display area which is not overlapped with at least one sixth display area in the video playing interface.
This step is similar to step 502-505, and will not be described herein again.
(2) And the terminal displays the interactive special effect corresponding to the interactive operation in the first display area.
In the implementation manner, in the process of determining the first display area, the terminal determines the first display area according to the display area which is not overlapped with the current at least one sixth display area, so that the terminal does not overlap with the historical interactive special effect in the process of displaying the interactive special effect, and the display effect of the special effect is further optimized.
In the embodiment of the disclosure, the additional special effect is displayed in a second display area in the video playing interface, wherein the second display area is a display area which does not have an overlapping area with the first display area where the interactive special effect is located, so that the interactive special effect and the additional special effect displayed in the video playing interface are not overlapped, and further, the display effect of the special effect is optimized.
In addition, in the process of determining the second display area, the terminal determines the second display area according to the display area which is not overlapped with the current at least one sixth display area, so that the terminal does not overlap with the historical interactive special effect in the process of displaying the additional special effect, and the display effect of the special effect is optimized.
In some embodiments, the terminal determines a display area of the interactive special effect and the additional special effect according to the operation position of the interactive operation, and the interactive special effect and the additional special effect are displayed in the display area in a non-overlapping mode. Fig. 7 is a flowchart of an interactive special effect display method according to an exemplary embodiment. In the embodiment of the present disclosure, a description is given by taking an example in which the terminal determines the first display area and the second display area according to the operation position of the interactive operation. As shown in fig. 7, the method comprises the steps of:
in step 701: and responding to the interactive operation aiming at the video playing interface, and displaying the interactive special effect corresponding to the interactive operation in a first display area of the video playing interface.
This step is similar to step 301 and will not be described herein again.
In step 702, in response to that the trigger time of the interactive operation is within a target time period, the terminal determines the first display area; and determining the peripheral area of the first display area as the second display area by taking the first display area as a central area.
In this step, the terminal detects the interactive operation and determines the operation position of the interactive operation in the video playing interface.
In some embodiments, the second display area is one display area. Referring to fig. 8, a schematic diagram of a video playback interface provided in accordance with an exemplary embodiment is shown. The first display area is a circular area, and the second display area is an annular area on the periphery of the first display area.
In other embodiments, the second display area is a plurality of display areas, and referring to fig. 9, a schematic diagram of a video playing interface provided according to an exemplary embodiment is shown. The first display area is a circular area, and the plurality of second display areas are a plurality of fan-shaped areas on the periphery of the first display area.
In step 703, the terminal displays an additional special effect corresponding to the target time period in the second display area.
In this step, the terminal displays the interactive special effect in the first display area and displays the additional special effect in the second display area.
In some embodiments, with continued reference to FIG. 8, additional effects are displayed in the annular second display area in a radial display format concurrently with the annular second display area. In some embodiments, referring to fig. 10, a schematic diagram of a video playback interface provided in accordance with an exemplary embodiment is shown. And the terminal sequentially displays the additional special effects corresponding to the target time period in the second display areas in the plurality of second display areas clockwise. In other embodiments, referring to fig. 11, a schematic diagram of a video playback interface provided in accordance with an exemplary embodiment is shown. And the terminal sequentially displays the additional special effects corresponding to the target time period in the second display areas in the plurality of second display areas anticlockwise respectively.
It should be noted that the additional special effects displayed in the plurality of second display areas are additional special effects corresponding to the same interactive operation, or the additional special effects displayed in the plurality of second display areas are additional special effects corresponding to different interactive operations, which is not specifically limited in the embodiment of the present disclosure.
When the additional special effects displayed in the second display areas are the additional special effects corresponding to the same interactive operation, each interactive operation generates a plurality of additional special effects which are the same or different, and the additional special effects are sequentially displayed in the second display areas in the clockwise direction or the counterclockwise direction; and under the condition that the additional special effects displayed in the plurality of second display areas are independent special effects corresponding to different interactive operations, generating an additional special effect for each interactive operation, and determining the display area corresponding to the current interactive operation by the terminal according to the second display area corresponding to the additional operation corresponding to the previous interactive operation of the current interactive operation, wherein the two second display areas are adjacent.
In the present implementation, by determining the second display region and the first display region in the display regions determined in advance, overlap between the first display region and the second display region is prevented, thereby optimizing the display effect.
Another point to be noted is that, in some embodiments, the first display area is a display area corresponding to a position where an interactive operation is generated in the video playing interface. Correspondingly, in this step, the terminal determines the generated coordinates of the interactive operation, and determines the coordinates as the position of the interactive operation. In other embodiments, the first display area is an operation position predetermined according to a type of an interactive operation when the interactive operation is generated in the video playing interface. Correspondingly, in this step, the terminal determines the operation type of the interactive operation, and determines the operation position corresponding to the operation type from the corresponding relationship between the operation type and the operation position stored in the terminal according to the operation type. In other embodiments, the first display area is an operation position in the video playing interface, which is not overlapped with other display areas. Correspondingly, in this step, the terminal detects the interactive operation, and determines the operation position which is not overlapped with other operation positions currently from the video playing interface.
In the embodiment of the disclosure, the additional special effect corresponding to the target time period is displayed in a second display area in the video playing interface, wherein the second display area is a display area which does not have an overlapping area with the first display area where the interactive special effect is located, so that the interactive special effect and the additional special effect displayed in the video playing interface are not overlapped, and further, the display effect of the special effect is optimized.
FIG. 12 is a block diagram of an interactive special effects presentation provided in accordance with an exemplary embodiment. Referring to fig. 12, the apparatus includes:
the first display unit 1201 is configured to respond to an interactive operation aiming at a video playing interface, and perform display of an interactive special effect corresponding to the interactive operation in a first display area of the video playing interface;
a determining unit 1202 configured to perform, in response to the trigger time of the interactive operation being within a target time period, determining, based on the first display area, a second display area that does not overlap with the first display area in the video playing interface;
a second presentation unit 1203 configured to perform presentation of an additional special effect corresponding to the target time period in the second display area.
In some embodiments, the determining unit 1202 includes:
a first determining subunit configured to perform determining a third display area in the video playing interface;
a second determination subunit configured to perform, in a case where there is no overlapping area of the first display area and the third display area, regarding the third display area as the second display area; alternatively, the first and second electrodes may be,
the second determining subunit is configured to, in a case where there is an overlapping area between the first display area and the third display area, return to performing the determining of the new third display area in the video playing interface.
In some embodiments, the second determining subunit is configured to determine a target position in the video playing interface; determining size information of the additional special effect according to the special effect information of the additional special effect; and determining the third display area taking the target position as the center in the video playing interface based on the size information.
In some embodiments, the second determining subunit is configured to determine a fourth display area in the video playing interface, where the fourth display area is a display area where a video picture played in the video playing interface is located; performing reduction processing on the fourth display area by using a target inner edge distance to obtain a fifth display area, wherein the target inner edge distance is an inner edge distance matched with the size information of the additional special effect; in the fifth display area, the target position is determined.
In some embodiments, the determining unit 1202 includes:
the third determining subunit is configured to determine at least one sixth display area in the video playing interface, where the at least one sixth display area is a display area where a special effect exists in the video playing interface;
a fourth determining subunit configured to perform determining a seventh display area in the video playing interface;
a fifth determining subunit configured to perform, in a case where there is no overlapping area between the first display area and the seventh display area, and there is no overlapping area between the seventh display area and the at least one sixth display area, regarding the seventh display area as the second display area; alternatively, the first and second electrodes may be,
the fifth determining subunit is configured to, in a case where there is an overlapping area between the first display area and the seventh display area, or there is an overlapping area between the seventh display area and the at least one sixth display area, return to performing determining a new seventh display area in the video playback interface.
In some embodiments, the first presentation unit 1201 is configured to perform determining a first display region in the video playback interface that does not overlap with the at least one sixth display region; and displaying the interactive special effect corresponding to the interactive operation in the first display area.
In some embodiments, the determining unit 1202 includes:
a sixth determination subunit configured to perform determination of the first display region; and determining the peripheral area of the first display area as the second display area by taking the first display area as a central area.
In some embodiments, the second display area includes a plurality of second display areas, and the second presentation unit 1203 is configured to perform clockwise sequential presentation of the additional special effects corresponding to the target time period through the second display areas of the plurality of second display areas, respectively; alternatively, the first and second electrodes may be,
the second presentation unit 1203 is configured to perform counter-clockwise sequential presentation of the additional special effects corresponding to the target time periods through the second display areas of the plurality of second display areas, respectively.
In the embodiment of the disclosure, the additional special effect corresponding to the target time period is displayed in a second display area in the video playing interface, wherein the second display area is a display area which does not have an overlapping area with the first display area where the interactive special effect is located, so that the interactive special effect and the additional special effect displayed in the video playing interface are not overlapped, and further, the display effect of the special effect is optimized.
It should be noted that: the interactive special effect display device provided in the above embodiment is exemplified by only the division of the functional modules when displaying the interactive special effect, and in practical application, the function distribution can be completed by different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the interactive special effect display device and the interactive special effect display method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
Fig. 13 shows a block diagram of a terminal 1300 according to an exemplary embodiment of the present disclosure. In some embodiments, the terminal 1300 is a portable mobile terminal, such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 1300 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, etc.
In general, terminal 1300 includes: a processor 1301 and a memory 1302.
In some embodiments, processor 1301 includes one or more processing cores, such as 4-core processors, 8-core processors, and the like. In some embodiments, the processor 1301 is implemented in hardware using at least one of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). In some embodiments, processor 1301 also includes a main processor and a coprocessor, the main processor being a processor for Processing data in the wake state, also referred to as a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1301 is integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content that the display screen needs to display. In some embodiments, processor 1301 further includes an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
In some embodiments, memory 1302 includes one or more computer-readable storage media that are non-transitory. In some embodiments, memory 1302 also includes high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer-readable storage medium in memory 1302 is used to store at least one instruction for execution by processor 1301 to implement the interactive special effects presentation method provided by method embodiments of the present disclosure.
In some embodiments, terminal 1300 may further optionally include: a peripheral interface 1303 and at least one peripheral. In some embodiments, processor 1301, memory 1302, and peripheral interface 1303 are connected by a bus or signal line. In some embodiments, various peripheral devices are connected to peripheral interface 1303 via buses, signal lines, or circuit boards. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1304, display screen 1305, camera assembly 1306, audio circuitry 1307, positioning assembly 1308, and power supply 1309.
Peripheral interface 1303 may be used to connect at least one peripheral associated with I/O (Input/Output) to processor 1301 and memory 1302. In some embodiments, processor 1301, memory 1302, and peripheral interface 1303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1301, the memory 1302, and the peripheral device interface 1303 are implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 1304 is used to receive and transmit RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 1304 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1304 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. In some embodiments, the radio frequency circuitry 1304 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. In some embodiments, the radio frequency circuitry 1304 communicates with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 1304 also includes NFC (Near Field Communication) related circuits, which are not limited by this disclosure.
The display screen 1305 is used to display a UI (User Interface). In some embodiments, the UI includes graphics, text, icons, video, and any combination thereof. When the display screen 1305 is a touch display screen, the display screen 1305 also has the ability to capture touch signals on or over the surface of the display screen 1305. In some embodiments, the touch signal is input to the processor 1301 for processing as a control signal. In this regard, the display 1305 is also used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, display 1305 is one and is disposed on the front panel of terminal 1300; in other embodiments, display 1305 is at least two, either on different surfaces of terminal 1300 or in a folded design; in other embodiments, display 1305 is a flexible display disposed on a curved surface or on a folded surface of terminal 1300. Even more, the display 1305 is arranged in a non-rectangular irregular figure, i.e., a shaped screen. In some embodiments, the Display 1305 is made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or the like.
The camera assembly 1306 is used to capture images or video. In some embodiments, camera assembly 1306 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each of the rear cameras is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and a VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, camera assembly 1306 also includes a flash. In some embodiments, the flash is a single color temperature flash, and in some embodiments, the flash is a dual color temperature flash. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp and is used for light compensation under different color temperatures.
In some embodiments, audio circuitry 1307 includes a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1301 for processing, or inputting the electric signals to the radio frequency circuit 1304 for realizing voice communication. For stereo capture or noise reduction purposes, in some embodiments, multiple microphones are provided, each at a different location of terminal 1300. In some embodiments, the microphone is an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1301 or the radio frequency circuitry 1304 into sound waves. In some embodiments, the speaker is a conventional membrane speaker, and in some embodiments, the speaker is a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to human, but also the electric signal can be converted into a sound wave inaudible to human for use in distance measurement or the like. In some embodiments, audio circuit 1307 also includes a headphone jack.
The positioning component 1308 is used for positioning the current geographic position of the terminal 1300 for implementing navigation or LBS (Location Based Service). In some embodiments, the Positioning component 1308 is based on the Positioning component of the GPS (Global Positioning System) in the united states, the beidou System in china, or the galileo System in russia.
Power supply 1309 is used to provide power to various components in terminal 1300. In some embodiments, the power source 1309 is alternating current, direct current, a disposable battery, or a rechargeable battery. When the power supply 1309 comprises a rechargeable battery, the rechargeable battery is a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery is also used to support fast charge technology.
In some embodiments, terminal 1300 also includes one or more sensors 1310. The one or more sensors 1310 include, but are not limited to: acceleration sensor 1311, gyro sensor 1312, pressure sensor 1313, fingerprint sensor 1314, optical sensor 1315, and proximity sensor 1316.
In some embodiments, acceleration sensor 1311 detects acceleration in three coordinate axes of the coordinate system established with terminal 1300. For example, the acceleration sensor 1311 is used to detect components of gravitational acceleration in three coordinate axes. In some embodiments, the processor 1301 controls the display screen 1305 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1311. In some embodiments, the acceleration sensor 1311 is also used for collection of motion data of a game or user.
In some embodiments, the gyro sensor 1312 detects the body direction and the rotation angle of the terminal 1300, and the gyro sensor 1312 and the acceleration sensor 1311 cooperate to acquire the 3D motion of the user on the terminal 1300. Processor 1301, based on the data collected by gyroscope sensor 1312, may perform the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
In some embodiments, pressure sensor 1313 is disposed on a side bezel of terminal 1300 and/or underlying display 1305. When the pressure sensor 1313 is disposed on the side frame of the terminal 1300, a user's holding signal to the terminal 1300 can be detected, and the processor 1301 performs left-right hand recognition or shortcut operation according to the holding signal acquired by the pressure sensor 1313. When the pressure sensor 1313 is disposed at a lower layer of the display screen 1305, the processor 1301 controls an operability control on the UI interface according to a pressure operation of the user on the display screen 1305. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1314 is used for collecting the fingerprint of the user, and the processor 1301 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 1314, or the fingerprint sensor 1314 identifies the identity of the user according to the collected fingerprint. When the identity of the user is identified as a trusted identity, the processor 1301 authorizes the user to perform relevant sensitive operations, including unlocking a screen, viewing encrypted information, downloading software, paying, changing settings, and the like. In some embodiments, the fingerprint sensor 1314 is disposed on the front, back, or side of the terminal 1300. When a physical button or vendor Logo is provided on the terminal 1300, the fingerprint sensor 1314 is integrated with the physical button or vendor Logo.
The optical sensor 1315 is used to collect the ambient light intensity. In one embodiment, the processor 1301 controls the display brightness of the display screen 1305 according to the ambient light intensity collected by the optical sensor 1315. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1305 is increased; when the ambient light intensity is low, the display brightness of the display screen 1305 is reduced. In another embodiment, processor 1301 also dynamically adjusts the shooting parameters of camera head assembly 1306 based on the ambient light intensity collected by optical sensor 1315.
Proximity sensor 1316, also known as a distance sensor, is typically disposed on a front panel of terminal 1300. Proximity sensor 1316 is used to gather the distance between the user and the front face of terminal 1300. In one embodiment, the processor 1301 controls the display 1305 to switch from the bright screen state to the dark screen state when the proximity sensor 1316 detects that the distance between the user and the front face of the terminal 1300 gradually decreases; the display 1305 is controlled by the processor 1301 to switch from the rest state to the bright state when the proximity sensor 1316 detects that the distance between the user and the front face of the terminal 1300 is gradually increasing.
Those skilled in the art will appreciate that the configuration shown in fig. 13 is not intended to be limiting with respect to terminal 1300, and can include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be employed.
In an exemplary embodiment, a computer-readable storage medium is further provided, where at least one program code is stored in the computer-readable storage medium, and the at least one program code is loaded and executed by the terminal, so as to implement the interactive special effect generating method in the foregoing embodiments. In some embodiments, the computer readable storage medium is a memory. For example, the computer-readable storage medium is a ROM (Read-Only Memory), a RAM (Random Access Memory), a CD-ROM (Compact Disc Read-Only Memory), a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer product is further provided, and when a program code in the computer product is executed by a processor of a terminal, the program code is used for implementing the instructions of the interactive special effect display method according to the embodiment of the disclosure.
Those skilled in the art will appreciate that all or part of the steps of implementing the above embodiments can be implemented by hardware, or by hardware related to program codes via a program stored in a computer readable storage medium, where the above mentioned storage medium is a read-only memory, a magnetic or optical disk, etc.
The above description is meant as an alternative embodiment of the disclosure and not as a limitation of the disclosure, and any modification, equivalent replacement, or improvement made within the spirit and principle of the disclosure should be included in the scope of protection of the disclosure.

Claims (10)

1. An interactive special effect display method is characterized by comprising the following steps:
responding to an interactive operation aiming at a video playing interface, and displaying an interactive special effect corresponding to the interactive operation in a first display area of the video playing interface;
determining a second display area which is not overlapped with the first display area in the video playing interface based on the first display area in response to the triggering time of the interactive operation within a target time period;
and displaying an additional special effect corresponding to the target time period in the second display area.
2. The method of claim 1, wherein the determining, in the video playback interface, a second display region that does not overlap with the first display region based on the first display region comprises:
determining a third display area in the video playing interface;
taking the third display area as the second display area when there is no overlapping area between the first display area and the third display area; alternatively, the first and second electrodes may be,
and returning to the step of determining a new third display area in the video playing interface when the first display area and the third display area have the overlapped area.
3. The method of claim 2, wherein determining a third display area in the video playback interface comprises:
determining a target position in the video playing interface;
determining size information of the additional special effect according to the special effect information of the additional special effect;
and determining the third display area taking the target position as the center in the video playing interface based on the size information.
4. The method of claim 3, wherein determining a target location in the video playback interface comprises:
determining a fourth display area in the video playing interface, wherein the fourth display area is a display area where a video picture played in the video playing interface is located;
reducing the fourth display area by using the target inner edge distance to obtain a fifth display area, wherein the target inner edge distance is the inner edge distance matched with the size information of the additional special effect;
in the fifth display area, the target position is determined.
5. The method of claim 1, wherein the determining, in the video playback interface, a second display region that does not overlap with the first display region based on the first display region comprises:
determining at least one sixth display area in the video playing interface, wherein the at least one sixth display area is a display area where a special effect exists in the video playing interface;
determining a seventh display area in the video playing interface;
taking the seventh display area as the second display area when there is no overlapping area between the first display area and the seventh display area and there is no overlapping area between the seventh display area and the at least one sixth display area; alternatively, the first and second electrodes may be,
and under the condition that the first display area and the seventh display area are overlapped or the seventh display area and the at least one sixth display area are overlapped, returning to the step of determining a new seventh display area in the video playing interface.
6. The method according to claim 5, wherein displaying an interactive special effect corresponding to the interactive operation in a first display area of the video playing interface comprises:
determining a first display area which is not overlapped with the at least one sixth display area in the video playing interface;
and displaying the interactive special effect corresponding to the interactive operation in the first display area.
7. The method of claim 1, wherein the determining, in the video playback interface, a second display region that does not overlap with the first display region based on the first display region comprises:
determining the first display area;
and determining the peripheral area of the first display area as the second display area by taking the first display area as a central area.
8. An interactive special effect display device, the device comprising:
the first display unit is configured to respond to an interactive operation aiming at a video playing interface, and perform display of an interactive special effect corresponding to the interactive operation in a first display area of the video playing interface;
a determining unit configured to perform, in response to a trigger time of the interactive operation being within a target time period, determining, based on the first display area, a second display area that does not overlap with the first display area in the video playing interface;
and the second display unit is configured to display the additional special effect corresponding to the target time period in the second display area.
9. A terminal, characterized in that the terminal comprises a processor and a memory, wherein the memory has stored therein at least one program code, which is loaded and executed by the processor, for implementing the interactive special effects presentation method according to any one of claims 1-7.
10. A computer-readable storage medium having stored therein at least one program code, the at least one program code being loaded and executed by a processor, for implementing the interactive special effects presentation method of any one of claims 1-7.
CN202011045824.2A 2020-09-28 2020-09-28 Interactive special effect display method and device, terminal and storage medium Pending CN112181572A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011045824.2A CN112181572A (en) 2020-09-28 2020-09-28 Interactive special effect display method and device, terminal and storage medium
PCT/CN2021/113600 WO2022062788A1 (en) 2020-09-28 2021-08-19 Interactive special effect display method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011045824.2A CN112181572A (en) 2020-09-28 2020-09-28 Interactive special effect display method and device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN112181572A true CN112181572A (en) 2021-01-05

Family

ID=73945700

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011045824.2A Pending CN112181572A (en) 2020-09-28 2020-09-28 Interactive special effect display method and device, terminal and storage medium

Country Status (2)

Country Link
CN (1) CN112181572A (en)
WO (1) WO2022062788A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732152A (en) * 2021-01-27 2021-04-30 腾讯科技(深圳)有限公司 Live broadcast processing method and device, electronic equipment and storage medium
CN113190156A (en) * 2021-05-13 2021-07-30 杭州网易云音乐科技有限公司 Music playing control method and device, storage medium and electronic equipment
CN114090167A (en) * 2021-11-30 2022-02-25 东风汽车有限公司东风日产乘用车公司 Festival color egg display method, device, equipment and storage medium
WO2022062788A1 (en) * 2020-09-28 2022-03-31 北京达佳互联信息技术有限公司 Interactive special effect display method and terminal
CN114385298A (en) * 2022-01-12 2022-04-22 北京字跳网络技术有限公司 Information interaction method, device, equipment and storage medium
CN114567805A (en) * 2022-02-24 2022-05-31 北京字跳网络技术有限公司 Method and device for determining special effect video, electronic equipment and storage medium
WO2023040670A1 (en) * 2021-09-18 2023-03-23 华为技术有限公司 Method for displaying dynamic effect on desktop, and electronic device
WO2023165363A1 (en) * 2022-03-02 2023-09-07 北京字跳网络技术有限公司 Short video playback method and apparatus, and electronic device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115361566A (en) * 2022-08-17 2022-11-18 广州繁星互娱信息科技有限公司 Live broadcast watching method, device, terminal and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436341A (en) * 2011-09-19 2012-05-02 百度在线网络技术(北京)有限公司 Method and device for conducting content operation on display screen of mobile terminal
CN104184731A (en) * 2014-08-22 2014-12-03 广州华多网络科技有限公司 Information display method, device and system
CN106354381A (en) * 2015-07-22 2017-01-25 腾讯科技(深圳)有限公司 Image file processing method and device
CN106686398A (en) * 2017-01-16 2017-05-17 北京达佳互联信息技术有限公司 Information interaction method and system and related equipment
CN107241636A (en) * 2017-05-25 2017-10-10 北京潘达互娱科技有限公司 A kind of virtual gift display method and device
CN108234903A (en) * 2018-01-30 2018-06-29 广州市百果园信息技术有限公司 Processing method, medium and the terminal device of interactive special efficacy video
CN109859102A (en) * 2019-02-01 2019-06-07 北京达佳互联信息技术有限公司 Special display effect method, apparatus, terminal and storage medium
CN110337023A (en) * 2019-07-02 2019-10-15 游艺星际(北京)科技有限公司 animation display method, device, terminal and storage medium
CN110830813A (en) * 2019-10-31 2020-02-21 北京达佳互联信息技术有限公司 Video switching method and device, electronic equipment and storage medium
CN111182343A (en) * 2019-12-09 2020-05-19 腾讯科技(深圳)有限公司 Method and apparatus for playing animation material, storage medium, and electronic apparatus
CN111526411A (en) * 2020-04-29 2020-08-11 北京字节跳动网络技术有限公司 Video processing method, device, equipment and medium
US20200272309A1 (en) * 2018-01-18 2020-08-27 Tencent Technology (Shenzhen) Company Limited Additional object display method and apparatus, computer device, and storage medium
CN111601139A (en) * 2020-04-27 2020-08-28 维沃移动通信有限公司 Information display method, electronic device, and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779028A (en) * 2011-05-09 2012-11-14 腾讯科技(深圳)有限公司 Implementation method and device for special effect synthesizing engine of client side
CN105302408A (en) * 2014-06-24 2016-02-03 腾讯科技(深圳)有限公司 Method and apparatus for adjusting position of hover button and terminal
CN106469165B (en) * 2015-08-18 2021-01-08 腾讯科技(深圳)有限公司 Bullet screen display method and bullet screen display device
US20200014986A1 (en) * 2016-06-02 2020-01-09 John Senew Apparatus and method for displaying video
CN106878825B (en) * 2017-01-09 2021-07-06 腾讯科技(深圳)有限公司 Live broadcast-based sound effect display method and device
CN114797085A (en) * 2018-10-31 2022-07-29 北京市商汤科技开发有限公司 Game control method and device, game terminal and storage medium
CN112181572A (en) * 2020-09-28 2021-01-05 北京达佳互联信息技术有限公司 Interactive special effect display method and device, terminal and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436341A (en) * 2011-09-19 2012-05-02 百度在线网络技术(北京)有限公司 Method and device for conducting content operation on display screen of mobile terminal
CN104184731A (en) * 2014-08-22 2014-12-03 广州华多网络科技有限公司 Information display method, device and system
CN106354381A (en) * 2015-07-22 2017-01-25 腾讯科技(深圳)有限公司 Image file processing method and device
CN106686398A (en) * 2017-01-16 2017-05-17 北京达佳互联信息技术有限公司 Information interaction method and system and related equipment
CN107241636A (en) * 2017-05-25 2017-10-10 北京潘达互娱科技有限公司 A kind of virtual gift display method and device
US20200272309A1 (en) * 2018-01-18 2020-08-27 Tencent Technology (Shenzhen) Company Limited Additional object display method and apparatus, computer device, and storage medium
CN108234903A (en) * 2018-01-30 2018-06-29 广州市百果园信息技术有限公司 Processing method, medium and the terminal device of interactive special efficacy video
CN109859102A (en) * 2019-02-01 2019-06-07 北京达佳互联信息技术有限公司 Special display effect method, apparatus, terminal and storage medium
CN110337023A (en) * 2019-07-02 2019-10-15 游艺星际(北京)科技有限公司 animation display method, device, terminal and storage medium
CN110830813A (en) * 2019-10-31 2020-02-21 北京达佳互联信息技术有限公司 Video switching method and device, electronic equipment and storage medium
CN111182343A (en) * 2019-12-09 2020-05-19 腾讯科技(深圳)有限公司 Method and apparatus for playing animation material, storage medium, and electronic apparatus
CN111601139A (en) * 2020-04-27 2020-08-28 维沃移动通信有限公司 Information display method, electronic device, and storage medium
CN111526411A (en) * 2020-04-29 2020-08-11 北京字节跳动网络技术有限公司 Video processing method, device, equipment and medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022062788A1 (en) * 2020-09-28 2022-03-31 北京达佳互联信息技术有限公司 Interactive special effect display method and terminal
CN112732152A (en) * 2021-01-27 2021-04-30 腾讯科技(深圳)有限公司 Live broadcast processing method and device, electronic equipment and storage medium
CN113190156A (en) * 2021-05-13 2021-07-30 杭州网易云音乐科技有限公司 Music playing control method and device, storage medium and electronic equipment
WO2023040670A1 (en) * 2021-09-18 2023-03-23 华为技术有限公司 Method for displaying dynamic effect on desktop, and electronic device
CN114090167A (en) * 2021-11-30 2022-02-25 东风汽车有限公司东风日产乘用车公司 Festival color egg display method, device, equipment and storage medium
CN114090167B (en) * 2021-11-30 2024-02-27 东风汽车有限公司东风日产乘用车公司 Festival color egg display method, device, equipment and storage medium
CN114385298A (en) * 2022-01-12 2022-04-22 北京字跳网络技术有限公司 Information interaction method, device, equipment and storage medium
CN114567805A (en) * 2022-02-24 2022-05-31 北京字跳网络技术有限公司 Method and device for determining special effect video, electronic equipment and storage medium
WO2023165363A1 (en) * 2022-03-02 2023-09-07 北京字跳网络技术有限公司 Short video playback method and apparatus, and electronic device

Also Published As

Publication number Publication date
WO2022062788A1 (en) 2022-03-31

Similar Documents

Publication Publication Date Title
WO2022062788A1 (en) Interactive special effect display method and terminal
CN110674022B (en) Behavior data acquisition method and device and storage medium
CN110602321B (en) Application program switching method and device, electronic device and storage medium
CN108063981B (en) Method and device for setting attributes of live broadcast room
CN109729411B (en) Live broadcast interaction method and device
CN109618212B (en) Information display method, device, terminal and storage medium
CN108737897B (en) Video playing method, device, equipment and storage medium
CN111597008A (en) Popup management method, popup management device, terminal and storage medium
CN110278464B (en) Method and device for displaying list
CN109327608B (en) Song sharing method, terminal, server and system
CN113411680B (en) Multimedia resource playing method, device, terminal and storage medium
CN109275013B (en) Method, device and equipment for displaying virtual article and storage medium
CN110740340B (en) Video live broadcast method and device and storage medium
CN108897597B (en) Method and device for guiding configuration of live broadcast template
CN107896337B (en) Information popularization method and device and storage medium
CN114116053B (en) Resource display method, device, computer equipment and medium
CN110677713B (en) Video image processing method and device and storage medium
CN109800003B (en) Application downloading method, device, terminal and storage medium
CN113204672B (en) Resource display method, device, computer equipment and medium
CN112966130B (en) Multimedia resource display method, device, terminal and storage medium
CN109995804B (en) Target resource information display method, information providing method and device
CN111368114A (en) Information display method, device, equipment and storage medium
CN113485596B (en) Virtual model processing method and device, electronic equipment and storage medium
CN111064657B (en) Method, device and system for grouping concerned accounts
CN113613028A (en) Live broadcast data processing method, device, terminal, server and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination