Message preview method, apparatus, electronic device, and computer program in a virtual social scene

The message preview method in the virtual social scene enhances efficiency by allowing direct preview of unread messages on the scene page, reducing interaction steps and optimizing resource utilization.

JP2025516270APending Publication Date: 2025-05-27TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2024564588
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-09-14
Filing Date
2023-08-14
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

Existing virtual social scene technologies require multiple page transitions to check messages from multiple avatars, leading to low efficiency in human-computer interaction and resource utilization.

Method used

A message preview method and apparatus that allows users to preview the content of unread messages directly on the virtual social scene page by performing a message preview operation on a message prompt control, without transitioning to a chat details page.

Benefits of technology

Improves message checking efficiency and reduces human-computer interaction steps, while optimizing the utilization of hardware processing and display resources by eliminating the need for extra display resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2025516270000001_ABST
    Figure 2025516270000001_ABST
Patent Text Reader

Abstract

This application provides a message preview method, apparatus, device, and storage medium in a virtual social scene. The message preview method in the virtual social scene includes: displaying at least two avatars on a page of the virtual social scene, where the avatars can move within the virtual social scene, and by moving within the virtual social scene, the avatars can change their relative positional relationship with other avatars; when receiving a message sent by a target avatar among the at least two avatars, displaying a message prompt control in the virtual social scene to indicate the existence of unread messages; and in response to a message preview operation on the message prompt control, switching the display of the message prompt control to display the content of the unread message.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] (Cross - reference to related applications) The embodiments of this application are filed based on a Chinese patent application with an application number of 202211113944.0 and an application date of September 14, 2022, claim the priority of the Chinese patent application, and all the contents of the Chinese patent application are incorporated into the embodiments of this application by reference.

[0002] This application relates to the fields of computer technology and human - computer interaction technology. In particular, it relates to a message preview method, apparatus, electronic device, computer - readable storage medium, and computer program product in a virtual social scene.

Background Art

[0003] With the development of computer technology, electronic devices can realize a richer and more vivid virtual social scene. Users can chat in the virtual social scene based on their own avatars and the avatars of other users.

[0004] In related technologies, when a user receives a message sent by another avatar, an unread message is presented. To check the content of the unread message, the user needs to click on the unread message item to perform a page transition to the chat details page. Therefore, the efficiency of human - computer interaction is low. To check messages sent by multiple avatars, multiple page transitions are required, so the efficiency of human - computer interaction is further reduced.

Summary of the Invention

[0005] Embodiments of the present application provide a message preview method, apparatus, electronic device, computer-readable storage medium, and computer program product in a virtual social scene, which can improve the efficiency of human-computer interaction, the utilization rate of hardware processing resources and display resources of the device.

[0006] The technical solution of the embodiments of the present application is realized as follows.

[0007] Embodiments of the present application provide a message preview method in a virtual social scene executed by an electronic device. The method includes: displaying at least two avatars on a page of the virtual social scene, where the avatars can move within the virtual social scene, and by moving within the virtual social scene, the avatars can change their relative positional relationship with other avatars; when receiving a message sent by a target avatar among the at least two avatars, displaying a message prompt control in the virtual social scene to indicate the existence of unread messages; responding to a message preview operation on the message prompt control, and switching the display of the message prompt control to the display of the content of the unread message.

[0008] Embodiments of the present application further provide a message preview apparatus in a virtual social scene. The apparatus includes a first display module, a second display module, and a switching module. The first display module is configured to display at least two avatars on a page of the virtual social scene. The avatars can move within the virtual social scene, and by moving within the virtual social scene, the avatars can change their relative positional relationship with other avatars. When the second display module receives a message sent by a target avatar among the at least two avatars, it is configured to display a message presentation control for indicating the existence of an unread message in the virtual social scene. The switching module is configured to switch the display of the message presentation control to the display of the content of the unread message in response to a message preview operation on the message presentation control.

[0009] In the above solution, the switching module further includes that the message preview operation is a pressing operation on the message presentation control. When the pressing operation satisfies the message preview condition, the display of the message presentation control is canceled. During the execution of the pressing operation, the content of the unread message is configured to be displayed at the target direction position of the target avatar.

[0010] In the above solution, the switching module further includes that after the content of the unread message is displayed, when the pressing operation is released, the display of the content of the unread message is canceled, and the message presentation control is configured to be displayed again at the target direction position of the target avatar.

[0011] In the above solution, the switching module further includes that when the message preview operation is a trigger operation on the message presentation control, the display of the message presentation control is canceled. The content of the unread message is displayed at the target direction position of the target avatar. When the display time length of the content reaches a first time length, the display of the content of the unread message is configured to be canceled.

[0012] In the above solution, the switching module is further configured to cancel the display of the message prompt control, display a message preview frame at the target direction position of the target avatar, and display the content of the unread message in the message preview frame.

[0013] In the above solution, when the display area required for the content of the unread message is not larger than the display area of the message preview frame, the switching module is further configured to directly display the content of the unread message in the message preview frame. When the display area required for the content of the unread message is larger than the display area of the message preview frame, the switching module is configured to scroll and display the content of the unread message in the message preview frame.

[0014] In the above solution, the switching module is further configured to display the content of the first part of the unread message in the message preview frame. Scroll the content of the first part so that the content of the first part gradually disappears from the message preview frame. In the process of scrolling the content of the first part, the switching module is configured to gradually display the content of the second part of the unread message, and the reception time of the content of the second part is earlier than the reception time of the content of the first part.

[0015] In the above solution, for the first unread message and the second unread message with adjacent reception times among the at least two unread messages, the switching module is further configured to display the content of the first unread message in the message preview frame. When the display time length of the content of the first unread message reaches a second time length, control the first unread message to move out of the message preview frame and disappear. When the first unread message is moved out of the message preview frame, it is configured to control the second unread message to be moved into the message preview frame and display the content of the second unread message in the message preview frame.

[0016] In the above solution, the switching module is further configured to cancel the display of the message presentation control, and when the unread message is an audio unread message, at the target direction position of the target avatar, display the audio identifier of the audio unread message and the text content after performing text conversion on the audio unread message.

[0017] In the above solution, the device further includes a playback module configured to play the audio content of the audio unread message in the process of displaying the text content.

[0018] In the above solution, the first display module is further configured to display at least one avatar excluding the target avatar on the page of the virtual social scene. When receiving a message sent by the target avatar, on the page of the virtual social scene, display the target avatar and determine the target avatar and the at least one avatar as the at least two avatars.

[0019] In the above solution, the second display module is further configured to display a speedy reply control for the unread message after switching the display of the message presentation control to the display of the content of the unread message, and the speedy reply control is used to realize a speedy reply to the unread message.

[0020] In the above solution, the quick reply control is a voice quick reply control, and the device further responds to a pressing operation on the voice quick reply control. When the pressing operation meets the trigger condition, during the execution of the pressing operation, audio collection is performed, and includes a message reply module configured to send a voice message including the collected audio content to the target avatar when the pressing operation is released.

[0021] In the above solution, the quick reply control is a text quick reply control, and the device further responds to a trigger operation on the text quick reply control, displays a message sending frame and a corresponding sending control, responds to a text editing operation, and displays the content edited in the message sending frame, and includes a message reply module configured to send the edited content to the target avatar in response to a message sending command triggered by the sending control.

[0022] In the above solution, the virtual social scene further includes an avatar of a virtual group corresponding to at least one social group. The avatar of the virtual group is used to represent a three-dimensional image model of the social group. When the second display module further receives a message sent by a member in the target social group, it is configured to display a group message prompt control for indicating the existence of an unread group message at the target direction position of the target three-dimensional image model corresponding to the target social group. When the switching module further responds to a message preview operation on the group message prompt control, it is configured to switch the display of the group message prompt control to the display of the content of the unread group message at the target direction position of the target three-dimensional image model.

[0023] In the above solution, the device further includes a playback module configured to play a message prompt audio when the number of the unread messages reaches a quantity threshold, and the message prompt audio is used to instruct to check the unread messages sent by the target avatar.

[0024] In the above solution, the device further includes a detection module. When the virtual social scene is a virtual social scene based on virtual reality, a somatosensory operation for triggering the message prompt control is detected, and the detection module is configured to determine the somatosensory operation as the message preview operation, or a radiation emission operation on an external device is detected. When the irradiation position of the radiation emitted by the external device corresponds to a target position due to the radiation emission operation, the detection module is configured to determine the radiation emission operation as the message preview operation, wherein the target position is the display position of the message prompt control in the virtual social scene.

[0025] Embodiments of the present application further provide an electronic device, and the electronic device includes a memory for storing executable instructions, and a processor for realizing the message preview method in the virtual social scene provided by the embodiments of the present application when executing the computer executable instructions stored in the memory.

[0026] Embodiments of the present application further provide a computer-readable storage medium storing computer executable instructions that, when executed by a processor, realize the message preview method in the virtual social scene provided by the embodiments of the present application.

[0027] Embodiments of the present application further provide a computer program product or a computer program. The computer program product includes a computer program or computer-executable instructions, and the computer program or computer-executable instructions are stored in a computer-readable storage medium. A processor of an electronic device reads the computer program or computer-executable instructions from the computer-readable storage medium, and when the computer program or computer-executable instructions are executed by the processor, the message preview method in the virtual social scene provided in the embodiments of the present application is realized.

[0028] Embodiments of the present application have the following beneficial effects.

[0029] In the above embodiments of the present application, in a virtual social scene, when a message sent by an avatar is received, by performing a message preview operation on a message presentation control, the display of the message presentation control can be switched to the display of the content of the unread message on the page of the current virtual social scene. In this way, compared with the method in the related art of performing page transition to check messages, the embodiments of the present application improve the message checking efficiency in the virtual social scene, and at the same time, the number of human-computer interactions for checking messages is reduced, the efficiency of human-computer interaction is improved, and since the message preview operation is realized based on the message presentation control, there is no need to occupy extra display resources of the terminal, and the utilization rate of the display resources of the terminal is improved.

Brief Description of the Drawings

[0030]

Figure 1

Figure 2

Figure 3

Figure 4

Figure 5

Figure 6

Figure 7

Figure 8

Figure 9

Figure 10

Figure 11

Embodiments for Carrying Out the Invention

[0031] To make the objectives, technical solutions, and advantages of the present application clearer, the embodiments of the present application will be described in more detail below with reference to the drawings. The described embodiments should not be regarded as limitations on the embodiments of the present application. All other embodiments that can be obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present application.

[0032] Regarding the "some embodiments" described below, although a subset of all possible embodiments is described, it is understandable that the "some embodiments" may be the same subset or different subsets of all possible embodiments, and moreover, they can be combined with each other without contradiction.

[0033] The term "first / second" described below is merely used to distinguish similar objects and does not represent a specific order for the objects. For the sake of being understandable, "first / second" can, if possible, have its specific order or sequence reversed so that the embodiments of the present application described in this specification can be implemented in an order other than that illustrated or described in this specification.

[0034] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as commonly understood by those skilled in the art. The terms used in this specification are not intended to limit the present application, but are merely for the purpose of explaining the embodiments of the present application.

[0035] Before further elaborating on the embodiments of the present application, the nouns and terms related to the embodiments of the present application are explained, and the nouns and terms related to the embodiments of the present application are applicable to the following interpretations.

[0036] 1) Client: An application that runs within a terminal for providing various services, such as a virtual social client, a game client, an instant messaging client, etc.

[0037] 2) The description "in response to": A term used to represent the conditions or states upon which the operations to be executed depend. When the dependent conditions or states are met, one or more operations to be executed may be in real time or may have a set delay. Unless otherwise specified, there is no restriction on the order of execution of multiple operations to be executed.

[0038] 3) Virtual social scene: A virtual scene that is displayed (or provided) when an application program is executed on a terminal. The virtual scene may be a simulation environment for the real world, a semi-simulated and semi-fictional virtual environment, or a purely fictional virtual environment. The virtual scene may be any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene, and the dimension of the virtual scene is not limited in the embodiments of the present application. For example, the virtual scene can include sky, land, sea, etc., and the land can include environmental elements such as deserts and cities.

[0039] The user can customize his two-dimensional or three-dimensional avatar (i.e., humanoid model) to interact with other avatars, such as social chatting and task execution, using his avatar in the virtual social scene.

[0040] 4) Virtual Reality (VR): A simulation of an environment (e.g., a three-dimensional environment) generated by a computer, and the user can interact with it in a way that appears real or substantial. It can be a single device or a set of devices for a virtual reality system. For example, a virtual reality helmet or some other display device can be used to generate the simulation for the user to view. The simulation can include images, sounds, tactile feedback, and other sensations that mimic real or fictional environments.

[0041] 5) Avatar: Images of various people and objects that can perform interactions in a virtual scene, and movable images in the virtual scene. The movable images may be virtual characters such as people, animals, plants, tin cans, walls, stones, etc., virtual animals, and animated characters displayed in the virtual scene. The avatar may be an avatar for representing the user in the virtual scene. The virtual scene can include multiple avatars, and each avatar has its own shape and volume in the virtual scene and occupies a part of the space in the virtual scene.

[0042] For example, the avatar may be a user character controlled by an operation on the client, or may be an artificial intelligence (AI) set for virtual scene battles through training, or may be a non-player character (NPC) set for virtual scene interactions. Here, the number of avatars participating in the interaction in the virtual scene may be set in advance, or may be dynamically determined based on the number of clients participating in the interaction.

[0043] FIG. 1 is a schematic diagram of checking unread messages provided by the related art. Referring to FIG. 1, on page 11 of the virtual social scene, when a message sent by another avatar is received, a presentation of the unread message is made, and the number of unread messages is included in the presentation. When the user clicks on an item of the unread message, a page transition to the chat details page 12 is performed, and all messages including new messages and past messages are checked on the chat details page 12. In this method, to check the content of the message, the user needs to click on the message to open the chat details page, leaving the virtual square scene. Returning from the chat details page to the virtual square scene requires additional operations. For some information, the user may not want to reply or the timeliness may not be high, but since it is necessary to enter the details page to make a judgment, the efficiency is low. After the user clicks and enters the chat details page, it is necessary to further distinguish which information has been newly sent and which information is old. When the message sending interval is very short, it is difficult to distinguish, so the message checking efficiency in the virtual social scene is low, and multiple human-computer interaction operations are required to check, resulting in low human-computer interaction efficiency.

[0044] In view of this, embodiments of the present application propose a message preview system, method, apparatus, electronic device, computer-readable storage medium, and computer program product in a virtual social scene, which can improve the message checking efficiency and the human-computer interaction efficiency in the virtual social scene. The following will be described respectively.

[0045] Based on the above interpretations of the nouns and terms related to the embodiments of the present application, first, the message preview system in the virtual social scene provided by the embodiments of the present application will be described. Referring to FIG. 2, FIG. 2 is a schematic architecture diagram of a message preview system 100 in a virtual social scene according to an embodiment of the present application. To realize the support of one exemplary application, the terminal 400 (exemplarily, the terminal 400-1 and the terminal 400-2 are shown) is connected to the server 200 by the network 300. The network 300 may be a wide area network or a local area network, or a combination of both, and realizes data transmission using a wireless or wired link.

[0046] The terminal 400-1 is configured to display at least two avatars on the page of the virtual social scene.

[0047] Here, the avatar can move within the virtual social scene. By moving within the virtual social scene, the avatar can change its relative position relationship with other avatars.

[0048] When the terminal 400-2 corresponding to the target avatar sends a message to the avatar corresponding to the terminal 400-1, the server 200 is configured to forward the message to the terminal 400-1.

[0049] When the terminal 400-1 further receives the message sent by the terminal 400-1 transferred by the server 200, it displays a message presentation control for indicating the existence of an unread message at the target direction position of the target avatar in the virtual social scene, and in response to a message preview operation on the message presentation control, at the target direction position of the target avatar, the display of the message presentation control is configured to be switched to the display of the content of the unread message.

[0050] In some embodiments, the message preview method in the virtual social scene provided by the embodiments of the present application can be implemented by various electronic devices or computer devices. For example, it can be implemented alone by a terminal, alone by a server, or cooperatively by a terminal and a server. The embodiments of the present application can be applied to various scenes including, but not limited to, instant messaging, cloud technology, artificial intelligence, smart transportation, assisted driving, games, metaverse, etc.

[0051] In some embodiments, the electronic device that implements the message preview method in the virtual social scene provided by the embodiments of the present application may be various types of terminal devices or servers. Here, the server (such as server 200) may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides 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, content delivery networks (CDNs), and big data and artificial intelligence platforms. The terminal (such as terminal 400-1 and terminal 400-2) can be, but is not limited to, a smartphone, a tablet computer, a notebook computer, a desktop computer, a smart voice interaction device (such as a smart speaker), a smart home appliance (such as a smart TV), a smart watch, an in-vehicle terminal, a VR device, etc. The terminal and the server can be directly or indirectly connected by wired communication or wireless communication, but are not limited in the embodiments of the present application.

[0052] In some embodiments, a terminal or a server can implement the message preview method in the virtual social scene provided by the embodiments of the present application by executing a computer program. For example, the computer program may be a native program or a software module in an operating system, and may also be a local application (APP: Application), that is, a program that needs to be installed in the operating system for execution, or a mini-program, that is, a program that can be executed only by being downloaded in a browser environment. Furthermore, it may also be a mini-program that can be embedded in any APP. In short, the above computer program can be any form of application program, module or plug-in.

[0053] Hereinafter, an electronic device for implementing the message preview method in the virtual social scene according to the embodiments of the present application will be described. Referring to FIG. 3, FIG. 3 is a schematic structural diagram of an electronic device 500 for implementing the message preview method in the virtual social scene according to the embodiments of the present application. Taking the example that the electronic device 500 is the terminal shown in FIG. 2, the electronic device 500 provided by the embodiments of the present application includes at least one processor 510, a memory 550, at least one network interface 520, and a user interface 530. Each component in the electronic device 500 is coupled to each other via a bus system 540. It can be understood that the bus system 540 is used to realize the connection and communication between these components. The bus system 540 includes a power bus, a control bus, and a status signal bus in addition to a data bus. However, for the sake of clear description, all the various buses are denoted as the bus system 540 in FIG. 3.

[0054] Processor 510 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Here, the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0055] The user interface 530 includes one or more output devices 531 that enable the display of media content. The output devices 531 include one or more speakers and / or one or more visual displays. The user interface 530 further includes one or more input devices 532. The input devices 532 include user interface components useful for user input, such as keyboards, mice, microphones, touch screen displays, cameras, other input buttons and controls.

[0056] The memory 550 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drives, optical disk drives, etc. The memory 550 optionally includes one or more storage devices located physically separate from the processor 510.

[0057] The memory 550 includes volatile memory or non-volatile memory, and can also include both volatile memory and non-volatile memory. The non-volatile memory may be read-only memory (ROM), and the volatile memory may be random access memory (RAM). The memory 550 described in the embodiments of this application is intended to include any suitable type of memory.

[0058] In some embodiments, the memory 550 can store data to support various operations. Examples of such data include programs, modules, and data structures, or subsets or supersets thereof, which will be exemplified below.

[0059] The operating system 551 processes various basic system services and includes system programs for executing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc. It is configured to implement various basic services and process hardware-based tasks.

[0060] The network communication module 552 is configured to reach other computing devices via one or more (wired or wireless) network interfaces 520. Exemplary network interfaces 520 include Bluetooth, Wireless Fidelity (WiFi), and Universal Serial Bus (USB).

[0061] The display module 553 is configured to enable the display of information (e.g., a user interface for operating peripheral devices and displaying content and information) via one or more output devices 531 (e.g., a display, a speaker, etc.) associated with the user interface 530.

[0062] The input processing module 554 is configured to detect one or more user inputs or interactions from the input device 532 and translate the detected inputs or interactions.

[0063] In some embodiments, the message preview device in the virtual social scene provided by the embodiments of the present application can be realized by software. FIG. 3 shows the message preview device 555 in the virtual social scene stored in the memory 550. The message preview device 555 in the virtual social scene can be software in the form of a program or a plug-in, etc., and includes a first display module 5551, a second display module 5552, and a switching module 5553. Since these modules are logical, they can be combined arbitrarily or further divided according to the realized functions. In the following, the functions of each module will be described.

[0064] In some other embodiments, the message preview device 555 in the virtual social scene provided by the embodiments of the present application can be realized by hardware. For example, the message preview device in the virtual social scene provided by the embodiments of the present application may be a processor adopting the form of a hardware decoding processor, and the processor is programmed to execute the message preview method in the virtual social scene provided by the embodiments of the present application. For example, a processor in the form of a hardware decoding processor can adopt one or more application specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs) or other electronic elements.

[0065] Based on the above description of the message preview system and electronic device in the virtual social scene of the embodiments of the present application, the message preview method in the virtual social scene provided by the embodiments of the present application will be described below. In some embodiments, the message preview method in the virtual social scene provided by the embodiments of the present application can be implemented independently by a server or a terminal, or can be implemented in cooperation by a server and a terminal. In the following, taking the implementation by a terminal as an example, the message preview method in the virtual social scene provided by the embodiments of the present application will be described.

[0066] Referring to FIG. 4, FIG. 4 is a schematic flowchart of the message preview method in the virtual social scene according to the embodiments of the present application, and the message preview method in the virtual social scene according to the embodiments of the present application includes steps 101 to 103.

[0067] In step 101, the terminal displays at least two avatars on the page of the virtual social scene.

[0068] In actual applications, a client that supports virtual social scenes (such as a social client or a game client) is installed on the terminal, and the client may be a client that integrates virtual social scene functions (such as an instant messaging client, a live broadcast client, an invitation client, etc.). For example, an instant messaging client that integrates virtual social scene functions is installed on the terminal. When the instant messaging client executes the virtual social scene function, the terminal can display a page of the virtual social scene and display a plurality (i.e., at least two) of avatars on the page. Each avatar corresponds to one user target, and the avatar can move within the virtual social scene. By moving within the virtual social scene, the avatar can change its relative position relationship with other avatars. The user can conduct a message conversation with other avatars in the virtual social scene based on the avatar corresponding to the user himself / herself. Here, the avatar may be a 3D avatar or a 2D avatar. The above-mentioned other avatars may be the avatars of friends in the current user's friend list, or any avatar that enters the virtual social scene. That is, the relationship between the avatar in the virtual social scene and the avatar corresponding to the current logged-in account (i.e., the current user) may be a friendship relationship or a non-friendship relationship. When the relationship between the target avatar and the avatar of the current logged-in account is a non-friendship relationship, it is possible to control the avatar of the current logged-in account to perform a target operation related to the target avatar, thereby realizing the establishment of a friendship relationship with the target avatar. For example, the target operation may be an operation in which the avatar high-touches the target avatar.

[0069] Taking the example that a virtual social client is installed on the terminal, when the user opens and runs the virtual social client on the terminal, the user can set his / her avatar through the social client. Specifically, in the avatar setting interface, the user can edit his / her own avatar by himself / herself, for example, select a 2D or 3D model, select clothing, etc., to realize the editing of his / her own avatar. Based on the edited avatar, in the virtual social scene, the user can interact with the avatars of other users, for example, chat, jointly perform tasks, etc.

[0070] In actual applications, in addition to being able to display the avatar of a single user in the virtual social scene, it is also possible to display the avatar of a virtual group corresponding to a social group. Based on the avatar corresponding to himself / herself and the avatar of the virtual group, the user can have a message conversation with other avatars in the social group in the virtual social scene.

[0071] In some embodiments, in the virtual social scene, the terminal further displays the status of each avatar. The status is used to indicate the operation currently being performed by the avatar. For example, it displays a chat status to indicate that the avatar is chatting, and a music listening status to indicate that the avatar is listening to music, etc. In this way, other users can grasp their own status, and the interaction between avatars becomes easier.

[0072] In step 102, when receiving a message sent by a target avatar among at least two avatars, a message prompt control for indicating the existence of unread messages is displayed in the virtual social scene.

[0073] In some embodiments, in a virtual social scene, a message presentation control for indicating the existence of unread messages is displayed. That is, at the target direction position of the target avatar in the virtual social scene, a message presentation control for indicating the existence of unread messages is displayed. Here, the target direction position may be any position in a three-dimensional space centered on the target avatar, with the distance from the target avatar being the target distance. For example, the target direction position may be a position at a first length from the head above the target avatar, or a position at a second length from the left arm on the left side of the target avatar, etc.

[0074] When the target avatar in the virtual social scene sends a message to the current user's avatar, at the target direction position of the target avatar, a message presentation control (i.e., a message presentation button, a message presentation function item) for indicating the existence of unread messages is displayed, and the message presentation control further indicates the number of unread messages, that is, the message presentation control further includes text information for indicating the number of unread messages. When the user clicks on the message presentation control, the terminal transitions from the page of the virtual social scene to a message details page, displays the content of the unread messages on the message details page, and when there is a past conversation between the target avatar and the current avatar, further displays the past chat content between the target avatar and the current avatar on the message details page.

[0075] In some embodiments, the message presentation control is associated with the target avatar, that is, the relative position relationship is maintained invariant. When the target avatar moves within the virtual social scene, the terminal displays a process in which the message moves synchronously following the target avatar, that is, the message presentation control moves synchronously following the target avatar.

[0076] In step 103, in response to a message preview operation on the message presentation control, the display of the message presentation control is switched to the display of the content of the unread message.

[0077] In actual applications, the message preview operation is used to indicate that a preview of the unread message is to be performed, that is, to indicate that the content of the message is to be viewed in advance.

[0078] In some embodiments, the display of the message presentation control is switched to the display of the content of the unread message, that is, at the target direction position of the target avatar, the display of the message presentation control is switched to the display of the content of the unread message. Here, the message preview operation may be a pressing operation on the message presentation control. Correspondingly, in response to the message preview operation on the message presentation control, the terminal can switch the display of the message presentation control to the display of the content of the unread message at the target direction position of the target avatar in the following manner. When the terminal determines that the pressing operation on the message presentation control satisfies the message preview condition, the display of the message presentation control is cancelled, and during the execution of the pressing operation, the content of the unread message is displayed at the target direction position of the target avatar. When the pressing operation is released, the display of the content of the unread message is cancelled, and the message presentation control is displayed again at the target direction position of the target avatar.

[0079] Applying the above embodiments, in this way, the content of the unread message is previewed on the page of the current virtual social scene, and it is not necessary for the terminal to transition the page to the chat details page. This not only improves the checking efficiency of the message content, but also ensures that the user does not miss information in the virtual social scene during the process of previewing the message content. At the same time, since the message preview operation is realized based on the message presentation control, it is not necessary to occupy extra display resources of the terminal, and the utilization rate of the display resources of the terminal is improved.

[0080] Next, the message preview conditions will be described. In some embodiments, when the user triggers a pressing operation on the message presentation control, the terminal detects the duration of the pressing operation of the pressing operation, and when it is detected that the duration of the pressing operation reaches a duration threshold (specifically, it may be set according to the actual situation, for example, set to 2 seconds), it is determined that the pressing operation satisfies the message preview condition. In some other embodiments, when the user triggers a pressing operation on the message presentation control, the terminal detects the pressing pressure of the pressing operation, and when it is detected that the pressing pressure value reaches a pressure threshold (specifically, it may be set according to the actual situation), it is determined that the pressing operation satisfies the message preview condition. In some other embodiments, when the user triggers a pressing operation on the message presentation control, the terminal simultaneously detects the pressing pressure and the duration of the pressing operation of the pressing operation, and when it is detected that the duration of the pressing operation reaches the duration threshold and the pressing pressure value reaches the pressure threshold, it is determined that the pressing operation satisfies the message preview condition.

[0081] Exemplarily, FIG. 5 is a schematic diagram of an interface for message preview according to an embodiment of the present application. Referring to FIG. 5, on page 51 of the virtual social scene, avatars of different users are displayed, and the user can control the movement of his or her corresponding avatar within the virtual social scene, for example, making it walk, run, or execute a task in cooperation with other avatars. When the terminal receives a message sent by the target avatar to the current avatar in the virtual social scene, a message presentation control 52 for indicating the existence of an unread message from the target avatar is displayed at the target direction position of the target avatar (for example, at a target distance above the head or above the center of gravity of the body). When the user triggers a pressing operation on the message presentation control, the terminal detects the duration of the pressing operation of the pressing operation. When the duration of the pressing operation reaches the duration threshold, the terminal is triggered to enter the message preview mode, and at the target direction position of the target avatar, the originally displayed message presentation control is switched to display the content 53 of the unread message. When the pressing operation is released, the display of the content of the unread message is switched back to the display of the message presentation control.

[0082] In some embodiments, the message preview operation may be a triggering operation on the message presentation control. Correspondingly, the terminal can switch the display of the message presentation control to the display of the content of the unread message at the target direction position of the target avatar in the following manner in response to the message preview operation on the message presentation control, that is, cancel the display of the message presentation control, display the content of the unread message at the target direction position of the target avatar, and cancel the display of the content of the unread message when the display duration of the content reaches the first duration.

[0083] In actual application, when the user triggers a message preview operation, the content of the unread message is displayed on the page of the current virtual social scene. When the display duration reaches the first duration (the specific value may be set according to actual needs, for example, set to 3 seconds), it may automatically disappear. This realizes the user's preview of the content of the unread message, improves the message checking efficiency, fully utilizes the display resources of the terminal, and improves the utilization rate of the display resources.

[0084] It should be noted that since the click operation on the message presentation control is used to trigger the page transition to the chat details page, the trigger operation on the message presentation control may be any one operation other than the click operation on the message presentation control. For example, the message preview operation may be a double-click operation, a drag operation, etc. on the message presentation control.

[0085] In some embodiments, the message preview operation may further be an operation performed on the message presentation control (e.g., a shake operation). After the terminal displays a message presentation control for indicating the existence of unread messages, the user holds the terminal and performs a shake operation, and the terminal determines the shake operation as an operation performed on the message presentation control. In actual applications, the terminal may receive messages sent from multiple (at least two) avatars. On the page of the virtual social scene, message presentation controls are respectively displayed at the target direction positions of each avatar. At this time, when the user triggers a shake operation on the terminal, the terminal controls each message presentation control to be in a candidate state, and in response to a selection command for the message presentation control in the candidate state triggered by the user, at the target direction position of the avatar corresponding to the selected message presentation control, the display of the selected message presentation control is switched to the display of the content of the corresponding unread message. Here, the selection command may be triggered by a trigger operation (e.g., click, double click) of the user on the message presentation control in the candidate state, or may be triggered by a voice command.

[0086] In actual applications, for the display of the content of unread messages, it can be realized by using a message preview frame. Specifically, in response to a message preview operation on the message presentation control, the terminal can switch the display of the message presentation control to the display of the content of the unread message in the following manner at the target direction position of the target avatar. The terminal cancels the display of the message presentation control, displays a message preview frame at the target direction position of the target avatar, and displays the content of the unread message in the message preview frame. Here, the message preview frame may be displayed by a floating layer or may be displayed by a floating window.

[0087] By applying the above embodiments and uniformly displaying the content of unread messages in the message preview frame, not only is the checking efficiency of the message content improved, but also in the process of previewing the message content, it is ensured that the user does not overlook information in the virtual social scene, improving the checking efficiency of the message and fully utilizing the display resources of the terminal to improve the utilization rate of the display resources.

[0088] In some embodiments, the size of the message preview frame can be adapted to the current number of unread messages. For example, when there are multiple messages, in order for the user to view the content of all unread messages simultaneously, the terminal dynamically adjusts the size of the message preview frame based on the size of the display area required for the content of the unread messages. In this way, not only can the user's preview of the content of the unread messages be realized, but also the coverage of the content on the current page is minimized.

[0089] In some embodiments, the size of the message preview frame is a fixed size, and the terminal can display the content of unread messages in the message preview frame in the following manner, that is, when the display area required for the content of the unread message is not larger than the display area of the message preview frame, the content of the unread message is directly displayed in the message preview frame; when the display area required for the content of the unread message is larger than the display area of the message preview frame, the content of the unread message is scrolled and displayed in the message preview frame.

[0090] In actual application, by combining the display area required for the content of the unread message and the display area of the message preview frame to determine the display method of the content of the unread message, the display flexibility in the display process of the unread message is improved, and at the same time, the display resources of the terminal are also fully utilized to improve the utilization rate of the display resources.

[0091] Here, the terminal can scroll and display the content of the unread message in the message preview frame in the following manner. The terminal displays the content of the first part of the unread message in the message preview frame, scrolls the content of the first part so that the content of the first part gradually disappears from the message preview frame, and gradually displays the content of the second part of the unread message during the process of scrolling the content of the first part. The reception time of the content of the second part is earlier than the reception time of the content of the first part.

[0092] By applying the above embodiments, it is realized to first show the user the content of the most recently received unread message, automatically scroll and display the content of the past unread messages for the user, and improve the user's message preview experience.

[0093] Here, when the message preview operation is a pressing operation on the message presentation control, the scroll display for the content of the unread message may be a circular scroll display. That is, when the display of the content of all unread messages is completed by scroll display, if the current user does not trigger a preview end command, that is, if the pressing operation is not released, the content of the first part and the content of the second part of the unread message are scrolled and displayed circularly again.

[0094] In actual applications, with reference to the message preview frame, the scrolling direction of the content of unread messages can be downward. FIG. 6 is a schematic diagram of the scrolling display of message content according to an embodiment of the present application. Referring to FIG. 6, with reference to the current preview frame 61, the content of each unread message is sequentially displayed in the preview frame from top to bottom, and the display order is in the order of earlier reception time. When there are a large number of unread messages and it is necessary to scroll to complete the display of the content of all unread messages, before scrolling the content displayed in the preview frame, the terminal first displays the content of at least one latest received (i.e., the message with the latest reception time) unread message in the preview frame from top to bottom in the order of earlier reception time, and then scrolls the content of the unread messages in the preview frame from top to bottom to display the content of unread messages whose reception time is earlier than the reception time of the message in the current preview frame, that is, the content of past unread messages. In this way, by simulating the operation of the user sliding the page downward to view the content of past messages, the user does not need to actively slide, the content of unread messages is automatically scrolled and displayed, and the user's message preview experience is improved.

[0095] Here, each unread message displayed in the preview frame can include a reception time identifier to indicate the reception time of the corresponding message. For two adjacent messages among a plurality of messages, if the difference in the reception time of the messages does not exceed a time threshold (the time threshold may be set according to actual needs, for example, set to 1 minute), a new time identifier is not increased, that is, the message with the later reception time among the two adjacent messages may not include a time identifier.

[0096] In some embodiments, only the content of one unread message is displayed in the message preview frame. When the number of unread messages is at least two, the terminal can scroll and display the content of the unread messages in the message preview frame in the following manner. That is, among at least two unread messages, for the first unread message and the second unread message with adjacent reception times, the content of the first unread message is displayed in the message preview frame. When the display time length of the content of the first unread message reaches a second time length (the specific value may be set according to actual needs, for example, set to 2 seconds), control is performed to move the first unread message out of the message preview frame so that it disappears. When the first unread message is moved out of the message preview frame, control is performed to move the second unread message into the message preview frame, and the content of the second unread message is displayed in the message preview frame. In actual application, the reception time of the first unread message may be earlier than the reception time of the second unread message, and the message preview frame may be displayed as a pop-over.

[0097] In this way, based on the reception time of the messages, by sequentially displaying the content of each unread message in a bubbling style, a preview of each unread message for the user is realized. Since only the content of one unread message is displayed in the message preview frame, the occupied display space is small and it does not have a great impact on the content of the virtual social scene displayed on the current page.

[0098] Exemplarily, FIG. 7 is a schematic diagram of the scroll display of the message content according to the embodiment of the present application. Referring to FIG. 7, when the user receives a message sent from the target avatar 70 and triggers a message preview operation for the unread message, in the message preview frame above the head of the target avatar 70, first, the content of the message with the earliest reception time is displayed. Then, when the display time length of the message with the earliest reception time reaches 2 seconds (the second time length), the message is moved out, and the next unread message is moved in. The message 71 and the message 72 in FIG. 7 are two adjacent unread messages with adjacent reception times. When performing the preview display, first, the message 71 is displayed. When the display time length of the message 71 reaches 2 seconds (the second time length), it is controlled to move out of the message preview frame and disappear. When the message 71 is moved out of the message preview frame, it is controlled to move the message 72 into the message preview frame, and the content of the message 72 is displayed in the message preview frame.

[0099] In some embodiments, there is a case where the received message of the target avatar is an audio message. For this case, the terminal can switch the display of the message presentation control to the display of the content of the unread message in the following manner at the target direction position of the target avatar, that is, the terminal cancels the display of the message presentation control. When the unread message is an audio unread message, at the target direction position of the target avatar, the audio identifier of the audio unread message and the text content after performing text conversion on the audio unread message are displayed. In this way, the user does not need to manually perform an operation to convert the audio to text, which is convenient for the user to preview the content of the audio unread message.

[0100] Exemplarily, FIG. 8 is a schematic diagram of an interface for voice message preview according to an embodiment of the present application. Referring to FIG. 8, when the user performs a pressing operation on the message presentation control, an unread message preview is triggered. When the unread message includes a text unread message and a voice unread message, the terminal cancels the display of the message presentation control 81, and at the target direction position of the target avatar, a message preview frame 82 is displayed, and the content 821 of the text unread message and the content 822 of the voice unread message are displayed in the message preview frame 82. The content 822 of the voice unread message includes the voice identifier 823 of the voice unread message and the text content after performing text conversion on the voice unread message.

[0101] Here, since the unread message is a voice unread message, in actual application, in the process of displaying the text content after performing text conversion on the voice unread message, the terminal can play the voice content of the voice unread message so that the user can simultaneously feel the emotion of the voice sender. In this way, the communication effectiveness of the user during chatting is improved, thereby improving the efficiency of human-computer interaction and the utilization rate of the hardware resources of the electronic device.

[0102] In some embodiments, on the page of the virtual social scene currently displayed by the terminal, not all avatars of the current user's friends are included, that is, only avatars of some of the user's friends are included. For example, within a target period (such as one week), only avatars of friends whose interaction times with the current user reach the interaction times threshold are displayed, or within a recent period (such as three days), avatars of friends whose interaction frequency (number of interactions per day) with the current user reaches the interaction frequency threshold are displayed. Specifically, before receiving a message sent by a target avatar, on the page of the virtual social scene, at least one avatar that does not include the target avatar is displayed. When a message sent by the target avatar is received accordingly, on the page of the virtual social scene, the target avatar is displayed, and further, the target avatar and at least one avatar are determined as at least two avatars. Based on this, before receiving a message sent by a target avatar, the target avatar is not on the page of the current virtual social scene. At this time, when a message sent by the target avatar is received, the target avatar is displayed on the page of the virtual social scene, and further, a message presentation control for indicating the existence of an unread message is displayed at the target direction position of the target avatar. In this way, when the target avatar is not on the page of the virtual social scene, by displaying the target avatar on the page of the current virtual social scene, the user can be clearly informed of the message sending target, making full use of the display resources of the terminal and improving the utilization rate of the display resources.

[0103] In some embodiments, after the user views the content of an unread message on a page of a virtual social scene, in order to enable the user to quickly reply to the unread message, after the terminal switches the display of the message presentation control to the display of the content of the unread message, the terminal further displays a quick reply control for the unread message, and the quick reply control is used to realize a quick reply to the unread message. In this way, the user can quickly reply to the unread message based on the quick reply control, increasing the diversity of communication methods during the chat, improving the user's communication experience, and thereby improving the efficiency of human-computer interaction and the utilization rate of the hardware resources of the electronic device.

[0104] In actual application, the quick reply control may be a voice quick reply control for performing a voice quick reply. When the terminal responds to a pressing operation on the voice quick reply control and the pressing operation meets the trigger condition, during the execution of the pressing operation, the terminal performs audio collection, and when the pressing operation is released, the terminal sends a voice message including the collected audio content to the target avatar.

[0105] By applying the above embodiments and realizing voice quick reply through the quick reply control, not only does the diversity of communication methods during the chat increase and the user's communication experience improve, but also the communication effectiveness of the user during the chat is improved, thereby improving the efficiency of human-computer interaction and the utilization rate of the hardware resources of the electronic device.

[0106] In actual application, the quick reply control may be a text quick reply control for performing text quick reply. The terminal responds to a trigger operation on the text quick reply control, displays a message sending frame and a corresponding sending control, responds to a text editing operation, displays the content edited in the message sending frame, and responds to a message sending command triggered by the sending control (for example, clicking on the sending control), and sends the edited content to the target avatar.

[0107] In actual application, by realizing text editing and message sending through the quick reply control, the diversity of chat methods during chatting is increased, the communication experience of users is improved, and thereby the efficiency of human-computer interaction and the utilization rate of the hardware resources of the electronic device are improved.

[0108] In some embodiments, the virtual social scene further includes an avatar of a virtual group corresponding to at least one social group. Each social group corresponds to an avatar of a virtual group, and the avatar of the virtual group is used to represent a three-dimensional image model of the corresponding social group. When the terminal receives a message sent by a member in the target social group, at the target direction position of the target three-dimensional image model corresponding to the target social group, it displays a group message prompt control for indicating the existence of unread group messages, and in response to a message preview operation on the group message prompt control, at the target direction position of the target three-dimensional image model, switches the display of the group message prompt control to the display of the content of the unread group message. In this way, through the group message prompt control, the user's preview of the content of the unread group message is realized, the message checking efficiency is improved, the display resources of the terminal are fully utilized, and the utilization rate of the display resources is improved.

[0109] Exemplarily, FIG. 9 is a schematic diagram of an interface for group message preview according to an embodiment of the present application. Referring to FIG. 9, on page 91 of the virtual social scene, avatars of different users (such as avatar 92) and a target 3D image model 93 corresponding to the target social group are displayed. When the terminal receives a message sent by a member in the target social group to the current avatar, a message presentation control 94 for indicating that there is an unread message from the target social group is displayed at the target direction position (for example, at the position of the upper target distance) of the target 3D image model 93. When the user triggers a pressing operation on the message presentation control 94, the terminal detects the pressing time length of the pressing operation. When the pressing time length reaches the time length threshold, the terminal is triggered to enter the message preview mode. Also at the target direction position of the same target 3D image model 93, the originally displayed message presentation control 94 is switched to display the content 95 of the unread message. The content 95 of the unread message includes a target identifier 96 of the transmission target. When the pressing operation is released, the display of the content of the unread message is switched back to the display of the message presentation control.

[0110] In some embodiments, the user may engage in interactions with other avatars in the virtual social scene and miss unread messages. At this time, if there are many messages sent by the target avatar to the current user, the target avatar recognizes that there is an urgent need to communicate with the current user. When the number of unread messages sent by the target avatar reaches the quantity threshold, the terminal plays a message presentation audio, and the message presentation audio is used to instruct to check the unread messages sent by the target avatar. In this way, it is possible to prompt the user to check the messages in a timely manner and avoid missing important messages, improving the user's communication experience, thereby improving the efficiency of human-computer interaction and the utilization rate of the hardware resources of the electronic device.

[0111] In some embodiments, the virtual social scene may be a game scene. In the game scene, each avatar corresponds to one game character, and the user can fight against other avatars in the game scene based on their own avatar. For example, the avatar of the current logged-in account belongs to the first virtual camp, and the first virtual camp includes at least two virtual objects. The first virtual camp is in an adversarial relationship with the second virtual camp that includes at least two virtual objects. When receiving a message sent from a target avatar in the first virtual camp during the process of the avatar of the current logged-in account fighting against a virtual object in the second virtual camp, a message prompt control for indicating the existence of an unread message is displayed at the target direction position of the target avatar in the game scene. In response to a message preview operation on the message prompt control, the display of the message prompt control is switched to the display of the content of the unread message at the target direction position of the target avatar. In this way, by triggering a message preview operation, the user can quickly check the messages of team members in the game scene and obtain a fun and efficient social communication experience without affecting the game process.

[0112] In some embodiments, the virtual social scene may further be a virtual social scene based on virtual reality, that is, it is realized based on virtual reality technology. Correspondingly, the electronic device for displaying the page of the virtual social scene is a VR device, such as a wearable VR device. The user can perceive the virtual social scene projected by the wearable VR device and interact with other users in the virtual social scene through the virtual social scene projected by the VR device. In actual applications, the VR device displays at least two avatars on the page of the virtual social scene. When receiving a message sent by a target avatar, a message prompt control for indicating the existence of an unread message is displayed at the target direction position of the target avatar in the virtual social scene. In response to a message preview operation on the message prompt control, the display of the message prompt control is switched to the display of the content of the unread message at the target direction position of the target avatar.

[0113] Here, the message preview operation will be described. In some embodiments, the message preview operation may be a somatosensory operation for triggering the message prompt control. When a somatosensory operation for triggering the message prompt control is detected, the somatosensory operation is determined as the message preview operation. For example, the somatosensory operation may be a virtual click operation on the message prompt control. The user wears a sensor glove that can position the hand. When the user clicks on the position corresponding to the message prompt control in the virtual scene, the message preview operation is triggered. Or when the user clicks on the position corresponding to the message prompt control in the virtual scene with bare hands, by performing limb position detection on the user, it is determined that when the user clicks on the position corresponding to the message prompt control in the virtual scene with bare hands, the message preview operation is triggered.

[0114] In some other embodiments, the message preview operation may be a radiation emission operation on an external device. When a radiation emission operation on the external device is detected, if the irradiation position of the radiation emitted by the external device corresponds to the target position based on the radiation emission operation, the radiation emission operation is determined as the message preview operation, where the target position is the display position of the message presentation control in the virtual social scene. For example, the external device is a handle or a ring capable of emitting radiation (such as a laser). In the process of the VR device displaying the message presentation control, when the user triggers a radiation emission operation based on the handle or the ring, and the radiation emitted by the handle or the ring irradiates the above target position, the radiation emission operation is determined as the message preview operation to trigger the message preview.

[0115] Here, when a radiation emission operation on the external device is detected and the irradiation position of the radiation emitted by the external device corresponds to the target position due to the radiation emission operation, the duration of the target position corresponding to the irradiation position of the radiation, that is, the duration of the radiation irradiating the message presentation control in the virtual scene, is obtained. When the duration reaches a duration threshold (specifically, it may be set according to actual needs, for example, set to 2 s), the radiation emission operation is determined as the message preview operation.

[0116] In actual applications, when the virtual social scene is a virtual social scene based on virtual reality, the user's preview of the content of the unread message can be further realized based on the message presentation control, improving the message checking efficiency, fully utilizing the display resources of the terminal, and improving the utilization rate of the display resources.

[0117] Applying the above embodiments of the present application, when receiving a message sent by an avatar in a virtual social scene, by performing a message preview operation on the message presentation control, the display of the message presentation control can be switched to the display of the content of the unread message on the page of the current virtual social scene. In this way, compared with the method in the related art of performing page transition to check messages, the embodiments of the present application improve the message checking efficiency in the virtual social scene. At the same time, the number of human-computer interaction times for checking messages is reduced, the efficiency of human-computer interaction is improved. Also, since the message preview operation is realized based on the message presentation control, there is no need to occupy extra display resources of the terminal, and the utilization rate of the display resources of the terminal is improved.

[0118] In the following, an exemplary application of the embodiments of the present application in an actual application scenario will be described. In a scene composed of a plurality of virtual characters (i.e., the above-mentioned avatars), the user receives a message sent by another user, and an unread message prompt is displayed above the head of the character that sent the message. When the user long-presses the message prompt, the prompt is changed to a message preview, and all the content of the unread new messages is displayed. Here, if there is a voice message, the result after the voice is converted into text is automatically displayed, which is convenient for the user to preview all the messages. This will be described in detail below.

[0119] FIG. 10 and FIG. 11 are schematic flowcharts of a message preview method in a virtual social scene according to an embodiment of the present application. Referring to FIG. 10 and FIG. 11, the message preview method in the virtual social scene provided by the embodiments of the present application includes the following steps.

[0120] In step 201, the terminal receives a message from another virtual character.

[0121] Here, a virtual social scene client or a client with a virtual social scene function is installed on the terminal. Step 201 corresponds to step 301 in FIG. 11. In actual application, after the terminal (client presentation layer) displays a virtual social scene including a plurality of virtual characters, when the current logged-in account receives a message sent from other virtual characters in the virtual social scene, an unread message prompt (i.e., the above-mentioned message prompt control for indicating the existence of unread messages) is displayed above the head of the corresponding virtual character, corresponding to step 302 in FIG. 11, that is, the client presentation layer displays an unread message control (i.e., a message prompt control) above the head of the corresponding virtual character.

[0122] In step 202, the user long-presses the unread message prompt.

[0123] Here, step 202 corresponds to step 303 in FIG. 11. After the terminal (client presentation layer) displays the unread message prompt, the user can click or long-press the prompt. Here, long-pressing means that the user executes a pressing operation on the unread message prompt, and the pressing time length of the pressing operation reaches the target time length (for example, 1 second). When the user clicks the unread message prompt, the terminal opens the chat details page. When the user long-presses the unread message prompt, after the long-pressing exceeds 1 second, it triggers to enter the message preview mode, and then sends a content acquisition request for the unread message to the server (i.e., the background logic layer), thereby requesting the unread message data (the content of the unread message), corresponding to step 304 in FIG. 11.

[0124] In step 203, the terminal determines whether the unread message includes an audio message. If it does, step 204 is executed; if not, step 205 is executed.

[0125] In actual applications, the operation of determining whether a voice message is included in an unread message may be implemented by the terminal or by the server (i.e., the background logic layer). When it is implemented by the server (i.e., the background logic layer), step 203 corresponds to step 305 in FIG. 11.

[0126] In step 204, the terminal converts the voice message into text.

[0127] Here, the operation of converting the voice message into text may be implemented by the terminal or by the server (i.e., the background logic layer). When it is implemented by the server (i.e., the background logic layer), step 204 corresponds to step 306 in FIG. 11. That is, the server (i.e., the background logic layer) extracts the characters in the voice message and returns the content of the unread message to the terminal, that is, executes step 307 in FIG. 11.

[0128] In step 205, the terminal determines whether it exceeds the display area. If not, it executes step 206. If it exceeds, it executes step 207.

[0129] Here, step 205 corresponds to step 308 in FIG. 11. The terminal determines whether the required display area for the character content of the unread message that needs to be currently displayed exceeds the size of the message preview frame, thereby determining the display method of the character content.

[0130] In step 206, the terminal displays the content of all messages.

[0131] Here, step 206 corresponds to step 309 in FIG. 11. When the size of the message preview frame is sufficient to display the content of all unread messages, the terminal directly displays the content of all unread messages in the message preview frame.

[0132] In step 207, the terminal turns on the circular scroll display. After reaching the bottom, it waits for 3 seconds and then scrolls again.

