Video processing method, device, computer device, and computer program

The method enhances video playback flexibility and social interactivity by interacting second videos with first videos in response to important content, optimizing hardware resource utilization.

JP2025532277APending Publication Date: 2025-09-29TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2025518362
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-11-29
Filing Date
2023-10-20
Publication Date
2025-09-29

AI Technical Summary

Technical Problem

Existing video playback methods in social scenarios are inflexible, with low interactivity and poor utilization of device hardware resources.

Method used

A method that plays a first video in a view interface, triggering the playback of a second video related to important content, and updates the first video's animation effect when the second video element interacts with the first, enhancing interactivity and resource utilization.

Benefits of technology

Enriches video playback flexibility, improves social interactivity, and optimizes hardware resource utilization by allowing interactive video effects adjustments during playback.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2025532277000001_ABST
    Figure 2025532277000001_ABST
Patent Text Reader

Abstract

The present application discloses a video processing method, an apparatus, a computer device, a storage medium, and a program product, wherein the video processing method includes the steps of: playing a first video in a view interface, the first video including a first video element, and the first video element having a first video effect in the first video; playing a second video related to the important content in the view interface if a message including important content appears in the view interface during the playback of the first video, the second video including a second video element; and updating the first video when the second video element acts on the first video element, and the first video element having a second video effect in the updated first video.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present application relates to the technical field of computers, and in particular to a video processing method, a video processing device, a computer device, a computer-readable storage medium, and a computer program product.

[0002] This application is based on and claims priority from a Chinese patent application having application number 202211517742.2 and filing date November 29, 2022, the entire contents of which are hereby incorporated by reference into this application. [Background technology]

[0003] With the rapid development of Internet technology, the social functions provided by application programs (also known as client terminals) are becoming increasingly abundant. Playing videos within client terminals is a commonly used social method that can enhance the social atmosphere in some application scenarios. For example, in an interaction scenario, when an interaction target sends an expression in a social interaction, a video associated with the expression in the social interaction can be played. For example, when sending "Happy Birthday," a video of "cake" can be dropped, a video of "bomb" can be sent, or a video of an explosion can be played. The playback of these videos all brings a very interesting interaction experience. However, in related technologies, the video playback method in a social scenario is relatively fixed and not very flexible, with relatively poor interactivity and low utilization of device hardware resources. Summary of the Invention [Problem to be solved by the invention]

[0004] The embodiments of the present application provide a video processing method and related devices, which can improve the flexibility of video playback and the utilization rate of the hardware resources of the devices. [Means for solving the problem]

[0005] An embodiment of the present application provides a video processing method, playing a first video in a view interface, the first video including a first video element, the first video element having a first video effect in the first video; During the playback of the first video, if a message including important content appears in the view interface, playing a second video related to the important content in the view interface, where the second video includes a second video element; The second animation element includes a step of updating the first animation when acting on the first animation element, the first animation element having the second animation effect in the updated first animation.

[0006] An embodiment of the present application further provides a video processing device, including: a playback module; and an update module; The playback module is configured to play a first video in a view interface, the first video including a first video element, the first video element having a first video effect in the first video; The playback module is further configured to, during the playback of the first video, if a message including important content appears in the view interface, play a second video related to the important content in the view interface, where the second video includes a second video element; The update module is configured to update the first animation when the second animation element acts on the first animation element, such that the first animation element has a second animation effect in the updated first animation.

[0007] Embodiments of the present application further provide a computer device, comprising: a processor configured to execute a computer program; A computer-readable storage medium having a computer program stored therein, the computer program performing the video processing method of the present embodiment when executed by a processor.

[0008] The present embodiment further provides a computer-readable storage medium having a computer program stored therein, the computer program executing the video processing method of the present embodiment when executed by a processor.

[0009] The present embodiment further provides a computer program product, which includes a computer program or computer instructions that, when executed by a processor, implements the video processing method of the present embodiment. [Effects of the Invention]

[0010] The present embodiment has the following beneficial effects. In the embodiment of the present application, during the process of playing a first video in the view interface, if a message containing important content appears in the view interface, it will also trigger the playback of a second video related to the important content in the view interface. As can be seen from the above, the view interface supports playing two videos simultaneously, which enriches the video playback method in the view interface. In addition, the first video includes a first video element with a first video effect, and the second video includes a second video element. When the second video element acts on the first video element, it updates the first video and changes the video effect of the first video element (i.e., changes from the first video effect to the second video effect). As can be seen from this, the second video is triggered to play by the message containing important content in the view interface, and the interaction between the second video and the first video is realized by the interaction between the video elements, which realizes the interaction between the message and the video in the view interface during the video playback process, which is an innovative video. It is an interactive method, in which the same video element (first video element) has different video effects before and after the first video update through interaction, thereby realizing a deep connection between the video and the message and improving social interactivity. Furthermore, when a message containing important content appears in the view interface, the first video can be updated by changing the video effect in the first video of the first video element. In this way, the video effect contained in the first video can be flexibly adjusted, enriching the format of video presentation, making video playback more flexible, and improving the utilization of device hardware processing resources and hardware display resources. [Brief explanation of the drawings]

[0011] [Figure 1] 1 is an architecture diagram of a video processing system provided by an embodiment of the present invention. [Figure 2] 1 is a process diagram of a video processing method provided by an embodiment of the present application; [Figure 3A]FIG. 1 is a schematic diagram of a first moving image provided by an embodiment of the present invention. [Figure 3B] FIG. 10 is a schematic diagram of a second video provided by an embodiment of the present invention. [Figure 3C] FIG. 10 is a schematic diagram illustrating an update of a first moving image provided in an embodiment of the present invention. [Figure 4] 1 is a process diagram of a video processing method provided by an embodiment of the present application; [Figure 5A] FIG. 1 is a trigger schematic diagram of the first moving image provided by an embodiment of the present invention. [Figure 5B] FIG. 10 is a trigger schematic diagram of the second moving image provided by the present embodiment. [Figure 5C] FIG. 10 is a schematic diagram illustrating another first moving image update provided by an embodiment of the present application. [Figure 5D] FIG. 10 is a schematic diagram illustrating another first moving image update provided by an embodiment of the present application. [Figure 5E] FIG. 10 is a schematic diagram illustrating another first moving image update provided by an embodiment of the present application. [Figure 5F] FIG. 10 is a schematic diagram illustrating another first moving image update provided by an embodiment of the present application. [Figure 6] 1 is a process diagram of a video processing method provided by an embodiment of the present application; [Figure 7A] FIG. 10 is a schematic diagram of a second virtual character acting on a second video element provided by an embodiment of the present invention. [Figure 7B] FIG. 2 is a schematic diagram showing a virtual resource package provided by an embodiment of the present application; [Figure 7C] FIG. 2 is a schematic diagram showing a virtual resource package provided by an embodiment of the present application; [Figure 7D] FIG. 2 is a schematic diagram showing a virtual resource package provided by an embodiment of the present application; [Figure 7E] FIG. 10 is a schematic diagram showing the output of prompt information provided by an embodiment of the present invention; [Figure 8A] FIG. 2 is a schematic diagram of a resource receiving interface provided by an embodiment of the present application; [Figure 8B] FIG. 10 is a schematic diagram of an embodiment of the present invention that outputs a notification that the second game camp has won. [Figure 9]1 is a structural schematic diagram of a video processing device provided by an embodiment of the present application; [Figure 10] 1 is a structural schematic diagram of a computer device provided by an embodiment of the present application; DETAILED DESCRIPTION OF THE INVENTION

[0012] The following describes the technical solutions in the embodiments of the present application clearly and completely in combination with the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some of the embodiments of the present application, not all of the embodiments, and all other embodiments obtained by those skilled in the art based on the embodiments of the present application without requiring creative efforts also fall within the scope of the present application.

[0013] In the following description, reference to "some embodiments" describes a subset of all possible embodiments, but it will be understood that "some embodiments" may be the same or different subsets of all possible embodiments and may be combined with each other under non-conflicting circumstances.

[0014] In the following description, the terms "first\second..." are used merely to distinguish between similar objects and do not represent a particular order of construction of the objects; it is to be understood that "first\second..." are interchangeable with specific orders or sequences where permitted, and therefore the embodiments of the present application described herein may be implemented in sequences other than those illustrated or described herein.

[0015] In order to better understand the solution of the present embodiment, the following first introduces relevant terms and concepts that may be related to the present embodiment.

[0016] 1. Social Interface: The social interface is an interface used to provide social interactions, including but not limited to social interactions, content interactions, audio-video playback, etc. Based on different types of social interactions, the social interface may include any of an interaction interface for social interactions, a content interface for a content platform, a video playback interface, etc. The social interface can not only display messages but also play videos.

[0017] 2. Video: A moving image refers to a sequence of images composed of one or more moving image elements. The so-called moving image elements refer to basic elements of a moving image, such as a virtual character, a virtual scene, a virtual item, etc. The moving image may include an expression moving image, a scene moving image, a virtual character moving image, etc., where the expression moving image is, for example, a bomb expression, a firework expression, etc., and different frames of the expression moving image may be different display contents of a common moving image element or may be different moving image elements.

[0018] 3. Video effects: The animation effect can be understood as an animation effect, and refers to the dynamic display effect of animation elements in the animation. For example, if the animation is an animation of fireworks, the animation effect of the fireworks is the effect of fireworks playing on the screen; if the animation is a virtual character animation, the animation effect of the virtual character animation may be the virtual character running, walking, or jumping.

[0019] The architecture of the video processing system provided in the embodiment of the present invention will be introduced below.

[0020] Referring to Fig. 1, Fig. 1 is an architecture diagram of a video processing system provided by an exemplary embodiment of the present application. As shown in Fig. 1, the video processing system includes a terminal device 101 and a server 102, and a communication connection between the terminal device 101 and the server 102 can be established via a wired or wireless method.

[0021] The terminal devices 101 include, but are not limited to, smartphones, tablet computers, smart wearable devices, smart voice interaction devices, smart home appliances, personal computers, in-vehicle devices, smart cameras, virtual reality devices (e.g., VR, AR), etc., and this application does not limit the number of terminal devices. The server 102 may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDNs (Content Delivery Networks), big data, and artificial intelligence platforms, but is not limited to these. The number of servers is not limited in this application.

[0022] The terminal device 101 may operate a client terminal with a social interaction function, where the client terminal includes, but is not limited to, a social client terminal, a game client terminal, a live streaming client terminal, an office client terminal, etc. The client terminal may be any one of an independent application program, an installation-free program (e.g., an applet), and a web (World Wide Web) application program. The social interaction includes, but is not limited to, interactions, messages, likes, comments, etc. The client terminal in the terminal device may display a view interface and play a first video in the view interface, the first video including a first video element, and the first video element including a first video effect in the first video.

[0023] In one implementation, the playback of the first video may be triggered by the presence of a message containing target content in the view interface, where the target content is, for example, the name of the first video element or the name of the game that is the source of the first video element. During the playback of the first video, when a message containing important content appears in the view interface, a second video can be played in the view interface, where the important content is, for example, the name of the second video element. The animation element included in the second video supports acting on the first animation element in the first video, and when the second animation element acts on the first animation element as the second video plays, the first video can be updated, where the first animation element included in the updated first video has a second animation effect, and the second animation effect is different from the first animation effect. By triggering the playback of a second video for a message containing important content and interacting with the first video element through the second video element, the animation effect of the first video element in the first video being played can be changed, thus enabling the message to interact spontaneously with the first video, and the first video no longer has a constant animation effect of the animation element, providing the first video with a more flexible and rich display format during the interaction process.

[0024] The server 102 can provide background service support for the client terminal, including, but not limited to, sending video trigger rules (including a first video trigger rule and a second video trigger rule, where the first video trigger rule includes target content and the second video trigger rule includes important content) to the client terminal via a network; forwarding interaction messages sent from interaction targets in social interactions, such as messages including important content and messages including target content; and updating videos by forwarding video update instructions.

[0025] The video processing method and video processing system provided in the embodiments of the present application can be applied to various social scenes, such as social interaction scenes, live streaming scenes, game scenes, office scenes, etc. In different social scenes, the viewing interface supports playing different videos, such as playing a first video and a second video, which enriches the video playback mode in the viewing interface. Interaction between different videos can be realized through the interaction between video elements. During the playback of a first video, a message containing important content can trigger the playback of other videos, update the first video being played, and change the video effects of the corresponding video elements in the first video. In this way, interaction with messages can be realized during the video playback process, enhancing the interactivity between messages and videos and improving social interactivity. This innovative video interaction method allows the video effects of video elements in a video to be flexibly adjusted, enriching the video display style in social scenes and increasing the playback flexibility.

[0026] In some embodiments, the view interface may be a social interface. It can be understood that when the video processing system is applied to a social interaction scenario, the social interface is an interaction interface for social interaction. After any interaction target in the social interaction triggers the playback of a first video on the social interface, the first video is also played on the social interfaces displayed on the sides of other interaction targets in the social interaction. Any interaction target in the social interaction can send a message containing important content, thereby triggering a second video element to act on the first video element, thereby changing the first video effect of the first video element, for example, changing the progress speed, thereby realizing interference with the progress and execution result of the first video. The client terminal can send the updated first video to the server, and the server can send the updated first video to other interaction targets in the social interaction, so that the video content displayed on the interaction interfaces of each interaction target is the same. In summary, the first video can generate interactions with messages during playback. On the one hand, this type of interaction breaks the traditional video interaction method, in that video playback can be triggered by messages and can also interact with messages during video playback to change the video effects of video elements, thereby realizing a deep connection between videos and messages and making video playback flexible. On the other hand, this type of interaction is beneficial to improving the sense of participation of interaction targets in social interactions, in that any interaction target can send a message containing important content, and different interaction targets can cooperate with each other to make multiple updates to the first video, thereby improving social interactivity and fun.

[0027] Next, a moving image processing method provided by the embodiment of the present invention will be introduced.

[0028] Referring to Figure 2, there is shown a process diagram of a video processing method provided by an exemplary embodiment of the present application. In practical application, the video processing method may be implemented by a terminal or a server alone, or by a terminal and a server working together. Take the video processing method as an example, where the video processing method is executed by a terminal device (for example, the terminal device 101 in Figure 1), in which a client terminal with a social interaction function is running, and the video processing method may include the following content:

[0029] S201: The terminal plays a first video in a view interface.

[0030] Here, the view interface may be a social interface, an audio / video playback interface with social functions, an interface of an education client terminal with social functions, etc., where the social interface may be an interaction interface provided by any application program, supporting social interactions in the social interface, including but not limited to interactions, likes, comments, messages, etc. The terminal device may display a message in the social interface, or may play a first video in the social interface, where the first video refers to any one video.

[0031] For example, the social interface may be an interaction interface for social interactions, including individual interactions or group interactions in an application program that supports social functions, and the interaction interface for social interactions may be used to display interaction messages sent by interaction targets or messages sent from the system. The trigger for the first video may be realized based on a specific interaction message sent from the interaction target, where the specific interaction message refers to a message including target content, where the target content is, i.e., specified content, and may be pre-configured. In some embodiments, the target content is related to the first video, for example, associated with a first video element in the first video, for example, the target content is the name of the first video element or the name of a video element associated with the first video element. For example, if the first video is a virtual character video, the target content may be the name of the virtual character, i.e., an interaction message including the virtual character name may appear in the social interface, and the virtual character video may be displayed in the social interface.

[0032] An animation element in the first animation is referred to as a first animation element, and the first animation element may be an expression, an image, text, etc. For example, the first animation element may be a virtual object such as a slipper, a flower, or a steamship, or may be word art, a virtual character, etc. The first animation may include one first animation element or multiple first animation elements.

[0033] The first animation element has a first animation effect in the first animation, and the first animation effect is an effect in which the first animation element is dynamically displayed in the first animation. For example, the first animation element may be a pair of slippers, and the first animation effect in the first animation of the first animation element may be an animation effect in which the slippers are thrown along a specified route. In one embodiment, the first animation is played in a social interface, and therefore the first animation effect of the first animation element may be directly presented in the social interface.

[0034] For example, refer to the schematic diagram of the first video shown in Figure 3A. The first video played on the social interface 301 is a virtual character video, the first video element included in the first video is virtual character A marked with 3011, and the first video effect provided by the first video element is the video effect of virtual character A running.

[0035] S202: During the playback of the first video, if a message containing important content appears in the view interface, play a second video related to the important content in the view interface.

[0036] The important content in the message is used to trigger another video (e.g., a second video) different from the first video to be played in the view interface. One or more messages can be displayed in the view interface. When the view interface is an interaction interface for social interaction, the message displayed in the view interface may be an interaction message sent by an interaction target of the social interaction or a message sent from the system (e.g., a notification message). If a message including the important content appears in the view interface during the playback of the first video, the second video related to the important content is triggered to be played in the view interface. For example, if the important content included in the message is text content such as "Mr. A, please run faster," the second video may be a video of accelerating the throwing of slippers to Mr. A. There may be one or more messages including important content in the view interface. Each time a message including one important content appears in the view interface, one second video related to the important content can be played. In one embodiment, when any two messages containing important content appear simultaneously in the view interface, two second videos can be played simultaneously in the view interface, and the two second videos can be the same or different. In another embodiment, if multiple messages containing important content appear in the view interface, multiple second videos can be played according to the order in which the messages containing important content appear in the view interface, thereby realizing the trigger for playing the second videos by the messages, and each second video can affect the first video.

[0037] An animation element in the second video is referred to as a second animation element. The second video may include one or more second animation elements, each associated with important content in the message. The second animation element has a corresponding animation effect in the second video. The second animation element may be a virtual object such as shoes, mushrooms, or flowers, or a virtual character, such as a virtual person or a virtual pet. The second animation element and the first animation element may be the same; that is, the same animation element may exist in different videos played in the view interface. Of course, the second animation element and the first animation element may be different. In one embodiment, the first animation and the second animation are different videos. For example, refer to the schematic diagram of the second animation shown in FIG. 3B. A message 3201 containing important content in the social interaction interface is "acceleration," which throws a pair of slippers 3202 (i.e., a second animation element included in the second animation) at the display position of the message 3201. At the same time, the first video keeps playing, ie the first video element 3203 in the first video is still moving.

[0038] In one implementation, the important content can indicate which video element in the first video the second video element in the second video should act on. For example, in the example shown in Figure 3B, the message containing the important content can be "Mr. A, speed up," and the important content "Mr. A, speed up" is used to instruct the second video element to act on the virtual character "Mr. A." As described above, the first video and the second video can be played in the same view interface, and interaction between the first video and the second video can be realized by interaction between the second video element and the first video element.

[0039] S203: When the second video element acts on the first video element, it updates the first video.

[0040] It is determined that the second video element acts on the first video element when at least one of the following conditions is met: (1) the second video element and the first video element overlap on their display positions, (2) the distance between the second video element and the first video element is within a preset (predetermined) distance, i.e., the distance between the display position of the second video element and the display position of the first video element is smaller than a preset (predetermined) distance threshold, (3) the moving directions between the first video element and the second video element match, i.e., the moving direction of the second video element is toward the first video element, and (4) the moving direction of the second video element is toward the first video element, and the distance between the display position of the second video element and the display position of the first video element is smaller than a preset distance threshold.

[0041] When the second video element acts on the first video element, it changes the first video effect of the first video element in the first video and changes the first video effect of the first video element to a second video effect, thereby updating the first video. That is, the updated first video also includes the first video element, and the first video element has a second video effect in the updated first video, and the first video effect and the second video effect are different. The second video can be triggered to play by a message containing important content, and the second video element acts on the first video element independently to change the video effect of the first video element, thereby realizing interaction with the message during the video playback process in the view interface.

[0042] 3C shows an exemplary update schematic diagram of the first animation shown in FIG. In the view interface 3301, the first animation element is a virtual character A marked with 3302, and the second animation element is an accelerating slipper 3303. When the accelerating slipper 3303 is displayed near the virtual character A, the virtual character A presents an accelerating animation effect 3304 (i.e., a second animation effect) in the first animation, so that the second animation effect obtained after updating has a different progression speed from that corresponding to the first animation effect.

[0043] As can be understood, in the embodiments of the present application, the second animation element of one second animation is described and discussed to affect the first animation element of the first animation. If there are multiple second animations, the second animation elements in each second animation can affect the first animation element of the first animation. Multiple second animation elements can update the first animation once or multiple times through simultaneous multiplexing or back-and-forth multiplexing, so that the first animation can achieve a richer animation effect under the influence of the second animation. In some embodiments, the number of updates of the first animation can correspond one-to-one to the number of second animations. For example, a virtual character in the first animation can accelerate multiple times, or multiple acceleration effects can be simultaneously multiplexed to achieve exponential acceleration.

[0044] In the video processing method provided by the present embodiment, when a message containing important content appears in a view interface, a second video related to the important content can be played for a first video played in the view interface. The second video can also be played during the first video playback process, supporting simultaneous playback of two videos in the view interface and enriching the video playback mode in the view interface. When a second video element in the second video acts on a first video element in the first video, the first video can be updated, and the first video effect of the first video can be changed to a second video effect. In this way, during the first video playback process, the first video can interact with the message containing important content. That is, the message containing important content can trigger other videos (e.g., the second video), which can then affect the first video. The video effect of the video element can be flexibly changed during the first video playback process. In this way, interaction with messages can be realized during the video playback process in the view interface, increasing the fun of video playback in the view interface and improving social interactivity, while also facilitating improved utilization of device hardware processing resources and hardware display resources.

[0045] Referring to Figure 4, a process diagram of another video processing method provided by an exemplary embodiment of the present application is shown. In practical application, the video processing method may be implemented by a terminal or a server independently, or may be implemented by a terminal and a server in cooperation with each other. The video processing method is executed by a terminal device (for example, the terminal device 101 in Figure 1), and taking the view interface as a social interface as an example, a client terminal with a social interaction function is running in the terminal device, and the video processing method may include the following content:

[0046] S401: The terminal device displays a social interface.

[0047] The terminal device can display a social interface on a client terminal, where the client terminal may include, but is not limited to, a dedicated social client terminal or other client terminals with social functions, such as a game client terminal, a live streaming client terminal, or an office client terminal. The social interface may be an interaction interface, where at least two interaction targets can use the interaction interface to perform message interaction, and the interaction interface can be used to display messages and play various videos. For example, an expression video can be played on the social interface, where the so-called expression video refers to a video associated with an expression element, such as a fireworks expression, and the expression video corresponds to a fireworks playback video. There may be one or more messages in the social interface, and among the one or more messages, there may be a message containing the target content, or there may be no message containing the target content. When the social interface refers to an interaction interface for social interaction, the message containing the target content may be an interaction message sent from the interaction target, or may be a notification message automatically sent from the system to the social interface.

[0048] S402: When a message including the target content exists in the social interface, a first video related to the target content is played in the social interface.

[0049] Each time a message is added to the social interface, the client terminal can detect whether the message contains target content, which is content used to trigger a video, and the target content can be manually specified or randomly specified by the system. When detecting that the message contains target content, the client terminal can consider that a message containing the target content exists in the social interface, and further trigger the playback of a first video. In one implementation, there is an association between the target content and the first video, and the videos associated with different target content are different or the same. In one implementation, the target content includes at least one of an identifier of the first video, an identifier of a first video element included in the first video, an identifier of the source of the first video, and content associated with the first video.

[0050] Here, the identifier of the first video may be the name of the first video, an identifier of any video element in the first video, etc. The identifier of the first video element may be the name of the first video element, a thumbnail of the first video element, etc. If the video element in the first video or the first video itself is derived from a game, the target content may register an identifier of the source game of the first video. For example, the target content may be the game name, game log, game team name, etc., and the content associated with the first video may be other video elements in the first video and identifiers of the other video elements, etc.

[0051] The display format of the message containing the target content of the target content includes at least one of text, expression, image, and audio. A message containing the target content may be referred to as a specific message or a target message, and the target content may be presented in one or a combination of multiple display formats in the specific message. For example, the target content may be a first video element (image format) in a first video, or the name of the first video element (text format or audio format). For example, the target content may be a specified game keyword, such as the name of a game or the name of a character in the game, and the first video played may be a video created based on a virtual character in the game.

[0052] For example, refer to the trigger schematic diagram of the first video shown in Figure 5A. As shown in (1) in Figure 5A, a social interface 5101 is an interaction interface for social interaction. In the social interface 5101, there is a message 5102 including the name of a game, "Let's deploy the ABA group creation team." After the message 5102 appears on the social interface 5101, a first video can be played in the social interface, in which a virtual game character 5103 chases a virtual character 5104 along a preset route, as shown in (2) in Figure 5A.

[0053] The target content triggers the first video to play on the social interface, and the target content has multiple display formats and multiple types of content, thus making it easy and convenient to launch the first video during the social interaction process, and the target content is carried by a message. If an application can trigger the first video during social interaction by a message containing the target content, it can bring more interaction experience to the interaction subject during the interaction process.

[0054] S403: During the playback of the first video, if a message containing important content appears on the social interface, a second video related to the important content is played on the social interface.

[0055] The playback of the first video and the addition of a message in the social interface are independent. Therefore, at least one message can be added to the social interface during the playback of the first video. That is, the playback of the first video does not affect the interaction of the interaction target. Among the messages added in the social interface, there may be a message containing important content. Here, the important content is content used to trigger the playback of the second video. The important content may be pre-configured, and the second video may be any video other than the first video. The important content and the target content mentioned above may be the same or different. The client terminal may explain that when it detects that a message contains important content, a message containing the important content appears in the social interface. Each appearance of a message containing one important content can trigger the playback of a second video related to the important content. The appearance of a different message containing important content can trigger the playback of a different second video. In this way, during the playback of a first video, multiple second videos can be played, and the important content associated with each second video can be the same or different, thereby making the playback of the second videos more diverse and providing richer interactions with the first video. The second video includes second video elements, which may be different from the first video elements. In one implementation, the important content includes, but is not limited to, at least one of an identifier of the second video, an identifier of a second video element included in the second video, an identifier of the source of the second video, and content associated with the second video.

[0056] The identifier of the second video may be the name of the second video and an identifier (e.g., name) of any video element in the second video, etc., and the identifier of the second video element may be the name of the second video element and a thumbnail of the second video element, etc. In practical applications, the second video or a video element in the second video may originate from a game, video, live broadcast, etc. If the video element in the second video or the second video itself originates from a game, the target content may be the game name, game log, game team name, game skill words, etc. of the source game, and the content associated with the second video may be other video elements themselves in the second video, identifiers of other video elements, and skill words of the first video element, etc.

[0057] The display format of the message containing the important content includes at least one of text, expression, image, and audio. Any of the above important content can be presented in one or a combination of multiple display formats, and the important content can be content issued by the server to the client terminal (e.g., some preset words, preset images, etc.). For example, if the important content is the name of a game, the message containing the important content can be a voice message or a text message. If it is a voice message, voice recognition technology can be used to analyze whether the voice message contains the pronunciation of the game name. For example, see the trigger diagram of the second video shown in FIG. 5B. The social interface is an interaction interface for social interaction, in which a first video is being played in the social interface, the first video being a video in which virtual character B chases virtual character A along a pre-set route, and in which a message 5201 including the name of a second video element, "Throwing Mushroom", is added to the social interface, thereby playing a second video in which a mushroom 5202 (i.e., a second video element) is thrown in the social interface.

[0058] As can be seen from the above, triggering the second video to play on the social interface by important content can also be by carrying the important content by a message, thus realizing interaction between the message and the second video, and providing multiple types of important content and display formats that can trigger the second video, making it more convenient to trigger the second video.

[0059] In one embodiment, playing a second video related to important content in a social interface includes obtaining a display position in the social interface of a message including the important content, setting the display position as a starting display position of a second video element in the second video, and playing the second video related to the important content.

[0060] For convenience of description, a message containing important content can be abbreviated to "important message." The display position of the important message in the social interface is defined as the starting display position of the second video element in the second video. When the second video is played, the second video element included therein begins to be displayed from this display position. For example, the "mushroom" element 5202 in the second video shown in FIG. 5B of the above example is thrown from the display position of the message 5201. In this way, the interaction between the second video element in the second video and the message containing important content becomes more intuitive and clearer, fully utilizing the hardware display resources of the device, improving the entertainment value of the video and further demonstrating the utilization rate of the device's hardware display resources.

[0061] As should be explained, during a social interaction, there may be messages containing at least one (e.g., at least two) important content, and the important content contained in different messages may be the same or different, but because the display positions at which the messages are located in the social interface are different, the second videos associated with the important content in each message are independent, and therefore, each second video related to the important content can be played according to the chronological order in which the messages were sent in the social interface. For example, if there are two important messages in the social interface and the important content contained therein is "throwing mushrooms" and "throwing shoes," respectively, a video of throwing mushrooms and a video of throwing shoes can be played from the corresponding display positions in the social interface.

[0062] In one implementation method, the social interface is displayed on a client terminal, which has a built-in video rendering engine. Based on the video rendering engine, the display position of the message containing important content in the social interface is sent to the video rendering engine; the video rendering engine is called to play a second video; and in the process of playing the second video, the second video element is rendered using the display position of the message containing important content in the social interface as the starting display position. This can be used to play a second video related to the important content.

[0063] The video rendering engine is an engine used to render video elements in a video and video effects in the video of the video elements, such as the Unity engine. The video rendering engine can be built into a client terminal and is called to render a video when the client terminal has a video rendering need. In one embodiment, the content rendered by the video rendering engine can cover the entire social interface but does not respond to operations or interfere with operations on the social interface, thereby achieving operation penetration, such as click penetration. The video rendering engine can render a first video and a second video, such as a virtual character video, a skill release video, and a gift video.

[0064] The video rendering engine can establish communication with the client terminal and obtain a video execution position from the client terminal, where the second video related to the important content is played in the social interface. The client terminal can invoke an interface view (e.g., an interaction view) to send a display position in the social interface of the message containing the important content to the video rendering engine, where the display position can be set as the start position of the second video execution. The video rendering engine can then be invoked to set the display position as the start display position of the second video element, render the second video element, and play the second video. In this way, the second video can be triggered from the display position of the message containing the important content. Rendering of the second video element can be performed in real time during the second video playback process, or can be played directly after the entire second video rendering is completed.

[0065] S404: The second video element updates the first video when it acts on the first video element.

[0066] Here, the method for determining whether the second video element affects the first video element can refer to the above method, and will not be described again here.

[0067] During the process of playing the corresponding video on the social interface, the video elements in the video are dynamically displayed. For example, the second video element moves along a predetermined route in the social interface, and the display positions of the second video element and the first video element in the social interface change over time. The display positions of the first video element and the second video element in the social interface at any time may be different or the same. In one mode, when the video elements in the two videos are located at the same display position in the social interface at a certain time, i.e., the display positions of the first video element and the second video element overlap, and the display position distance between the two video elements is zero, the second video element can be considered to affect the first video element. In another mode, when the display positions of the first video element and the second video element are different, the distance between the display positions of the two video elements can be determined. If the distance is smaller than a predetermined distance threshold, the second video element can be considered to affect the first video element. If the distance is equal to or greater than the predetermined distance threshold, the second video element can be considered not to affect the first video element. Here, the preset distance threshold may be an artificially set empirical value, which can intuitively and clearly show whether the second video element affects the first video element depending on the distance between the display positions of the two video elements.

[0068] The direction of the second video element can be understood as the direction of movement of the second video element in the social interface. During the second video playback process, the direction of the second video element can be any direction, for example, vertical or horizontal relative to the social interface. In one method, determining whether the direction of the second video element is toward the first video element can further determine whether the second video element affects the first video element. For example, if the direction of the second video element is toward the first video element, it can be described as having a tendency to affect the first video element, and the second video element can be considered to affect the first video element. If the direction of the second video element is not toward the first video element, it can be considered not to affect the first video element. The direction of movement can save time in determining whether the second video element affects the first video element, thereby making interaction between videos more efficient. For more accurate determination, the direction of travel can be taken into consideration, but it can also be combined with other factors. For example, whether the distance between the second video element and the first video element is smaller than a preset distance threshold indicates whether the second video element affects the first video element.

[0069] The first video element has a second video effect in the updated first video, and the second video effect is different from the first video effect. For example, if a message containing the target content is a birthday celebration message entered in a social interface, the first video is a video effect of dropping a cake representation from the top of the social interface. Before the cake representation dropping video ends, the first video can interact with the message in the social interface. For example, if a firework representation (belonging to the message containing the important content) is added in the social interface, and a second video of fireworks exploding is played in the social interface, the cake representation can present a video effect (belonging to the updated first video) of flying along with the fireworks exploding.

[0070] Here, a message containing important content triggers the playback of the second video, and a second video element in the second video interacts with the first video, and further interacts with the first video through the message, updating the video effect of the first video element in the first video. In a social interface, when multiple messages containing important content are included, the messages can cooperate to update the first video element in the first video multiple times. If applied in a social interaction scenario, different interaction targets can send messages containing important content to form a context and affect the first video, and the interaction targets can cooperate to update the first video, thereby improving the sense of participation in the interaction of the interaction targets.

[0071] In some embodiments, the first video may include one or more (at least two) video elements, and different video elements may have different video effects. The first video element may be any video element in the first video, and the first video element may have different video effects in the first video, that is, the first video element may have two or more video effects in the first video. The first video element includes a first virtual character, and if the first video includes multiple virtual characters, the first virtual character is any one of the multiple virtual characters. When the second video element acts on the first video element based on the different first video effects of the first virtual character, the manner of updating the first video may include, but is not limited to, the four manners described in the following (1) to (4).

[0072] (1) The first animation effect in the first animation of the first virtual character includes progressing according to a first speed, and the second animation element includes an animation element used to instruct the speed to be adjusted.

[0073] In practical application, the first virtual character is a multidimensional (e.g., two-dimensional or three-dimensional) virtual character, such as a virtual human figure, a virtual animal, a virtual plant, etc. The first video includes video content in which the first virtual character moves at a first speed, which may be a default moving speed and may be adjusted under the influence of a second video element. The second video element may be used to instruct the first virtual character to adjust its moving speed, and the speed adjustment instructed by the second video element may be acceleration or deceleration, i.e., the second video element may instruct the first virtual character to increase or decrease its moving speed.

[0074] The implementation method of S404 includes updating the first video by changing the moving speed of the first virtual character according to the instruction of the second video element when the second video element acts on the first virtual character, that is, realizing the update to the first video by changing (increasing or decreasing) the moving speed of the first virtual character according to the instruction of the second video element, and the second video effect in the first video after the update of the first virtual character includes progressing according to a second speed, which is different from the first speed, where if the second video element instructs to accelerate, the second speed is greater than the first speed, and if the first video element instructs to decelerate, the second speed is smaller than the first speed.

[0075] For example, when the second animation element acts on the first virtual character, for example, the display position of the second animation element overlaps with the display position of the first virtual character, and the client terminal can adjust the moving speed of the first virtual character from a first speed to a second speed in accordance with the instruction of the second animation element, thereby updating the first animation, and in the updated first animation, the first animation element has a second animation effect of moving at the second speed. If the second animation element instructs to accelerate, when adjusting the moving speed of the first virtual character, the first speed of the first virtual character is increased to obtain a second speed, the second speed being greater than the first speed, and the first virtual character can move at the second speed. If the second animation element instructs to decelerate, when adjusting the moving speed of the first virtual character, the first speed of the first virtual character is decreased to obtain a second speed, the second speed being smaller than the first speed.

[0076] As can be seen from the above, a second video can be triggered to play based on a message containing a keyword, and the second video element in the second video can affect the first video element in the first video being played, and the first video element can change its progression speed under the influence of the second video element, thereby adding a gain effect (e.g., speed up) or a debuff effect (e.g., slow down) to the first video element in the first video based on the message containing important content. The change in the progression speed of the first video element can cause the first video to end early or delay the end of the first video, thereby interfering with the execution progress and execution results of the first video and improving the interaction experience.

[0077] For example, refer to the schematic diagram of updating the first animation shown in Figure 5C. The social interface is an interaction interface for group interaction (i.e., including three or more interaction targets), and the first animation element is a virtual character named Mr. Mo. As shown in (1) in Figure 5C, when the interaction target sends a message 5301 containing important content, "Mr. Mo, please run faster," the interaction target throws a pair of acceleration shoes 5302 (i.e., the second animation element) from the message bubble location to the virtual character Mr. Mo. After being hit, the virtual character Mr. Mo 5303 can acquire an acceleration skill and further present an acceleration teleport animation called "swish." After the first animation is updated, different animation effects 5304 appear around the virtual character Mr. Mo in the social interface, as shown in (2) in Figure 5C.

[0078] In one implementation, the first virtual character can move at a second speed within a preset time period. When the preset time period is reached, the second speed of the first virtual character is automatically adjusted to the first speed and continues to move at the first speed. For example, the first speed can be accelerated, i.e., increasing the first speed to obtain the second speed. The first virtual character can move at the second speed for 3 seconds, and then resume moving at the first speed after the 3-second acceleration period. As can be seen, while the moving speed is restored to its original speed, the progress of the first animation is changed. For example, the first animation may originally be played for 10 seconds, but after the virtual character's moving speed is changed, the playing time may be reduced to 5 seconds. The presence of the preset time period allows the second animation effect in the first animation of the first virtual character to last for a certain period of time.

[0079] As can be understood, the duration of the first virtual character's progression at the second speed does not need to be limited, and during the playback of the first animation, the first virtual character can progress at the second speed any time before the next change to the second speed occurs. If a new second animation exists to instruct the speed adjustment, the second speed can be the progression speed that is changed, i.e., accelerate or decelerate based on the second speed. Furthermore, when the second animation element is not acting on the first virtual character, the first animation element in the first animation can always progress at the first speed, or can adjust the first speed according to progression rules set by the system, and continue until the execution of the first animation is completed.

[0080] In some embodiments, the progression rules are used to indicate the position and speed of the progression of the first video element at each time point, that is, the progression rules can indicate the progression route of the first video element and the speed of each position on the progression route.

[0081] (2) The first animation effect in the first animation of the first virtual character includes progressing along a first path, and the second animation element includes an animation element used to instruct the first virtual character to adjust the path, i.e., the second animation element can be used to instruct the first virtual character to adjust the progression path.

[0082] In some embodiments, the implementation manner of S404 may include updating the first animation by changing the progression path of the first virtual character according to the instruction of the second animation element when the second animation element acts on the first virtual character, and the second animation effect in the first animation after the update of the first virtual character includes progressing along a second path, and the first path is different from the second path.

[0083] During the playback of the first video, a first virtual character included in the first video moves along a first path, which is a path along which the virtual character moves in the social interface, and which may be one of a plurality of pre-generated paths, such as the shortest or longest path among the plurality of paths, or a path randomly selected from the plurality of paths.

[0084] When the virtual character moves along the corresponding path, the animation effect of the first video can be made more natural and vivid. When the second video element acts on the first virtual character, the path of the first virtual character can be changed from the first path to the second path according to the instruction of the second video element, and the first video is updated. In the updated first video, the first virtual character moves along the second path. The second path may be one path randomly selected from a plurality of paths other than the first path among multiple paths generated in advance, or may be one path specified by the second video element.

[0085] For example, refer to the schematic diagram of updating the first video shown in Fig. 5D. The social interface is an interaction interface for social interaction, and when the message 5401 sent by the interaction target includes "route change," as shown in (1) in Fig. 5D, a map 5402 can be thrown from the message bubble location to the virtual character, changing the current path 5404 of the virtual character 5403 to path 5405. In the updated first video, the first virtual character moves along path 5405 as shown in (2) in Fig. 5B.

[0086] As is necessary to explain, the first path and the second path may be two paths with an intersection or two paths without an intersection. After the travel path of the first virtual character is changed to the second path, a position on the second path that is closest to the current display position of the first virtual character can be determined, and the first virtual character starts travelling from that position, for example, the intersection position of the two paths.

[0087] (3) The first animation effect in the first animation of the first virtual character includes progressing according to a first direction, and the second animation element includes an animation element used to instruct the direction to be adjusted, that is, the second animation element can be used to instruct the first virtual character to adjust its moving direction.

[0088] In some embodiments, the implementation of S404 includes updating the first video by changing the moving direction of the first virtual character according to an instruction from the second video element when the second video element acts on the first virtual character, for example, by adjusting the moving direction of the first virtual character from a first direction to a second direction, and the second video effect of the first virtual character in the updated first video progresses according to the second direction, where the first direction and the second direction are different. For example, the first direction is vertical to the social interface, and the second direction is horizontal to the social interface. In the updated first video, the first virtual character progresses according to the second direction.

[0089] For example, refer to the first video update schematic diagram shown in FIG. 5E. The social interface is an interaction interface for social interaction. When the message 5501 sent by the interaction target includes the keyword "change direction," as shown in (1) of FIG. 5E, a compass 5502 can be thrown from the message bubble location to the virtual character, adjusting the virtual character's current rightward direction to a leftward direction. As shown in (2) of FIG. 5E, the first virtual character 5505 continues to move leftward in the updated first video. This allows the first video element in the first video to flexibly change its direction under the influence of the second video element, thereby providing more diverse interactions between different video elements and enriching the interaction between the first video and messages.

[0090] (4) The first animation effect in the first animation of the first virtual character includes being displayed according to a first display manner, and the second animation includes an animation element used to instruct the adjustment of the display manner, that is, the second animation can be used to instruct the adjustment of the manner in which the first virtual character is displayed.

[0091] In some embodiments, the implementation manner of S404 includes updating the first video by changing the manner of displaying the first virtual character when the second video element acts on the first virtual character, for example, switching the manner of displaying the first virtual character from a first display manner to a second display manner, and the second video effect in the first video after updating the first virtual character is displayed according to the second display manner, where the second display manner is different from the first display manner.

[0092] In the first video, the first virtual character is displayed according to a first display method, which may be a default display method set by the first virtual character. For example, the first virtual character is displayed according to a default size and a default movement, and the default movement is, for example, one of the movements of the virtual character, such as running, climbing, walking, etc.

[0093] The second video element is an video element that instructs the user to adjust the display mode, for example, the second video element is a magnifying glass. When the second video element acts on the first virtual character, the display mode of the first virtual character can be changed from the first display mode to the second display mode, where the second display mode is a display mode different from the first display mode. After the display mode is changed, the first video is updated, and the first virtual character is displayed in the updated first video according to the second display mode.

[0094] Here, the display mode includes one of enlarged display, reduced display, display of a specific expression, and display of a specified action. The second display mode may be any one of the above display modes. If the second display mode is enlarged / reduced display, the first virtual character can be displayed in an enlarged / reduced manner in the updated first video, for example, the avatar of the first virtual character can be displayed in an enlarged manner. If the second display mode instructs display of a specific expression, the facial expression of the first virtual character can be changed to a specific expression, which can be a preset expression such as a wry smile or a crying expression. For example, the first virtual character's smiling expression can be changed to a laughing expression, thereby changing the display mode of the first virtual character. If the second display mode instructs display of a specified action, the body movement of the first virtual character can be changed to a specified action, which can be a specified action for the first virtual character, for example, a jump, a throw, a back kick, etc. The movement of the first virtual character may be obtained by capturing the movement of a real person, or may be generated based on movement configuration parameters, which may include movement width parameters, posture parameters, etc.

[0095] For example, refer to the schematic diagram of updating the first moving image shown in Fig. 5F. The social interface is an interaction interface for social interaction, and when a message 5601 sent by an interaction target includes the keyword "change expression," a crying expression 5602 can be thrown from the message bubble to the virtual character 5603, and when the expression 5602 hits the virtual character 5603, the smiling expression of the virtual character 5603 can be changed to a crying expression. As shown in (2) of Fig. 5F, the facial expression of the first virtual character 5604 in the updated first moving image is a crying expression.

[0096] In this way, the first video element in the first video can change the display method of the first video element in the first video under the action of the second video element, and based on the action of the second video element on the first video element, trigger a change in the display method of the first video element, thereby improving the utilization rate of hardware processing resources and hardware display resources, and increasing the excitement during the playback process of the first video through the change in display method.

[0097] In the video processing method provided by the embodiment of the present application, a first video can be triggered by a message containing target content and played on a social interface. During the playback of the first video, a second video can be triggered by a message containing important content (abbreviated as important message) and played on the social interface. Messages containing different content can be triggered so that different videos are simultaneously played on the same social interface, thereby enriching the video playback manner on the social interface. The second video can be rendered based on the display position of the important message obtained by the video rendering engine, realizing the effect of starting to display the second video element from the display position, improving the interactivity between the message and the video. When the first video element is a first virtual character, the first video of the first video element can have multiple first video effects, including progressing at a first speed, progressing along a first path, and progressing in a first direction. The first video effects include, but are not limited to, progressing according to a direction and being displayed according to a first display method, and these first video effects are video effects of different dimensions, and the second video element is used to instruct the adjustment of the first video effect of the first video element, and when the second video element acts on the first video element, it can change the video effect in the first video of the first video element, and based on the action of different second video elements, the dimension of change for the first video element also differs, thus enriching the interaction form with the first video, improving the fun and flexibility of video playback, and at the same time improving the utilization of device hardware processing resources and hardware display resources.

[0098] Referring to Figure 6, this is a process diagram of a video processing method provided by another exemplary embodiment of the present application. In practical application, this video processing method may be implemented by a terminal or a server independently, or may be implemented by a terminal and a server in cooperation with each other. This video processing method is executed by a terminal device (for example, the terminal device 101 in Figure 1), and for example, the viewing interface is a social interface, in which a client terminal with a social interaction function is running. This video processing method may include the following content:

[0099] S601: Play a first video on the social interface.

[0100] S602: During the playback of the first video, if a message containing important content appears on the social interface, play a second video related to the important content on the social interface.

[0101] The first video includes a first video element, the first video element including a first virtual character and a second virtual character, and a first video effect in the first video of the first video element including a first distance between the second virtual character and the first virtual character, and the second virtual character chasing the first virtual character. The first virtual character and the second virtual character are different virtual characters, and the first distance between the first virtual character and the second virtual character may be a linear or non-linear distance between different display positions of the two virtual characters in the social interface. For example, as shown in the schematic diagram of the first video in FIG. 5A above, the first video includes two virtual characters, and the two virtual characters are at different display positions in the social interface, with one virtual character chasing the other virtual character.

[0102] Based on the content contained in the first video element introduced above and the first video effect that the first video element has in the first video, when the second video element acts on the first video element, the implementation method for updating the first video may be as described in S603 to S604 below.

[0103] S603: When the second video element acts on the first virtual character or the second virtual character, the first video is changed by changing the distance between the first virtual character and the second virtual character.

[0104] The second animation element is an animation element used to adjust the distance between different virtual characters. Any of the virtual characters included in the first animation element (e.g., the first virtual character or the second virtual character) that can be affected by the second animation element can change the distance between the two virtual characters, for example, by changing the first distance to a second distance, thereby updating the first animation. The second animation effect in the first animation after updating the first animation element includes a second distance between the second virtual character and the first virtual character, and the second virtual character chasing the first virtual character. The second distance and the first distance are different distances, and the first distance may be greater than the second distance, or the first distance may be smaller than the second distance, depending on whether the distance adjustment direction indicated by the second animation element is increasing or decreasing.

[0105] 7A shows a schematic diagram of a second animation element interacting with a second virtual character. The social interface is a social interaction interface. As shown in (1) of FIG. 7A, the first animation element includes virtual character A and virtual character B. When the message 7101 sent by the interaction target is "Mushrooms growing fast," a mushroom element 7202 can be displayed. When the mushroom interacts with virtual character B, the first animation is updated. After the update, virtual character B presents a dizzying animation effect in the first animation, as shown in (2) of FIG. 7A.

[0106] In one embodiment, a change in the distance between two virtual characters can be achieved by adjusting one of the moving speed, moving direction, or moving path of one of the virtual characters. For example, if a second animation element acts on a first virtual character, accelerating the moving speed of the first virtual character while maintaining the moving speed of the second virtual character unchanged, the distance between the first and second virtual characters can be increased, and the second distance obtained after the distance change is greater than the first distance. Conversely, if the moving speed of the second virtual character is increased while maintaining the moving speed of the first virtual character unchanged, the distance between the first and second virtual characters can be decreased, and the second distance obtained after the distance change is less than the first distance.

[0107] In one embodiment, the second virtual character chases the first virtual character along a predetermined path, and the first and second virtual characters travel along the same path, and the first or second distance between the two virtual characters is a distance between different positions on the predetermined path of the virtual characters. A manner of determining the predetermined path may include: determining a path start position and a path end position in the social interface; generating one or more paths according to a path generation rule, where the path start positions and path end positions of the different paths are the same; and selecting one path from the one or more paths as the predetermined path.

[0108] For example, the path start position and the path end position are different positions on the social interface, and the path start position and the path end position can be set in advance. In some embodiments, the straight-line distance between the path start position and the path end position needs to be equal to or greater than a distance threshold. For example, after randomly selecting a point on the social interface as the path start position, another point on the social interface whose straight-line distance from the path start position is greater than the distance threshold can be randomly selected as the path end position. In some embodiments, one point can be randomly selected in the top region of the social interface as the path start position and one point can be randomly selected in the bottom region of the social interface as the path end position. One point can be randomly selected in the left region of the social interface as the path start position and one point can be randomly selected in the right region of the social interface as the path end position.

[0109] The path generation rule may instruct the path to be generated as a smooth curve, and each path generated according to the path generation rule is a smooth path. Based on the path generation rule, one or more paths can be generated between a path start position and a path end position. The distances or shapes of the different paths may vary. When multiple paths are generated between a path start position and a path end position based on the path generation rule, each path shares a path start position and a path end position. The preset path along which the second virtual character follows the first virtual character may be a path randomly selected from the generated paths. Providing multiple paths in this way can improve the flexibility of the paths used by the virtual characters and provide path reference and selectability for changing the path of any virtual character during the virtual character's pursuit. For example, the first and second paths introduced above may be selected from one or more generated paths. In one possible embodiment, the preset path is a smooth curve, and the degree of curvature of the curve is indicated by the curvature, with the greater the curvature, the greater the degree of curvature. The standard moving speed of the first virtual character can be related to the curvature of the preset path, and when the first virtual character moves to a corresponding position on the preset path, the standard moving speed can be determined depending on the corresponding curvature of the position, and the standard moving speed can increase as the curvature increases.

[0110] In one embodiment, the first virtual character carries a virtual resource package, and before stopping the playback of the first video, further includes: stopping the playback of the first video and displaying the virtual resource package on the social interface when the second virtual character catches up with the first virtual character along the preset path, or displaying the virtual resource package on the social interface when the first virtual character completes its journey along the preset path before the second virtual character, and stopping the playback of the first video after the second virtual character completes its journey along the preset path.

[0111] When the second virtual character catches up with the first virtual character along the predetermined path, the distance between the two virtual characters is zero or less than a distance threshold. At this time, the video of the two virtual characters chasing each other can be stopped, and the virtual resource package displayed on the social interface is the virtual resource package carried by the first virtual character, which can be enlarged and displayed on the social interface. Alternatively, the social interface can play a video of the virtual resource package being blown away, and the virtual resource package is not displayed on the social interface, and the first video can be stopped.

[0112] When the first virtual character completes its progression along the preset path before the second virtual character, the first virtual character can be hidden in the social interface and the virtual resource package can be displayed in the social interface; however, when the progression of the first virtual character is completed, the second virtual character is still chasing the first virtual character, i.e., the second virtual character does not complete its progression along the preset path, and the first video does not end; thus, the playback of the first video can be stopped after the second virtual character completes its progression along the preset path.

[0113] 7B shows a schematic diagram of a virtual resource package, in which the first moving image includes a first virtual character 7201 and a second virtual character 7202, and the first virtual character 7201 completes the progression along the preset path before the second virtual character 7202. The first virtual character 7201 gradually disappears from the social interface 7203, while the second virtual character 7202 continues to progress along the preset path. The social interface 7203 also displays a gift package 7204 (i.e., a virtual resource package containing virtual resources).

[0114] Here, virtual resources can be applied to the social interface, and in practical applications, the virtual resources can be virtual items, experience points, game peripherals, etc.

[0115] In another example, as shown in the schematic diagram of displaying a virtual resource package in Figure 7C, as shown in (1) in Figure 7C, the first video includes a first virtual character 7301 and a second virtual character 7302, and when the second virtual character 7301 tries to catch up with the first virtual character 7302 along a preset path, a virtual resource package 7303 can be displayed in the social interface, and the first virtual character accelerates out of the social interface, with the second virtual character following.

[0116] In one possible embodiment, the virtual resource package displayed on the social interface can be triggered within a preset display time. When the preset display time is reached, the virtual resource package can be hidden on the social interface, i.e., the display of the virtual resource package can be canceled, thereby not affecting the display of other content on the social interface. For example, when a first virtual character completes a preset path, the virtual resource package can be displayed, and the virtual resource package can disappear within 2.5 seconds. As shown in Figure 7D, if the first video element included in the first video does not exist in the social interface 7401 and only the virtual resource package 7402 is displayed, and the virtual resource package is not clicked within a predetermined time, it can disappear from the social interface 7401.

[0117] In some embodiments, the virtual resource package may further include the following contents (1) to (2) after being displayed in the social interface:

[0118] (1) In response to the display of the virtual resource package, prompt information (presentation information) is output.

[0119] When the virtual resource package is displayed on the social interface, the client terminal can automatically output prompt information, which is used to remind the user to receive the virtual resource package. The output manner of the prompt information includes one or more of a vibration manner, a voice manner, a text manner, and an image manner. When the output manner of the prompt information is a text manner or an image manner, the prompt information can be output on the social interface. When the output manner of the prompt information is a voice manner or a vibration manner, this kind of prompt can be considered a physical prompt, and the terminal device can vibrate or output a voice, thereby more emphasizing the prompt to receive the virtual resource package. The vibration of the terminal device can be a continuous vibration or a single vibration.

[0120] 7E, a virtual resource package 7502 is included in the social interface 7501, and a text prompt 7503, "You have an unclaimed gift package. Please claim it as soon as possible," is displayed on the social interface. The user can receive the virtual resource package by clicking the prompt 7503 or the virtual resource package 7502.

[0121] In one implementation method, the social interface is displayed on a client terminal, and the client terminal has a built-in video rendering engine, which is used to render videos. In response to the display of the virtual resource package, outputting prompt information includes receiving an event notification message sent from the video rendering engine, and responding to the event notification message to output prompt information.

[0122] The event notification message is sent when the video rendering engine obtains an event of a virtual resource package appearing in the first video during the process of rendering and displaying the first video. The event of a virtual resource package appearing in the first video refers to an event of displaying the virtual resource package on the social interface before stopping the playback of the first video. Since the virtual resource package is rendered by the video rendering engine and displayed on the social interaction interface, the video rendering engine can send an event notification message of the virtual resource package appearing. After receiving the event notification message, the client terminal can output prompt information in response to the event notification message, such as a vibration prompt generated after the client terminal performs a vibration action.

[0123] (2) When the virtual resource package is triggered, a resource receiving interface is displayed.

[0124] Any subject can initiate a resource receiving operation. For example, clicking on a virtual resource package displayed in the social interface can trigger the virtual resource package and display a resource receiving interface. The resource receiving interface is used to display the virtual resources and the virtual resource receiving result. The virtual resources include, but are not limited to, virtual items, virtual characters, game resources, real items associated with games, etc. The virtual resource receiving result indicates receiving a corresponding amount of virtual resources or not receiving any virtual resources. For example, refer to the schematic diagram of the resource receiving interface shown in FIG. 8A . As shown in (1) in FIG. 8A , the resource receiving interface 8101 displays the receiving result for the virtual resources in the virtual resource package, specifically, the received virtual pet 8102. As shown in (2) in FIG. 8A , the receiving result displayed in the resource receiving interface is text prompt information 8103, which reads, "I didn't win, but please come back next time."

[0125] As needs to be explained, in order to enhance the interactivity with the first video, the virtual resource package carried by the first virtual character also supports being triggered at any time during the playback process of the first video and displaying a resource receiving interface.

[0126] In one embodiment, the social interface is displayed in a client terminal, and the client terminal has an animation rendering engine and an interface view built in, the animation rendering engine is used to render animation, and the interface view is used to display the interface in the client terminal, and when a virtual resource package is triggered, displaying the resource receiving interface includes calling the animation rendering engine to obtain a trigger position for the virtual resource package and sending the trigger position to the interface view, and calling the interface view to render based on the trigger position and display the resource receiving interface.

[0127] The video rendering engine can render various videos displayed on the social interface, including but not limited to a first video, a second video, and a video of a displayed virtual resource. The interface view can be used to display the social interface on the client terminal, and the interface view can be, for example, an interaction view, an interaction interface that can display social interactions. The client terminal can call the video rendering engine to obtain a trigger position for the virtual resource package, for example, click on the position of the virtual resource package, and then send the trigger position to the interface view. The interface view can display a resource receiving interface based on the trigger position. The resource receiving interface can be a new interface independent of the social interface or a floating window in the social interface. As can be seen from the above, triggering the virtual resource package to display the resource receiving interface is realized by the interface view (e.g., the interaction view), and the trigger position for the virtual resource package is notified to the interface view by the animation rendering engine and responded to by the interface view. The allocation between the animation rendering engine and the interface view is clear, and the display coupling between the interface and the animation is low, so that it can be flexibly set and adjusted.

[0128] In one embodiment, the social interface includes an interaction interface for social interaction, and during the social interaction, the social interaction includes multiple interaction targets, and the multiple interaction targets are divided into a first game camp and a second game camp, and a message containing important content is issued by at least one interaction target, the first game camp corresponds to a first virtual character, and the second game camp corresponds to a second virtual character.

[0129] The social interaction includes at least two interaction targets. If the social interaction is a single interaction, the social interaction includes two interaction targets. If the social interaction is a group interaction, the social interaction includes two or more interaction targets. The interaction interface of the social interaction can display an interaction message sent from any interaction target in the social interaction. The multiple interaction targets can be divided into different game camps, where the first game camp may include at least one interaction target, and the second game camp may include at least one interaction target. For example, the social interaction may include 10 interaction targets, and each of the two game camps may include 5 interaction targets. Different game factions can correspond to different virtual characters, and a first virtual character can represent the first game faction, and a second virtual character can represent the second game faction. Any one message containing important content present in the social interface can be sent by an interaction target in the first game faction or by an interaction target in the second game faction, and an interaction target in either game faction can send a message containing important content in the social interface, and a second video element in the second video associated with the important content can act on the first virtual character or the second virtual character and further change the distance between the first virtual character and the second virtual character. The social interface may include a message containing important content sent from an interaction target in the first game faction and a message containing important content sent from an interaction target in the first game faction.As needs to be explained, messages containing significant content in a sequence of social interactions can trigger different videos, thereby increasing interactivity.

[0130] In one method, if the second virtual character catches up with the first virtual character on the predetermined path, a notification is output that the second game camp has won; if the first virtual character completes the predetermined path before the second virtual character, a notification is output that the first game camp has won.

[0131] In some embodiments, if the second virtual character catches up with the first virtual character along the predetermined path, it means that the distance between the second virtual character and the first virtual character is zero or less than a predetermined threshold, and the second virtual character can represent the second game camp, and therefore a notification can be output that the second game camp has won. For the same reason, if the first virtual character completes its progress along the predetermined path before the second virtual character, it is interpreted as the second virtual character not catching up with the first virtual character, and the first game camp can be considered to have won, and a notification can be output that the first game camp has won. Here, the notification that one of the game camps has won can be output in a manner including, but not limited to, text, audio, images, vibration, etc. As can be understood, if the social interaction is a single interaction, the first game camp includes a first interaction target, the second game camp includes a second interaction target, and the finally output game camp victory notification is a notification that one of the interaction targets has won. In one possible manner, a victory notification can be output on the interaction interface of the interaction target of the winning game camp, and a failure notification can be output on the interaction interface of the interaction target of the unsuccessful game camp. In another manner, a victory notification of either game camp can be output on the interaction interface of each interaction target of the social interaction, without distinguishing which game camp the interaction target belongs to.

[0132] 8B, a notification that the second game team has won is output, the social interaction is a group interaction, the social interface is a social interaction interface, the game team E formed by the interaction targets U1, U2, and U3 has won, and a text prompt 8202 saying "Congratulations to the game team E on the victory" can be output in the interaction interface 8201 of any of the interaction targets, and a virtual resource package 8203 can be displayed, and an animation effect of fireworks exploding can be further played in the interaction interface.

[0133] As can be seen from the above, the first video effect that the first video element has in the first video can change under a message containing important content sent from the interaction target, and the first video can be interacted with through the interaction message sent from the interaction target, thereby adding fun to social interactions when playing games in a chasing or competitive style between virtual characters.

[0134] In some embodiments, each interaction target of the winning game faction may receive virtual resources in the virtual resource package. For example, the virtual resource package may be displayed on the side of each interaction target of the social interaction, but only be valid for the winning interaction target, or the virtual resource package may be displayed only on the side of each interaction target of the winning game faction, but not on the side of each interaction target of the non-winning game faction. Based on displaying the virtual resource package, the content may further include the following: allocating virtual resources in the virtual resource package to each interaction target of the winning game faction. For example, the winning game faction may be the first game faction or the second game faction, and the virtual resource package may be the virtual resource package carried by the first virtual character. The virtual resources in the virtual resource package may be randomly assigned by the operator of the first video, negotiated by the two game factions, or set by either game faction. This application does not limit this. The virtual resources include any one of virtual items, virtual costumes, and virtual game resources, such as crutches, bicycles, and books, virtual costumes, virtual clothes, virtual pants, and virtual wings, and virtual game resources can be used to exchange items, costumes, and the like in the game.

[0135] The virtual resources in the virtual resource package may be distributed evenly among the interaction targets in the winning game camp, or may be allocated according to the contributions made by the interaction targets in the winning game camp to the victory (for example, the frequency of sending messages containing important content, the total gains accumulated for the virtual characters, etc.), and the greater the contribution, the more virtual resources are allocated to the interaction target; furthermore, the virtual resources may be allocated randomly to each interaction target. In one manner, the virtual resources allocated to each interaction target may be automatically transferred to the interaction target's account, or may be transferred to the interaction target's account after the interaction target voluntarily receives and confirms the virtual resources.

[0136] In one embodiment, the first video element includes a first virtual character and a second virtual character, and the first video effect in the first video of the first video element includes a first distance between the second virtual character and the first virtual character, and the second virtual character is based on chasing the first virtual character along a predetermined path, and may further include the content introduced in S604 below.

[0137] S604: During the playback of the first video, if a message containing important content does not appear in the social interface, update the first distance.

[0138] If a message containing important content does not appear in the social interface, the second video is not played in the social interface, so that other video elements do not interfere with the playback of the first video, making the first video more vivid and interesting. The first distance between the first virtual character and the second virtual character may be updated according to a preset update rule. The first virtual character and the second virtual character each have a moving speed, and the moving speed of the first virtual character may be determined by a preset curvature of a path, and the moving speed of the second virtual character is determined by the first distance. For example, when the distance between the two virtual characters exceeds a distance threshold, the moving speed of the second virtual character is accelerated, and thus the moving speed of the second virtual character is updated according to the update of the first distance.

[0139] In one approach, the preset update rule includes: setting the first distance to a value within a specified distance interval for each preset time interval during a first leg of the preset route; and randomly setting the target distance to zero or to a value within the specified distance interval according to a probability during each preset time interval during a second leg of the preset route.

[0140] The first stroke stage may be a predetermined path length of the predetermined path. For example, the first stroke stage may be the first 3 / 4 of the stroke of the predetermined path. The predetermined time length may be, for example, 0.2 seconds and 1 second. The specified distance interval includes an upper distance limit and a lower distance limit. The specified distance interval is related to the stroke of the predetermined path. For example, if the stroke of the predetermined path is x, the specified distance interval may be [0.02x, 0.1x]. If x is 10, the endpoints are 0.2 and 1, respectively. The first distance may be set to a specific value at each predetermined time interval, and the set value is the distance applied after the next predetermined time interval. For example, a value in [0.2, 1] may be taken every 0.2 seconds, which is the distance between the first and second virtual characters after 0.2 seconds. For example, a value set at 1.2 seconds is the distance between the two virtual characters at 1.4 seconds. With this setting, during the first leg, the second virtual character and the first virtual character always maintain a predetermined distance, and the first virtual character does not catch up with the second virtual character. During the remaining leg of the preset path (i.e., the second leg), the setting for the first distance can be selected from a specified distance interval or can be set directly to zero, with these two values ​​having corresponding probabilities. For example, every 0.2 seconds, there is a 50% probability that the first distance will be set to zero, and a 50% probability that it will take a random value in [0.2, 1]. Thus, during the final leg, there is a 50% probability that the second virtual character will catch up with the first virtual character.

[0141] In one method, when the first video is not interfered with by other video elements, if the second virtual character catches up with the first virtual character during the automatic execution of the first video, the video related to the first virtual character and the virtual resource package it is carrying (for example, a video of the first virtual character being blown away) can be executed, and the playback of the first video can be stopped; if the second virtual character does not catch up with the first virtual character, a video of the first virtual character placing the virtual resource package can be played and the second virtual character can be hidden from the social interface; at the same time, the second virtual character can accelerate and progress along a predetermined path, and finally disappear from the video in the social interface, and the playback of the first video can be stopped.

[0142] By updating the first distance between the two virtual characters according to the above-mentioned preset update rule, in the initial stage (i.e., the first stage), the speed at which the second virtual character chases the first virtual character can be controlled within a predetermined range, and in the later stage (i.e., the second stage), the second virtual character can be randomly set to catch up with the first virtual character or not catch up with the first virtual character according to probability. Due to this randomness, the execution result of the first video is not fixed but flexible and changing, making it more interesting.

[0143] Next, a related discussion will be given for the video processing device provided by the embodiment of the present application.

[0144] 9, which is a structural schematic diagram of a video processing device provided by an exemplary embodiment of the present application. The video processing device may be a computer program (including program code) operated by a computer device (e.g., a terminal device in the video processing system shown in FIG. 1). For example, the video processing device may be an application software, and the video processing device may be used to perform corresponding steps in the video processing method provided by the embodiment of the present application. As shown in FIG. 9, the video processing device 900 includes a playback module 901, an update module 902, a display module 903, an acquisition module 904, an output module 905, an allocation module 906, and a transmission / reception module 907.

