CN118807216A - A method for sending interactive information and related device - Google Patents
A method for sending interactive information and related device Download PDFInfo
- Publication number
- CN118807216A CN118807216A CN202310423366.9A CN202310423366A CN118807216A CN 118807216 A CN118807216 A CN 118807216A CN 202310423366 A CN202310423366 A CN 202310423366A CN 118807216 A CN118807216 A CN 118807216A
- Authority
- CN
- China
- Prior art keywords
- virtual
- user
- virtual object
- control
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/85—Providing additional services to players
- A63F13/87—Communicating with other players during game play, e.g. by e-mail or chat
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/40—Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
- A63F13/42—Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/30—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
- A63F2300/308—Details of the user interface
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/50—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
- A63F2300/57—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers details of game services offered to the player
- A63F2300/572—Communication between players during game play of non game information, e.g. e-mail, chat, file transfer, streaming of audio and streaming of video
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/60—Methods for processing data by generating or executing the game program
- A63F2300/6045—Methods for processing data by generating or executing the game program for mapping control signals received from the input arrangement into game commands
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本申请实施例公开了一种互动信息的发送方法,至少应用于云技术领域。第一设备显示包括第一功能控件和第二功能控件的控制界面,第一功能控件用于控制第一虚拟对象,第二功能控件用于与参与同一虚拟对局的其他用户进行互动。而且,第一设备还会显示被其他用户控制的虚拟对象的对象标识。在基于控制界面获取互动信息后,向目标设备发送互动信息。由此,在通过第一设备参与虚拟对局的过程中,可以通过第一设备获取并发送互动信息,相比于通过第一设备与第二设备配合生成互动信息,仅通过第一设备获取互动信息,提高互动信息的输入效率,降低目标设备接收到互动信息延迟的概率,提高了用户体验感,以及用户的留存率。
An embodiment of the present application discloses a method for sending interactive information, which is at least applied in the field of cloud technology. The first device displays a control interface including a first function control and a second function control, the first function control is used to control a first virtual object, and the second function control is used to interact with other users participating in the same virtual game. In addition, the first device will also display the object identification of the virtual object controlled by other users. After obtaining the interactive information based on the control interface, the interactive information is sent to the target device. Thus, in the process of participating in the virtual game through the first device, the interactive information can be obtained and sent through the first device. Compared with generating the interactive information through the cooperation of the first device and the second device, the interactive information is obtained only through the first device, which improves the input efficiency of the interactive information, reduces the probability of delay in the target device receiving the interactive information, and improves the user experience and the user retention rate.
Description
技术领域Technical Field
本申请涉及数据处理技术领域,特别是涉及一种互动信息的发送方法和相关装置。The present application relates to the field of data processing technology, and in particular to a method for sending interactive information and related devices.
背景技术Background Art
虽然智能设备的功能在不断增多,但是很多智能设备还不具备所有用户所需要的功能,需要通过具有特定功能的外接设备实现。例如,目前很多智能电视可以进行云游戏。具体地,用户通过游戏手柄、遥控器等具有控制功能的外接设备,向云游戏所在的云服务器发送控制指令,云服务器将对应的游戏画面传输至智能电视,以便通过智能电视展示给用户。Although the functions of smart devices are increasing, many smart devices do not yet have all the functions required by users, and need to be realized through external devices with specific functions. For example, many smart TVs can currently play cloud games. Specifically, users use external devices with control functions such as game controllers and remote controls to send control instructions to the cloud server where the cloud game is located. The cloud server transmits the corresponding game screen to the smart TV so that it can be displayed to the user through the smart TV.
若用户想要在云游戏过程中与游戏队友聊天,但是智能电视不具有语音功能时,需要通过控制外接设备的方向键,在智能电视提供的虚拟键盘中选择拼音字母、英文字母或五笔偏旁等所需内容,生成用于聊天的互动信息。If the user wants to chat with teammates during cloud gaming, but the smart TV does not have a voice function, he needs to control the direction keys of the external device and select the required content such as pinyin letters, English letters or Wubi radicals in the virtual keyboard provided by the smart TV to generate interactive information for chatting.
但是,通过智能设备与外接设备配合生成互动信息,导致互动信息的输入效率较低,游戏队友接收到互动信息延迟的概率较大,很大程度上影响游戏队友之间的交流意愿和游戏体验。从而导致用户体验感较差,用户的留存率低。However, the interactive information generated by smart devices in conjunction with external devices results in low efficiency in inputting interactive information, and a high probability of delay in receiving interactive information by teammates, which greatly affects the communication willingness and gaming experience between teammates, resulting in a poor user experience and low user retention rate.
发明内容Summary of the invention
为了解决上述技术问题,本申请提供了一种互动信息的发送方法和相关装置,通过提高互动信息的生成效率,提高用户的体验感,以及用户的留存率。In order to solve the above technical problems, the present application provides a method and related device for sending interactive information, which improves the user experience and user retention rate by improving the efficiency of generating interactive information.
本申请实施例公开了如下技术方案:The embodiments of the present application disclose the following technical solutions:
一方面,本申请实施例提供一种互动信息的发送方法,所述方法包括:On the one hand, an embodiment of the present application provides a method for sending interactive information, the method comprising:
显示控制界面,所述控制界面包括第一功能控件和第二功能控件,所述第一功能控件用于控制在第二设备显示的第一虚拟对象;Display a control interface, the control interface comprising a first function control and a second function control, the first function control being used to control a first virtual object displayed on a second device;
响应于接收到对所述第二功能控件的触发操作,基于所述控制界面显示与所述第二虚拟对象相关的对象标识,所述第二虚拟对象和所述第一虚拟对象处于同一虚拟对局,所述第二虚拟对象通过目标设备控制,所述目标设备为与所述第一设备进行互动的设备;In response to receiving a trigger operation on the second function control, an object identifier related to the second virtual object is displayed based on the control interface, the second virtual object and the first virtual object are in the same virtual game, the second virtual object is controlled by a target device, and the target device is a device that interacts with the first device;
基于所述控制界面获取互动信息,并向所述目标设备发送所述互动信息。The interactive information is acquired based on the control interface, and the interactive information is sent to the target device.
另一方面,本申请实施例提供一种互动信息的发送装置,所述装置包括:显示单元和执行单元;On the other hand, an embodiment of the present application provides a device for sending interactive information, the device comprising: a display unit and an execution unit;
所述显示单元,用于显示控制界面,所述控制界面包括第一功能控件和第二功能控件,所述第一功能控件用于控制在第二设备显示的第一虚拟对象;The display unit is used to display a control interface, the control interface includes a first function control and a second function control, the first function control is used to control a first virtual object displayed on the second device;
所述显示单元,还用于响应于接收到对所述第二功能控件的触发操作,基于所述控制界面显示与所述第二虚拟对象相关的对象标识,所述第二虚拟对象和所述第一虚拟对象处于同一虚拟对局,所述第二虚拟对象通过目标设备控制,所述目标设备为与所述第一设备进行互动的设备;The display unit is further configured to, in response to receiving a trigger operation on the second function control, display an object identifier related to the second virtual object based on the control interface, the second virtual object and the first virtual object are in the same virtual game, the second virtual object is controlled by a target device, and the target device is a device that interacts with the first device;
所述执行单元,用于基于所述控制界面获取互动信息,并向所述目标设备发送所述互动信息。The execution unit is used to obtain interaction information based on the control interface and send the interaction information to the target device.
另一方面,本申请实施例提供一种计算机设备,所述计算机设备包括处理器以及存储器:On the other hand, an embodiment of the present application provides a computer device, the computer device comprising a processor and a memory:
所述存储器用于存储计算机程序,并将所述计算机程序传输给所述处理器;The memory is used to store a computer program and transmit the computer program to the processor;
所述处理器用于根据所述计算机程序中的指令执行上述方面所述的方法。The processor is configured to execute the method described in the above aspects according to the instructions in the computer program.
另一方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质用于存储计算机程序,所述计算机程序用于执行上述方面所述的方法。On the other hand, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method described in the above aspects.
另一方面,本申请实施例提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述方面所述的方法。On the other hand, an embodiment of the present application provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method described in the above aspects.
由上述技术方案可以看出,第一设备显示包括第一功能控件和第二功能控件的控制界面,通过第一设备包括的第一功能控件控制第一虚拟对象,第一虚拟对象由第二设备进行显示,第一设备接收到对第二功能控件执行的触发操作后,控制界面会显示与第二虚拟对象相关的对象标识。其中,第二虚拟对象和第一虚拟对象处于同一虚拟对局,且第二虚拟对象受目标设备控制,目标设备为与第一设备进行互动的设备。也就是说,用户能够通过第二功能控件,与参与同一虚拟对局的其他用户进行互动,并且显示参与互动的其他用户控制的虚拟对象的对象标识。故在基于控制界面获取互动信息后,向目标设备发送互动信息。由此,在通过第一设备参与虚拟对局的过程中,可以通过第一设备获取并发送互动信息,相比于通过第一设备与第二设备配合生成互动信息,仅通过第一设备获取互动信息,提高互动信息的输入效率,降低目标设备接收到互动信息延迟的概率,用户愿意与参与同一虚拟对局的用户进行互动,提高了用户体验感,以及用户的留存率。It can be seen from the above technical solution that the first device displays a control interface including a first function control and a second function control, and the first virtual object is controlled by the first function control included in the first device, and the first virtual object is displayed by the second device. After the first device receives the trigger operation performed on the second function control, the control interface will display the object identification related to the second virtual object. Among them, the second virtual object and the first virtual object are in the same virtual game, and the second virtual object is controlled by the target device, and the target device is a device that interacts with the first device. In other words, the user can interact with other users participating in the same virtual game through the second function control, and display the object identification of the virtual object controlled by other users participating in the interaction. Therefore, after obtaining the interactive information based on the control interface, the interactive information is sent to the target device. Therefore, in the process of participating in the virtual game through the first device, the interactive information can be obtained and sent through the first device. Compared with generating interactive information through the cooperation of the first device and the second device, the interactive information is obtained only through the first device, which improves the input efficiency of the interactive information, reduces the probability of the target device receiving the interactive information delay, and the user is willing to interact with the user participating in the same virtual game, which improves the user experience and the user retention rate.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
图1为本申请实施例提供的互动信息的发送方法的应用场景示意图;FIG1 is a schematic diagram of an application scenario of a method for sending interactive information provided in an embodiment of the present application;
图2为本申请实施例提供的互动信息的发送方法的流程示意图;FIG2 is a schematic diagram of a flow chart of a method for sending interactive information provided in an embodiment of the present application;
图3为本申请实施例提供的一种开启虚拟对局的示意图;FIG3 is a schematic diagram of starting a virtual game provided by an embodiment of the present application;
图4为本申请实施例提供的一种功能控件的示意图;FIG4 is a schematic diagram of a functional control provided in an embodiment of the present application;
图5为本申请实施例提供的一种第二设备显示连接信息的示意图;FIG5 is a schematic diagram of a second device displaying connection information provided by an embodiment of the present application;
图6为本申请实施例提供的一种手机扫描二维码的示意图;FIG6 is a schematic diagram of a mobile phone scanning a QR code provided in an embodiment of the present application;
图7为本申请实施例提供的一种虚拟画面的示意图;FIG7 is a schematic diagram of a virtual screen provided in an embodiment of the present application;
图8为本申请实施例提供的一种显示互动请求的示意图;FIG8 is a schematic diagram of displaying an interactive request provided by an embodiment of the present application;
图9为本申请实施例提供的一种第三功能控件的示意图;FIG9 is a schematic diagram of a third function control provided in an embodiment of the present application;
图10为本申请实施例提供的一种第三功能控件的示意图;FIG10 is a schematic diagram of a third function control provided in an embodiment of the present application;
图11为本申请实施例提供的一种进行视频互动的示意图;FIG11 is a schematic diagram of a video interaction provided in an embodiment of the present application;
图12为本申请实施例提供的一种视频画面的示意图;FIG12 is a schematic diagram of a video screen provided in an embodiment of the present application;
图13为本申请实施例提供的一种视频画面的示意图;FIG13 is a schematic diagram of a video screen provided in an embodiment of the present application;
图14为本申请实施例提供的一种视频互动提示的示意图;FIG14 is a schematic diagram of a video interaction prompt provided in an embodiment of the present application;
图15为本申请实施例提供的一种视频互动提示的示意图;FIG15 is a schematic diagram of a video interaction prompt provided in an embodiment of the present application;
图16为本申请实施例提供的一种视频画面的示意图;FIG16 is a schematic diagram of a video screen provided in an embodiment of the present application;
图17为本申请实施例提供的一种视频画面的示意图;FIG17 is a schematic diagram of a video screen provided in an embodiment of the present application;
图18为本申请实施例提供的一种视频画面的示意图;FIG18 is a schematic diagram of a video screen provided in an embodiment of the present application;
图19为本申请实施例提供的一种第四功能控件的示意图;FIG19 is a schematic diagram of a fourth function control provided in an embodiment of the present application;
图20为本申请实施例提供的一种第四功能控件的示意图;FIG20 is a schematic diagram of a fourth function control provided in an embodiment of the present application;
图21为本申请实施例提供的一种互动结束提示的示意图;FIG21 is a schematic diagram of an interaction end prompt provided in an embodiment of the present application;
图22为本申请实施例提供的一种互动信息的发送系统的示意图;FIG22 is a schematic diagram of a system for sending interactive information provided in an embodiment of the present application;
图23为本申请实施例提供的一种互动信息的发送方法的应用场景示意图;FIG23 is a schematic diagram of an application scenario of a method for sending interactive information provided in an embodiment of the present application;
图24为本申请实施例提供的一种建立连接的示意图;FIG24 is a schematic diagram of establishing a connection provided in an embodiment of the present application;
图25为本申请实施例提供的一种视频画面的示意图;FIG25 is a schematic diagram of a video screen provided in an embodiment of the present application;
图26为本申请实施例提供的一种第五功能控件的示意图;FIG26 is a schematic diagram of a fifth function control provided in an embodiment of the present application;
图27为本申请实施例提供的一种互动信息的发送装置的结构示意图;FIG27 is a schematic diagram of the structure of a device for sending interactive information provided in an embodiment of the present application;
图28为本申请实施例提供的服务器的结构示意图;FIG28 is a schematic diagram of the structure of a server provided in an embodiment of the present application;
图29为本申请实施例提供的终端设备的结构示意图。Figure 29 is a schematic diagram of the structure of the terminal device provided in an embodiment of the present application.
具体实施方式DETAILED DESCRIPTION
下面结合附图,对本申请的实施例进行描述。The embodiments of the present application are described below in conjunction with the accompanying drawings.
基于相关技术中,通过智能设备与外接设备配合生成互动信息,导致用户体验感较差,用户的留存率低的问题。本申请实施例提供一种互动信息的发送方法和相关装置,在通过第一设备参与虚拟对局的过程中,还可以通过第一设备获取并发送互动信息,即仅通过第一设备获取互动信息,提高互动信息的输入效率,提高了用户体验感,以及用户的留存率。Based on the related art, the generation of interactive information through the cooperation of smart devices and external devices leads to poor user experience and low user retention rate. The embodiment of the present application provides a method for sending interactive information and a related device. In the process of participating in a virtual game through a first device, the interactive information can also be obtained and sent through the first device, that is, the interactive information is only obtained through the first device, which improves the input efficiency of the interactive information, improves the user experience, and improves the user retention rate.
本申请实施例提供的互动信息的发送方法可以应用于云技术(Cloudtechnology),云技术是指在广域网或局域网内将硬件、软件、网络等系列资源统一起来,实现数据的计算、储存、处理和共享的一种托管技术。而且,基于云计算商业模式应用的网络技术、信息技术、整合技术、管理平台技术、应用技术等的总称,可以组成资源池,按需所用,灵活便利。云计算技术将变成重要支撑。技术网络系统的后台服务需要大量的计算、存储资源,如视频网站、图片类网站和更多的门户网站。伴随着互联网行业的高度发展和应用,将来每个物品都有可能存在自己的识别标志,都需要传输到后台系统进行逻辑处理,不同程度级别的数据将会分开处理,各类行业数据皆需要强大的系统后盾支撑,只能通过云计算来实现。The method for sending interactive information provided in the embodiment of the present application can be applied to cloud technology, which refers to a hosting technology that unifies a series of resources such as hardware, software, and network in a wide area network or a local area network to realize the calculation, storage, processing, and sharing of data. Moreover, the general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model application can form a resource pool, which can be used on demand and is flexible and convenient. Cloud computing technology will become an important support. The background services of the technical network system require a large amount of computing and storage resources, such as video websites, picture websites, and more portal websites. With the high development and application of the Internet industry, in the future, each item may have its own identification mark, and all need to be transmitted to the background system for logical processing. Data of different levels will be processed separately, and all kinds of industry data require strong system backing support, which can only be achieved through cloud computing.
本申请实施例提供的互动信息的发送方法,可以应用于需要云服务器支持的各种产品中,如云游戏(Cloud gaming)。云游戏又可称为游戏点播(gaming on demand),是一种以云计算技术为基础的在线游戏技术。云游戏技术使图形处理与数据运算能力相对有限的轻端设备(thin client)能运行高品质游戏。在云游戏场景下,游戏并不在玩家游戏终端,而是在云端服务器中运行,并由云端服务器将游戏场景渲染为视频音频流,通过网络传输给玩家游戏终端。玩家游戏终端无需拥有强大的图形运算与数据处理能力,仅需拥有基本的流媒体播放能力与获取玩家输入指令并发送给云端服务器的能力即可。The method for sending interactive information provided in the embodiment of the present application can be applied to various products that require cloud server support, such as cloud gaming. Cloud gaming, also known as gaming on demand, is an online gaming technology based on cloud computing technology. Cloud gaming technology enables thin clients with relatively limited graphics processing and data computing capabilities to run high-quality games. In a cloud gaming scenario, the game is not run on the player's game terminal, but on a cloud server, and the cloud server renders the game scene as a video and audio stream, which is transmitted to the player's game terminal over the network. The player's game terminal does not need to have powerful graphics computing and data processing capabilities, but only needs to have basic streaming media playback capabilities and the ability to obtain player input instructions and send them to the cloud server.
本申请提供的互动信息的发送方法可以应用于具有互动信息的发送能力的计算机设备,如终端设备、服务器。其中,终端设备具体可以为台式计算机、笔记本电脑、手机、平板电脑、物联网设备和便携式可穿戴设备,物联网设备可为智能音箱、智能电视、智能空调、智能车载设备等,智能车载设备可以车载导航终端和车载电脑等,便携式可穿戴设备可为智能手表、智能手环、头戴设备等,但并不局限于此;服务器可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(Content Delivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器或服务器集群。终端设备以及服务器可以通过有线或无线通信方式进行直接或间接地连接,本申请在此不做限制。The method for sending interactive information provided in this application can be applied to computer devices with the ability to send interactive information, such as terminal devices and servers. Among them, the terminal device can specifically be a desktop computer, a laptop computer, a mobile phone, a tablet computer, an Internet of Things device and a portable wearable device. The Internet of Things device can be a smart speaker, a smart TV, a smart air conditioner, a smart car device, etc. The smart car device can be a car navigation terminal and a car computer, etc. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, etc., but it is not limited to this; the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server or server cluster 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 (Content Delivery Network, CDN), and big data and artificial intelligence platforms. Terminal devices and servers can be directly or indirectly connected through wired or wireless communication, and this application does not limit this.
为了便于理解本申请实施例提供的互动信息的发送方法,下面以该互动信息的发送方法的执行主体为终端设备为例,对该互动信息的发送方法的应用场景进行示例性介绍。To facilitate understanding of the method for sending interactive information provided in an embodiment of the present application, the following uses a terminal device as an example in which the execution subject of the method for sending interactive information is used to exemplify an application scenario of the method for sending interactive information.
参见图1,该图为本申请实施例提供的互动信息的发送方法的应用场景示意图。如图1所示,该应用场景以云游戏场景为例,该实施环境包括终端设备110、转发设备120、终端设备130、服务器140、终端设备150、转发设备160和终端设备170。See Figure 1, which is a schematic diagram of an application scenario of the method for sending interactive information provided in an embodiment of the present application. As shown in Figure 1, the application scenario takes a cloud gaming scenario as an example, and the implementation environment includes a terminal device 110, a forwarding device 120, a terminal device 130, a server 140, a terminal device 150, a forwarding device 160, and a terminal device 170.
其中,终端设备110与终端设备130可以处于同一局域网内,二者可以链接同一个转发设备(如路由器或网关等设备),通过该转发设备进行通讯。同理,终端设备150与终端设备170可以处于另一局域网内,二者也链接同一个转发设备,通过该转发设备进行通讯。终端设备130与服务器140之间可以通过网络通信。同理,终端设备170与服务器140之间也可以通过网络通信。Among them, the terminal device 110 and the terminal device 130 can be in the same local area network, and the two can be connected to the same forwarding device (such as a router or gateway) and communicate through the forwarding device. Similarly, the terminal device 150 and the terminal device 170 can be in another local area network, and the two can also be connected to the same forwarding device and communicate through the forwarding device. The terminal device 130 and the server 140 can communicate through the network. Similarly, the terminal device 170 and the server 140 can also communicate through the network.
终端设备130安装和运行云游戏的应用程序,用户A可以通过终端设备130进行云游戏。其中,云游戏是指服务器140运行云游戏,并将云游戏对应的虚拟画面发送给终端设备130进行显示。在进行云游戏的过程中,用户可以将终端设备110与终端设备130进行连接,从而通过终端设备110发送针对于云游戏的控制指令,如控制第一虚拟对象跳跃、跑步、冲刺等。The terminal device 130 installs and runs the cloud game application, and user A can play the cloud game through the terminal device 130. The cloud game refers to the server 140 running the cloud game and sending the virtual screen corresponding to the cloud game to the terminal device 130 for display. During the cloud game, the user can connect the terminal device 110 with the terminal device 130, so as to send control instructions for the cloud game through the terminal device 110, such as controlling the first virtual object to jump, run, sprint, etc.
以云游戏中一局虚拟对局为例,用户A控制该虚拟对局中的第一虚拟对象,用户B控制该虚拟对局中的第二虚拟对象,以实现多人参与该云游戏中的依据虚拟对局。终端设备110在其控制界面111中显示第一功能控件和第二功能控件。其中,第一功能控件用于控制第一虚拟对象,而且第一虚拟对象所在的虚拟画面显示在终端设备130中,也就是说,用户A可以通过第一功能控件发送针对于第一虚拟对象的控制指令,该控制指令可以通过终端设备130发送给服务器140。Taking a virtual game in a cloud game as an example, user A controls the first virtual object in the virtual game, and user B controls the second virtual object in the virtual game, so that multiple people can participate in the virtual game in the cloud game. The terminal device 110 displays the first function control and the second function control in its control interface 111. Among them, the first function control is used to control the first virtual object, and the virtual screen where the first virtual object is located is displayed in the terminal device 130, that is, user A can send a control instruction for the first virtual object through the first function control, and the control instruction can be sent to the server 140 through the terminal device 130.
服务器140中运行有云游戏客户端,用于运行云游戏并生成云游戏对应的虚拟画面。服务器140基于接收到的控制指令运行虚拟对局,并将虚拟对局中第一虚拟对象对应的虚拟画面发送给终端设备130,将虚拟对局中第二虚拟对象对应的虚拟画面发送给终端设备170。The server 140 runs a cloud game client for running the cloud game and generating a virtual screen corresponding to the cloud game. The server 140 runs the virtual game based on the received control instruction, and sends the virtual screen corresponding to the first virtual object in the virtual game to the terminal device 130, and sends the virtual screen corresponding to the second virtual object in the virtual game to the terminal device 170.
若接收到第二功能控件的触发操作,说明用户A想要与参与该虚拟对局的其他用户进行互动,以用户B为例,可以建立终端设备110与终端设备150之间的连接,在终端设备110获取互动信息后,通过该连接将互动信息发送给终端设备150。例如,终端设备110可以通过转发装置将互动信息发送给终端设备130,再通过网络将互动信息发送给服务器140,服务器140通过网络将互动信息发送给终端设备170,终端设备170通过转发装置将互动信息发送给终端设备150。If the trigger operation of the second function control is received, it means that user A wants to interact with other users participating in the virtual game. Taking user B as an example, a connection between terminal device 110 and terminal device 150 can be established. After terminal device 110 obtains the interactive information, the interactive information is sent to terminal device 150 through the connection. For example, terminal device 110 can send the interactive information to terminal device 130 through a forwarding device, and then send the interactive information to server 140 through the network. Server 140 sends the interactive information to terminal device 170 through the network, and terminal device 170 sends the interactive information to terminal device 150 through a forwarding device.
由此,在通过第一设备参与虚拟对局的过程中,还可以通过第一设备获取并发送互动信息,相比于通过第一设备与第二设备配合生成互动信息,仅通过第一设备获取互动信息,提高互动信息的输入效率,降低目标设备接收到互动信息延迟的概率,用户愿意与参与同一虚拟对局的用户进行互动,提高了用户体验感,以及用户的留存率。Therefore, in the process of participating in the virtual game through the first device, interactive information can also be obtained and sent through the first device. Compared with generating interactive information through the cooperation of the first device and the second device, obtaining interactive information only through the first device improves the input efficiency of interactive information and reduces the probability of delay in the target device receiving interactive information. Users are willing to interact with users participating in the same virtual game, thereby improving user experience and user retention rate.
本申请实施例所提供的互动信息的发送方法可以由终端设备执行。但是,在本申请的其它实施例中,服务器也可以与终端设备具有相似的功能,从而执行本申请实施例所提供的互动信息的发送方法,或者由终端设备和服务器共同执行本申请实施例所提供的互动信息的发送方法,本实施例对此不做限定。The method for sending interactive information provided in the embodiment of the present application can be executed by a terminal device. However, in other embodiments of the present application, the server can also have similar functions to the terminal device, thereby executing the method for sending interactive information provided in the embodiment of the present application, or the terminal device and the server can jointly execute the method for sending interactive information provided in the embodiment of the present application, and this embodiment does not limit this.
下面通过方法实施例对本申请提供的互动信息的发送方法进行详细介绍。The following is a detailed introduction to the method for sending interactive information provided by the present application through a method embodiment.
参见图2,该图为本申请实施例提供的互动信息的发送方法的流程示意图。为了便于描述,下述实施例仍以该互动信息的发送方法的执行主体为服务器为例进行介绍。如图2所示,该互动信息的发送方法包括以下步骤:See Figure 2, which is a flow chart of the method for sending interactive information provided in an embodiment of the present application. For ease of description, the following embodiment is still introduced by taking the execution subject of the method for sending interactive information as a server as an example. As shown in Figure 2, the method for sending interactive information includes the following steps:
S201:显示控制界面。S201: Display a control interface.
如云游戏等应用程序在服务器或终端设备中运行,服务器或终端设备将运行过程中的虚拟画面发送给第二设备,以便在第二设备中显示对应的虚拟画面,从而对第二设备的处理器和显卡没有特别要求,第二设备仅相当于显示设备。When applications such as cloud games are running in a server or terminal device, the server or terminal device sends the virtual images during the running process to the second device so that the corresponding virtual images can be displayed in the second device. Therefore, there are no special requirements for the processor and graphics card of the second device, and the second device is only equivalent to a display device.
在实际应用中,用户可以通过第二设备进入一局虚拟对局,再通过第一设备控制虚拟对局中的第一虚拟对象。其中,虚拟对局是指在虚拟环境中,通过执行一些交互操作而完成的一局游戏,如消除类游戏、塔防类游戏、关卡解密类游戏等关卡类游戏中的每一个关卡可以看作一局虚拟对局等。参见图3,该图为本申请实施例提供的一种开启虚拟对局的示意图。在图3中,第二设备是智能电视,智能电视显示云平台提供的多种云游戏,用户张三可以通过遥控器等控制设备选择C游戏,并开启一局虚拟对局。需要说明的是,用户也可以通过直接点击智能电视的屏幕选择一种云游戏等,本申请实施例对此不做具体限定。In actual applications, the user can enter a virtual game through the second device, and then control the first virtual object in the virtual game through the first device. Among them, a virtual game refers to a game completed by performing some interactive operations in a virtual environment, such as elimination games, tower defense games, level decryption games, and other level games. Each level can be regarded as a virtual game, etc. See Figure 3, which is a schematic diagram of starting a virtual game provided by an embodiment of the present application. In Figure 3, the second device is a smart TV, and the smart TV displays a variety of cloud games provided by the cloud platform. User Zhang San can select game C through a control device such as a remote control and start a virtual game. It should be noted that the user can also select a cloud game by directly clicking on the screen of the smart TV, and the embodiment of the present application does not specifically limit this.
在每一局虚拟对局中,包括第一虚拟对象和至少一个第二虚拟对象。第一虚拟对象是通过第一设备控制的虚拟对象,第二虚拟对象是通过目标设备控制的虚拟对象,第二虚拟对象与第一虚拟对象为不同的虚拟对象。例如,第一虚拟对象和第二虚拟对象为虚拟对局中同一阵容的两个虚拟对象。又如,第一虚拟对象和第二虚拟对象为虚拟对局中不同阵容的两个虚拟对象。In each virtual game, a first virtual object and at least one second virtual object are included. The first virtual object is a virtual object controlled by a first device, and the second virtual object is a virtual object controlled by a target device, and the second virtual object and the first virtual object are different virtual objects. For example, the first virtual object and the second virtual object are two virtual objects of the same lineup in the virtual game. For another example, the first virtual object and the second virtual object are two virtual objects of different lineups in the virtual game.
作为一种可能的实现方式,若想要通过第一设备控制在第二设备显示的虚拟对局中的第一虚拟对象,第一设备可以与第二设备处于连接状态,从而第一设备通过连接第二设备,向第二设备发送对应的控制指令,以便第二设备通过网络等将对应的控制指令转发给云服务器。又或者,第一设备通过连接第二设备,向第二设备发送针对于第一虚拟对象的操作信息,第二设备基于操作信息生成控制指令并转发给云服务器。As a possible implementation, if you want to control the first virtual object in the virtual game displayed by the second device through the first device, the first device can be in a connected state with the second device, so that the first device sends a corresponding control instruction to the second device by connecting to the second device, so that the second device forwards the corresponding control instruction to the cloud server through the network, etc. Alternatively, the first device sends operation information for the first virtual object to the second device by connecting to the second device, and the second device generates a control instruction based on the operation information and forwards it to the cloud server.
作为一种可能的实现方式,若想要通过第一设备控制在第二设备显示的虚拟对局中的第一虚拟对象,在第一设备将对应的控制指令直接发送给服务器后,服务器能够知晓基于该控制指令控制对应虚拟对局中的第一虚拟对象,并将对应的虚拟画面发送给第二设备显示。As a possible implementation method, if you want to control the first virtual object in a virtual game displayed on a second device through a first device, after the first device sends the corresponding control instruction directly to the server, the server can know how to control the first virtual object in the corresponding virtual game based on the control instruction, and send the corresponding virtual picture to the second device for display.
控制界面包括第一功能控件和第二功能控件,其中,第一功能控件用于控制第一虚拟对象,下面结合图4进行说明。The control interface includes a first functional control and a second functional control, wherein the first functional control is used to control the first virtual object, which is described below in conjunction with FIG. 4 .
参见图4,该图为本申请实施例提供的一种功能控件的示意图。在图4中,第一设备相当于“虚拟手柄”,第一功能控件包括控件401-控件409。其中,控件401为模拟左摇杆(left stick)的控件;控件402为模拟左扳机(Left Trigger)的控件;控件403为模拟左前按钮(Left Bumper)的控件;控件404为模拟十字方向键的控件;控件405为模拟操作摇杆的控件;控件406为模拟右扳机(Right Trigge)的控件;控件407为模拟右前按钮(RightBumper)的控件;控件408为模拟右摇杆(right stick)的控件;控件409为模拟功能键A键/B键/X键/Y键的控件。第二功能控件为控件410,通过针对控件410执行点击等触发操作,可以使得第二功能控件处于开启状态,从而通过语音等形式与控制该虚拟对局中虚拟对象的用户进行互动。See Figure 4, which is a schematic diagram of a functional control provided in an embodiment of the present application. In Figure 4, the first device is equivalent to a "virtual handle", and the first functional control includes controls 401-409. Among them, control 401 is a control that simulates a left stick; control 402 is a control that simulates a left trigger; control 403 is a control that simulates a left front button; control 404 is a control that simulates a cross direction key; control 405 is a control that simulates an operating stick; control 406 is a control that simulates a right trigger; control 407 is a control that simulates a right front button; control 408 is a control that simulates a right stick; control 409 is a control that simulates function keys A/B/X/Y. The second function control is control 410. By performing a trigger operation such as clicking on control 410, the second function control can be turned on, thereby interacting with the user who controls the virtual object in the virtual game through voice or other means.
例如,在实际应用中,用户可以通过第一设备连接第二设备,若检测到第一设备和第二设备连接成功,第一设备直接在其包括的控制界面上显示第一功能控件和第二功能控件。For example, in actual application, a user may connect a second device through a first device. If it is detected that the first device and the second device are successfully connected, the first device directly displays the first function control and the second function control on the control interface included therein.
需要说明的是,本申请实施例中相关数据收集处理在实例应用时应该严格根据相关国家法律法规的要求,获取个人信息主体的知情同意或单独同意,并在法律法规及个人信息主体的授权范围内,开展后续数据使用及处理行为。It should be noted that the relevant data collection and processing in the embodiments of the present application should be strictly in accordance with the requirements of relevant national laws and regulations when applied in examples, and the informed consent or separate consent of the personal information subject should be obtained, and subsequent data use and processing should be carried out within the scope of authorization of laws and regulations and the personal information subject.
S202:响应于接收到对第二功能控件的触发操作,基于控制界面显示与第二虚拟对象相关的对象标识。S202: In response to receiving a trigger operation on a second functional control, displaying an object identifier related to a second virtual object based on a control interface.
响应于,用于表示所执行的操作所依赖的条件或者状态,当满足所依赖的条件或状态时,所执行的一个或多个操作可以是实时的,也可以具有设定的延迟:在没有特别说明的情况下,所执行的多个操作不存在执行先后顺序的限制。响应于检测到第一设备和第二设备处于连接状态,则在第一设备显示第一功能控件和第二功能控件。In response to, it is used to indicate the condition or state on which the executed operation depends. When the dependent condition or state is met, the one or more operations executed can be real-time or have a set delay: unless otherwise specified, there is no restriction on the order of execution of the multiple operations executed. In response to detecting that the first device and the second device are in a connected state, the first function control and the second function control are displayed on the first device.
第二功能控件为用户进行互动的控件。若第一设备接收到针对第二功能控件的触发操作,说明使用第一设备的用户想要与参与该虚拟对局的其他用户进行互动,其他用户在虚拟对局中控制着其他虚拟对象,如第二虚拟对象等。The second function control is a control for user interaction. If the first device receives a trigger operation for the second function control, it means that the user using the first device wants to interact with other users participating in the virtual game, and the other users control other virtual objects in the virtual game, such as the second virtual object.
在第一设备接收到针对第二功能控件的触发操作后,说明该用户具有与其他用户进行互动的意愿,若其他用户具有与使用第一设备的用户进行互动的意愿,下面以控制第二虚拟对象的用户为例进行说明,则在控制界面中显示与第二虚拟对象相关的对象标识,如用于标识第二虚拟对象的对象标识、用于标识控制所述第二虚拟对象的用户的对象标识等,以便使用第一设备的用户知晓,控制第二虚拟对象的用户将会与其进行互动。作为一种可能的实现方式,还可以建立第一设备与目标设备之间的连接,其中,目标设备为用于控制第二虚拟对象的设备。After the first device receives the trigger operation for the second function control, it indicates that the user has the intention to interact with other users. If other users have the intention to interact with the user using the first device, the user controlling the second virtual object is used as an example for explanation. Then, the object identifier related to the second virtual object is displayed in the control interface, such as the object identifier for identifying the second virtual object, the object identifier for identifying the user controlling the second virtual object, etc., so that the user using the first device knows that the user controlling the second virtual object will interact with it. As a possible implementation method, a connection between the first device and a target device can also be established, wherein the target device is a device for controlling the second virtual object.
需要说明的是,在用户触发第二功能控件后,可以使得第二功能控件处于开启状态或关闭状态,若第二功能控件处于开启状态,则说明该用户具有与其他用户进行互动的意愿。从而通过触发操作控制第二功能控件的状态,以便当第二功能控件处于开启状态后,用户可以直接与其他用户进行互动,而无需每次互动前均需触发第二功能控件,提高用户的体验感。It should be noted that after the user triggers the second function control, the second function control can be turned on or off. If the second function control is turned on, it means that the user has the intention to interact with other users. Thus, the state of the second function control is controlled by the triggering operation, so that when the second function control is turned on, the user can directly interact with other users without having to trigger the second function control before each interaction, thereby improving the user experience.
由此,第一设备可以通过第一功能控件提供类似“虚拟手柄”功能,通过第二功能控件提供互动功能,或者说,第一设备在提供“虚拟手柄”功能的同时,还提供了互动功能。作为一种可能的实现方式,第一设备为前述所述的手机,第二设备为前述所述的智能电视。故此,不仅降低了对第二设备在硬件上的需求,还能够通过充分利用第一设备所具有的功能,提供更多功能提高用户的体验感。Thus, the first device can provide a similar "virtual handle" function through the first function control, and provide an interactive function through the second function control, or in other words, the first device provides an interactive function while providing a "virtual handle" function. As a possible implementation, the first device is the aforementioned mobile phone, and the second device is the aforementioned smart TV. Therefore, not only is the hardware requirement for the second device reduced, but more functions can also be provided to improve the user experience by making full use of the functions of the first device.
S203:基于控制界面获取互动信息,向目标设备发送互动信息。S203: Acquire interactive information based on the control interface, and send the interactive information to the target device.
在第一设备获取互动信息后,向目标设备发送互动信息,从而在虚拟对局运行的过程中,实现第一设备和目标设备的互动。After the first device obtains the interaction information, it sends the interaction information to the target device, thereby realizing the interaction between the first device and the target device during the running of the virtual game.
其中,互动信息是第一设备和目标设备进行互动的信息,可以为语音、文字、表情等。用户可以在控制界面中输入语音、文字、表情等。可选的,若互动信息为文字,则第一设备的体积可以比第二设备的体积小,使得用户操作第一设备比第二设备更方便,如用户通过手机输入文字比通过电视输入文字更方便。可选的,若互动信息为语音,则第一设备需要具有音频采集装置,可以通过音频采集装置采集用户的语音,作为互动信息,由此,相比于通过遥控器等调用电视的虚拟键盘输入文字,通过语音与控制目标设备的其他用户进行互动的方式更方便。可选的,若互动信息为表情,则可以为用户提供更为丰富的互动方式,提高用户的体验感。Among them, the interactive information is the information for the interaction between the first device and the target device, which can be voice, text, emoticons, etc. The user can input voice, text, emoticons, etc. in the control interface. Optionally, if the interactive information is text, the volume of the first device can be smaller than that of the second device, so that it is more convenient for the user to operate the first device than the second device, such as it is more convenient for the user to input text through a mobile phone than through a TV. Optionally, if the interactive information is voice, the first device needs to have an audio acquisition device, and the user's voice can be collected through the audio acquisition device as interactive information. Therefore, compared with calling the virtual keyboard of the TV through a remote control to input text, it is more convenient to interact with other users who control the target device through voice. Optionally, if the interactive information is an emoticon, it can provide users with a richer interactive method to improve the user experience.
需要说明的是,第一设备不仅可以提供“虚拟手柄”的功能,还能够提供互动的功能,且两个功能通过同一应用程序进行运行,如小程序等。在第一设备中,相比于通过运行一个应用程序提供“虚拟手柄”的功能,再运行一个应用程序提供互动的功能,通过运行一个应用程序实现两个功能,对于第一设备的压力更小,而且,第一设备可以将互动信息和基于第一功能控件产生的控制指令,通过一条消息发送给云服务器,所需的流量更少。It should be noted that the first device can not only provide the function of the "virtual handle", but also provide the interactive function, and the two functions are run through the same application, such as a mini program. In the first device, compared with running an application to provide the "virtual handle" function and another application to provide the interactive function, running one application to realize two functions puts less pressure on the first device, and the first device can send the interactive information and the control instructions generated based on the first function control to the cloud server through one message, which requires less traffic.
作为一种可能的实现方式,可以针对第二功能控件执行一次触发操作,然后获取一次互动信息,并向目标设备发送该互动信息,从而每一次互动信息均是在满足用户意愿的情况下发送的,或者说用户对互动功能有一个感知过程,在其具有互动需求时,才会获取并发送互动信息,提高了用户的体验感。As a possible implementation method, a trigger operation can be performed on the second function control, and then interactive information can be obtained once and sent to the target device, so that each interactive information is sent while satisfying the user's wishes, or the user has a perception process for the interactive function, and only when the user has an interactive need will the interactive information be obtained and sent, thereby improving the user experience.
作为一种可能的实现方式,针对第二功能控件执行一次触发操作,会将预设时间内获取的互动信息均发送给目标设备,直至当前虚拟对局结束。从而在满足用户愿意进行互动的前提下,降低用户的操作次数,使其更专注在虚拟对局中,提高用户的体验感。As a possible implementation method, a trigger operation is performed on the second function control, and all interactive information obtained within a preset time is sent to the target device until the current virtual game ends. In this way, the number of user operations is reduced while satisfying the user's willingness to interact, so that the user can focus more on the virtual game and improve the user experience.
作为一种可能的实现方式,可以在接收到对第二功能控件执行的触发操作后,建立一个聊天室,并将加入该聊天室的用户,以其控制的虚拟对象的对象标识进行显示。可以理解的是,该聊天室至少包括控制第二虚拟对象的用户(如还可)。在获取互动消息后,向处于聊天室的用户使用的设备发送互动消息,如目标设备。当用户不想进行互动,可以退出聊天室。从而在满足用户愿意进行互动的前提下,降低用户的操作次数,使其更专注在虚拟对局中,提高用户的体验感。As a possible implementation, after receiving a trigger operation performed on the second function control, a chat room can be established, and the users who join the chat room can be displayed with the object identifiers of the virtual objects they control. It is understandable that the chat room includes at least the user who controls the second virtual object (if applicable). After obtaining the interactive message, the interactive message is sent to the device used by the user in the chat room, such as the target device. When the user does not want to interact, he can exit the chat room. Thereby, on the premise of satisfying the user's willingness to interact, the number of user operations is reduced, so that the user can be more focused on the virtual game, and the user experience is improved.
本申请实施例不具体限定向目标设备发送互动信息的方式。下面介绍几种连接的链路。(1)第一设备-第二设备-服务器-目标设备;(2)第一设备-第二设备-服务器-目标设备对应的显示设备-目标设备;(3)第一设备-服务器-目标设备对应的显示设备-目标设备;(4)第一设备-服务器-目标设备;(5)The embodiment of the present application does not specifically limit the method of sending interactive information to the target device. The following introduces several connection links. (1) first device-second device-server-target device; (2) first device-second device-server-target device corresponding display device-target device; (3) first device-server-target device corresponding display device-target device; (4) first device-server-target device; (5)
第一设备-目标设备。上述几种链路均为示意,本申请对此不做具体限定。通过上述几种链路,可以第一设备可以将互动信息发送给目标设备。First device - target device. The above links are for illustration only and are not specifically limited in this application. Through the above links, the first device can send interactive information to the target device.
由上述技术方案可以看出,第一设备显示包括第一功能控件和第二功能控件的控制界面,通过第一设备包括的第一功能控件控制第一虚拟对象,第一虚拟对象由第二设备进行显示,第一设备接收到对第二功能控件执行的触发操作后,控制界面会显示与第二虚拟对象相关的对象标识。其中,第二虚拟对象和第一虚拟对象处于同一虚拟对局,且第二虚拟对象受目标设备控制,目标设备为与第一设备进行互动的设备。也就是说,用户能够通过第二功能控件,与参与同一虚拟对局的其他用户进行互动,并且显示参与互动的其他用户控制的虚拟对象的对象标识。故在基于控制界面获取互动信息后,向目标设备发送互动信息。由此,在通过第一设备参与虚拟对局的过程中,可以通过第一设备获取并发送互动信息,相比于通过第一设备与第二设备配合生成互动信息,仅通过第一设备获取互动信息,提高互动信息的输入效率,降低目标设备接收到互动信息延迟的概率,用户愿意与参与同一虚拟对局的用户进行互动,提高了用户体验感,以及用户的留存率。It can be seen from the above technical solution that the first device displays a control interface including a first function control and a second function control, and the first virtual object is controlled by the first function control included in the first device, and the first virtual object is displayed by the second device. After the first device receives the trigger operation performed on the second function control, the control interface will display the object identification related to the second virtual object. Among them, the second virtual object and the first virtual object are in the same virtual game, and the second virtual object is controlled by the target device, and the target device is a device that interacts with the first device. In other words, the user can interact with other users participating in the same virtual game through the second function control, and display the object identification of the virtual object controlled by other users participating in the interaction. Therefore, after obtaining the interactive information based on the control interface, the interactive information is sent to the target device. Therefore, in the process of participating in the virtual game through the first device, the interactive information can be obtained and sent through the first device. Compared with generating interactive information through the cooperation of the first device and the second device, the interactive information is obtained only through the first device, which improves the input efficiency of the interactive information, reduces the probability of the target device receiving the interactive information delay, and the user is willing to interact with the user participating in the same virtual game, which improves the user experience and the user retention rate.
作为一种可能的实现方式,第一设备可以通过第二设备向服务器发送互动信息等互动信息,基于此,可以在第一设备与第二设备建立连接时,显示控制界面,从而在建立连接的同时显示控制界面,无需用户通过第一设备调用控制界面,提高了用户体验感。As a possible implementation method, the first device can send interactive information such as interactive information to the server through the second device. Based on this, the control interface can be displayed when the first device establishes a connection with the second device, so that the control interface is displayed while the connection is established. The user does not need to call the control interface through the first device, thereby improving the user experience.
其中,第一设备或第二设备可以检测第一设备与第二设备是否建立连接。例如,在开启第二设备后,第二设备实时检测是否有外接设备与其建立连接,且能够识别出与其建立连接的设备是否为第一设备。若第二设备未检测出有外接设备与其建立连接,则第二设备可以显示连接信息,通过连接信息指引用户为第二设备连接外接设备。参见图5,该图为本申请实施例提供的一种第二设备显示连接信息的示意图。在图5中的第二设备为智能电视,该智能电视可以显示能够连接外接设备,如手机、手柄、键鼠等。第二设备可以指引用户选择手机作为该智能电视的外接设备,即本申请实施例所述的第一设备。Among them, the first device or the second device can detect whether the first device is connected to the second device. For example, after turning on the second device, the second device detects in real time whether an external device is connected to it, and can identify whether the device connected to it is the first device. If the second device does not detect that an external device is connected to it, the second device can display connection information and guide the user to connect the external device to the second device through the connection information. See Figure 5, which is a schematic diagram of a second device displaying connection information provided in an embodiment of the present application. The second device in Figure 5 is a smart TV, which can display that it can connect to external devices, such as mobile phones, handles, keyboards and mice, etc. The second device can guide the user to select a mobile phone as an external device of the smart TV, that is, the first device described in the embodiment of the present application.
第二设备可以显示第二设备的连接地址,以便第一设备获取到第二设备的连接地址。本申请实施例不具体限定第二设备的连接地址的显示形式。例如,若第二设备的连接地址以文字形式展示,则用户可以通过第一设备手动输入第二设备的连接地址。若第二设备的连接地址以二维码形式展示,则用户可以通过扫描该二维码,使得第一设备直接获取第二设备的连接地址,通过避免用户手动输入,提高用户的便捷性。又如,第一设备可以存储第二设备的连接地址,以便后续可以直接调用第二设备的连接地址。再如,第二设备记住第一设备的连接地址,向第一设备发送连接请求,该连接请求包括第二设备的连接地址,第一设备可以基于第二设备的连接地址连接第二设备。The second device can display the connection address of the second device so that the first device can obtain the connection address of the second device. The embodiment of the present application does not specifically limit the display form of the connection address of the second device. For example, if the connection address of the second device is displayed in text form, the user can manually enter the connection address of the second device through the first device. If the connection address of the second device is displayed in the form of a QR code, the user can scan the QR code so that the first device can directly obtain the connection address of the second device, thereby improving the convenience of the user by avoiding manual input by the user. For another example, the first device can store the connection address of the second device so that the connection address of the second device can be directly called later. For another example, the second device remembers the connection address of the first device and sends a connection request to the first device, the connection request includes the connection address of the second device, and the first device can connect to the second device based on the connection address of the second device.
第一设备在获取第二设备的连接地址后,第一设备基于第二设备的连接地址连接第二设备。继续参见图5,第二设备不仅指引用户将手机作为外接设备,还可以指引用户将手机和智能电视处于同一网络,以便手机和智能电视建立连接。作为一种可能的实现方式,第一设备和第二设备处于同一网络,通过路由器或网关等转发设备转发第一设备和第二设备之间的信息,信息传输更快,且建立的长连接更加稳定。其中,长连接,是指在一个连接上可以连续发送多个数据包,在连接保持期间,如果没有数据包发送,需要双方发链路检测包。从而第一设备在检测到第一设备与第二设备连接成功后,第一设备直接显示控制界面。After the first device obtains the connection address of the second device, the first device connects to the second device based on the connection address of the second device. Continuing to refer to Figure 5, the second device not only guides the user to use the mobile phone as an external device, but also guides the user to place the mobile phone and the smart TV in the same network so that the mobile phone and the smart TV can establish a connection. As a possible implementation method, the first device and the second device are in the same network, and the information between the first device and the second device is forwarded through a forwarding device such as a router or a gateway. The information transmission is faster and the established long connection is more stable. Among them, a long connection means that multiple data packets can be sent continuously on a connection. During the connection maintenance period, if no data packet is sent, both parties need to send a link detection packet. Therefore, after the first device detects that the first device is successfully connected to the second device, the first device directly displays the control interface.
作为一种可能的实现方式,在第一设备和第二设备连接成功后,第一设备不直接显示控制界面,而是第二设备可以显示第一设备调用控制界面的信息,如二维码等,第一设备基于该调用控制界面的信息调出控制界面,从而基于用户意愿调用控制界面,避免用户在建立第一设备和第二设备的连接后,不是为了进行控制。继续参见图5,智能电视显示二维码,并提示用户通过手机的A应用程序扫描二维码连接控制界面,即通过扫描二维码,显示控制界面。参见图6,该图为本申请实施例提供的一种手机扫描二维码的示意图。在图6中,用户通过手机打开A应用程序,扫描智能电视显示的二维码,手机在扫描二维码后,通过该二维码手机可以调用第一功能控件,如图4所示,从而用户可以通过第一功能控件发送控制指令,控制智能电视中显示的第一虚拟对象。As a possible implementation method, after the first device and the second device are successfully connected, the first device does not directly display the control interface, but the second device can display the information of the first device calling the control interface, such as a QR code, etc. The first device calls up the control interface based on the information of calling the control interface, thereby calling the control interface based on the user's wishes, so as to avoid the user not being able to control the first device and the second device after establishing the connection. Continuing to refer to Figure 5, the smart TV displays a QR code and prompts the user to scan the QR code through the A application on the mobile phone to connect to the control interface, that is, the control interface is displayed by scanning the QR code. Refer to Figure 6, which is a schematic diagram of a mobile phone scanning a QR code provided in an embodiment of the present application. In Figure 6, the user opens the A application through the mobile phone and scans the QR code displayed by the smart TV. After scanning the QR code, the mobile phone can call the first function control through the QR code, as shown in Figure 4, so that the user can send a control instruction through the first function control to control the first virtual object displayed in the smart TV.
作为一种可能的实现方式,在第一设备显示第一功能控件和第二功能控件的过程中,第二设备可以显示虚拟对局在运行过程中对应的虚拟画面。参见图7,该图为本申请实施例提供的一种虚拟画面的示意图。在图7中,第二设备显示用户等待其他参与虚拟对局的用户进入,此时,已有两个用户控制的虚拟对象准备完毕,等待进入虚拟对局。As a possible implementation, during the process of the first device displaying the first function control and the second function control, the second device can display the virtual screen corresponding to the virtual game during operation. See Figure 7, which is a schematic diagram of a virtual screen provided in an embodiment of the present application. In Figure 7, the second device displays that the user is waiting for other users participating in the virtual game to enter. At this time, two virtual objects controlled by the users are ready and waiting to enter the virtual game.
作为一种可能的实现方式,在进入虚拟对局后,为了充分保证加入虚拟对局的用户之间的互动意愿,可以在用户针对第二功能控件执行触发操作后,即获取该用户意愿后,为有与该用户具有互动意愿的其他用户之间建立连接。具体地,在接收到针对第二功能控件的触发操作后,向参与虚拟对局的设备发送互动请求。响应于参与虚拟对局的设备接受互动请求,基于控制界面显示通过目标设备控制的第二虚拟对象的对象标识,其中,目标设备为接受互动请求的设备。As a possible implementation, after entering the virtual game, in order to fully guarantee the willingness of users to interact with each other in the virtual game, after the user performs a trigger operation on the second function control, that is, after obtaining the user's willingness, a connection can be established between other users who have the willingness to interact with the user. Specifically, after receiving the trigger operation on the second function control, an interaction request is sent to the device participating in the virtual game. In response to the device participating in the virtual game accepting the interaction request, the object identifier of the second virtual object controlled by the target device is displayed based on the control interface, wherein the target device is the device that accepts the interaction request.
例如,若用户张三、用户李四、用户王五和用户赵六共同参与了一局虚拟对局,当用户张三通过其所用的第一设备中对显示界面中的第二功能控件执行触发操作,则第一设备向用户李四所用的设备、用户王五所用的设备和用户赵六所用的设备分别发送互动请求。当用户李四、用户王五和用户赵六接收到互动请求后,若只有用户李四和用户王五想要与用户张三进行互动,则用户李四和用户王五可以接受该互动请求,并使得第一设备可以接收到用户李四所用的设备接受了该互动请求,以及用户王五所用的设备接受了该互动请求,从而第一设备向用户李四所用的设备和用户王五所用的设备发送互动信息,不向用户赵六所用的设备发送互动信息。For example, if user Zhang San, user Li Si, user Wang Wu and user Zhao Liu jointly participate in a virtual game, when user Zhang San performs a trigger operation on the second function control in the display interface through the first device used by him, the first device sends interaction requests to the device used by user Li Si, the device used by user Wang Wu and the device used by user Zhao Liu respectively. After users Li Si, user Wang Wu and user Zhao Liu receive the interaction request, if only users Li Si and user Wang Wu want to interact with user Zhang San, users Li Si and user Wang Wu can accept the interaction request, and the first device can receive that the device used by user Li Si has accepted the interaction request, and the device used by user Wang Wu has accepted the interaction request, so that the first device sends interaction information to the device used by user Li Si and the device used by user Wang Wu, and does not send interaction information to the device used by user Zhao Liu.
作为一种可能的实现方式,可以获取与指定设备相关的对象标识,指定设备为参与虚拟对局的多个设备中的一个或多个设备,即从参与虚拟对局的设备中确定指定设备,向该指定设备发送互动请求。需要说明的是,参与虚拟对局的多个设备中可以不包括第一设备。As a possible implementation, an object identifier related to a designated device may be obtained, where the designated device is one or more devices among multiple devices participating in the virtual game, that is, the designated device is determined from the devices participating in the virtual game, and an interaction request is sent to the designated device. It should be noted that the first device may not be included in the multiple devices participating in the virtual game.
例如,若虚拟对局分为多个阵营,可以将属于同一阵营的虚拟对象,控制该虚拟对象的设备确定为指定设备,即向属于同一阵营的队友发送互动请求。参见图8,该图为本申请实施例提供的一种显示互动请求的示意图。在图8中,用户张三向其队友发送互动请求,如用户李四等其他队友使用的设备可以显示互动请求“队友“张三”邀请您加入他的聊天室,您确定要接受吗?”。又如,可以选择用户想要进行互动的设备作为指定设备,如用户张三通过第一设备仅给用户李四所用的设备发送互动请求。由此,可以通过给指定设备发送互动请求,提高用户的体验感。For example, if the virtual game is divided into multiple camps, the virtual objects belonging to the same camp and the devices controlling the virtual objects can be determined as designated devices, that is, interaction requests are sent to teammates belonging to the same camp. Refer to Figure 8, which is a schematic diagram of displaying interaction requests provided in an embodiment of the present application. In Figure 8, user Zhang San sends an interaction request to his teammates, and the devices used by other teammates such as user Li Si can display the interaction request "Teammate "Zhang San" invites you to join his chat room, are you sure you want to accept?". For another example, the device that the user wants to interact with can be selected as the designated device, such as user Zhang San only sends an interaction request to the device used by user Li Si through the first device. In this way, the user's experience can be improved by sending interaction requests to designated devices.
作为一种可能的实现方式,若第一设备和目标设备的互动需经过服务器,则在参与虚拟对局的多个设备接受互动请求后,可以将接受该互动请求的响应请求发送给服务器,服务器将发送响应请求的设备确定为互动设备,并将第一设备发送互动信息发送给对应的互动设备。As a possible implementation method, if the interaction between the first device and the target device needs to go through the server, after multiple devices participating in the virtual game accept the interaction request, a response request for accepting the interaction request can be sent to the server. The server determines the device sending the response request as an interactive device, and sends the interaction information sent by the first device to the corresponding interactive device.
作为一种可能的实现方式,若第一设备和目标设备直接进行互动,不经过服务器,则在参与虚拟对局的多个设备接受互动请求后,可以将接受该互动请求的响应请求发送给第一设备,第一设备将发送响应请求的设备确定为目标设备,并将互动信息直接发送给目标设备。As a possible implementation method, if the first device and the target device interact directly without going through the server, after multiple devices participating in the virtual game accept the interaction request, a response request for accepting the interaction request can be sent to the first device. The first device determines the device sending the response request as the target device and sends the interaction information directly to the target device.
由此,不仅可以基于用户的意愿发起互动,还可以基于其他用户的意愿后,再实现互动,充分满足的用户的体验感。In this way, not only can interaction be initiated based on the user's wishes, but interaction can also be achieved based on the wishes of other users, fully satisfying the user experience.
作为一种可能的实现方式,若互动信息为语音互动内容,则第一设备不仅可以显示第一功能控件和第二功能控件,还可以显示第三功能控件,该功能控件用于进行视频互动。例如,调用第一设备的摄像装置进行视频通话。又如,调用与第一设备具有连接的摄像装置开启视频直播。As a possible implementation, if the interactive information is voice interactive content, the first device may display not only the first function control and the second function control, but also the third function control, which is used for video interaction. For example, calling the camera device of the first device to make a video call. For another example, calling the camera device connected to the first device to start video live broadcast.
本申请实施例不具体限定第三功能控件的形式。例如,第三功能控件可以与第二功能控件的形式一致,如图9中控件901所示,控件901用于进行视频互动,如开启视频直播、进行视频通话等。又如,第三功能控件可以为使用目标设备的用户的头像。参见图10,该图为本申请实施例提供的一种第三功能控件的示意图。在图10中,显示了4个头像,分别对应于三个目标设备的用户和第一设备的用户,四个用户处于同一个聊天室,可以发送互动信息。其中,在图10中,第三功能控件为用户张三的头像,即控件1001。The embodiment of the present application does not specifically limit the form of the third function control. For example, the third function control can be consistent with the form of the second function control, as shown in control 901 in Figure 9, and control 901 is used for video interaction, such as starting video live broadcast, making video calls, etc. For another example, the third function control can be an avatar of a user using the target device. See Figure 10, which is a schematic diagram of a third function control provided by an embodiment of the present application. In Figure 10, four avatars are displayed, corresponding to users of three target devices and users of the first device, respectively. The four users are in the same chat room and can send interactive information. Among them, in Figure 10, the third function control is the avatar of user Zhang San, that is, control 1001.
若针对于第三功能控件执行点击等触发操作,可以通过调用摄像装置等方式采集视频画面,并向目标设备发送视频画面。本申请实施例不具体限定视频画面的内容。例如,若第一设备为手机,可以调用手机的前置摄像头采集用户的表情等。又如,若第一设备为手机,可以调用手机的后置摄像头采集第二设备显示的虚拟画面。基于此,可以在采集视频画面之前,提示即将调用的摄像装置。If a trigger operation such as clicking is performed on the third function control, a video screen can be collected by calling a camera device and the like, and the video screen can be sent to the target device. The embodiment of the present application does not specifically limit the content of the video screen. For example, if the first device is a mobile phone, the front camera of the mobile phone can be called to collect the user's expression, etc. For another example, if the first device is a mobile phone, the rear camera of the mobile phone can be called to collect the virtual screen displayed by the second device. Based on this, before collecting the video screen, the camera device to be called can be prompted.
参见图11,该图为本申请实施例提供的一种进行视频互动的示意图。用户点击控件1001后,显示至装置提示信息“您确定要打开您的手机前置摄像头吗?”,以便提示用户即将通过前置摄像头采集用户的表情等。需要说明的是,装置提示信息可以在控制界面上显示,本申请对此不做具体限定。See Figure 11, which is a schematic diagram of a video interaction provided by an embodiment of the present application. After the user clicks the control 1001, the device prompt message "Are you sure you want to open the front camera of your mobile phone?" is displayed to the user, so as to remind the user that the user's expression, etc. will be collected through the front camera. It should be noted that the device prompt message can be displayed on the control interface, and this application does not make specific limitations on this.
作为一种可能的实现方式,若获取针对接受装置提示信息的触发操作,用户即可进行视频通话,此时被允许的其他用户所用的设备或第一设备可以显示采集到的视频画面。参见图12,该图为本申请实施例提供的一种视频画面的示意图。在用户张三点击接受开启前置摄像头的控件后,在第一设备显示采集到的视频画面。需要说明的是,被允许的其他用户也会在其设备上显示该视频直播。As a possible implementation method, if a trigger operation for receiving device prompt information is obtained, the user can make a video call, and the device used by other allowed users or the first device can display the captured video screen. See Figure 12, which is a schematic diagram of a video screen provided in an embodiment of the present application. After user Zhang San clicks to accept the control to turn on the front camera, the captured video screen is displayed on the first device. It should be noted that other allowed users will also display the live video on their devices.
参见图13,该图为本申请实施例提供的一种视频画面的示意图。用户点击控件1001后,跳转至装置提示信息“您确定要打开您的手机后置摄像头吗?”,以便提示用户即将通过后置摄像头采集视频画面。此时用户可以利用后置摄像头采集第二设备显示的虚拟画面,从而帮助队友等其他用户更好的参与虚拟对局。See Figure 13, which is a schematic diagram of a video screen provided by an embodiment of the present application. After the user clicks control 1001, the device prompt message "Are you sure you want to open the rear camera of your mobile phone?" is displayed to prompt the user that the video screen is about to be captured through the rear camera. At this time, the user can use the rear camera to capture the virtual screen displayed by the second device, thereby helping teammates and other users to better participate in the virtual game.
作为一种可能的实现方式,不仅可以通过后置摄像头采集第二设备显示的虚拟画面,还可以通过其他方式,例如,由于服务器是运行虚拟对局的设备,则服务器在渲染完对应的虚拟画面后,不仅可以发送给第二设备,还可以发送给目标设备。具体地,响应于接收到第三功能控件的触发操作,向云服务器发送视频互动请求,以便云服务器根据该视频互动请求,向目标设备和第二设备发送目标虚拟画面,该目标虚拟画面为包括第一虚拟对象的画面,即用户通过第一设备控制的虚拟对象,将在第二设备显示的其所在的画面。由此,相比于通过第一设备采集的虚拟画面,服务器直接发送的虚拟画面显示的更为清晰,且所需的流量较小。As a possible implementation method, the virtual screen displayed by the second device can be captured not only through the rear camera, but also through other methods. For example, since the server is a device running a virtual game, the server can send it not only to the second device but also to the target device after rendering the corresponding virtual screen. Specifically, in response to receiving a trigger operation of the third function control, a video interaction request is sent to the cloud server so that the cloud server sends the target virtual screen to the target device and the second device according to the video interaction request. The target virtual screen is a screen including the first virtual object, that is, the virtual object controlled by the user through the first device will be displayed on the second device. Therefore, compared with the virtual screen captured by the first device, the virtual screen sent directly by the server is displayed more clearly and requires less traffic.
作为一种可能的实现方式,若控制第二虚拟对象的用户开启视频互动,则第一设备可以显示视频互动提示,如继续在控制界面显示视频互动提示。该视频互动提示用于提示当前有用户开启了视频互动。从而用户通过第一设备针对视频互动提示执行触发操作后,显示视频画面。As a possible implementation, if the user controlling the second virtual object turns on video interaction, the first device can display a video interaction prompt, such as continuing to display the video interaction prompt on the control interface. The video interaction prompt is used to prompt that a user has turned on video interaction. Thus, after the user performs a trigger operation on the video interaction prompt through the first device, the video screen is displayed.
本申请实施例不具体限定视频互动提示的形式。例如,如图14所示弹窗形式。又如,与第二虚拟对象相关的对象标识从不可触控状态更新为可触控状态,如图15所示的头像闪烁形式,在图15中,用户李四的头像原本为不可触控状态(如用户张三的头像所示),由于用户李四开启了视频互动,用户李四的头像变为了可触控状态,即头像开启闪烁,以提示用户该头像可以点击。需要说明的是,其他没有开启视频互动的用户对应的头像标识依然处于不可触控状态。The embodiments of the present application do not specifically limit the form of the video interaction prompt. For example, a pop-up window is shown in Figure 14. For another example, the object identifier related to the second virtual object is updated from a non-touchable state to a touchable state, such as the flashing avatar form shown in Figure 15. In Figure 15, the avatar of user Li Si was originally in a non-touchable state (as shown in the avatar of user Zhang San). Because user Li Si turned on the video interaction, the avatar of user Li Si became a touchable state, that is, the avatar started flashing to prompt the user that the avatar can be clicked. It should be noted that the avatar identifiers corresponding to other users who have not turned on video interaction are still in a non-touchable state.
若获取针对于视频互动提示的触发操作,则显示视频画面。参见图16,该图为本申请实施例提供的一种视频画面的示意图。用户张三所用的第一设备通过头像闪烁形式,以提示用户张三,用户李四开启了视频直播,若用户张三点击用户李四的头像,则会显示用户李四的视频画面。If a trigger operation for a video interaction prompt is obtained, the video screen is displayed. See Figure 16, which is a schematic diagram of a video screen provided in an embodiment of the present application. The first device used by user Zhang San prompts user Zhang San that user Li Si has started a live video broadcast by flashing the avatar. If user Zhang San clicks on user Li Si's avatar, the video screen of user Li Si will be displayed.
作为一种可能的实现方式,由于第一设备的显示区域有限,为了在不影响第一功能控件和第二功能控件使用的同时,可以在一定程度上缩小第一功能控件和/或第二功能控件所占的区域,从而为显示视频画面提供更大的区域。例如,响应于显示视频画面,缩小第一功能控件和/或第二功能控件所占的区域。又或者,在显示视频画面的过程中,缩小第一功能控件和/或第二功能控件所占的区域。As a possible implementation, since the display area of the first device is limited, in order not to affect the use of the first function control and the second function control, the area occupied by the first function control and/or the second function control can be reduced to a certain extent, thereby providing a larger area for displaying the video screen. For example, in response to displaying the video screen, the area occupied by the first function control and/or the second function control is reduced. Alternatively, in the process of displaying the video screen, the area occupied by the first function control and/or the second function control is reduced.
参见图17,该图为本申请实施例提供的一种视频画面的示意图。相比于图12、图13或图16所示的第一功能控件的大小,图17中的第一功能控件变小了,即在显示视频画面的过程中,缩小了第一功能控件所占的区域。See Figure 17, which is a schematic diagram of a video screen provided in an embodiment of the present application. Compared with the size of the first function control shown in Figures 12, 13 or 16, the first function control in Figure 17 is smaller, that is, in the process of displaying the video screen, the area occupied by the first function control is reduced.
由此,在显示视频画面时,缩小第一功能控件和/或第二功能控件所占的区域,从而在不影响第一功能控件和第二功能控件的同时,显示视频画面,提高用户体验感。Therefore, when displaying the video screen, the area occupied by the first function control and/or the second function control is reduced, so that the video screen is displayed without affecting the first function control and the second function control, thereby improving the user experience.
作为一种可能的实现方式,还可以在第一设备有限的显示区域中,尽可能较大的显示视频画面,如缩小第一功能控件和/或第二功能控件所占的区域后,尽可能放大视频画面所占的区域,从而在不影响用户使用第一功能控件和第二功能控件的同时,增大视频画面所占的区域,方便用户观看,提高用户的体验感。As a possible implementation method, the video screen can also be displayed as large as possible in the limited display area of the first device. For example, after reducing the area occupied by the first function control and/or the second function control, the area occupied by the video screen can be enlarged as much as possible. This increases the area occupied by the video screen without affecting the user's use of the first function control and the second function control, thereby facilitating user viewing and improving the user experience.
作为一种可能的实现方式,由于第一设备偏重于提供控制功能,如第一功能控件和第二功能控件等,第二设备偏重于提供显示功能,故为了提高用户的体验感,可以在第二设备上显示视频画面,使得用户在第二设备观看虚拟对局的同时,观看视频画面。As a possible implementation method, since the first device focuses on providing control functions, such as first function controls and second function controls, and the second device focuses on providing display functions, in order to improve the user experience, the video screen can be displayed on the second device, so that the user can watch the video screen while watching the virtual game on the second device.
作为一种可能的实现方式,第一设备显示设备选择提示,该设备选择提示能够指示用户选择用于显示视频画面的目标显示设备,该目标显示设备可以为第一设备或第二设备,又或是用户指定的其他设备。响应于获取与目标显示设备相关的对象标识,如当用户基于设备选择提示,选择目标显示设备后,第一设备获取目标显示设备的设备标识,以便服务器基于该设备标识确定目标显示设备,并将视频画面发送给目标显示设备,目标显示设备显示视频画面。As a possible implementation, the first device displays a device selection prompt, and the device selection prompt can instruct the user to select a target display device for displaying the video screen, and the target display device can be the first device or the second device, or another device specified by the user. In response to obtaining an object identifier related to the target display device, such as when the user selects the target display device based on the device selection prompt, the first device obtains the device identifier of the target display device, so that the server determines the target display device based on the device identifier, and sends the video screen to the target display device, and the target display device displays the video screen.
参见图18,该图为本申请实施例提供的一种视频画面的示意图。在图18中,用户张三的手机上显示设备选择提示“用户李四开启了视频直播,您想在哪个设备观看?”,用户张三通过手机选择了智能电视,手机上依然提供第一功能控件和第二功能控件,智能电视在显示虚拟对局对应的虚拟画面的同时,还显示用户李四的在视频直播过程中的视频画面。See Figure 18, which is a schematic diagram of a video screen provided by an embodiment of the present application. In Figure 18, a device selection prompt "User Li Si has started a live video broadcast, which device do you want to watch it on?" is displayed on the mobile phone of user Zhang San. User Zhang San selects a smart TV through the mobile phone. The mobile phone still provides the first function control and the second function control. While displaying the virtual screen corresponding to the virtual game, the smart TV also displays the video screen of user Li Si during the live video broadcast.
由此,用户可以选择用于显示视频画面的目标显示设备,为用户提供了更大的自由度,提高了用户的体验感。Thus, the user can select a target display device for displaying the video image, which provides the user with greater freedom and improves the user experience.
作为一种可能的实现方式,若虚拟对局包括多个虚拟对象,各个虚拟对象均是被用户控制的虚拟对象,或者说,多个用户参与了虚拟对局。若用户不想要与所有用户进行互动,而是与指定用户进行互动,则第一设备还可以在控制界面显示第四功能控件,下面以三个虚拟对象,即第一虚拟对象、第二虚拟对象和第三虚拟对象为例进行说明。As a possible implementation, if the virtual game includes multiple virtual objects, each virtual object is a virtual object controlled by a user, or in other words, multiple users participate in the virtual game. If the user does not want to interact with all users but interacts with a specified user, the first device may further display a fourth function control on the control interface, and the following is an example of three virtual objects, namely, a first virtual object, a second virtual object, and a third virtual object.
第一设备在控制界面显示第四功能控件,第四功能控件包括第一虚拟对象的对象标识、第二虚拟对象的对象标识和第三虚拟对象的对象标识,即第四功能控件包括多个虚拟对象分别对应的对象标识,用户可以基于虚拟对象的对象标识选择想要进行互动的用户。响应于第二虚拟对象的对象标识的触发操作,将控制第二虚拟对象的设备确定为目标设备,通过连接向目标设备发送互动信息。The first device displays a fourth function control on the control interface, and the fourth function control includes an object identifier of the first virtual object, an object identifier of the second virtual object, and an object identifier of the third virtual object, that is, the fourth function control includes object identifiers corresponding to multiple virtual objects, and the user can select a user to interact with based on the object identifier of the virtual object. In response to the triggering operation of the object identifier of the second virtual object, the device controlling the second virtual object is determined as the target device, and the interaction information is sent to the target device through the connection.
本申请实施例不具体限定第四功能控件的形式。例如,第四功能控件可以为虚拟对象的对象标识,如图19所示,可以在已加入聊天室的队友中选择一个队友进行互动,如用户张三选择用户赵六进行互动,从而点击用户赵六对应的虚拟对象的对象标识,或者说用户赵六的头像。The embodiment of the present application does not specifically limit the form of the fourth functional control. For example, the fourth functional control may be an object identifier of a virtual object, as shown in FIG19 , and a teammate may be selected from the teammates who have joined the chat room for interaction, such as user Zhang San selecting user Zhao Liu for interaction, thereby clicking the object identifier of the virtual object corresponding to user Zhao Liu, or the avatar of user Zhao Liu.
作为一种可能的实现方式,为了在有限的显示区域中展示更多的内容,可以在点击第二功能控件后,显示第四功能控件,从而让用户选择想要进行互动的其他用户。As a possible implementation, in order to display more content in a limited display area, a fourth function control may be displayed after clicking the second function control, so that the user can select other users with whom he wants to interact.
参见图20,该图为本申请实施例提供的一种第四功能控件的示意图。在图20中,用户点击控件410,即第二功能控件后,显示第四功能控件,即控件2001,并提示用户张三可选择进行互动的用户为用户李四、用户王五和用户赵六,从而用户张三可以点击想要进行互动的用户进行互动。See Figure 20, which is a schematic diagram of a fourth functional control provided by an embodiment of the present application. In Figure 20, after the user clicks control 410, i.e., the second functional control, the fourth functional control, i.e., control 2001, is displayed, and the user Zhang San is prompted that the users that can be selected for interaction are user Li Si, user Wang Wu, and user Zhao Liu, so that user Zhang San can click the user that he wants to interact with to interact.
作为一种可能的实现方式,若第一设备与目标设备通过建立连接的方式进行互动,则若第一设备与目标设备建立的连接断开,导致没有与第一设备连接的设备,即响应于检测与第一设备的连接均断开,可以在第一设备或第二设备显示互动结束提示信息,从而避免用户不知道当前没有与其进行互动的用户,提高用户的体验感。As a possible implementation method, if the first device interacts with the target device by establishing a connection, if the connection established between the first device and the target device is disconnected, resulting in a device without connection to the first device, that is, in response to detecting that all connections to the first device are disconnected, an interaction end prompt message can be displayed on the first device or the second device, thereby avoiding the user being unaware of the user with whom there is currently no interaction, thereby improving the user experience.
参见图21,该图为本申请实施例提供的一种互动结束提示的示意图。在图21中,不仅显示互动结束提示“当前未有与您互动的用户,是否发起新的互动?”,还以提供是或否的控件,以便用户快速再次建立与目标设备的连接。See Figure 21, which is a schematic diagram of an interaction end prompt provided in an embodiment of the present application. In Figure 21, not only is the interaction end prompt "There is currently no user interacting with you, do you want to initiate a new interaction?" displayed, but also a yes or no control is provided so that the user can quickly re-establish a connection with the target device.
为了更好地理解本申请提供的互动信息的发送方法,下面对互动信息的发送系统进行说明。In order to better understand the method for sending interactive information provided by the present application, the system for sending interactive information is described below.
作为一种可能的实现方式,互动信息的发送系统包括设备一、设备二、服务器、设备三和设备四。As a possible implementation manner, a system for sending interactive information includes device one, device two, a server, device three and device four.
参见图22,该图为本申请实施例提供的一种互动信息的发送系统的示意图。在图22中,第一用户可以通过设备一2201和设备二2202,在服务器2203中执行虚拟对局,第二用户可以通过设备三2204和设备四2205,在服务器2203执行虚拟对局,第一用户和第二用户可以参与同一虚拟对局。See Figure 22, which is a schematic diagram of a system for sending interactive information provided by an embodiment of the present application. In Figure 22, the first user can perform a virtual game in the server 2203 through device 1 2201 and device 2 2202, and the second user can perform a virtual game in the server 2203 through device 3 2204 and device 4 2205. The first user and the second user can participate in the same virtual game.
作为一种可能的实现方式,若以第一用户的视角出发,则设备一2201可以为前述所述的第一设备,设备二2202为前述所述的第二设备,设备三2204为前述所述的目标设备,设备四2205为前述所述的目标设备对应的显示设备。作为一种可能的实现方式,若以第二用户的视角出发,则设备三2204可以为前述所述的第一设备,设备四2205为前述所述的第二设备,设备一2201为前述所述的目标设备,设备二2202为前述所述的目标设备对应的显示设备。As a possible implementation, from the perspective of the first user, device one 2201 may be the first device described above, device two 2202 may be the second device described above, device three 2204 may be the target device described above, and device four 2205 may be the display device corresponding to the target device described above. As a possible implementation, from the perspective of the second user, device three 2204 may be the first device described above, device four 2205 may be the second device described above, device one 2201 may be the target device described above, and device two 2202 may be the display device corresponding to the target device described above.
下面结合图23进行具体进行说明。参见图23,该图为本申请实施例提供的一种互动信息的发送方法的应用场景示意图。The following is a detailed description in conjunction with Figure 23. Referring to Figure 23, this figure is a schematic diagram of an application scenario of a method for sending interactive information provided in an embodiment of the present application.
S2301:设备二启动云游戏。S2301: Device 2 starts the cloud game.
用户可以通过设备二(如电视端)中安装的云游戏应用程序,启动云游戏,如图3所示,用户选择启动C游戏。The user can start the cloud game through the cloud game application installed in device two (such as a TV), as shown in FIG3 , the user chooses to start game C.
需要说明的是,设备二启动云游戏后,可以将用户登陆云游戏的账号信息发送给服务器,以便服务器基于账号信息确定设备二具有启动云游戏的资格,从而实现云游戏的登陆,开启一个虚拟对局。It should be noted that after device 2 starts the cloud game, the user's account information for logging into the cloud game can be sent to the server, so that the server can determine that device 2 is qualified to start the cloud game based on the account information, thereby realizing the login to the cloud game and starting a virtual game.
S2302:设备二检测设备一和设备二的连接状态。S2302: Device 2 detects the connection status between device 1 and device 2.
设备二检测当前是否已经存在与设备一之间的连接,若否,则执行S2303,若是,则执行S2305。Device 2 detects whether a connection with device 1 currently exists. If not, S2303 is executed. If yes, S2305 is executed.
S2303:若设备一和设备二处于未连接状态,设备二显示连接地址。S2303: If the device 1 and the device 2 are not connected, the device 2 displays the connection address.
S2304:设备一基于连接地址建立其与设备二的连接,显示控制界面。S2304: Device 1 establishes a connection with device 2 based on the connection address and displays a control interface.
设备二可以通过二维码的方式显示连接地址,以便用户用过设备一扫描二维码建立设备一和设备二的连接,如图5所示。Device 2 can display the connection address in the form of a QR code, so that the user can scan the QR code with device 1 to establish a connection between device 1 and device 2, as shown in FIG5 .
作为一种可能的实现方式,设备二可以从服务器获取socket(在计算机身份认证中是令牌的意思,作为访问的凭证)链接,以便显示的连接地址中包括socket链接,以便设备一可以通过socket链接,建立与设备二的连接。从而保证设备二和服务器的安全。As a possible implementation method, device 2 can obtain a socket link (a token in computer identity authentication, which is used as a credential for access) from the server so that the displayed connection address includes the socket link, so that device 1 can establish a connection with device 2 through the socket link, thereby ensuring the security of device 2 and the server.
作为一种可能的实现方式,设备一在通过特定应用程序扫描二维码后,可以在建立其与设备二连接的同时,还可以将特定应用程序(如图5所示的A应用程序)的账号信息发送给设备二,以便设备二发送给服务器,服务器基于特定应用程序的账号信息登陆云游戏。需要说明的是,特定应用程序的账号信息可以登陆云游戏,或者说,云游戏所需的账号信息为特定应用程序的账号信息。由此,在建立连接的同时,实现了云游戏的登陆,方便快捷。As a possible implementation method, after device 1 scans the QR code through a specific application, it can establish a connection with device 2 and send the account information of the specific application (application A as shown in Figure 5) to device 2, so that device 2 can send it to the server, and the server logs in to the cloud game based on the account information of the specific application. It should be noted that the account information of the specific application can log in to the cloud game, or in other words, the account information required for the cloud game is the account information of the specific application. As a result, while establishing a connection, the login to the cloud game is realized, which is convenient and fast.
S2305:若设备一和设备二处于连接状态,设备一显示控制界面。S2305: If the device 1 and the device 2 are in a connected state, the device 1 displays a control interface.
如图4所示。As shown in Figure 4.
S2306:响应于第二功能控件处于开启状态,设备一通过设备二向服务器发送互动请求。S2306: In response to the second function control being in the turned-on state, device one sends an interaction request to the server through device two.
例如,在接收到针对第二功能控件的触发操作后,可以改变第二功能控件的状态,如处于开启状态还是处于结束状态。For example, after receiving a trigger operation for the second function control, the state of the second function control may be changed, such as whether it is in an open state or an end state.
继续参见图4,若用户点击控件410,即用户点击“一键聊天”按钮后,设备以接收到针对于第二功能控件的触发操作,使得第二功能控件处于开启状态,设备一向设备二发送互动请求,即用户开启了聊天功能,可以建立一个聊天室,设备二转发该互动请求给服务器。Continuing to refer to Figure 4, if the user clicks on control 410, that is, the user clicks on the "one-click chat" button, the device receives a trigger operation for the second function control, so that the second function control is in an on state, and device one sends an interaction request to device two, that is, the user turns on the chat function and can establish a chat room. Device two forwards the interaction request to the server.
S2307:服务器向设备三发送互动请求。S2307: The server sends an interaction request to device three.
以用户想要和处于当前虚拟对局的队友进行互动为例,服务器向其队友的设备(以设备三为例)发送互动请求,如图8所示,服务器将互动请求通过设备四发送给设备三,以询问用户是否需要加入聊天室。For example, a user wants to interact with teammates in the current virtual game. The server sends an interaction request to the teammate's device (for example, device three). As shown in FIG8 , the server sends the interaction request to device three via device four to ask the user whether he needs to join the chat room.
需要说明的是,服务器发送给设备四的消息中包括多个字段,从而指示设备四,消息中的哪些字段对应的内容在设备四中显示,哪些字段对应的内容转发给设备三等,本申请对此不做具体限定。It should be noted that the message sent by the server to device four includes multiple fields, thereby instructing device four which fields in the message correspond to the content displayed in device four, which fields correspond to the content forwarded to device three, etc. This application does not make specific limitations on this.
S2308:响应于设备三接受互动请求,服务器建立设备一和设备三的连接。S2308: In response to device three accepting the interaction request, the server establishes a connection between device one and device three.
例如,若接受加入如图8所示的聊天室,则建立二者之间的连接,二者可以直接通过语音等方式进行互动。For example, if one accepts to join the chat room shown in FIG. 8 , a connection between the two parties is established, and the two parties can interact directly through voice or other means.
需要说说明,设备一和设备三之间的连接,可以通过设备二、服务器和设备四,也可以仅通过服务器,还可以通过设备二和服务器,本申请实施例对此不做具体限定。It should be noted that the connection between device one and device three can be through device two, a server and device four, or only through a server, or through device two and a server. This embodiment of the present application does not specifically limit this.
S2309:设备一显示第三功能控件。S2309: Device 1 displays a third function control.
如图10所示,第三功能控件可以是加入聊天室的用户的头像。As shown in FIG. 10 , the third function control may be an avatar of a user who joins the chat room.
需要说明的是,设备一可以与通过服务器与多个设备建立连接,如图24所示,服务器可以与用户李四的设备、用户王五的设备和用户赵六的设备建立连接,从而用户张三可以通过设备一,经过服务器的转发,与用户李四、用户王五和用户赵六进行语音通信。It should be noted that device one can establish connections with multiple devices through the server. As shown in Figure 24, the server can establish connections with user Li Si's device, user Wang Wu's device and user Zhao Liu's device, so that user Zhang San can have voice communication with user Li Si, user Wang Wu and user Zhao Liu through device one and after forwarding by the server.
S2310:响应于接收第三功能控件的触发操作,采集视频画面,并向设备三发送视频画面。S2310: In response to receiving a trigger operation of the third function control, capturing a video image and sending the video image to device three.
如图11所示,用户可以点击自身的头像,开启视频直播。设备一会显示是否需要打开前置摄像头等装置提示信息,用户点击接受控件之后,设备一调用前置摄像头的应用程序编程接口(Application Programming Interface,API),通过前置摄像头录制视频直播所需的视频画面,如图12所示,然后通过设备二和服务器将视频画面转发至其他队友的设备。As shown in Figure 11, the user can click on his own avatar to start live video. Device 1 will display whether to open the front camera and other device prompts. After the user clicks to accept the control, device 1 calls the application programming interface (API) of the front camera to record the video screen required for live video through the front camera, as shown in Figure 12, and then forwards the video screen to other teammates' devices through device 2 and the server.
其他队友可以看到开启视频直播的队友的头像会闪烁,如图16所示,点击该闪烁头像之后,就会展开一个放大的视频画面。此外,还可以在显示视频画面的同时,缩小第一功能控件所占的区域,或者移动第一功能控件的位置,从而腾出足够的空间,用以展示该视频画面,如图17所示。Other teammates can see that the avatar of the teammate who has started the live video broadcast will flash, as shown in Figure 16. After clicking the flashing avatar, an enlarged video screen will be expanded. In addition, while displaying the video screen, the area occupied by the first function control can be reduced, or the position of the first function control can be moved to free up enough space to display the video screen, as shown in Figure 17.
S2311:响应于接收视频画面的触发操作,设备一取消视频画面的显示,显示第三功能控件。S2311: In response to receiving a trigger operation of a video screen, device 1 cancels display of the video screen and displays a third function control.
当用户点击该视频画面之后,不再显示视频画面,而是重置为队友的头像,并还原第一功能控件,如图25所示。When the user clicks on the video screen, the video screen is no longer displayed, but is reset to the teammate's avatar and the first function control is restored, as shown in FIG. 25 .
S2312:响应于接收第五功能控件的触发操作,设备一取消视频画面的显示,并通过设备二向服务器发送退出信息。S2312: In response to receiving the trigger operation of the fifth function control, device one cancels the display of the video screen and sends an exit message to the server through device two.
若想退出聊天室,以使用设备一的用户为例,如图26所示,用户可以点击控件2601,即“一键退出”按钮,设备一关闭前置摄像头,并不再获取互动信息,如停止录音。而且,设备一通过设备二将退出信息转发至服务器。If you want to exit the chat room, take the user using device 1 as an example, as shown in FIG26 , the user can click control 2601, i.e., the "one-click exit" button, and device 1 turns off the front camera and no longer obtains interactive information, such as stopping recording. Moreover, device 1 forwards the exit information to the server through device 2.
S2313:服务器取消设备一的连接。S2313: The server cancels the connection of device one.
例如,服务器将该用户从聊天室中剔除,不再转发该用户的语音数据和视频画面,此时,与设备一具有连接的设备,不再显示使用设备一的用户的头像。For example, the server removes the user from the chat room and no longer forwards the user's voice data and video images. At this time, the device connected to device one no longer displays the avatar of the user using device one.
其他用户也可以采用S2012-S2013的方式退出聊天室。Other users can also use S2012-S2013 method to exit the chat room.
S2314:服务器检测当前虚拟对局中连接的数量。S2314: The server detects the number of connections in the current virtual game.
例如,当连接的数量为零时,说明聊天室中没有用户了,或者说,当前虚拟对局中的用户暂时不具有互动需求,可以关闭聊天室。For example, when the number of connections is zero, it means that there are no users in the chat room, or that the users in the current virtual game do not have the need for interaction temporarily, and the chat room can be closed.
作为一种可能的实现方式,当聊天室仅剩下一个用户时,服务器提示该用户,聊天室将自动关闭,并同时停止录音,关闭摄像头。As a possible implementation method, when there is only one user left in the chat room, the server prompts the user and the chat room will be automatically closed, and the recording will be stopped and the camera will be turned off at the same time.
此外,当某个用户需要再次开启聊天室时,需要重新建立聊天室,并且等待其他队友加入,再次进行聊天室互动,不再赘述。In addition, when a user needs to open the chat room again, he needs to re-establish the chat room and wait for other teammates to join and interact in the chat room again. I will not go into details.
作为一种可能的实现方式,设备一和设备三可以为手机,设备二和设备四可以为智能电视,服务器为云服务器,互动信息可以为语音。由此,可以迎合用户对手机操作的熟悉程度,通过改变用户只能使用遥控器、鼠标方向键等方式在云游戏上输入信息的方式,通过语音交流提高用户通过智能电视进行云游戏的交流效率,同时用户可以自动开启前置摄像头,在聊天室进行视频直播。上述过程无需用户进行额外操作,互动信息的发送系统能够自动建立手机和智能电视的连接,让用户可以在畅玩云游戏的时候,不受输入硬件设备的低效影响,提升用户的交流效率。As a possible implementation method, device one and device three can be mobile phones, device two and device four can be smart TVs, the server can be a cloud server, and the interactive information can be voice. In this way, the user's familiarity with mobile phone operations can be catered to, by changing the way users can only use remote controls, mouse direction keys, etc. to input information on cloud games, and improving the efficiency of users' communication in cloud games through smart TVs through voice communication. At the same time, users can automatically turn on the front camera and broadcast live videos in the chat room. The above process does not require additional operations by the user. The interactive information sending system can automatically establish a connection between the mobile phone and the smart TV, allowing users to play cloud games without being affected by the inefficiency of input hardware devices, thereby improving the user's communication efficiency.
针对上文描述的互动信息的发送方法,本申请还提供了对应的互动信息的发送装置,以使上述互动信息的发送方法在实际中得以应用及实现。With respect to the above-described method for sending interactive information, the present application also provides a corresponding device for sending interactive information, so that the above-described method for sending interactive information can be applied and implemented in practice.
参见图27,该图为本申请实施例提供的一种互动信息的发送装置的结构示意图。如图27所示,该互动信息的发送装置2700包括:显示单元2701和执行单元2702;See Figure 27, which is a schematic diagram of the structure of a device for sending interactive information provided in an embodiment of the present application. As shown in Figure 27, the device 2700 for sending interactive information includes: a display unit 2701 and an execution unit 2702;
所述显示单元2701,用于显示控制界面,所述控制界面包括第一功能控件和第二功能控件,所述第一功能控件用于控制在第二设备显示的第一虚拟对象;The display unit 2701 is used to display a control interface, where the control interface includes a first function control and a second function control, where the first function control is used to control a first virtual object displayed on a second device;
所述显示单元2701,还用于响应于接收到对所述第二功能控件的触发操作,基于所述控制界面显示与所述第二虚拟对象相关的对象标识,所述第二虚拟对象和所述第一虚拟对象处于同一虚拟对局,所述第二虚拟对象通过目标设备控制,所述目标设备为与所述第一设备进行互动的设备;所述执行单元2702,用于基于所述控制界面获取互动信息,并向所述目标设备发送所述互动信息。The display unit 2701 is also used to respond to receiving a trigger operation on the second function control, and display an object identifier related to the second virtual object based on the control interface. The second virtual object and the first virtual object are in the same virtual game, and the second virtual object is controlled by a target device, which is a device that interacts with the first device; the execution unit 2702 is used to obtain interaction information based on the control interface and send the interaction information to the target device.
由上述技术方案可以看出,第一设备显示包括第一功能控件和第二功能控件的控制界面,通过第一设备包括的第一功能控件控制第一虚拟对象,第一虚拟对象由第二设备进行显示,第一设备接收到对第二功能控件执行的触发操作后,控制界面会显示与第二虚拟对象相关的对象标识。其中,第二虚拟对象和第一虚拟对象处于同一虚拟对局,且第二虚拟对象受目标设备控制,目标设备为与第一设备进行互动的设备。也就是说,用户能够通过第二功能控件,与参与同一虚拟对局的其他用户进行互动,并且显示参与互动的其他用户控制的虚拟对象的对象标识。故在基于控制界面获取互动信息后,向目标设备发送互动信息。由此,在通过第一设备参与虚拟对局的过程中,可以通过第一设备获取并发送互动信息,相比于通过第一设备与第二设备配合生成互动信息,仅通过第一设备获取互动信息,提高互动信息的输入效率,降低目标设备接收到互动信息延迟的概率,用户愿意与参与同一虚拟对局的用户进行互动,提高了用户体验感,以及用户的留存率。It can be seen from the above technical solution that the first device displays a control interface including a first function control and a second function control, and the first virtual object is controlled by the first function control included in the first device, and the first virtual object is displayed by the second device. After the first device receives the trigger operation performed on the second function control, the control interface will display the object identification related to the second virtual object. Among them, the second virtual object and the first virtual object are in the same virtual game, and the second virtual object is controlled by the target device, and the target device is a device that interacts with the first device. In other words, the user can interact with other users participating in the same virtual game through the second function control, and display the object identification of the virtual object controlled by other users participating in the interaction. Therefore, after obtaining the interactive information based on the control interface, the interactive information is sent to the target device. Therefore, in the process of participating in the virtual game through the first device, the interactive information can be obtained and sent through the first device. Compared with generating interactive information through the cooperation of the first device and the second device, the interactive information is obtained only through the first device, which improves the input efficiency of the interactive information, reduces the probability of the target device receiving the interactive information delay, and the user is willing to interact with the user participating in the same virtual game, which improves the user experience and the user retention rate.
作为一种可能的实现方式,所述互动信息为语音互动内容,所述显示单元2701,还用于:As a possible implementation, the interactive information is voice interactive content, and the display unit 2701 is further used for:
基于所述控制界面显示第三功能控件,所述第三功能控件用于进行视频互动;Displaying a third functional control based on the control interface, wherein the third functional control is used for video interaction;
所述执行单元2702,还用于:The execution unit 2702 is further used for:
响应于接收到对所述第三功能控件的触发操作,采集视频画面,并向所述目标设备发送所述视频画面。In response to receiving a trigger operation on the third functional control, a video picture is captured and the video picture is sent to the target device.
作为一种可能的实现方式,所述执行单元2702,还用于:As a possible implementation, the execution unit 2702 is further configured to:
响应于接收到所述第三功能控件的触发操作,向云服务器发送视频互动请求,以便所述云服务器根据所述视频互动请求,向所述目标设备和所述第二设备发送目标虚拟画面,所述目标虚拟画面为包括所述第一虚拟对象的画面。In response to receiving a trigger operation of the third function control, a video interaction request is sent to the cloud server so that the cloud server sends a target virtual screen to the target device and the second device according to the video interaction request, and the target virtual screen is a screen including the first virtual object.
作为一种可能的实现方式,所述显示单元2701,还用于:As a possible implementation, the display unit 2701 is further used for:
响应于获取来自所述第二设备的互动请求,显示用于指示所述第二设备进行视频互动的视频互动提示;In response to obtaining an interaction request from the second device, displaying a video interaction prompt for instructing the second device to perform video interaction;
响应于接收到所述视频互动提示的触发操作,显示视频画面。In response to receiving a triggering operation of the video interaction prompt, displaying the video screen.
作为一种可能的实现方式,所述视频互动提示为与所述第二虚拟对象相关的对象标识从不可触控状态更新为可触控状态。As a possible implementation manner, the video interaction prompt is that the object identifier related to the second virtual object is updated from a non-touchable state to a touchable state.
作为一种可能的实现方式,所述显示单元2701,还用于:As a possible implementation, the display unit 2701 is further used for:
响应于显示视频画面,缩小显示所述第一功能控件所占的区域。In response to displaying the video picture, the area occupied by the first function control is reduced.
作为一种可能的实现方式,所述显示单元2701,还用于:As a possible implementation, the display unit 2701 is further used for:
显示设备选择提示,所述设备选择提示用于指示选择用于显示所述视频直播画面的目标显示设备;A display device selection prompt, wherein the device selection prompt is used to indicate the selection of a target display device for displaying the live video screen;
所述执行单元2702,还用于:The execution unit 2702 is further used for:
获取与所述目标显示设备相关的对象标识,以便在所述目标显示设备显示所述视频画面。An object identifier associated with the target display device is obtained so as to display the video image on the target display device.
作为一种可能的实现方式,所述显示单元2701,还用于:As a possible implementation, the display unit 2701 is further used for:
基于所述控制界面显示的第四功能控件,所述第四功能控件包括虚拟对象的对象标识,所述虚拟对象包括所述第一虚拟对象、所述第二虚拟对象和所述第三虚拟对象;a fourth function control displayed based on the control interface, the fourth function control including object identifiers of virtual objects, the virtual objects including the first virtual object, the second virtual object and the third virtual object;
所述执行单元2702,还用于:The execution unit 2702 is further used for:
响应于接收到所述第二虚拟对象的对象标识的触发操作,将控制所述第二虚拟对象的设备确定为所述目标设备,向所述目标设备发送所述互动信息。In response to a triggering operation of receiving the object identification of the second virtual object, a device controlling the second virtual object is determined as the target device, and the interaction information is sent to the target device.
作为一种可能的实现方式,所述执行单元2702,具体用于:As a possible implementation, the execution unit 2702 is specifically configured to:
响应于接收到对所述第二功能控件的触发操作,向参与所述虚拟对局的设备发送互动请求;In response to receiving a trigger operation on the second function control, sending an interaction request to a device participating in the virtual game;
响应于参与所述虚拟对局的设备接受所述互动请求,基于所述控制界面显示通过所述目标设备控制的第二虚拟对象的对象标识,所述目标设备为接受所述互动请求的设备。In response to the device participating in the virtual game accepting the interaction request, an object identifier of a second virtual object controlled by the target device is displayed based on the control interface, and the target device is the device that accepts the interaction request.
作为一种可能的实现方式,所述执行单元2702,具体用于:As a possible implementation, the execution unit 2702 is specifically configured to:
获取与指定设备相关的对象标识,所述指定设备为参与所述虚拟对局的多个设备中的至少一个设备;Acquire an object identifier associated with a designated device, where the designated device is at least one device among a plurality of devices participating in the virtual game;
向所述指定设备发送所述互动请求。The interaction request is sent to the designated device.
作为一种可能的实现方式,所述执行单元2702,还用于:As a possible implementation, the execution unit 2702 is further configured to:
响应于获取所述第二设备的连接地址,基于所述第二设备的连接地址连接所述第二设备;In response to acquiring the connection address of the second device, connecting to the second device based on the connection address of the second device;
响应于与所述第二设备连接成功,显示所述控制界面。In response to successful connection with the second device, the control interface is displayed.
本申请实施例还提供了一种计算机设备,该计算机设备为前述介绍的计算机设备,该计算机设备可以为服务器或者终端设备,前述所述的互动信息的发送装置可以内置于服务器或终端设备中,下面将从硬件实体化的角度对本申请实施例提供的计算机设备进行介绍。其中,图28所示为服务器的结构示意图,图29所示为终端设备的结构示意图。The embodiment of the present application also provides a computer device, which is the computer device described above, and the computer device can be a server or a terminal device. The aforementioned interactive information sending device can be built into the server or the terminal device. The computer device provided by the embodiment of the present application will be introduced from the perspective of hardware entity. Among them, Figure 28 shows a schematic diagram of the structure of the server, and Figure 29 shows a schematic diagram of the structure of the terminal device.
参见图28,该图为本申请实施例提供的一种服务器结构示意图,该服务器1400可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上处理器1422,如中央处理器(Central Processing Units,CPU),存储器1432,一个或一个以上应用程序1442或数据1444的存储介质1430(例如一个或一个以上海量存储设备)。其中,存储器1432和存储介质1430可以是短暂存储或持久存储。存储在存储介质1430的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对服务器中的一系列指令操作。更进一步地,处理器1422可以设置为与存储介质1430通信,在服务器1400上执行存储介质1430中的一系列指令操作。Referring to FIG. 28 , which is a schematic diagram of a server structure provided in an embodiment of the present application, the server 1400 may have relatively large differences due to different configurations or performances, and may include one or more processors 1422, such as central processing units (CPU), memory 1432, one or more application programs 1442 or storage media 1430 (e.g., one or more mass storage devices) of data 1444. Among them, the memory 1432 and the storage medium 1430 may be temporary storage or permanent storage. The program stored in the storage medium 1430 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the processor 1422 may be configured to communicate with the storage medium 1430 and execute a series of instruction operations in the storage medium 1430 on the server 1400.
服务器1400还可以包括一个或一个以上电源1426,一个或一个以上有线或无线网络接口1450,一个或一个以上输入输出接口1458,和/或,一个或一个以上操作系统1441,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。The server 1400 may also include one or more power supplies 1426, one or more wired or wireless network interfaces 1450, one or more input and output interfaces 1458, and/or one or more operating systems 1441, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
上述实施例中由服务器所执行的步骤可以基于该图28所示的服务器结构。The steps performed by the server in the above embodiment can be based on the server structure shown in Figure 28.
其中,CPU 1422用于执行如下步骤:The CPU 1422 is used to perform the following steps:
显示控制界面,所述控制界面包括第一功能控件和第二功能控件,所述第一功能控件用于控制在第二设备显示的第一虚拟对象;Display a control interface, the control interface comprising a first function control and a second function control, the first function control being used to control a first virtual object displayed on a second device;
响应于接收到对所述第二功能控件的触发操作,基于所述控制界面显示与所述第二虚拟对象相关的对象标识,所述第二虚拟对象和所述第一虚拟对象处于同一虚拟对局,所述第二虚拟对象通过目标设备控制,所述目标设备为与所述第一设备进行互动的设备;In response to receiving a trigger operation on the second function control, an object identifier related to the second virtual object is displayed based on the control interface, the second virtual object and the first virtual object are in the same virtual game, the second virtual object is controlled by a target device, and the target device is a device that interacts with the first device;
基于所述控制界面获取互动信息,并向所述目标设备发送所述互动信息。The interactive information is acquired based on the control interface, and the interactive information is sent to the target device.
可选的,CPU 1422还可以执行本申请实施例中互动信息的发送方法任一具体实现方式的方法步骤。Optionally, the CPU 1422 may also execute method steps of any specific implementation of the method for sending interactive information in the embodiments of the present application.
参见图29,该图为本申请实施例提供的一种终端设备的结构示意图。图29示出的是与本申请实施例提供的终端设备相关的智能手机的部分结构的框图,该智能手机包括:射频(Radio Frequency,简称RF)电路1510、存储器1520、输入单元1530、显示单元1540、传感器1550、音频电路1560、无线保真(简称WiFi)模块1570、处理器1580、以及电源1590等部件。本领域技术人员可以理解,图29中示出的智能手机结构并不构成对智能手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。See Figure 29, which is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application. Figure 29 shows a block diagram of a partial structure of a smart phone related to the terminal device provided in an embodiment of the present application, and the smart phone includes: a radio frequency (RF) circuit 1510, a memory 1520, an input unit 1530, a display unit 1540, a sensor 1550, an audio circuit 1560, a wireless fidelity (WiFi) module 1570, a processor 1580, and a power supply 1590 and other components. Those skilled in the art will understand that the smart phone structure shown in Figure 29 does not constitute a limitation on the smart phone, and may include more or fewer components than shown, or combine certain components, or arrange components differently.
下面结合图29对智能手机的各个构成部件进行具体的介绍:The following is a detailed introduction to the various components of the smartphone in conjunction with FIG. 29 :
RF电路1510可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器1580处理;另外,将设计上行的数据发送给基站。The RF circuit 1510 may be used for receiving and sending signals during information transmission or calls. In particular, after receiving the downlink information from the base station, it is sent to the processor 1580 for processing; in addition, the designed uplink data is sent to the base station.
存储器1520可用于存储软件程序以及模块,处理器1580通过运行存储在存储器1520的软件程序以及模块,从而实现智能手机的各种功能应用以及数据处理。The memory 1520 may be used to store software programs and modules. The processor 1580 implements various functional applications and data processing of the smartphone by running the software programs and modules stored in the memory 1520 .
输入单元1530可用于接收输入的数字或字符信息,以及产生与智能手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元1530可包括触控面板1531以及其他输入设备1532。触控面板1531,也称为触摸屏,可收集用户在其上或附近的触摸操作,并根据预先设定的程式驱动相应的连接装置。除了触控面板1531,输入单元1530还可以包括其他输入设备1532。具体地,其他输入设备1532可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 1530 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the smartphone. Specifically, the input unit 1530 may include a touch panel 1531 and other input devices 1532. The touch panel 1531, also known as a touch screen, can collect user touch operations on or near it and drive the corresponding connection device according to a pre-set program. In addition to the touch panel 1531, the input unit 1530 may also include other input devices 1532. Specifically, other input devices 1532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
显示单元1540可用于显示由用户输入的信息或提供给用户的信息以及智能手机的各种菜单。显示单元1540可包括显示面板1541,可选的,可以采用液晶显示器(LiquidCrystal Display,简称LCD)、有机发光二极管(Organic Light-Emitting Diode,简称OLED)等形式来配置显示面板1541。The display unit 1540 may be used to display information input by the user or information provided to the user and various menus of the smartphone. The display unit 1540 may include a display panel 1541, and the display panel 1541 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
智能手机还可包括至少一种传感器1550,比如光传感器、运动传感器以及其他传感器。至于智能手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The smartphone may also include at least one sensor 1550, such as a light sensor, a motion sensor, and other sensors. As for other sensors that may be configured in the smartphone, such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., they will not be described in detail here.
音频电路1560、扬声器1561,传声器1562可提供用户与智能手机之间的音频接口。音频电路1560可将接收到的音频数据转换后的电信号,传输到扬声器1561,由扬声器1561转换为声音信号输出;另一方面,传声器1562将收集的声音信号转换为电信号,由音频电路1560接收后转换为音频数据,再将音频数据输出处理器1580处理后,经RF电路1510以发送给比如另一智能手机,或者将音频数据输出至存储器1520以便进一步处理。The audio circuit 1560, the speaker 1561, and the microphone 1562 can provide an audio interface between the user and the smartphone. The audio circuit 1560 can transmit the received audio data to the speaker 1561 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 1562 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1560 and converted into audio data, and then the audio data is output to the processor 1580 for processing, and then sent to another smartphone through the RF circuit 1510, or the audio data is output to the memory 1520 for further processing.
处理器1580是智能手机的控制中心,利用各种接口和线路连接整个智能手机的各个部分,通过运行或执行存储在存储器1520内的软件程序和/或模块,以及调用存储在存储器1520内的数据,执行智能手机的各种功能和处理数据。可选的,处理器1580可包括一个或多个处理单元。The processor 1580 is the control center of the smartphone, and uses various interfaces and lines to connect various parts of the entire smartphone, and executes various functions of the smartphone and processes data by running or executing software programs and/or modules stored in the memory 1520, and calling data stored in the memory 1520. Optionally, the processor 1580 may include one or more processing units.
智能手机还包括给各个部件供电的电源1590(比如电池),优选的,电源可以通过电源管理系统与处理器1580逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The smart phone also includes a power supply 1590 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 1580 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption management.
尽管未示出,智能手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the smartphone may also include a camera, a Bluetooth module, etc., which will not be described in detail here.
在本申请实施例中,该智能手机所包括的存储器1520可以存储程序代码,并将所述程序代码传输给所述处理器。In the embodiment of the present application, the memory 1520 included in the smart phone can store program codes and transmit the program codes to the processor.
该智能手机所包括的处理器1580可以根据所述程序代码中的指令执行上述实施例提供的互动信息的发送方法。The processor 1580 included in the smart phone can execute the method for sending interactive information provided in the above embodiment according to the instructions in the program code.
本申请实施例还提供一种计算机可读存储介质,用于存储计算机程序,该计算机程序用于执行上述实施例提供的互动信息的发送方法。The embodiment of the present application also provides a computer-readable storage medium for storing a computer program, wherein the computer program is used to execute the method for sending interactive information provided in the above embodiment.
本申请实施例还提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述方面的各种可选实现方式中提供的互动信息的发送方法。The embodiment of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method for sending interactive information provided in various optional implementations of the above aspects.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质可以是下述介质中的至少一种:只读存储器(英文:Read-Only Memory,缩写:ROM)、RAM、磁碟或者光盘等各种可以存储程序代码的介质。A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the above program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the above storage medium can be at least one of the following media: read-only memory (English: Read-Only Memory, abbreviated: ROM), RAM, magnetic disk or optical disk, etc. Various media that can store program codes.
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于设备及系统实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的设备及系统实施例仅仅是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。It should be noted that each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiments. The device and system embodiments described above are merely schematic, in which the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.
以上所述,仅为本申请的一种具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本申请的保护范围之内。本申请在上述各方面提供的实现方式的基础上,还可以进行进一步组合以提供更多实现方式。因此,本申请的保护范围应该以权利要求的保护范围为准。The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a technician familiar with the technical field within the technical scope disclosed in the present application should be included in the protection scope of the present application. Based on the implementation methods provided in the above aspects, the present application can also be further combined to provide more implementation methods. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims (15)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310423366.9A CN118807216A (en) | 2023-04-18 | 2023-04-18 | A method for sending interactive information and related device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310423366.9A CN118807216A (en) | 2023-04-18 | 2023-04-18 | A method for sending interactive information and related device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118807216A true CN118807216A (en) | 2024-10-22 |
Family
ID=93063712
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310423366.9A Pending CN118807216A (en) | 2023-04-18 | 2023-04-18 | A method for sending interactive information and related device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118807216A (en) |
-
2023
- 2023-04-18 CN CN202310423366.9A patent/CN118807216A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7022734B2 (en) | Methods and systems to facilitate participation in game sessions | |
CN109562296B (en) | Cloud gaming device handover | |
CN108390816B (en) | Network calling method and device | |
CN106060597B (en) | A kind of method and system carrying out main broadcaster's contest | |
CN107005721B (en) | Live broadcast room video stream push control method, corresponding server and mobile terminal | |
CN111294622B (en) | Interaction method and related device | |
CN106533711B (en) | Multimedia conference method and device | |
CN108924662B (en) | Continuous microphone interaction method, device, equipment and storage medium | |
WO2017181796A1 (en) | Program interaction system, method, client and back-end server | |
CN106973330B (en) | Screen live broadcasting method, device and system | |
KR20160063343A (en) | Device pairing | |
CN105847913A (en) | A method, mobile terminal and system for controlling live video | |
CN107333162B (en) | Method and device for playing live video | |
CN113810732B (en) | Live content display method, device, terminal, storage medium and program product | |
CN106713799B (en) | Projection equipment control method, projection equipment and intelligent terminal | |
CN110210007B (en) | Document processing method, terminal and computer equipment | |
CN109107167A (en) | Interaction control method, electronic equipment and storage medium in game | |
CN104168178B (en) | The methods, devices and systems for middle real-time Communication for Power of televising | |
WO2022143857A1 (en) | Video call method and apparatus, and electronic device and storage medium | |
WO2023093698A1 (en) | Interaction method for game live-streaming, and storage medium, program product and electronic device | |
WO2017020671A1 (en) | Video interaction method and apparatus, and video source device | |
WO2023071932A1 (en) | Message sending method and electronic device | |
CN113220405B (en) | Message interaction method and related device | |
CN112988930A (en) | Interaction method and device of wearable device | |
CN118807216A (en) | A method for sending interactive information and related device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication |