WO2018086572A1 - 虚拟现实设备及在其中实现消息提示框显示的方法和插件 - Google Patents

虚拟现实设备及在其中实现消息提示框显示的方法和插件 Download PDF

Info

Publication number
WO2018086572A1
WO2018086572A1 PCT/CN2017/110373 CN2017110373W WO2018086572A1 WO 2018086572 A1 WO2018086572 A1 WO 2018086572A1 CN 2017110373 W CN2017110373 W CN 2017110373W WO 2018086572 A1 WO2018086572 A1 WO 2018086572A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual reality
prompt box
message prompt
message
box
Prior art date
Application number
PCT/CN2017/110373
Other languages
English (en)
French (fr)
Inventor
张瑞生
Original Assignee
北京小鸟看看科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京小鸟看看科技有限公司 filed Critical 北京小鸟看看科技有限公司
Publication of WO2018086572A1 publication Critical patent/WO2018086572A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present invention relates to the field of virtual reality device technologies, and in particular, to a virtual reality device and a method and a plug-in for implementing a message prompt box display therein.
  • the system message prompt box (or dialog box) provided by the Android Android system is a 2D interface style.
  • a virtual reality (VR) device developed based on the Android system, there are many message prompt boxes in the system.
  • the system initiates, rather than the Android application itself initiates, such as battery prompts, status display, volume adjustment, shutdown, etc. to control the alert message prompt box, and Android's existing system message prompt box display mechanism, the prompt window as a form, It will float on the virtual reality application, so that when the virtual reality application based on the Android system displays the content, once there is a system message prompt box, it will be overwritten by the 2D system message prompt box, giving the user a message prompt box comparison.
  • the blunt feeling makes the user feel less immersed.
  • the present invention provides a virtual reality device and a method and a plug-in for implementing a message prompt box display thereof, so as to solve the problem that the content of the virtual reality application is covered when the system message prompt box is displayed in the existing virtual reality device, resulting in poor user immersion. .
  • a method for implementing a message prompt box display in a virtual reality device comprising:
  • a software development kit SDK that loads a data structure encapsulating a plurality of message prompt boxes when the virtual reality device is started;
  • the virtual reality application After receiving the prompt box display request, the virtual reality application invokes an interface that encapsulates the software development kit SDK to create a message prompt box for adapting the virtual reality scene;
  • the virtual reality application displays the created message prompt box in a virtual reality scene of the virtual reality application.
  • a plug-in for implementing a message prompt box display in a virtual reality device comprising:
  • a loading unit configured to load a software development kit SDK that encapsulates a data structure of a plurality of message prompt boxes when the virtual reality device is started;
  • a system message monitoring unit configured to monitor a message prompting event of the system
  • a request creation unit configured to: when the message prompt box corresponding to the message prompt event needs to be displayed, send a prompt box to display a request to the currently running virtual reality application, so that the virtual reality application receives the prompt box after displaying the request And calling the interface of the software development kit SDK to create a message prompt box for adapting the virtual reality scene, and displaying the created message prompt box in the virtual reality scene of the virtual reality application.
  • a plug-in for implementing a message prompt box display in a virtual reality device includes a memory and a processor, and the memory and the processor are connected by an internal bus communication.
  • the memory stores a computer program executable by the processor, and when the processor executes the computer program, the following steps are implemented:
  • a software development kit SDK that loads a data structure encapsulating a plurality of message prompt boxes when the virtual reality device is started;
  • the message prompting event of the monitoring system when the message prompt box corresponding to the message prompting event needs to be displayed, the sending prompt box displays the request to the currently running virtual reality application, so that the virtual reality application receives the prompt box after displaying the request And calling the interface of the software development kit SDK to create a message prompt box for adapting the virtual reality scene, and displaying the created message prompt box in the virtual reality scene of the virtual reality application.
  • a virtual reality device which includes a plug-in that implements a message prompt box display in a virtual reality device or a further aspect implemented in a virtual reality device according to another aspect of the present invention.
  • the plugin displayed by the message prompt box.
  • the invention has the following advantages: the solution for displaying the message prompt box in the virtual reality device according to the embodiment of the present invention, by monitoring the message prompt event of the system, when the message prompt box corresponding to the message prompt event needs to be displayed, the prompt box is first sent. Displaying a request to the currently running virtual reality application; after receiving the prompt box display request, the virtual reality application calls an interface of the software development kit SDK that encapsulates the data structure of the plurality of message prompt boxes, and creates a corresponding message prompt box; The created message prompt box of the adapted virtual reality scene is then displayed by the virtual reality application in the virtual reality scene of the virtual reality application. Therefore, the message prompting frame of the system is merged with the virtual scene of the VR application, which avoids the prior art covering the content of the virtual reality application when displaying the message prompt box of the system, resulting in a problem of poor user immersion and improving the user experience.
  • FIG. 1 is a flowchart of a method for implementing a message prompt box display in a virtual reality device according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for implementing a message prompt box display in a virtual reality device according to another embodiment of the present invention
  • FIG. 3 is a structural block diagram of a plug-in for implementing a message prompt box display in a virtual reality device according to an embodiment of the present invention
  • FIG. 4 is a block diagram of a virtual reality device in accordance with one embodiment of the present invention.
  • the design concept of the present invention is that, in the existing virtual reality VR device based on the Android system, when the system message prompt box is displayed, the content displayed by the virtual reality application is overwritten, resulting in a problem of poor user immersion, and the embodiment of the present invention passes the monitoring system.
  • the message prompting event is not directly displayed when the system message prompt box needs to be displayed, but the display request is sent to the currently running virtual reality application, and the virtual reality application calls the SDK that encapsulates various message prompt box information, thereby generating
  • the corresponding system message prompt box is then displayed by the virtual reality application control to display the generated system message prompt box in its own virtual reality scene, thereby enhancing the immersion of the user when using the virtual reality device and improving user satisfaction.
  • the embodiment of the invention mainly describes a display implementation scheme of a message prompt box in a VR device based on the Android system.
  • the method of implementing the message prompt box in the virtual reality device includes the following steps:
  • Step S101 loading a software development kit SDK that encapsulates a data structure of various message prompt boxes when the virtual reality device is started;
  • Step S102 monitoring a message prompting event of the system, when the message prompt box corresponding to the message prompting event needs to be displayed, sending a prompt box to display a request to the currently running virtual reality application;
  • Step S103 After receiving the prompt box display request, the virtual reality application invokes an interface of the software development kit SDK that encapsulates the data structure of the plurality of message prompt boxes, and creates a message prompt box for adapting the virtual reality scene;
  • Step S104 The virtual reality application displays the created message prompt box in the virtual reality scene of the virtual reality application.
  • the embodiment of the present invention sends a system message display request to the virtual reality application currently running to the upper layer when the system message prompting event is detected, and the virtual reality application creates a system message prompt box according to the request. And displayed in the virtual reality scene of the user, so as to avoid the problem that the system message prompt box covers the display content of the virtual reality application, and the system message prompt box is directly compared with the system message prompt box display mode of the bottom layer control pop-up 2D interface of the system. The user's immersion improves the user experience of the virtual reality device.
  • the virtual reality device pre-installs a software development kit SDK that encapsulates a data structure of a plurality of message prompt boxes; the software development kit SDK is separately from the specified multiple message prompt boxes.
  • the abstract data structure and the function of generating the corresponding message prompt box are packaged.
  • the software development kit SDK is loaded.
  • the specified message prompt box specified here is a system message prompt box, a system message prompt box, for example, a battery power prompt box, a volume adjustment prompt box, a shutdown dialog box, and the like.
  • step S103 shown in FIG. 1 includes: the virtual reality application uses the open graphics library OpenGL to render the message prompt box into a 3D view adapted to the virtual reality scene.
  • the prompt box display request in step S101 shown in FIG. 1 includes at least the following information: message prompt box type information, content information to be displayed in the message prompt box, and whether the message prompt box has interactive characteristics. .
  • the method further includes: obtaining an interaction result returned by the virtual reality application to the content of the message prompting box displayed in the virtual reality scene.
  • the message prompt box is a shutdown dialog box
  • the shutdown dialog box displays "OK" and "Cancel" two selection controls.
  • the user sees the shutdown dialog displayed in the virtual reality scene of the currently running virtual reality application, he can input the selection instruction of the "OK" control in the shutdown dialog box, by virtual reality.
  • the application sends the selection instruction to the system, so that the system can know the user's selection instruction and perform the corresponding operation according to the user's selection instruction.
  • FIG. 2 is a schematic flowchart of a method for implementing message prompt box display in a virtual reality device according to another embodiment of the present invention.
  • the application layer in the application layer, three applications are exemplarily shown, namely: VR Launcher, VR Browser, VR Store, in actual implementation, the application layer usually includes a larger number of applications, not limited to three.
  • an embodiment of the present invention adds a virtual reality software development kit VRSDK to the prior art.
  • the VR SDK encapsulates data structures of various message prompt boxes. Two system message prompt boxes are shown in FIG. 2, which are: a power prompt type box, a volume prompt type box, and an interaction type box. Therefore, the virtual reality application can call the VR SDK to create a corresponding message prompt box when receiving the message prompt box sent by the system.
  • the SDK Software Development Kit (SDK) is usually a collection of development tools for building application software for specific software packages, software frameworks, hardware platforms, operating systems, and so on.
  • the overall process of implementing the message prompt box display in the virtual reality device in this embodiment may be divided into: abstracting the message prompt box into a corresponding data structure ⁇ the VR SDK is responsible for using the data corresponding to the data structure ⁇ (framework layer) system service Responsible for populating the corresponding data.
  • the specified message prompt box used by the system is abstracted into an abstract data structure, and the abstracted data structure is packaged and packaged into a software development kit SDK. For example, extracting related messages including an electric power prompt box, a volume prompt box, a shutdown, and the like, respectively, and respectively obtaining abstract data of the power prompt box abstract data, volume prompt frame abstract data, shutdown, and the like.
  • the system When the system needs to display the corresponding message prompt box, the system sends a prompt box display request to the currently running virtual reality application, wherein the prompt box display request includes at least: a type of the message prompt box, content information that the prompt box needs to display, and Whether there is information about interactive features.
  • the type of the message prompt box may be a battery power prompt box, a shutdown dialog, and the like.
  • the VR application receives the system message prompt box sent by the system service to display the request, the request is transmitted.
  • the VR SDK is delivered to the VR SDK, and the corresponding message prompt box control is obtained from the VR SDK and displayed in the VR application scenario.
  • the VR application returns the interaction result of the interactive dialog box to the system.
  • the system service here can be battery service BatteryService, BatteryService is responsible for monitoring the battery charge status, battery power, voltage, temperature and other information. When the battery information changes, a broadcast notification is sent to other related battery information. Processes and services, shutdown services, etc. System processes that can monitor system messages and determine whether to alert them.
  • the VR SDK generates the corresponding dialog control for use.
  • the system service of the framework layer passes the data required by the corresponding data structure in the SDK to the SDK through the application, so that the SDK displays the corresponding message prompt box according to different message prompt box types.
  • the VR SDK here also needs to rely on the related support provided by the Android system.
  • the embodiment of the present invention integrates the message prompting frame of the system into the corresponding virtual reality application, which is more in line with the immersive interaction requirement of the VR application.
  • the implementation of the message prompt box control is abstracted in the VR SDK, and the like. VR applications can be developed using a single VR SDK, reducing the complexity of implementing each VR application and increasing development efficiency.
  • FIG. 3 is a structural block diagram of a plug-in for implementing a message prompt box display in a virtual reality device according to an embodiment of the present invention.
  • the plug-in 300 for implementing a message prompt box display in a virtual reality device includes:
  • the loading unit 301 is configured to load a software development kit SDK that encapsulates a data structure of various message prompt boxes when the virtual reality device is started;
  • the system message monitoring unit 302 is configured to monitor a message prompting event of the system; here, the message prompting event of the monitoring system can be implemented by a related service running in the system, for example, reading the system bottom device node file in real time through the battery management service.
  • the current battery power information and determine whether the current battery power is lower than the preset power threshold, and if it is lower than the preset power threshold, it is determined to be a message prompt box corresponding to the message prompt time.
  • the request creation unit 303 is configured to send a prompt box to display a request to the currently running virtual reality application when the message prompt box corresponding to the message prompt event needs to be displayed, so that the virtual reality application receives the prompt box display request, and then invokes the software development tool.
  • the interface of the SDK is created, and a message prompt box for adapting the virtual reality scene is created, and the created message prompt box is displayed in the virtual reality scene of the virtual reality application.
  • the embodiment of the present invention abstracts the elements of the system 2D message prompt box into a system SDK, which can be commonly used by the VR application, thereby realizing the beneficial effects of integrating the system dialog into the environment of the VR application.
  • the request creating unit 303 is specifically configured to send a prompt box display request including at least the following information to the currently running virtual reality application: message prompt box type information, content information to be displayed in the message prompt box And whether the message prompt box has information about the interactive characteristics.
  • the virtual reality application uses the open graphics library OpenGL to render the message prompt box into a 3D stereo view and display it in the virtual reality scene of the virtual reality application.
  • the request creation unit 303 is further configured to receive a message prompt box displayed in the virtual reality scene returned by the virtual reality application when the message prompt box corresponding to the system message prompt event is a message prompt box having an interactive feature. The result of the interaction of the content.
  • the program when the processor executes the computer program, implements the following steps:
  • a software development kit SDK that loads a data structure encapsulating a plurality of message prompt boxes when the virtual reality device is started;
  • the message prompting event of the monitoring system when the message prompt box corresponding to the message prompting event needs to be displayed, the sending prompt box displays the request to the currently running virtual reality application, so that the virtual reality application receives the prompt box after displaying the request And calling the interface of the software development kit SDK to create a message prompt box for adapting the virtual reality scene, and displaying the created message prompt box in the virtual reality scene of the virtual reality application.
  • the step of creating a message prompt box for adapting the virtual reality scene by the virtual reality application comprises: the virtual reality application using the open graphics library OpenGL to render the 2D message prompt box into a 3D stereo view adapted to the virtual reality scene. .
  • the step of sending a prompt box to display a request to the currently running virtual reality application includes: sending a prompt box including at least the following information to display a request to the currently running virtual reality application: message prompt box type information, message The content information to be displayed in the prompt box and whether the message prompt box has interactive characteristics.
  • the processor executes the computer program, the following steps are further implemented: acquiring the virtual reality application The returned interaction result of the content in the message prompt box displayed in the virtual reality scene.
  • the virtual reality device 400 includes the above-mentioned plug-in that implements a message prompt box display in a virtual reality device.
  • the solution for implementing the message prompt box display in the virtual reality device when the system needs to display the system message prompt box, sends a prompt box request to the currently running virtual reality application in the virtual reality device.
  • the virtual reality application controls the creation of a corresponding message prompt dialog box, and displays the message prompt dialog box in its own virtual reality scene, thereby avoiding the display of the system message prompt box and the virtual reality application scene in the prior art. Inconsistent, resulting in poor user immersion.
  • the embodiment of the present invention further provides a virtual reality device, which can enhance the user experience of the virtual reality device by integrating the system message prompt box with the scene of the currently running virtual reality application. Market Competitiveness.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components in accordance with embodiments of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals.
  • Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • the virtual reality device of the present invention conventionally includes a processor and a computer program product or computer readable medium in the form of a memory.
  • the memory may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
  • the memory has a memory space for program code for performing any of the method steps described above.
  • the storage space for the program code may include various program codes for implementing the various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such computer program products are typically portable or fixed storage units.
  • the storage unit can be similarly arranged storage segments, storage spaces, and the like.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit includes means for performing the method according to the invention
  • the computer readable code of the method steps ie, code that can be read by, for example, a processor, when executed, causes the virtual reality device to perform various steps in the methods described above.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种虚拟现实设备及在其中实现消息提示框显示的方法和插件,包括:监测系统的消息提示事件,当需要显示所述消息提示事件对应的消息提示框时,发送提示框显示请求给当前运行的虚拟现实应用(S102);所述虚拟现实应用在收到提示框显示请求后,调用所述软件开发工具包SDK的接口,创建适配虚拟现实场景的消息提示框(S103);所述虚拟现实应用将创建的消息提示框显示在虚拟现实应用的虚拟现实场景中(S104)。当需要显示系统消息时,由当前运行的虚拟现实应用将适配虚拟现实场景的消息提示框显示在自己的场景中,从而避免现有技术直接弹出2D消息提示框,与VR应用场景不融合,导致VR设备沉浸感较差的问题。