[0145] The playback module 901 is configured to play a first video on the social interface, the first video including a first video element, and the first video element including a first video effect; The playback module 901 is configured to play a second video related to the important content in the social interface if a message including the important content appears in the social interface during the playback of the first video, the second video including a second video element; The update module 902 is configured to update the first animation when the second animation element acts on the first animation element, such that the first animation element has the second animation effect in the updated first animation.

[0146] In one embodiment, the display module 903 is configured to display a social interface, and the playback module 901 is configured to play a first video related to the target content in the social interface when a message including the target content is present in the social interface, wherein the target content includes at least one of an identifier of the first video, an identifier of a first video element included in the first video, an identifier of a source game of the first video, and content associated with the first video, and the display format of the target content in the message including the target content includes at least one of text, expression, image, and audio.

[0147] In one embodiment, the important content includes at least one of an identifier of the second video, an identifier of the second video element included in the second video, an identifier of the source game of the second video, and content associated with the second video, and the display format of the message including the important content of the important content includes at least one of text, expression, image, and audio, and the second video element acting on the first video element includes any one of the following: the display position of the second video element overlaps with the display position of the first video element; the distance between the display position of the second video element and the display position of the first video element is smaller than a predetermined distance threshold; the moving direction of the second video element is toward the first video element; and the moving direction of the second video element is toward the first video element and the distance between the display position of the second video element and the display position of the first video element is smaller than a predetermined distance threshold.

[0148] In one embodiment, the first animation element includes a first virtual character, a first animation effect in the first animation of the first virtual character includes progressing according to a first speed, and the second animation element includes an animation element used to instruct to adjust the speed, and the update module 902 is configured to update the first animation by changing the progressing speed of the first virtual character according to the instruction of the second animation element when the second animation element acts on the first virtual character, and the second animation effect in the first animation after the update of the first virtual character includes progressing according to a second speed, where if the second animation element instructs to accelerate, the second speed is greater than the first speed, and if the first animation element instructs to decelerate, the second speed is less than the first speed.

[0149] In one embodiment, the first animation element includes a first virtual character, a first animation effect in the first animation of the first virtual character includes progressing along a first path, and the second animation element includes an animation element used to instruct to adjust the path, and the update module 902 is configured to update the first animation by changing the progression path of the first virtual character according to the instruction of the second animation element when the second animation element acts on the first virtual character, and a second animation effect in the updated first animation of the first virtual character includes progressing along a second path, and the first path is different from the second path.

[0150] In one embodiment, the first animation element includes a first virtual character, a first animation effect in the first animation of the first virtual character includes progressing according to a first direction, and the second animation element includes an animation element used to instruct to adjust the direction, and the update module 902 is configured to update the first animation by changing the direction of progression of the first virtual character according to the instruction of the second animation element when the second animation element acts on the first virtual character, and the second animation effect in the first animation after the update of the first virtual character includes progressing according to a second direction, and the first direction and the second direction are different.

[0151] In one embodiment, the first animation element includes a first virtual character, and a first animation effect in the first animation of the first virtual character is displayed according to a first display manner, and the second animation includes an animation element used to instruct adjusting the display manner, and the update module 902 is configured to update the first animation by changing the manner in which the first virtual character is displayed when the second animation element acts on the first virtual character, and a second animation effect in the first animation after the update of the first virtual character is displayed according to a second display manner, the first display manner and the second display manner being different, and wherein the display manner includes any one of enlarged display, reduced display, display in a specific expression, and display of a specified action.

[0152] In one embodiment, the acquisition module 904 is configured to acquire a display position in the social interface of a message including important content, the playback module 901 is configured to play a second video related to the important content, and the display position in the social interface of the message including important content is the starting display position of a second video element in the second video.

[0153] In one embodiment, the first animation element includes a first virtual character and a second virtual character, a first animation effect in the first animation of the first animation element includes a first distance between the second virtual character and the first virtual character and the second virtual character chasing the first virtual character, the update module 902 is configured to update the first animation by changing the distance between the first virtual character and the second virtual character when the second animation element acts on the first virtual character or the second virtual character, and a second animation effect in the first animation after the update of the first animation element includes a second distance between the second virtual character and the first virtual character and the second virtual character chasing the first virtual character.

[0154] In one embodiment, the second virtual character chases the first virtual character along a preset path, and the first virtual character carries a virtual resource package, and the display module 903 is configured to stop playing the first video when the second virtual character catches up with the first virtual character along the preset path and display the virtual resource package on the social interface, or to display the virtual resource package on the social interface when the first virtual character completes its journey along the preset path before the second virtual character, and to stop playing the first video after the second virtual character completes its journey along the preset path.

[0155] In one embodiment, the social interface includes an interaction interface for social interaction, wherein during the social interaction, the social interaction includes a plurality of interaction targets, and the plurality of interaction targets are divided into a first game camp and a second game camp, a message including important content is issued by at least one interaction target, the first game camp corresponds to a first virtual character, and the second game camp corresponds to a second virtual character, and the output module 905 is configured to output a notification that if the second virtual character catches up with the first virtual character on the preset path, the second game camp wins, and if the first virtual character completes its progress on the preset path before the second virtual character, output a notification that the first game camp wins.

[0156] In one embodiment, the allocation module 906 is configured to allocate virtual resources in the virtual resource package to each interaction target in the winning game camp, where the virtual resources include one of a virtual item, a virtual costume, and a virtual game resource.

[0157] In one embodiment, the output module 905 is configured to output prompt information in response to the display of the virtual resource package, the prompt information is used to remind the user to receive the virtual resource package, and the display module 903 is configured to display a resource receiving interface when the virtual resource package is triggered.

[0158] In one embodiment, the social interface is displayed on a client terminal, and the client terminal has a built-in video rendering engine, which is used to render videos. The transceiver module 907 is configured to receive an event notification message sent from the video rendering engine. The event notification message is sent when the video rendering engine obtains an event in which a virtual resource package appears in the first video during the process of rendering and displaying the first video. The output module 905 is configured to respond to the event notification message and output prompt information, where the output method of the prompt information includes one or more of a vibration method, an audio method, a text method, and an image method.

[0159] In one embodiment, the social interface is displayed in a client terminal, in which an animation rendering engine and an interface view are built-in, the animation rendering engine is used to render animation, and the interface view is used to display the interface in the client terminal, the sending and receiving module 907 is configured to call the animation rendering engine to obtain a trigger position for the virtual resource package and send the trigger position to the interface view, and the display module 903 is configured to call the interface view to render based on the trigger position and display the resource receiving interface.

[0160] In one embodiment, the client terminal has a built-in video rendering engine, the sending and receiving module 907 is configured to send the display position of the message containing the important content in the social interface to the video rendering engine, and the playback module 901 is configured to call the video rendering engine to play the second video, and in the process of playing the second video, render the second video element with the display position of the message containing the important content in the social interface as the starting display position.

[0161] In one embodiment, the second virtual character chases the first virtual character along a preset route, and a method for determining the preset route includes: determining a route start position and a route end position in a social interface; generating one or more routes according to a route generation rule, where the route start positions and route end positions of different routes are all the same; and selecting one route from the one or more routes as the preset route.

[0162] In one embodiment, the first animation element includes a first virtual character and a second virtual character, a first animation effect in the first animation element has a first distance between the second virtual character and the first virtual character, and the second virtual character includes chasing the first virtual character along a predetermined path, and the update module 902 is further configured to update the first distance according to a predetermined update rule if a message including important content does not appear on the social interface during the playback of the first animation, wherein the moving speed of the second virtual character is updated as the first distance is updated, and the predetermined update rule includes: setting the first distance to a value within a specified distance interval at a predetermined time interval during a first journey stage of the predetermined path; and setting the target distance to zero randomly or to a value within the specified distance interval according to a probability at a predetermined time interval during a second journey stage of the predetermined path.

[0163] As can be understood, the functions of each functional module of the video processing device described in the embodiments of the present application can be realized according to the methods in the above method embodiments, and the realization process can be referred to the related descriptions of the above method embodiments, and will not be described again here, nor will the beneficial effects of adopting the same methods be described again.

[0164] Next, a related discussion will be given for the computer device provided by the embodiment of the present application.

[0165] In one embodiment, the computer device may be a terminal device in the video processing system shown in FIG. 1. Referring to FIG. 10, FIG. 10 is a structural schematic diagram of a computer device provided by one exemplary embodiment of the present application. As shown in FIG. 10, the computer device 1000 may specifically include an input device 1001, an output device 1002, a processor 1003, a memory 1004, a network port 1005, and at least one communication bus 1006. Here, the processor 1003 may be a central processing unit (CPU). The processor may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), etc. The PLD may be a field-programmable gate array (FPGA), a generic array logic (GAL), etc.

[0166] The memory 1004 may include volatile memory, such as random-access memory (RAM), or non-volatile memory, such as flash memory and solid-state drive (SSD). The memory 1004 may be a high-speed RAM memory or a non-volatile memory, such as at least one magnetic disk memory. The memory 1004 may optionally further include at least one storage device located remotely from the processor 1003. The memory 1004 may also include a combination of the above types of memory. As shown in FIG. 10 , the memory 1004, which serves as a computer-readable storage medium, may include an operating system, a network communication module, a port module, and a device control application program.

[0167] The network port 1005 may include a standard wired port and a wireless port (e.g., a Wi-Fi port), and the network port can be used as a communication interface to provide data communication functions. The communication bus 1006 serves to connect each communication element. The input device 1001 receives commands input by an object, and generates signal inputs related to object settings and function control of the computer device. In one embodiment, the input device 1001 is one or more of a touch panel, a physical keyboard, a virtual keyboard, function keys, a mouse, etc. The output device 1002 includes, but is not limited to, a variety of types. The output device 1002 is configured to output data information. In the present embodiment, the output device 1002 may be configured to display a social interface, play videos, output prompts, etc. The output device 1002 may include a display screen or other display devices. The processor 1003 is the control center of the computer device, and connects each part of the entire computer device through various ports and lines, and performs various functions by calling and running computer programs stored in the memory 1004.

[0168] Here, the processor 1003 is configured to execute the following operations by calling a computer program in the memory 1004: playing a first video in a social interface via the output device 1002, the first video including a first video element, the first video element having a first video effect in the first video, and if a message including important content appears in the social interface during the playing of the first video, playing a second video related to the important content in the social interface, the second video including a second video element, the second video element updating the first video when acting on the first video element, and the first video element having a second video effect in the updated first video.

[0169] It should be understood that the computer device 1000 described in the embodiments of the present application may implement the description of the video processing method in the embodiment corresponding to the preceding paragraph, and may implement the description of the video processing device 900 in the embodiment corresponding to Figure 9 in the preceding paragraph, and will not be described again here, nor will the description of the beneficial effects obtained by employing the same method be described again.

[0170] It should also be noted that one exemplary embodiment of the present application further provides a storage medium, in which a computer program for the above-mentioned video processing method is stored, the computer program including program instructions, which can be loaded and executed by one or more processors to realize the description of the video processing method in the embodiment, and will not be described again here, nor will the description of the beneficial effects of the same method be described again here. As can be understood, the program instructions can be deployed and executed on one or more computer devices that can communicate with each other.

[0171] The computer-readable storage medium may be an internal storage unit of the video processing device provided in any of the above embodiments or the computer device, such as a hard disk or internal memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, or a flash card installed on the computer device. Furthermore, the computer-readable storage medium may include not only the internal storage unit of the computer device but also an external storage device. The computer-readable storage medium is used to store the computer program, other programs and data required by the computer device, and / or temporarily store data that has already been output or is to be output.

[0172] The present embodiment provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium, and a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method provided in the present embodiment.

[0173] The steps in the method of the present embodiment can be reordered, merged, or deleted according to actual needs, and the modules in the apparatus of the present embodiment can be merged, divided, or deleted according to actual needs.

[0174] The above are only some examples of the present application, and of course, they cannot limit the scope of the present application. As can be understood by those skilled in the art, equivalent modifications that realize all or part of the flow of the above examples and rely on the claims of the present application still fall within the scope of the invention. [Explanation of symbols]

[0175] 101 Terminal Equipment 102 Server 301 Social Interface 900 Video Processing Device 901 Playback Module 902 Update Module 903 Display Module 904 Acquisition Module 905 Output Module 906 Module 907 Transmitting and Receiving Module 1000 Computer Equipment 1001 Input Device 1002 Output Devices 1003 processor 1004 memory 1005 network port 1006 Communication Bus 3201 Message 3202 slippers 3203 First video element 3301 View Interface 3303 Slippers 3304 Accelerated Video Effect 5101 Social Interface 5102 Message 5103 Virtual Game Characters 5104 Virtual Character 5201 Message 5202 Mushroom 5202 elements 5301 Message 5302 Acceleration Shoes 5304 Video Effects 5401 Messages 5402 Map 5403 Virtual Character 5404 Progression Path 5405 Route 5501 Messages 5502 Compass 5503 Virtual Character 5505 First Virtual Character 5601 Messages 5602 Facial expression 5603 Virtual Character 5604 First Virtual Character 7101 Message 7201 First Virtual Character 7202 Mushroom element 7202 Second Virtual Character 7203 Social Interface 7204 Gift Package 7301 First Virtual Character 7301 Second Virtual Character 7302 Second Virtual Character 7302 First Virtual Character 7303 Virtual Resource Package 7401 Social Interface 7402 Virtual Resource Package 7501 Social Interface 7502 Virtual Resource Package 7503 Text Prompt 7503 Prompt Information 8101 Interface 8102 Virtual Pet 8103 Text prompt information 8201 Interaction Interface 8202 Text Prompt 8203 Virtual Resource Package

Claims

1. 1. A video processing method, the method being performed by a computer device, the method comprising: playing a first video in a view interface, the first video including a first video element, the first video element having a first video effect in the first video; During the playback of the first video, if a message including important content appears in the view interface, playing a second video related to the important content in the view interface, the second video including a second video element; and updating the first animation when the second animation element acts on the first animation element, the first animation element having a second animation effect in the updated first animation.

2. The step of playing the first moving image in the viewing interface includes: When a message including the target content appears in the viewing interface, playing a first video related to the target content in the viewing interface; The method of claim 1 , wherein the targeted content includes at least one of an identifier for the first video, an identifier for an element of the first video, an identifier for a source of the first video, and content associated with the first video.

3. The method further comprises: a display position of the second moving image element and a display position of the first moving image element at least partially overlap with each other; a distance between a display position of the second moving image element and a display position of the first moving image element is smaller than a preset distance threshold; a moving direction of the second moving image element toward the first moving image element; 2. The method of claim 1, comprising a step of determining that the second animation element acts on the first animation element when at least one of the following conditions is satisfied: the direction of travel of the second animation element is toward the first animation element; and the distance between the display position of the second animation element and the display position of the first animation element is smaller than a preset distance threshold.

4. the first animation element includes a first virtual character, and a first animation effect in the first animation of the first virtual character progresses according to a first speed, and the second animation element is used to instruct adjusting the progress speed of the first virtual character; updating the first animation element when the second animation element acts on the first animation element; updating the first animation by changing a moving speed of the first virtual character in response to an instruction from the second animation element when the second animation element acts on the first virtual character; a second video effect in the updated first video of the first virtual character progresses at a second speed; 4. The method of claim 1, wherein if the second animation element indicates acceleration, the second speed is greater than the first speed, and if the first animation element indicates deceleration, the second speed is less than the first speed.

5. the first animation element includes a first virtual character, a first animation effect in the first animation of the first virtual character includes moving along a first path, and the second animation element is used to instruct the first virtual character to adjust the moving path; updating the first animation element when the second animation element acts on the first animation element; updating the first animation by changing a path of travel of the first virtual character in response to an instruction from the second animation element when the second animation element acts on the first virtual character; The method of any one of claims 1 to 3, wherein a second animation effect in the first animation after updating the first virtual character includes progressing along a second path, and the first path is different from the second path.

6. the first animation element includes a first virtual character, a first animation effect in the first animation of the first virtual character progresses according to a first direction, and the second animation element is used to instruct adjusting the moving direction of the first virtual character; updating the first animation element when the second animation element acts on the first animation element; updating the first animation by changing a direction of travel of the first virtual character in accordance with an instruction from the second animation element when the second animation element acts on the first virtual character; The method according to any one of claims 1 to 3, wherein a second video effect in the first video after updating the first virtual character includes progressing according to a second direction, and the first direction is different from the second direction.

7. The first animation element includes a first virtual character, and a first animation effect in the first animation of the first virtual character is displayed according to a first display manner, and the second animation is used to instruct adjusting a manner of displaying the first virtual character; updating the first animation element when the second animation element acts on the first animation element; updating the first animation by changing the manner in which the first virtual character is displayed when the second animation element acts on the first virtual character; a second video effect in the updated first video of the first virtual character is displayed according to a second display method, and the first display method is different from the second display method; The method according to any one of claims 1 to 3, wherein the display method includes any one of enlarged display, reduced display, display in a specific representation, and display of a specified action.

8. The step of playing a second video related to the important content in the viewing interface includes: obtaining a display position in the view interface of a message containing the important content; 2. The method of claim 1, further comprising: playing a second video related to the important content; and wherein the display position in the view interface of the message containing the important content is set to the starting display position of a second video element in the second video.

9. The first animation element includes a first virtual character and a second virtual character, a first animation effect in the first animation of the first animation element includes a first distance between the second virtual character and the first virtual character and the second virtual character chasing the first virtual character, and the step of updating the first animation when the second animation element acts on the first animation element includes: updating the first animation by changing a distance between the first virtual character and the second virtual character when the second animation element acts on the first virtual character or the second virtual character; 2. The method of claim 1, wherein a second animation effect in the first animation after updating the first animation element includes a second distance between the second virtual character and the first virtual character, and the second virtual character chasing the first virtual character.

10. The second virtual character chases the first virtual character along a predetermined path, the first virtual character carrying a virtual resource package, and the method further comprises: stopping the playback of the first video and displaying the virtual resource package in the viewing interface when the second virtual character catches up with the first virtual character along the preset path; or 10. The method of claim 9, comprising displaying the virtual resource package in the view interface when the first virtual character completes progression along the preset path before the second virtual character, and stopping playback of the first video after the second virtual character completes progression along the preset path.

11. The view interface includes an interaction interface for social interaction, and during the social interaction, the interaction objects include a plurality of interaction objects, and the plurality of interaction objects are divided into a first game camp and a second game camp, and the message containing important content is issued by at least one interaction object, and the first game camp corresponds to the first virtual character, and the second game camp corresponds to the second virtual character, and the method further includes: outputting a notification that a second game camp has won if the second virtual character catches up with the first virtual character on the predetermined path; and outputting a victory notification for the first game faction if the first virtual character completes progression along the preset path before the second virtual character.

12. The method further comprises:

12. The method of claim 11, comprising allocating virtual resources in the virtual resource package to each interaction target in the winning game faction, the virtual resources including at least one of a virtual item, a virtual costume, and a virtual game resource.

13. The method further comprises: outputting prompt information in response to displaying the virtual resource package, the prompt information being used to remind the user to receive the virtual resource package; and displaying a resource receiving interface when the virtual resource package is triggered.

14. The view interface is displayed on a client terminal, and the client terminal has a built-in video rendering engine, which is used to render video. The step of outputting prompt information in response to the display of the virtual resource package includes: receiving an event notification message sent from the video rendering engine, the event notification message being sent when the video rendering engine acquires a virtual resource package appearance event in the first video during the process of rendering and displaying the first video; and outputting prompt information in response to the event notification message; The method of claim 13 , wherein the prompt information is output in one or more of the following ways: vibration, voice, text, and image.

15. The view interface is displayed in a client terminal, and the client terminal has a built-in video rendering engine and an interface view, the video rendering engine is used to render video, and the interface view is used to display an interface in the client terminal, and when the virtual resource package is triggered, the step of displaying a resource receiving interface includes: calling the animation rendering engine to obtain a trigger position for the virtual resource package and sending the trigger position to the interface view; and invoking the interface view to render and display a resource receiving interface based on the trigger location.

16. The client terminal has a built-in video rendering engine, and the step of playing a second video related to the important content includes: sending a display position in the view interface of the message containing the important content to the video rendering engine; 9. The method of claim 8, further comprising: invoking the video rendering engine to play the second video; and, in the process of playing the second video, rendering the second video element with a starting display position in the view interface of the message containing the important content.

17. The second virtual character chases the first virtual character along a predetermined path, and a method of determining the predetermined path is determining a path start position and a path end position in the view interface; generating at least one route based on the route start position and the route end position, wherein the route start position and the route end position of each of the different routes are the same; and selecting a route from the at least one route as the preset route.

18. the first animation element includes a first virtual character and a second virtual character, a first animation effect in the first animation of the first animation element includes a first distance between the second virtual character and the first virtual character, and the second virtual character chasing the first virtual character along a predetermined path, the method further comprising: During the playback of the first video, if a message containing important content does not appear in the viewing interface, updating the first distance; The method of claim 1 , further comprising: updating a traveling speed of the second virtual character as the first distance is updated.

19. A video processing device, comprising: a playback module; and an update module; the playback module is configured to play a first video in a view interface, the first video including a first video element, the first video element having a first video effect in the first video; The playback module is further configured to, during the playback of the first video, if a message including important content appears in the view interface, play a second video related to the important content in the view interface, the second video including a second video element; The video processing device, wherein the update module is configured to update the first video when the second video element acts on the first video element, and the first video element has a second video effect in the updated first video.

20. A computer device, the computer device comprising: a processor adapted to execute a computer program; a computer-readable storage medium having a computer program stored therein, the computer program performing the video processing method of any one of claims 1 to 18 when executed by the processor.

21. A computer-readable storage medium having a computer program stored therein, the computer program performing the video processing method according to any one of claims 1 to 18 when executed by a processor.

22. A computer program product, the computer program product comprising a computer program or computer instructions, the computer program or the computer instructions, when executed by a processor, performing the video processing method according to any one of claims 1 to 18.

Citation Information

Patent Citations

  • Interaction method and device, equipment and storage medium

    CN111541908A

  • Image processing method and device and computer readable storage medium

    CN115373577A

  • Method for sending multi-media messages using emoticons

    US6990452B1