[0133] Here, step 207 corresponds to step 310 in FIG. 11. If the size of the message preview frame is not sufficient to display the content of all unread messages, the content of the unread messages is scrolled for display. The terminal first displays the content of at least one unread message received most recently, and then, in the message preview frame, scrolls and displays the content of past unread messages downward, simulating the operation of the user sliding the page downward to view the content of past messages. In this way, the user does not need to actively slide, and the content of the unread messages is automatically scrolled for display, improving the user's message preview experience.

[0134] In step 208, the user lifts the finger.

[0135] Here, step 208 corresponds to step 311 in FIG. 11. When the user lifts the finger, that is, releases the long-press operation, the terminal ends the preview mode, cancels the content of the unread message being displayed, redisplays the unread message prompt, corresponding to step 312 in FIG. 11, that is, the terminal (client presentation layer) closes the preview mode and displays the unread message control.

[0136] In step 209, the user clicks on the unread message prompt.

[0137] In step 210, the terminal opens the chat details.

[0138] Here, when the user clicks on the unread message prompt displayed by the terminal, the terminal responds to the click operation by performing a page transition to the chat details page, and displays on the chat details page the content of the unread messages sent by other virtual characters as described above, and the content of the past chat messages between the current virtual character and the other virtual characters.

[0139] Applying the above embodiments of the present application, the content of the unread message is previewed on the page of the current virtual social scene, and it is not necessary for the terminal to transition the page to the chat details page. That is, without entering the chat details page, the user can fully view all the message content, which not only improves the checking efficiency of the message content, but also ensures that the user does not miss the information in the virtual social scene during the process of previewing the message content. Since the message preview operation is realized based on the message prompt control, it is not necessary to occupy the display resources of the terminal extra, and the utilization rate of the display resources of the terminal is improved. When there is a voice message in the unread message, for the inconvenient voice for checking, it is first converted into text and then displayed side by side with the user's text message. Since the user cannot click and listen to the voice during the long-press process, it can be guaranteed that the reading process is not interrupted by converting it into text.

[0140] In the following, the exemplary structure of the message preview device 555 in the virtual social scene according to the embodiments of the present application, implemented as a software module, will be continued to be described. In some embodiments, the message preview device in the virtual social scene according to the embodiments of the present application includes a first display module 5551, a second display module 5552, and a switching module 5553.

[0141] The first display module 5551 is configured to display at least two avatars on the page of the virtual social scene. Here, the avatar can move within the virtual social scene, and by moving within the virtual social scene, the avatar can change its relative positional relationship with other avatars.

[0142] When the second display module 5552 receives a message sent by a target avatar among the at least two avatars, it is configured to display a message prompt control for indicating the existence of an unread message in the virtual social scene.

[0143] The switching module 5553 is configured to switch the display of the message prompt control to the display of the content of the unread message in response to a message preview operation on the message prompt control.

[0144] In some embodiments, the switching module further cancels the display of the message prompt control when the message preview operation is a pressing operation on the message prompt control and the pressing operation satisfies the message preview condition, and is configured to display the content of the unread message at the target direction position of the target avatar during the execution of the pressing operation.

[0145] In some embodiments, the switching module further cancels the display of the content of the unread message when the pressing operation is released after displaying the content of the unread message, and is configured to redisplay the message prompt control at the target direction position of the target avatar.

[0146] In some embodiments, the switching module further cancels the display of the message prompt control when the message preview operation is a trigger operation on the message prompt control, At the target direction position of the target avatar, the content of the unread message is displayed, and when the display time length of the content reaches the first time length, the display of the content of the unread message is cancelled.

[0147] In some embodiments, the switching module further cancels the display of the message presentation control, and at the target direction position of the target avatar, a message preview frame is displayed, and the content of the unread message is displayed in the message preview frame.

[0148] In some embodiments, when the display area required for the content of the unread message is not larger than the display area of the message preview frame, the content of the unread message is directly displayed in the message preview frame. When the display area required for the content of the unread message is larger than the display area of the message preview frame, the content of the unread message is configured to be scrolled and displayed in the message preview frame.

[0149] In some embodiments, the switching module further displays the content of the first part of the unread message in the message preview frame. Scroll the content of the first part so that the content of the first part gradually disappears from the message preview frame. In the process of scrolling the content of the first part, the content of the second part of the unread message is gradually displayed, and the reception time of the content of the second part is earlier than the reception time of the content of the first part.

[0150] In some embodiments, among the at least two unread messages, for the first unread message and the second unread message whose reception times are adjacent, the content of the first unread message is displayed in the message preview frame. When the display duration of the content of the first unread message reaches the second duration, control is performed to move the first unread message out of the message preview frame so that it disappears. When the first unread message is moved out of the message preview frame, control is performed to move the second unread message into the message preview frame, and the content of the second unread message is configured to be displayed in the message preview frame.

[0151] In some embodiments, the switching module further cancels the display of the message presentation control, and when the unread message is an audio unread message, at the target direction position of the target avatar, the audio identifier of the audio unread message and the text content after performing text conversion on the audio unread message are configured to be displayed.

[0152] In some embodiments, the apparatus further includes a playback module configured to play the audio content of the audio unread message in the process of displaying the text content.

[0153] In some embodiments, the first display module further displays at least one avatar that does not include the target avatar on the page of the virtual social scene. When a message sent by the target avatar is received, on the page of the virtual social scene, the target avatar is displayed, and the target avatar and the at least one avatar are configured to be determined as the at least two avatars.

[0154] In some embodiments, the second display module is further configured to display a quick reply control for the unread message after switching the display of the message presentation control to the display of the content of the unread message, and the quick reply control is used to realize a quick reply to the unread message.

[0155] In some embodiments, the quick reply control is an audio quick reply control, and the apparatus further, in response to a pressing operation on the audio quick reply control, when the pressing operation meets a trigger condition, during the execution of the pressing operation, performs audio collection, and includes a message reply module configured to send a voice message including the collected audio content to the target avatar when the pressing operation is released.

[0156] In some embodiments, the quick reply control is a text quick reply control, and the apparatus further, in response to a trigger operation on the text quick reply control, displays a message sending frame and a corresponding sending control, in response to a text editing operation, displays the content edited in the message sending frame, and includes a message reply module configured to send the edited content to the target avatar in response to a message sending command triggered by the sending control.

[0157] In some embodiments, the virtual social scene further includes an avatar of a virtual group corresponding to at least one social group, and the avatar of the virtual group is used to represent a three-dimensional image model of the social group. When the second display module further receives a message sent by a member in the target social group, the second display module is configured to display a group message prompt control for indicating the existence of an unread group message at the target direction position of the target three-dimensional image model corresponding to the target social group. The switching module is further configured to switch the display of the group message presentation control to the display of the content of the unread group message at the target direction position of the target 3D image model in response to a message preview operation on the group message presentation control.

[0158] In some embodiments, the apparatus further includes a playback module configured to play message presentation audio when the number of unread messages reaches a quantity threshold, and the message presentation audio is used to instruct checking the unread messages sent by the target avatar.

[0159] In some embodiments, the apparatus further includes a detection module. When the virtual social scene is a virtual social scene based on virtual reality, a somatosensory operation for triggering the message presentation control is detected, and the detection module is configured to determine the somatosensory operation as the message preview operation, or a radiation emission operation on an external device is detected, and when the irradiation position of the radiation emitted by the external device corresponds to a target position by the radiation emission operation, the detection module is configured to determine the radiation emission operation as the message preview operation, wherein the target position is the display position of the message presentation control in the virtual social scene.

[0160] Embodiments of the present application further provide an electronic device, which includes a memory for storing executable instructions, and a processor for realizing the message preview method in the virtual social scene provided by the embodiments of the present application when executing the executable instructions stored in the memory.

[0161] Embodiments of the present application further provide a computer program product or a computer program, the computer program product or the computer program including computer-executable instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer-executable instructions from the computer-readable storage medium, and the processor executes the computer-executable instructions to cause the computer device to execute the message preview method in the virtual social scene provided in the embodiments of the present application.

[0162] Embodiments of the present application further provide a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the message preview method in the virtual social scene provided in the embodiments of the present application.

[0163] In some embodiments, the computer-readable storage medium may be a memory such as a read-only memory (ROM), a random access memory (RAM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface memory, an optical disk, or a CD-ROM, or may be various devices including one or any combination of the above memories.

[0164] In some embodiments, the executable instructions may take the form of a program, software, a software module, a script, or code, may be written in any form of programming language (including a compiled or interpreted language, or a declarative or procedural language), may be arranged in any form, and may be arranged as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.

[0165] By way of example, the executable instructions need not necessarily correspond to a file within a file system but may be stored as part of a file that stores other programs or data, for example, stored in one or more scripts within a hypertext markup language (HTML) document, stored in one file dedicated to the program being discussed, or stored in a plurality of cooperating files (for example, files that store one or more modules, subroutines, or code sections).

[0166] By way of example, the executable instructions may be executed on one computing device or on a plurality of computing devices located at one site, or may be arranged to be executed on a plurality of computing devices distributed across a plurality of sites and interconnected by a communication network.

[0167] It is understandable that for related data such as a user's trigger operation according to the embodiments of the present application, when the embodiments of the present application are applied to an actual product or technology, it is necessary to obtain the permission or consent of the user, and the collection, use, and processing of the related data need to comply with the relevant laws, regulations, and standards of the relevant countries and regions.

[0168] The above description is only an example of this application and is not intended to limit the protection scope of this application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of this application shall all be included in the protection scope of this application.

Claims

1. A method for message preview in a virtual social scene executed by an electronic device, comprising: In the page of the virtual social scene, displaying at least two avatars, wherein the avatars can move within the virtual social scene, and by moving within the virtual social scene, the avatars can change their relative positional relationship with other avatars; When receiving a message sent by a target avatar among the at least two avatars, displaying a message prompt control in the virtual social scene to indicate the existence of unread messages; Responding to a message preview operation on the message prompt control, and switching the display of the message prompt control to the display of the content of the unread message. A method for message preview in a virtual social scene.

2. The step of switching the display of the message prompt control to the display of the content of the unread message comprises: The message preview operation is a pressing operation on the message prompt control, and when the pressing operation meets the message preview condition, canceling the display of the message prompt control; During the execution of the pressing operation, displaying the content of the unread message at the target direction position of the target avatar. The method for message preview in a virtual social scene according to Claim 1, characterized in that it comprises the above steps.

3. After displaying the content of the unread message, When the pressing operation is released, further comprising the step of canceling the display of the content of the unread message and redisplaying the message prompt control at the target direction position of the target avatar. The method for message preview in a virtual social scene according to Claim 2, characterized in that it comprises the above steps.

4. The step of switching the display of the message prompt control to the display of the content of the unread message comprises: When the message preview operation is a trigger operation on the message prompt control, canceling the display of the message prompt control; ​ ​ At the target direction position of the target avatar, displaying the content of the unread message, and when the display time length of the content reaches a first time length, canceling the display of the content of the unread message, including the step of, characterized in that The message preview method in the virtual social scene according to any one of claims 1 to 3.

5. The step of switching the display of the message presentation control to the display of the content of the unread message is The step of canceling the display of the message presentation control and At the target direction position of the target avatar, displaying a message preview frame and displaying the content of the unread message in the message preview frame, including the step of, characterized in that The message preview method in the virtual social scene according to any one of claims 1 to 4.

6. The step of displaying the content of the unread message in the message preview frame is When the required display area of the content of the unread message is not larger than the display area of the message preview frame, directly displaying the content of the unread message in the message preview frame and When the required display area of the content of the unread message is larger than the display area of the message preview frame, scrolling and displaying the content of the unread message in the message preview frame, including the step of, characterized in that The message preview method in the virtual social scene according to claim 5.

7. The step of scrolling and displaying the content of the unread message in the message preview frame is The step of displaying the content of the first part of the unread message in the message preview frame and Scrolling the content of the first part so that the content of the first part gradually disappears from the message preview frame and In the process of scrolling the content of the first part, gradually displaying the content of the second part of the unread message, wherein the reception time of the content of the second part is earlier than the reception time of the content of the first part, including the step of, characterized in that The message preview method in the virtual social scene according to claim 6.

8. The number of the unread messages is at least two, and the step of scrolling and displaying the content of the unread messages in the message preview frame is For the first unread message and the second unread message among the at least two unread messages whose reception times are adjacent, the step of displaying the content of the first unread message in the message preview frame; When the display time length of the content of the first unread message reaches a second time length, the step of controlling to move the first unread message out of the message preview frame so that it disappears; When the first unread message is moved out of the message preview frame, the step of controlling to move the second unread message into the message preview frame and displaying the content of the second unread message in the message preview frame, characterized by The message preview method in the virtual social scene according to claim 6.

9. The step of switching the display of the message presentation control to the display of the content of the unread message includes the step of canceling the display of the message presentation control, and when the unread message is an audio unread message, displaying the audio identifier of the audio unread message and the text content after text conversion for the audio unread message at the target direction position of the target avatar, characterized by The message preview method in the virtual social scene according to any one of claims 1 to 8.

10. In the process of displaying the text content, further including the step of playing the audio content of the audio unread message, characterized by The message preview method in the virtual social scene according to claim 9.

11. The step of displaying at least two avatars on the page of the virtual social scene includes the step of displaying at least one avatar that does not include the target avatar on the page of the virtual social scene; When a message sent by the target avatar is received, the step of displaying the target avatar on the page of the virtual social scene; and the step of determining the target avatar and the at least one avatar as the at least two avatars, characterized by The message preview method in the virtual social scene according to any one of claims 1 to 10.

12. After switching the display of the message prompt control to the display of the content of the unread message, further comprising the step of displaying a speedy reply control for the unread message, wherein the speedy reply control is used to realize a speedy reply to the unread message The message preview method in the virtual social scene according to any one of claims 1 to 11.

13. The speedy reply control is a voice speedy reply control, responding to a pressing operation on the voice speedy reply control, when the pressing operation meets the trigger condition, during the execution of the pressing operation, the step of performing audio collection, and when the pressing operation is released, the step of sending an audio message including the collected audio content to the target avatar, further comprising the above, characterized in that The message preview method in the virtual social scene according to claim 12.

14. The speedy reply control is a text speedy reply control, responding to a trigger operation on the text speedy reply control, the step of displaying a message sending frame and a corresponding sending control, and responding to a text editing operation, the step of displaying the content edited in the message sending frame, and responding to a message sending command triggered by the sending control, the step of sending the edited content to the target avatar, further comprising the above, characterized in that The message preview method in the virtual social scene according to claim 12.

15. The virtual social scene further includes an avatar of a virtual group corresponding to at least one social group, and the avatar of the virtual group is used to represent a three-dimensional image model of the social group. When receiving a message sent by a member in a target social group, at the target direction position of the target three-dimensional image model corresponding to the target social group, the step of displaying a group message prompt control for indicating the existence of an unread group message. In response to a message preview operation on the group message presentation control, at the target direction position of the target three-dimensional image model, switching the display of the group message presentation control to the display of the content of the unread group message; and further including this, characterized by The message preview method in a virtual social scene according to any one of claims 1 to 14.

16. When the number of unread messages reaches a quantity threshold, further including the step of playing a message presentation audio, and the message presentation audio is used to instruct checking the unread messages sent by the target avatar, characterized by The message preview method in a virtual social scene according to any one of claims 1 to 15.

17. When the virtual social scene is a virtual social scene based on virtual reality, the message preview method in the virtual social scene is Detecting a somatosensory operation for triggering the message presentation control and determining the somatosensory operation as the message preview operation, or Detecting a radiation emission operation on an external device, and when the irradiation position of the radiation emitted by the external device corresponds to a target position by the radiation emission operation, further including the step of determining the radiation emission operation as the message preview operation, The target position is the display position of the message presentation control in the virtual social scene, characterized by The message preview method in a virtual social scene according to any one of claims 1 to 16.

18. A message preview device in a virtual social scene, including a first display module, a second display module, and a switching module, The first display module is configured to display at least two avatars on a page of the virtual social scene, The avatar can move within the virtual social scene, and by moving within the virtual social scene, the avatar can change the relative positional relationship with other avatars, When the second display module receives a message sent by a target avatar among the at least two avatars, it is configured to display a message presentation control for indicating the existence of an unread message at the target direction position of the target avatar in the virtual social scene. The switching module is configured to switch the display of the message presentation control to the display of the content of the unread message at the target direction position of the target avatar in response to a message preview operation on the message presentation control. A message preview device in a virtual social scene.

19. A memory for storing computer-executable instructions; When executing the computer-executable instructions stored in the memory, an electronic device including a processor for realizing the message preview method in the virtual social scene according to any one of claims 1 to 17.

20. A computer-readable storage medium storing computer-executable instructions for realizing the message preview method in the virtual social scene according to any one of claims 1 to 17 when executed by a processor.

21. A computer program product including a computer program or computer-executable instructions for realizing the message preview method in the virtual social scene according to any one of claims 1 to 17 when executed by a processor.

Citation Information

Patent Citations

  • Method and device for displaying information details and electronic equipment

    CN108108084A

  • Data processing system and method to acknowledge mail information

    JP2002297507A

  • Program, information storage medium and user terminal

    JP2012018569A

  • System and method for providing voice / text calling service

    JP2017517228A

  • Message processing method, unread message display method, and computer terminal

    JP2021513777A