Description

虚拟现实设备及在其中实现消息提示框显示的方法和插件
优先权声明
本申请要求于2016年11月10日提交的专利名称为“虚拟现实设备及在其中实现消息提示框显示的方法和插件”的第201610989841.9号中国专利申请的优先权,其全部公开通过引用并入本申请。
技术领域
本发明涉及虚拟现实设备技术领域,具体涉及一种虚拟现实设备及在其中实现消息提示框显示的方法和插件。
背景技术
目前,安卓Android系统默认提供的系统消息提示框(或对话框)都是2D界面风格,对基于Android系统开发的虚拟现实(Virtual Reality,简称VR)设备来说,系统中有很多消息提示框是系统发起的,而非安卓应用本身发起的,例如电量提示,状态展示,音量调节,关机等控制提醒消息提示框,而Android现有的系统消息提示框显示机制中,提示窗作为一个窗体,会浮在虚拟现实应用之上,这样基于Android系统的虚拟现实应用在显示内容时,一旦有系统消息提示框,将会被该2D系统消息提示框覆盖,给用户带来一种消息提示框比较生硬的感觉,导致用户沉浸感较差。
发明内容
本发明提供了一种虚拟现实设备及在其中实现消息提示框显示的方法和插件,以解决现有虚拟现实设备中系统消息提示框显示时覆盖虚拟现实应用的内容,导致用户沉浸感差的问题。
根据本发明的一个方面,提供了一种在虚拟现实设备中实现消息提示框显示的方法,该方法包括:
在虚拟现实设备启动时加载封装有多种消息提示框的数据结构的软件开发工具包SDK;
监测系统的消息提示事件,当需要显示所述消息提示事件对应的消息提示框时,发送提示框显示请求给当前运行的虚拟现实应用;
所述虚拟现实应用在收到所述提示框显示请求后,调用封装所述软件开发工具包SDK的接口,创建适配虚拟现实场景的消息提示框;
所述虚拟现实应用将创建的所述消息提示框显示在所述虚拟现实应用的虚拟现实场景中。
根据本发明的另一个方面,提供了一种在虚拟现实设备中实现消息提示框显示的插件,该插件包括:
加载单元,被配置为在虚拟现实设备启动时加载封装有多种消息提示框的数据结构的软件开发工具包SDK;
系统消息监测单元,被配置为监测系统的消息提示事件;
请求创建单元,被配置为当需要显示所述消息提示事件对应的消息提示框时,发送提示框显示请求给当前运行的虚拟现实应用,使得所述虚拟现实应用收到所述提示框显示请求后,调用所述软件开发工具包SDK的接口,创建适配虚拟现实场景的消息提示框,并将创建的所述消息提示框显示在所述虚拟现实应用的虚拟现实场景中。
根据本发明的再一个方面,提供了一种在虚拟现实设备中实现消息提示框显示的插件,该插件包括存储器和处理器,所述存储器和所述处理器之间通过内部总线通讯连接,所述存储器存储有能够被所述处理器执行的计算机程序,所述处理器执行所述计算机程序时实现如下步骤:
在虚拟现实设备启动时加载封装有多种消息提示框的数据结构的软件开发工具包SDK;
监测系统的消息提示事件,当需要显示所述消息提示事件对应的消息提示框时,发送提示框显示请求给当前运行的虚拟现实应用,使得所述虚拟现实应用收到所述提示框显示请求后,调用所述软件开发工具包SDK的接口,创建适配虚拟现实场景的消息提示框,并将创建的所述消息提示框显示在所述虚拟现实应用的虚拟现实场景中。
根据本发明的又一个方面,提供了一种虚拟现实设备,该虚拟现实设备包括本发明另一个方面的在虚拟现实设备中实现消息提示框显示的插件或者再一个方面的在虚拟现实设备中实现消息提示框显示的插件。
本发明的有益效果是:本发明实施例的在虚拟现实设备中实现消息提示框显示的方案,通过监测系统的消息提示事件,当需要显示消息提示事件对应的消息提示框时,首先发送提示框显示请求给当前运行的虚拟现实应用;由虚拟现实应用在收到提示框显示请求后,调用封装有多种消息提示框的数据结构的软件开发工具包SDK的接口,创建对应的消息提示框;然后由虚拟现实应用将创建的适配虚拟现实场景的消息提示框显示在虚拟现实应用的虚拟现实场景中。从而实现了系统的消息提示框与VR应用的虚拟场景融合,避免了现有技术在显示系统消息提示框时覆盖虚拟现实应用的内容,导致用户沉浸感差的问题,改善了用户体验。
附图说明
图1是本发明一个实施例的一种在虚拟现实设备中实现消息提示框显示的方法的流程图;
图2是本发明另一个实施例的一种在虚拟现实设备中实现消息提示框显示的方法的流程示意图;
图3是本发明一个实施例的一种在虚拟现实设备中实现消息提示框显示的插件的结构框图;
图4是本发明一个实施例的虚拟现实设备的框图。
具体实施方式
本发明的设计构思在于:针对现有基于Android系统的虚拟现实VR设备中,系统消息提示框显示时会覆盖虚拟现实应用显示的内容,导致用户沉浸感差的问题,本发明实施例通过监测系统的消息提示事件,当需要显示系统消息提示框时不直接显示,而是将显示请求发送给当前运行的虚拟现实应用,由该虚拟现实应用调用封装了多种消息提示框信息的SDK,从而生成相应的系统消息提示框,然后由虚拟现实应用控制将生成的系统消息提示框显示在自己的虚拟现实场景中,从而增强了用户使用虚拟现实设备时的沉浸感,提高用户满意度。
本发明实施例主要说明基于Android系统的VR设备中消息提示框的显示实现方案。
实施例一
图1是本发明一个实施例的一种在虚拟现实设备中实现消息提示框显示的方法的流 程图,参见图1,在虚拟现实设备中实现消息提示框显示的方法包括如下步骤:
步骤S101,在虚拟现实设备启动时加载封装有多种消息提示框的数据结构的软件开发工具包SDK;
步骤S102,监测系统的消息提示事件,当需要显示消息提示事件对应的消息提示框时,发送提示框显示请求给当前运行的虚拟现实应用;
步骤S103,虚拟现实应用在收到提示框显示请求后,调用封装有多种消息提示框的数据结构的软件开发工具包SDK的接口,创建适配虚拟现实场景的消息提示框;
步骤S104,虚拟现实应用将创建的消息提示框显示在虚拟现实应用的虚拟现实场景中。
由图1所示的方法可知,本发明实施例通过在监测到系统消息提示事件时,向上层当前运行的虚拟现实应用发送一个系统消息显示请求,由该虚拟现实应用根据请求创建系统消息提示框并显示在自身的虚拟现实场景中,从而与现有技术直接由系统底层控制弹出2D界面的系统消息提示框显示方式相比,避免了系统消息提示框覆盖虚拟现实应用显示内容的问题,提升了用户的沉浸感,改善了虚拟现实设备的用户体验。
在本发明的一个实施例中,虚拟现实设备会预先安装封装有多种消息提示框的数据结构的软件开发工具包SDK;该软件开发工具包SDK是通过分别从指定的多种消息提示框中抽象出数据结构以及生成对应的消息提示框的功能打包而成的。当虚拟现实设备启动后,加载所述软件开发工具包SDK。
这里指定的指定消息提示框,均为系统消息提示框,系统消息提示框例如,电池电量提示框,音量调节提示框,关机对话框等等。
在本实施例中,图1所示步骤S103包括:虚拟现实应用采用开放图形库OpenGL将消息提示框渲染成适配虚拟现实场景的3D视图。
在本实施例中,图1所示步骤S101中的提示框显示请求中至少包括如下信息:消息提示框类型信息、消息提示框中待显示的内容信息、以及消息提示框是否具有交互特性的信息。
本实施例中,当消息提示事件对应的消息提示框是具有交互特性的消息提示框时,该方法还包括:获取虚拟现实应用返回的对虚拟现实场景中显示的消息提示框中内容的交互结果。举例而言,该消息提示框为关机对话框,在该关机对话框显示有“确定”和 “取消”两个选择控件,当用户看到显示在当前运行的虚拟现实应用的虚拟现实场景中的关机对话框时,可以输入对该关机对话框中“确定”控件的选择指令,由虚拟现实应用将该选择指令下发给系统,这样系统就能够得知用户的选择指令并根据用户的选择指令执行相应的操作。
实施例二
图2是本发明另一个实施例的一种在虚拟现实设备中实现消息提示框显示的方法的流程示意图,参见图2,在应用层,示例性的示出了三个应用,分别为:VR Launcher、VR Browser、VR Store,实际实现时,应用层通常包括更多数量的应用,不限于这里的三个。
参见图2,本发明实施例在现有技术的基础上增加了虚拟现实软件开发工具包VRSDK。该VR SDK中封装有多种消息提示框的数据结构。图2中示出了三种系统消息提示框,分别为:电量提示类框、音量提示类框、交互类框。从而使得虚拟现实应用在收到系统发送的消息提示框显示请求时,能够调用该VR SDK创建对应的消息提示框。SDK软件开发工具包(Software Development Kit,简称SDK)通常是为特定的软件包、软件框架、硬件平台、操作系统等建立应用软件时的开发工具的集合。
本实施例中在虚拟现实设备中实现消息提示框显示的方法总体流程可分为:将消息提示框抽象成对应的数据结构→VR SDK负责使用数据结构对应的数据→(框架层的)系统服务负责填充对应的数据。
具体的,包括:
1)参见图2,将系统使用的指定消息提示框抽象成抽象的数据结构,并将抽象出数据结构打包封装到一个软件开发工具包SDK中。例如,提取包括电量提示框、音量提示框、关机等交互框的相关消息,分别得到电量提示框抽象数据、音量提示框抽象数据、关机等交互框抽象数据。
当系统需要显示对应消息提示框时,系统向当前运行的虚拟现实应用发送提示框显示请求,其中,该提示框显示请求中至少包括:消息提示框的类型,提示框需要显示的内容信息,以及是否具有交互特性的信息。
这里,消息提示框的类型,例如,可以是电池电量提示框、关机对话框等类型。
2)在应用层,VR应用收到系统服务发送的系统消息提示框显示请求后,将请求传 递给VR SDK,进而从VR SDK中获得对应的消息提示框控件,显示到自己的VR应用场景中。
可选地,VR应用将具备交互特性的对话框的交互结果回传给系统。本领域技术人员能够理解,这里的系统服务,可以是,电池服务BatteryService,BatteryService负责监控电池的充电状态、电池电量、电压、温度等信息,当电池信息发生变化时,发生广播通知其他关系电池信息的进程和服务,关机服务等能够监测系统消息并判断是否进行消息提醒的系统进程。
3)VR SDK生成对应的对话框控件供应用使用。
框架层的系统服务将SDK中对应的数据结构所需数据通过应用传递给SDK,使得SDK根据不同的消息提示框类型显示对应的消息提示框。本领域技术人员能够理解,这里的VR SDK还需要依附Android系统提供的相关支持。
由上可知,本发明实施例使得系统的消息提示框融入对应的虚拟现实应用中,更符合VR应用的沉浸式交互需求,本发明实施例中消息提示框控件的实现抽象在VR SDK中,其他VR应用可统一使用一个VR SDK进行开发,从而降低了每个VR应用程序都实现一次的复杂程度,使得开发效率得到提高。
实施例三
图3是本发明一个实施例的一种在虚拟现实设备中实现消息提示框显示的插件的结构框图,参见图3,在虚拟现实设备中实现消息提示框显示的插件300包括:
加载单元301,被配置为在虚拟现实设备启动时加载封装有多种消息提示框的数据结构的软件开发工具包SDK;
系统消息监测单元302,被配置为监测系统的消息提示事件;这里,监测系统的消息提示事件可以由系统中运行的相关服务来实现,例如,通过电池管理服务,实时读取系统底层设备节点文件中当前的电池电量信息,并判断当前电池电量是否低于预设电量阈值,如果低于预设电量阈值则确定为需要显示消息提示时间对应的消息提示框。
请求创建单元303,被配置为当需要显示消息提示事件对应的消息提示框时,发送提示框显示请求给当前运行的虚拟现实应用,使得虚拟现实应用收到提示框显示请求后,调用软件开发工具包SDK的接口,创建适配虚拟现实场景的消息提示框,并将创建的消息提示框显示在虚拟现实应用的虚拟现实场景中。
本发明实施例通过将系统2D消息提示框元素抽象化,提炼成系统SDK这种可供VR应用共同使用的控件,从而实现将系统对话框融入VR应用的环境中的有益效果。
在本发明的一个实施例中,请求创建单元303具体被配置为发送至少包括如下信息的提示框显示请求给当前运行的虚拟现实应用:消息提示框类型信息,消息提示框中待显示的内容信息,以及消息提示框是否具有交互特性的信息。
在本实施例中,虚拟现实应用收到提示框显示请求后,采用开放图形库OpenGL将消息提示框渲染成3D立体视图后显示在虚拟现实应用的虚拟现实场景中。
本实施例中,请求创建单元303,还被配置为当系统消息提示事件对应的消息提示框是具有交互特性的消息提示框时,接收虚拟现实应用返回的对虚拟现实场景中显示的消息提示框中内容的交互结果。
本发明另一个实施例的一种在虚拟现实设备中实现消息提示框显示的插件,包括存储器和处理器,存储器和处理器之间通过内部总线通讯连接,存储器存储有能够被处理器执行的计算机程序,处理器执行该计算机程序时实现如下步骤:
在虚拟现实设备启动时加载封装有多种消息提示框的数据结构的软件开发工具包SDK;
监测系统的消息提示事件,当需要显示所述消息提示事件对应的消息提示框时,发送提示框显示请求给当前运行的虚拟现实应用,使得所述虚拟现实应用收到所述提示框显示请求后,调用所述软件开发工具包SDK的接口,创建适配虚拟现实场景的消息提示框,并将创建的所述消息提示框显示在所述虚拟现实应用的虚拟现实场景中。
在本发明的一个实施例中,虚拟现实应用创建适配虚拟现实场景的消息提示框的步骤包括:虚拟现实应用采用开放图形库OpenGL将2D消息提示框渲染成适配虚拟现实场景的3D立体视图。
在本发明的一个实施例中,发送提示框显示请求给当前运行的虚拟现实应用的步骤包括:发送至少包括如下信息的提示框显示请求给当前运行的虚拟现实应用:消息提示框类型信息、消息提示框中待显示的内容信息、以及消息提示框是否具有交互特性的信息。
在本发明的一个实施例中,当消息提示事件对应的消息提示框是具有交互特性的消息提示框时,所述处理器执行该计算机程序时还实现如下步骤:获取所述虚拟现实应用 返回的对所述虚拟现实场景中显示的消息提示框中内容的交互结果。
实施例四
图4是本发明一个实施例的虚拟现实设备的框图,参见图4,该虚拟现实设备400包括上述的在虚拟现实设备中实现消息提示框显示的插件。
综上所述,本发明实施例的这种在虚拟现实设备中实现消息提示框显示的方案,当系统需要显示系统消息提示框时,发送提示框请求给虚拟现实设备中当前运行的虚拟现实应用,由该虚拟现实应用来控制创建对应的消息提示对话框,并将消息提示对话框显示在自身的虚拟现实场景中,从而避免了现有技术中系统消息提示框的显示与虚拟现实应用的场景不相融合,导致用户沉浸感较差的问题。另外,本发明实施例还提供了一种虚拟现实设备,该虚拟现实设备由于能够实现将系统消息提示框与当前运行的虚拟现实应用的场景的融合,从而提高了该虚拟现实设备的用户体验和市场竞争力。
需要说明的是:
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
本发明的虚拟现实设备传统上包括处理器和以存储器形式的计算机程序产品或者计算机可读介质。存储器可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器具有用于执行上述方法中的任何方法步骤的程序代码的存储空间。例如,用于程序代码的存储空间可以包括分别用于实现上面的方法中的各种步骤的各个程序代码。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为便携式或者固定存储单元。该存储单元可以类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括用于执行根据本发明的方 法步骤的计算机可读代码,即可以由例如处理器读取的代码,这些代码被运行时,导致该虚拟现实设备执行上面所描述的方法中的各个步骤。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。单词“包括”不排除存在未列在权利要求中的元件或步骤。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。
以上所述,仅为本发明的具体实施方式,在本发明的上述教导下,本领域技术人员可以在上述实施例的基础上进行其他的改进或变形。本领域技术人员应该明白,上述的具体描述只是更好的解释本发明的目的,本发明的保护范围以权利要求的保护范围为准。

Claims (9)

  1. 一种在虚拟现实设备中实现消息提示框显示的方法,所述方法包括:
    在虚拟现实设备启动时加载封装有多种消息提示框的数据结构的软件开发工具包SDK;
    监测系统的消息提示事件,当需要显示所述消息提示事件对应的消息提示框时,发送提示框显示请求给当前运行的虚拟现实应用,使得所述虚拟现实应用在收到所述提示框显示请求后,调用所述软件开发工具包SDK的接口,创建适配虚拟现实场景的消息提示框,并将创建的所述消息提示框显示在所述虚拟现实应用的虚拟现实场景中。
  2. 根据权利要求1所述的方法,其中,该方法还包括:所述虚拟现实应用创建适配虚拟现实场景的消息提示框的步骤包括:
    所述虚拟现实应用采用开放图形库OpenGL将2D消息提示框渲染成适配虚拟现实场景的3D立体视图。
  3. 根据权利要求1所述的方法,其中,所述发送提示框显示请求给当前运行的虚拟现实应用的步骤包括:
    发送至少包括如下信息的提示框显示请求给当前运行的虚拟现实应用:
    消息提示框类型信息、消息提示框中待显示的内容信息、以及消息提示框是否具有交互特性的信息。
  4. 根据权利要求3所述的方法,其中,当所述消息提示事件对应的消息提示框是具有交互特性的消息提示框时,该方法还包括:
    获取所述虚拟现实应用返回的对所述虚拟现实场景中显示的消息提示框中内容的交互结果。
  5. 一种在虚拟现实设备中实现消息提示框显示的插件,该插件包括:
    加载单元,被配置为在虚拟现实设备启动时加载封装有多种消息提示框的数据结构的软件开发工具包SDK;
    系统消息监测单元,被配置为监测系统的消息提示事件;
    请求创建单元,被配置为当需要显示所述消息提示事件对应的消息提示框时,发送提示框显示请求给当前运行的虚拟现实应用,使得所述虚拟现实应用收到所述提示框显 示请求后,调用所述软件开发工具包SDK的接口,创建适配虚拟现实场景的消息提示框,并将创建的所述消息提示框显示在所述虚拟现实应用的虚拟现实场景中。
  6. 根据权利要求5所述的插件,其中,所述请求创建单元具体被配置为发送至少包括如下信息的提示框显示请求给当前运行的虚拟现实应用:
    消息提示框类型信息,消息提示框中待显示的内容信息,以及消息提示框是否具有交互特性的信息。
  7. 根据权利要求5所述的插件,其中,所述虚拟现实应用收到所述提示框显示请求后,采用开放图形库OpenGL将2D消息提示框渲染成3D视图后显示在所述虚拟现实应用的虚拟现实场景中。
  8. 根据权利要求6所述的插件,其中,所述请求创建单元,还被配置为当所述系统消息提示事件对应的消息提示框是具有交互特性的消息提示框时,接收所述虚拟现实应用返回的对所述虚拟现实场景中显示的消息提示框中内容的交互结果。
  9. 一种虚拟现实设备,其特征在于,该虚拟现实设备包括:如权利要求5-8中任一项所述的在虚拟现实设备中实现消息提示框显示的插件。
PCT/CN2017/110373 2016-11-10 2017-11-10 虚拟现实设备及在其中实现消息提示框显示的方法和插件 WO2018086572A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610989841.9 2016-11-10
CN201610989841.9A CN106569830B (zh) 2016-11-10 2016-11-10 虚拟现实设备及在其中实现消息提示框显示的方法和插件

Publications (1)

Publication Number Publication Date
WO2018086572A1 true WO2018086572A1 (zh) 2018-05-17

Family

ID=58540933

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/110373 WO2018086572A1 (zh) 2016-11-10 2017-11-10 虚拟现实设备及在其中实现消息提示框显示的方法和插件

Country Status (2)

Country Link
CN (1) CN106569830B (zh)
WO (1) WO2018086572A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024012106A1 (zh) * 2022-07-14 2024-01-18 北京字跳网络技术有限公司 信息交互方法、装置、电子设备和存储介质

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106569830B (zh) * 2016-11-10 2019-11-29 北京小鸟看看科技有限公司 虚拟现实设备及在其中实现消息提示框显示的方法和插件
CN111580899B (zh) * 2020-03-31 2024-04-30 深圳市麦谷科技有限公司 一种基于分层结构的消息弹窗系统及电子设备
CN112631421B (zh) * 2020-12-07 2022-07-26 联想(北京)有限公司 消息传输控制方法、装置及电子设备
CN113625997B (zh) * 2021-07-20 2024-03-12 青岛小鸟看看科技有限公司 一种xr软件开发架构、应用方法和电子设备
CN113934294A (zh) * 2021-09-16 2022-01-14 珠海虎江科技有限公司 虚拟现实显示设备及其对话窗口显示方法、计算机可读存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130167081A1 (en) * 2011-12-21 2013-06-27 Lg Electronics Inc. Mobile terminal and control method thereof
CN103838553A (zh) * 2012-11-20 2014-06-04 联想(北京)有限公司 显示控制方法和电子设备
CN105630164A (zh) * 2015-12-24 2016-06-01 惠州Tcl移动通信有限公司 一种虚拟现实眼镜盒系统及其提醒方法
CN106569830A (zh) * 2016-11-10 2017-04-19 北京小鸟看看科技有限公司 虚拟现实设备及在其中实现消息提示框显示的方法和插件

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101644989B (zh) * 2009-09-08 2011-12-21 南京师范大学 基于数字头盔的通用三维虚拟场景实时交互方法
US9924102B2 (en) * 2013-03-14 2018-03-20 Qualcomm Incorporated Image-based application launcher
CN105183477B (zh) * 2015-09-10 2019-06-28 上海踏风网络科技有限公司 应用程序虚拟道具信息获取系统及获取方法
CN105912123A (zh) * 2016-04-15 2016-08-31 北京小鸟看看科技有限公司 一种三维沉浸式环境下的界面布局方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130167081A1 (en) * 2011-12-21 2013-06-27 Lg Electronics Inc. Mobile terminal and control method thereof
CN103838553A (zh) * 2012-11-20 2014-06-04 联想(北京)有限公司 显示控制方法和电子设备
CN105630164A (zh) * 2015-12-24 2016-06-01 惠州Tcl移动通信有限公司 一种虚拟现实眼镜盒系统及其提醒方法
CN106569830A (zh) * 2016-11-10 2017-04-19 北京小鸟看看科技有限公司 虚拟现实设备及在其中实现消息提示框显示的方法和插件

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024012106A1 (zh) * 2022-07-14 2024-01-18 北京字跳网络技术有限公司 信息交互方法、装置、电子设备和存储介质

Also Published As

Publication number Publication date
CN106569830B (zh) 2019-11-29
CN106569830A (zh) 2017-04-19

Similar Documents

Publication Publication Date Title
WO2018086572A1 (zh) 虚拟现实设备及在其中实现消息提示框显示的方法和插件
CN104137520B (zh) 一种消息推送方法及装置
CN103001963B (zh) 用于最小下载和模拟的页面导航特征的方法和系统
CN110113252B (zh) 一种小程序通知消息的处理方法、设备和计算机存储介质
US11513775B2 (en) Group control and management among electronic devices
CN108647032B (zh) 应用加载方法及装置、计算机装置和计算机可读存储介质
CN110795181A (zh) 基于跳转协议的应用程序界面展示方法、装置及电子设备
CN109218393B (zh) 一种推送的实现方法、装置、设备和计算机存储介质
CN109582317B (zh) 用于调试寄宿应用的方法和装置
CN115309516A (zh) 一种应用生命周期的检测方法、装置及计算机设备
CN108153533B (zh) 制作安装程序的方法和装置、程序的安装方法和装置
CN115237481A (zh) 驱动外接设备的方法、装置、设备及存储介质
CN107179916B (zh) 一种应用程序开发方法、装置、设备以及开发架构系统
CN112230944A (zh) 应用安装方法、装置、电子设备和计算机可读介质
US11853727B2 (en) Group control and management among electronic devices
CN109656826B (zh) 应用测试方法、系统、设备及计算机可读存储介质
CN115794386A (zh) 虚拟机的资源调用方法、设备及存储介质
CN114615521B (zh) 视频处理方法和装置、计算机可读存储介质、电子设备
CN110262856B (zh) 一种应用程序数据采集方法、装置、终端及存储介质
CN111400137B (zh) 监测事件的存储方法、装置、移动终端和存储介质
CN114860205A (zh) 低代码开发平台的应用扩展系统、方法和装置
CN114327593A (zh) Unity打包Android生成aar的方法、系统及电子设备
CN108848398B (zh) 一种本地弹幕消息的分发方法、装置、终端和存储介质
CN112714148A (zh) 一种界面配置方法、装置、设备及介质
CN114007077B (zh) 多媒体资源的处理方法、装置、电子设备和存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17869457

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17869457

Country of ref document: EP

Kind code of ref document: A1