CN107272896B - Method and device for switching between VR mode and non-VR mode - Google Patents

Method and device for switching between VR mode and non-VR mode Download PDF

Info

Publication number
CN107272896B
CN107272896B CN201710444455.6A CN201710444455A CN107272896B CN 107272896 B CN107272896 B CN 107272896B CN 201710444455 A CN201710444455 A CN 201710444455A CN 107272896 B CN107272896 B CN 107272896B
Authority
CN
China
Prior art keywords
interface
mode
identifier
switching
application
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.)
Active
Application number
CN201710444455.6A
Other languages
Chinese (zh)
Other versions
CN107272896A (en
Inventor
林形省
汪轩然
冯智勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710444455.6A priority Critical patent/CN107272896B/en
Publication of CN107272896A publication Critical patent/CN107272896A/en
Application granted granted Critical
Publication of CN107272896B publication Critical patent/CN107272896B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04815Interaction with a metaphor-based environment or interaction object displayed as three-dimensional, e.g. changing the user viewpoint with respect to the environment or object

Abstract

The disclosure relates to a method and a device for switching between a VR mode and a non-VR mode, relating to the technical field of VR, wherein the method comprises the following steps: when a switching instruction is detected, acquiring an interface identifier of a currently displayed interface; acquiring a target interface identifier from a corresponding relation between a stored VR interface identifier and a non-VR interface identifier based on the interface identifier of the currently displayed interface; and switching modes based on the target scene identification. In the embodiment of the disclosure, since the target interface identifier can be obtained according to the corresponding relationship between the VR interface identifier and the non-VR interface identifier, when the mode is switched according to the target interface identifier, the interface of another mode corresponding to the currently displayed interface can be switched to, that is, after the mode is switched, the interface displayed before the switching can be continued to be displayed, thereby avoiding the problem of interface information loss before the switching caused by skipping to a designated page during the mode switching in the related art, and ensuring the continuity of interface display.

Description

Method and device for switching between VR mode and non-VR mode
Technical Field
The present disclosure relates to the field of VR (Virtual Reality) technologies, and in particular, to a method and an apparatus for switching between a VR mode and a non-VR mode.
Background
The VR technology is to generate a real-time dynamic three-dimensional simulation environment by using a terminal, a user can wear a VR device, connect the VR device with the terminal to be immersed in the three-dimensional simulation environment, and perform various behavior operations such as head rotation and gestures according to the three-dimensional simulation environment, the VR device detects behavior parameters of the behavior operations, transmits the behavior parameters to the terminal, processes the behavior parameters by the terminal, and performs a real-time response. When the terminal interacts with the user through VR technology, it is determined that the terminal is in VR mode, and conversely, it is determined that the terminal is in non-VR mode such as 2D (2-Dimensional). In practical applications, for convenience of operation, the terminal often needs to switch between the VR mode and the non-VR mode.
In the related art, when the terminal switches between the VR mode and the non-VR mode, when a switching instruction is detected, the currently displayed interface may jump to a designated interface for display, and then the user may select corresponding content from the designated interface to continue displaying. For example, the terminal is currently in the 2D mode, and the currently displayed interface is interface 1, when a switching instruction is detected, the terminal may jump from interface 1 to a designated interface in the VR mode to display, and then the user operates in the designated interface, and the terminal continues to display interface 1 in the VR mode according to the operation of the user.
Disclosure of Invention
In order to overcome the problems that the switching mode is hard and context information is easily lost when a VR mode and a non-VR mode are switched in the related art, the disclosure provides a method and a device for switching between the VR mode and the non-VR mode.
According to a first aspect of embodiments of the present disclosure, there is provided a method of switching between a VR mode and a non-VR mode, the method comprising:
when a switching instruction is detected, acquiring an interface identifier of a currently displayed interface;
acquiring a target interface identifier from the corresponding relation between the stored VR interface identifier and the non-VR interface identifier based on the interface identifier of the currently displayed interface;
and switching modes based on the target interface identification.
Optionally, before obtaining the target interface identifier from the stored correspondence between the VR interface identifier and the non-VR interface identifier based on the interface identifier of the currently displayed interface, the method further includes:
acquiring interface identifications of a plurality of VR interfaces in a VR mode and interface identifications of a plurality of non-VR interfaces corresponding to the plurality of VR interfaces in a non-VR mode;
and storing the interface identifications of the multiple VR interfaces and the interface identifications of the multiple non-VR interfaces in a one-to-one correspondence manner to obtain the corresponding relation between the VR interface identifications and the non-VR interface identifications.
Optionally, the performing mode switching based on the target interface identifier includes:
when the target interface identification is an interface identification in a non-VR mode, acquiring a non-VR interface corresponding to the target interface identification;
acquiring content displayed in a VR interface corresponding to the application to which the non-VR interface belongs;
and displaying the acquired content on the non-VR interface.
Optionally, the performing mode switching based on the target interface identifier includes:
when the target interface identification is an interface identification in a VR mode, acquiring a VR interface corresponding to the target interface identification;
acquiring content displayed in a corresponding non-VR interface by the application to which the VR interface belongs;
and displaying the acquired content on the VR interface.
According to a second aspect of embodiments of the present disclosure, there is provided an apparatus to switch between a VR mode and a non-VR mode, the apparatus comprising:
the first acquisition module is used for acquiring the interface identifier of the currently displayed interface when the switching instruction is detected;
the second acquisition module is used for acquiring a target interface identifier from the corresponding relation between the stored VR interface identifier and the non-VR interface identifier based on the interface identifier of the currently displayed interface;
and the switching module is used for switching modes based on the target interface identifier.
Optionally, the apparatus further comprises:
a third obtaining module, configured to obtain interface identifiers of multiple VR interfaces in a VR mode and interface identifiers of multiple non-VR interfaces corresponding to the multiple VR interfaces in a non-VR mode;
and the storage module is used for storing the interface identifications of the multiple VR interfaces and the interface identifications of the multiple non-VR interfaces in a one-to-one correspondence manner to obtain the corresponding relation between the VR interface identifications and the non-VR interface identifications.
Optionally, the switching module includes:
the first obtaining sub-module is used for obtaining a non-VR interface corresponding to the target interface identification when the target interface identification is the interface identification in the non-VR mode;
the second obtaining submodule is used for obtaining the content displayed in the corresponding VR interface by the application to which the non-VR interface belongs;
and the first display sub-module is used for displaying the acquired content on the non-VR interface.
Optionally, the switching module includes:
the third obtaining submodule is used for obtaining a VR interface corresponding to the target interface identification when the target interface identification is the interface identification in the VR mode;
the fourth obtaining submodule is used for obtaining the content displayed in the corresponding non-VR interface by the application to which the VR interface belongs;
and the second display sub-module is used for displaying the acquired content on the VR interface.
According to a third aspect of embodiments of the present disclosure, there is provided an apparatus to switch between a VR mode and a non-VR mode, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the steps of any one of the methods of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon instructions which, when executed by a processor, implement the steps of any one of the methods of the first aspect described above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: and when a switching instruction is detected, acquiring a target interface identifier from the stored corresponding relation between the VR interface identifier and the non-VR interface identifier according to the interface identifier of the currently displayed interface, and switching the mode according to the target interface identifier. Therefore, when the VR mode is switched to the non-VR mode or the VR mode is switched to the VR mode, the interface displayed before switching can be continued to be displayed, the problem that interface information is lost before switching due to the fact that a user jumps to a designated page during mode switching in the related art is solved, and the continuity of the display interface is guaranteed.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a system architecture diagram illustrating a method of switching between VR and non-VR modes in accordance with an example embodiment.
Fig. 2 is a flow chart illustrating a method of switching between VR and non-VR modes according to an example embodiment.
Fig. 3 is a flow chart illustrating a method of switching between VR and non-VR modes according to an example embodiment.
Fig. 4A is a block diagram illustrating an apparatus for switching between a VR mode and a non-VR mode in accordance with an example embodiment.
Fig. 4B is a block diagram illustrating another apparatus for switching between VR and non-VR modes in accordance with an example embodiment.
Fig. 4C is a block diagram illustrating a handover module in accordance with an example embodiment.
Fig. 4D is a block diagram illustrating another switching module in accordance with an example embodiment.
Fig. 5 is a block diagram illustrating an apparatus for switching between a VR mode and a non-VR mode in accordance with an example embodiment.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more apparent, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
Before explaining the embodiments of the present invention in detail, an application scenario of the embodiments of the present invention will be described. As VR technology evolves, more and more applications start to support VR modes. When a user operates an interface in an application in a VR mode, the user may need to switch to a non-VR mode for inconvenient operation, or to switch from the non-VR mode to the VR mode for better experience, in which case, the terminal often needs to switch between the VR mode and the non-VR mode according to the switching operation of the user.
In the related art, when the terminal switches between the VR mode and the non-VR mode, when a switching instruction is detected, the currently displayed interface may be switched to a designated interface for display, and then, the terminal needs to display corresponding content according to a selection operation of a user. That is, if the interface currently displayed by the terminal is not an interface of an application in the VR mode, when the terminal detects a switching instruction, the terminal switches to a designated interface in the VR mode, and the designated interface is not an interface of the application in the VR mode. Based on the above description, in the related art, when the terminal switches between the VR mode and the non-VR mode, because the terminal needs to switch to the designated interface first, the interface before switching cannot be continued to be displayed, which causes discontinuous display of the interface, and after the terminal is switched to the designated interface, the interface information displayed before switching is lost, which brings great inconvenience to the user.
In order to solve the above problem, an embodiment of the present disclosure provides a method for switching between a VR mode and a non-VR mode, where in the method, a terminal may obtain an interface identifier of a currently displayed interface when detecting a switching instruction, and then, the terminal may obtain, according to the interface identifier, a target interface identifier from a stored correspondence between the VR interface identifier and the non-VR interface identifier, and perform mode switching according to the target interface identifier. Therefore, after the VR mode and the non-VR mode are switched, the terminal can continue to display the interface displayed before switching, the problem that interface information is lost before switching due to the fact that a user jumps to a designated page during mode switching in the related art is solved, and the continuity of the display interface is guaranteed.
Fig. 1 is a system architecture diagram of a method for switching between a VR mode and a non-VR mode according to an embodiment of the present disclosure. As shown in fig. 1, the system includes a terminal 101, a VR device 102, and a server 103. The terminal 101 is connected to the VR device 102, and the server 103 is connected to the terminal 101. The user may interact with the terminal 101 through the VR device 102, and after receiving the behavior parameter generated by the user operation and sent by the VR device 102, the terminal 101 may respond based on the behavior parameter. In addition, when detecting the switching instruction, the terminal 101 may obtain an interface identifier of the currently displayed interface, and obtain a target interface identifier from the stored corresponding relationship according to the interface identifier. After the target interface identifier is obtained, the terminal 101 may obtain a corresponding interface and content from the server 103 according to the target interface identifier to display.
The terminal 101 may be a mobile terminal such as a smart phone or a smart tablet, or may be a terminal such as a desktop computer or a laptop computer. VR device 102 is a device that can implement VR functionality, such as VR helmets, VR glasses, etc. The server 103 may be a single server or a server cluster.
Fig. 2 is a flowchart illustrating a method of switching between a VR mode and a non-VR mode, as shown in fig. 2, for use in a terminal according to an exemplary embodiment, and includes the following steps.
In step 201, when a switching instruction is detected, an interface identifier of a currently displayed interface is acquired.
In step 202, based on the interface identifier of the currently displayed interface, a target interface identifier is obtained from the stored correspondence between the VR interface identifier and the non-VR interface identifier.
In step 203, mode switching is performed based on the target interface identification.
In the embodiment of the present disclosure, the terminal may obtain the interface identifier of the currently displayed interface when detecting the switching instruction, and then, the terminal may obtain the target interface identifier from the stored correspondence between the VR interface identifier and the non-VR interface identifier according to the interface identifier, and perform mode switching according to the target interface identifier. Therefore, after the VR mode and the non-VR mode are switched, the terminal can continue to display the interface displayed before switching, the problem that interface information is lost before switching due to the fact that a user jumps to a designated page during mode switching in the related art is solved, and the continuity of the display interface is guaranteed.
Optionally, before obtaining the target interface identifier from the stored correspondence between the VR interface identifier and the non-VR interface identifier based on the interface identifier of the currently displayed interface, the method further includes:
acquiring interface identifications of a plurality of VR interfaces in a VR mode and interface identifications of a plurality of non-VR interfaces corresponding to the plurality of VR interfaces in a non-VR mode;
and storing the interface identifications of the multiple VR interfaces and the interface identifications of the multiple non-VR interfaces in a one-to-one correspondence manner to obtain the corresponding relation between the VR interface identifications and the non-VR interface identifications.
Optionally, the mode switching is performed based on the target interface identifier, including:
when the target interface identification is the interface identification in the non-VR mode, acquiring a non-VR interface corresponding to the target interface identification;
acquiring content displayed in a VR interface corresponding to an application to which a non-VR interface belongs;
and displaying the acquired content on a non-VR interface.
Optionally, the mode switching is performed based on the target interface identifier, including:
when the target interface identification is the interface identification in the VR mode, acquiring a VR interface corresponding to the target interface identification;
acquiring content displayed in a corresponding non-VR interface by an application to which the VR interface belongs;
and displaying the acquired content on a VR interface.
All the above optional technical solutions can be combined arbitrarily to form optional embodiments of the present disclosure, and the embodiments of the present disclosure are not described in detail again.
Fig. 3 is a flowchart illustrating a method of switching between a VR mode and a non-VR mode, which is used in a terminal according to an exemplary embodiment and includes the steps of:
in step 301, interface identifiers of multiple VR interfaces in a VR mode and interface identifiers of multiple non-VR interfaces corresponding to the multiple VR interfaces in a non-VR mode are obtained.
In general, an application running on a terminal may include a plurality of interfaces, where each interface of the plurality of interfaces may correspond to a corresponding interface identifier. When the application supports the VR mode, a plurality of interfaces displayed by the application in the VR mode may be referred to as VR interfaces, a plurality of interfaces displayed in the non-VR mode may be referred to as non-VR interfaces, and the non-VR interfaces may have corresponding non-VR interface identifiers, and the VR interfaces may also have corresponding VR interface identifiers.
When detecting that the application supports the VR mode, the terminal may obtain, from application data of the application, a plurality of VR interface identifiers of the application in the VR mode and interface identifiers of a plurality of non-VR interfaces corresponding to the plurality of VR interfaces in the non-VR mode. Of course, the terminal may also obtain interface identifiers of multiple VR interfaces and interface identifiers of non-VR interfaces of the application from the server corresponding to the application according to the application identifier of the application.
It should be noted that the interface identifier may be a character that can uniquely identify the interface, such as a name of the interface, for example, the interface identifier of the VR interface may be formed by splicing the name of the interface and the VR character, and the interface identifier of the non-VR interface may be formed by splicing the name of the interface and the 2D character.
Further, in order to reduce system resources required to be occupied when the correspondence is stored subsequently, for an application supporting the VR mode, the terminal may only obtain a VR application identifier of the application in the VR mode and a corresponding non-VR application identifier in the non-VR mode.
In step 302, the interface identifiers of the multiple VR interfaces and the interface identifiers of the multiple non-VR interfaces are stored in a one-to-one correspondence manner, so as to obtain a correspondence relationship between the VR interface identifiers and the non-VR interface identifiers.
After the terminal obtains the interface identifiers of the multiple VR interfaces and the interface identifiers of the multiple non-VR interfaces of the application, the terminal can store the interface identifiers of the multiple VR interfaces and the interface identifiers of the multiple non-VR interfaces of the application in a one-to-one correspondence manner, so that the corresponding relationship between the VR interface identifiers and the non-VR interface identifiers is obtained.
The terminal may directly store the corresponding relationship in the application data of the application, and of course, the terminal may store a plurality of corresponding relationships of a plurality of applications supporting the VR mode in a unified manner. When the unified storage is performed, in order to quickly and conveniently acquire the desired interface identifier from the corresponding relationship in the following process, the terminal may correspondingly store the application identifier of each application and the corresponding relationship.
Further, when the terminal acquires the VR application identifier and the non-VR application identifier applied in the VR mode, the terminal may store the VR application identifier and the non-VR application identifier in a one-to-one correspondence manner, so as to obtain a correspondence relationship between the VR application identifier and the non-VR application identifier.
Through steps 301 and 302, the terminal may obtain a corresponding relationship between the VR interface identifier and the non-VR interface identifier, and then, when the terminal starts the application, the terminal may switch the application between the VR mode and the non-VR mode in the following manner.
In step 303, when a switching instruction is detected, an interface identifier of a currently displayed interface is acquired.
For an application supporting the VR mode, after the terminal starts the application, the terminal may detect in real time whether a switching instruction triggered by a switching operation of a user is received. When the terminal detects the switching instruction, the terminal can acquire the interface identifier of the currently displayed interface. The switching operation of the user may be to disconnect the VR device from the terminal, or to remove the bound VR headset and the mobile terminal.
In addition, the terminal may obtain the interface identifier of the currently displayed interface from the interface data of the currently displayed interface. Of course, if the correspondence between the VR application identifier and the non-VR application identifier is obtained through steps 301 and 302, in this step, the terminal may also obtain the application identifier of the application in the current mode.
For example, assuming that the terminal starts an application supporting the VR mode in the 2D mode as a social application and the currently displayed interface is a friend chat interface, after the terminal starts the social application, whether a switching instruction is received may be detected in real time, and after receiving the switching instruction, the terminal may obtain an interface identifier of the chat interface of the social application in the 2D mode from interface data of the chat interface. Of course, the terminal may also directly obtain the application identifier of the social application in the 2D mode.
Further, after the interface identifier of the currently displayed interface is acquired, the terminal may further store the display content or the display progress in the currently displayed interface, so that when the mode is switched subsequently, the terminal may continue to display in the switched mode according to the stored display content or the display progress.
In step 304, based on the interface identifier of the currently displayed interface, a target interface identifier is obtained from the stored correspondence between the VR interface identifier and the non-VR interface identifier.
After the interface identifier of the currently displayed interface is obtained, the terminal can obtain the target interface identifier from the stored corresponding relationship between the VR interface identifier and the non-VR interface identifier. And the target interface identification is the interface identification corresponding to the interface identification of the currently displayed interface. And if the interface identifier of the currently displayed interface is the VR interface identifier in the VR mode, the target interface identifier is the non-VR interface identifier corresponding to the VR interface identifier of the currently displayed interface. And if the interface identifier of the currently displayed interface is the non-VR interface identifier in the non-VR mode, the target interface identifier is the VR interface identifier corresponding to the non-VR interface identifier of the currently displayed interface.
It should be noted that, based on the foregoing description, the correspondence between the VR interface identifier and the non-VR interface identifier may be stored in application data of the application, or may be stored in a unified manner. Therefore, if the corresponding relationship between the VR interface identifier and the non-VR interface identifier is stored in the application data of the application, the terminal may obtain the target interface identifier from the application data of the application to which the currently displayed interface belongs according to the interface identifier of the currently displayed interface. If the corresponding relation between the VR interface identifier and the non-VR interface identifier is uniformly stored, the terminal can acquire the application identifier of the application to which the currently displayed interface belongs, and then acquire the target interface identifier from the stored corresponding relation according to the application identifier and the interface identifier of the currently displayed interface.
Further, if the terminal stores the corresponding relationship between the VR application identifier and the non-VR application identifier of the application, the terminal may obtain the corresponding target application identifier from the stored corresponding relationship between the VR application identifier and the non-VR application identifier of the application through the application identifier of the application to which the currently displayed interface belongs, which is obtained in step 303.
In step 305, a mode switch is made based on the target interface identification.
After the target interface identifier is acquired, the terminal can switch between the VR mode and the non-VR mode based on the target interface identifier. Since the target interface identifier may be an interface identifier in the VR mode or an interface identifier in the non-VR mode, that is, it is currently possible to switch from the non-VR mode to the VR mode or switch from the VR mode to the non-VR mode, the terminal may complete mode switching in the following two ways.
The first mode is as follows: when the target interface identifier is an interface identifier in a non-VR mode, the terminal may obtain a non-VR interface corresponding to the target interface identifier, and then, the terminal may obtain content displayed in the VR interface corresponding to an application to which the non-VR interface belongs, and display the obtained content in the non-VR interface.
If the target interface identifier is an interface identifier in the non-VR mode, that is, the current switching is from the VR mode to the non-VR mode, at this time, the terminal may obtain, according to the obtained interface identifier in the non-VR mode, a non-VR interface corresponding to the target interface identifier from the stored application data. Certainly, in order to save system resources, the terminal may not store corresponding application data, and in this case, the terminal may obtain the non-VR interface corresponding to the target interface identifier from the server corresponding to the application to which the target interface identifier belongs.
After the terminal acquires the non-VR interface corresponding to the target interface identifier, because the interface is acquired only and the content displayed in the interface is not acquired, in order that the terminal can continue to display the content displayed before switching after switching to the non-VR mode, the terminal can acquire the content currently displayed in the corresponding VR interface from the application to which the non-VR interface belongs, or the terminal can record the display progress of the content currently displayed in the corresponding VR interface. After the content displayed in the corresponding VR interface or the display progress is acquired, the terminal may display the acquired content in the non-VR interface, or the terminal may acquire the corresponding content from the server of the application according to the display progress to display the content in the acquired non-VR interface, so as to complete switching from the VR mode to the non-VR mode.
For example, assuming that the currently displayed interface is a chat interface of a social application, and a user inputs a reply message through the terminal on the chat interface, but the reply message is not sent, at this time, if the terminal receives a switching instruction, the terminal may store the display content in the currently displayed interface in application data of the social application, further, the terminal may store the reply message as a draft, and then, the terminal may obtain a target interface identifier, that is, an interface identifier of a chat interface of the social application in a non-VR mode, according to the interface identifier corresponding to the chat interface of the social application in the VR mode. After the target interface identifier is obtained, the terminal can obtain the chat interface of the social application in the non-VR mode according to the target interface identifier, and obtain the recently stored display content and draft from the application data of the social application. Then, the terminal may display the acquired display content and the draft in a chat interface of the social application in the non-VR mode, so as to complete switching from the VR mode to the non-VR mode.
For another example, if the currently displayed interface is a playing interface of a video application, after the switching instruction is detected, the terminal may store related information such as a playing progress in the currently played interface, and then, when the terminal acquires the target interface identifier, the terminal may acquire the playing interface of the video application in the non-VR mode, and acquire, according to the stored related information such as the playing progress, the playing content in the non-VR mode corresponding to the playing progress from the server corresponding to the video application, so as to continue playing in the playing interface in the non-VR mode.
Further, based on the foregoing description, if the obtained target application identifier is not the target interface identifier, the terminal may start the application in the non-VR mode according to the target application identifier, and then the terminal may obtain the latest display content of the application in the VR mode, and continue to display in the application in the non-VR mode according to the obtained display content.
The second mode is as follows: when the target interface identifier is an interface identifier in the VR mode, the terminal may obtain a VR interface corresponding to the target interface identifier, and then, the terminal may obtain content displayed in a corresponding non-VR interface by an application to which the VR interface belongs, and display the obtained content in the VR interface.
If the target interface identifier is an interface identifier in the VR mode, that is, the current switching is from the non-VR mode to the VR mode, at this time, the terminal may obtain, according to the obtained interface identifier in the VR mode, a VR interface corresponding to the target interface identifier from the stored application data. Or, if the terminal does not store the corresponding application data, the terminal may also obtain the VR interface corresponding to the target interface identifier from the server corresponding to the application to which the target interface identifier belongs.
After the VR interface is obtained, because the interface is obtained only and the content displayed in the interface is not obtained, the terminal may further obtain the display content currently displayed in the corresponding non-VR interface from the application to which the VR interface belongs, or the terminal may record the display progress of the content currently displayed in the corresponding non-VR interface. After the content displayed in the corresponding non-VR interface or the display progress is acquired, the terminal may display the acquired content in the VR interface, or the terminal may acquire the corresponding content from the server of the application according to the display progress to display the content in the acquired VR interface, so as to complete switching from the non-VR mode to the VR mode.
In the embodiment of the present disclosure, the terminal may obtain the interface identifier of the currently displayed interface when detecting the switching instruction, and then, the terminal may obtain the target interface identifier from the stored correspondence between the VR interface identifier and the non-VR interface identifier according to the interface identifier, and perform mode switching according to the target interface identifier. Therefore, after the VR mode and the non-VR mode are switched, the terminal can continue to display the interface displayed before switching, the problem that interface information is lost before switching due to the fact that a user jumps to a designated page during mode switching in the related art is solved, and the continuity of the display interface is guaranteed.
Fig. 4A is a block diagram illustrating an apparatus 400 for switching between a VR mode and a non-VR mode in accordance with an example embodiment. Referring to fig. 4A, the apparatus includes a first acquisition module 401, a second acquisition module 402, and a switching module 403.
A first obtaining module 401, configured to obtain an interface identifier of a currently displayed interface when a switching instruction is detected;
a second obtaining module 402, configured to obtain, based on an interface identifier of a currently displayed interface, a target interface identifier from a correspondence between a stored VR interface identifier and a non-VR interface identifier;
and a switching module 403, configured to switch modes based on the target interface identifier.
Optionally, referring to fig. 4B, the apparatus 400 further comprises:
a third obtaining module 404, configured to obtain interface identifiers of multiple VR interfaces in a VR mode and interface identifiers of multiple non-VR interfaces corresponding to the multiple VR interfaces in a non-VR mode;
the storage module 405 is configured to store the interface identifiers of the multiple VR interfaces and the interface identifiers of the multiple non-VR interfaces in a one-to-one correspondence manner, so as to obtain a correspondence relationship between the VR interface identifiers and the non-VR interface identifiers.
Optionally, referring to fig. 4C, the switching module 403 includes:
the first obtaining sub-module 4031 is configured to obtain, when the target interface identifier is an interface identifier in a non-VR mode, a non-VR interface corresponding to the target interface identifier;
a second obtaining sub-module 4032, configured to obtain content displayed in a VR interface corresponding to an application to which the non-VR interface belongs;
and the first display sub-module 4033 is used for displaying the acquired content on a non-VR interface.
Optionally, referring to fig. 4D, the switching module 403 includes:
a third obtaining sub-module 4034, configured to obtain, when the target interface identifier is an interface identifier in the VR mode, a VR interface corresponding to the target interface identifier;
a fourth obtaining sub-module 4035, configured to obtain content displayed in a corresponding non-VR interface of an application to which the VR interface belongs;
and a second display sub-module 4036, configured to display the acquired content on the VR interface.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
In the embodiment of the present disclosure, the terminal may obtain the interface identifier of the currently displayed interface when detecting the switching instruction, and then, the terminal may obtain the target interface identifier from the stored correspondence between the VR interface identifier and the non-VR interface identifier according to the interface identifier, and perform mode switching according to the target interface identifier. Therefore, after the VR mode and the non-VR mode are switched, the terminal can continue to display the interface displayed before switching, the problem that interface information is lost before switching due to the fact that a user jumps to a designated page during mode switching in the related art is solved, and the continuity of the display interface is guaranteed.
Fig. 5 is a block diagram illustrating an apparatus 500 for switching between VR and non-VR modes in accordance with an example embodiment. For example, the apparatus 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, the apparatus 500 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and communication component 516.
The processing component 502 generally controls overall operation of the device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the apparatus 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 506 provides power to the various components of the device 500. The power components 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power supplies for the apparatus 500.
The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, audio component 510 includes a Microphone (MIC) configured to receive external audio signals when apparatus 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 may detect an open/closed state of the apparatus 500, the relative positioning of the components, such as a display and keypad of the apparatus 500, the sensor assembly 514 may also detect a change in the position of the apparatus 500 or a component of the apparatus 500, the presence or absence of user contact with the apparatus 500, orientation or acceleration/deceleration of the apparatus 500, and a change in the temperature of the apparatus 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the apparatus 500 and other devices in a wired or wireless manner. The apparatus 500 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 520 of the apparatus 500 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of a mobile terminal, enable the mobile terminal to perform a method of switching between a VR mode and a non-VR mode, the method comprising:
when a switching instruction is detected, acquiring an interface identifier of a currently displayed interface;
acquiring a target interface identifier from the corresponding relation between the stored VR interface identifier and the non-VR interface identifier based on the interface identifier of the currently displayed interface;
and switching modes based on the target interface identification.
Optionally, before obtaining the target interface identifier from the stored correspondence between the VR interface identifier and the non-VR interface identifier based on the interface identifier of the currently displayed interface, the method further includes:
acquiring interface identifications of a plurality of VR interfaces in a VR mode and interface identifications of a plurality of non-VR interfaces corresponding to the plurality of VR interfaces in a non-VR mode;
and storing the interface identifications of the multiple VR interfaces and the interface identifications of the multiple non-VR interfaces in a one-to-one correspondence manner to obtain the corresponding relation between the VR interface identifications and the non-VR interface identifications.
Optionally, the performing mode switching based on the target interface identifier includes:
when the target interface identification is an interface identification in a non-VR mode, acquiring a non-VR interface corresponding to the target interface identification;
acquiring content displayed in a VR interface corresponding to the application to which the non-VR interface belongs;
and displaying the acquired content on the non-VR interface.
Optionally, the performing mode switching based on the target interface identifier includes:
when the target interface identification is an interface identification in a VR mode, acquiring a VR interface corresponding to the target interface identification;
acquiring content displayed in a corresponding non-VR interface by the application to which the VR interface belongs;
and displaying the acquired content on the VR interface.
In the embodiment of the present disclosure, the terminal may obtain the interface identifier of the currently displayed interface when detecting the switching instruction, and then, the terminal may obtain the target interface identifier from the stored correspondence between the VR interface identifier and the non-VR interface identifier according to the interface identifier, and perform mode switching according to the target interface identifier. Therefore, after the VR mode and the non-VR mode are switched, the terminal can continue to display the interface displayed before switching, the problem that interface information is lost before switching due to the fact that a user jumps to a designated page during mode switching in the related art is solved, and the continuity of the display interface is guaranteed.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (8)

1. A method of switching between a virtual reality, VR, mode and a non-VR mode, the method comprising:
acquiring interface identifications of a plurality of VR interfaces in a VR mode and interface identifications of a plurality of non-VR interfaces corresponding to the plurality of VR interfaces in a non-VR mode from application data of running applications;
storing the interface identifications of the multiple VR interfaces and the interface identifications of the multiple non-VR interfaces in the application data of the application in a one-to-one correspondence manner to obtain a correspondence relationship between the VR interface identifications and the non-VR interface identifications;
when a switching instruction is detected, acquiring an interface identifier of a currently displayed interface;
based on the interface identifier of the currently displayed interface, acquiring a target interface identifier from a corresponding relation between the VR interface identifier and the non-VR interface identifier, which is stored in application data of an application to which the currently displayed interface belongs;
and switching modes based on the target interface identification.
2. The method of claim 1, wherein the switching modes based on the target interface identification comprises:
when the target interface identification is an interface identification in a non-VR mode, acquiring a non-VR interface corresponding to the target interface identification;
acquiring content displayed in a VR interface corresponding to the application to which the non-VR interface belongs;
and displaying the acquired content on the non-VR interface.
3. The method of claim 1, wherein the switching modes based on the target interface identification comprises:
when the target interface identification is an interface identification in a VR mode, acquiring a VR interface corresponding to the target interface identification;
acquiring content displayed in a corresponding non-VR interface by the application to which the VR interface belongs;
and displaying the acquired content on the VR interface.
4. An apparatus for switching between a VR mode and a non-VR mode, the apparatus comprising:
the first acquisition module is used for acquiring the interface identifier of the currently displayed interface when the switching instruction is detected;
a second obtaining module, configured to obtain, based on the interface identifier of the currently displayed interface, a target interface identifier from a correspondence between a VR interface identifier and a non-VR interface identifier stored in application data of an application to which the currently displayed interface belongs;
the switching module is used for carrying out mode switching based on the target scene identification;
a third obtaining module, configured to obtain, from application data of a running application, interface identifiers of multiple VR interfaces in a VR mode and interface identifiers of multiple non-VR interfaces corresponding to the multiple VR interfaces in a non-VR mode;
and the storage module is used for storing the interface identifications of the multiple VR interfaces and the interface identifications of the multiple non-VR interfaces in the application data of the application in a one-to-one correspondence manner to obtain the corresponding relation between the VR interface identifications and the non-VR interface identifications.
5. The apparatus of claim 4, wherein the switching module comprises:
the first obtaining sub-module is used for obtaining a non-VR interface corresponding to the target interface identification when the target interface identification is the interface identification in the non-VR mode;
the second obtaining submodule is used for obtaining the content displayed in the corresponding VR interface by the application to which the non-VR interface belongs;
and the first display sub-module is used for displaying the acquired content on the non-VR interface.
6. The apparatus of claim 4, wherein the switching module comprises:
the third obtaining submodule is used for obtaining a VR interface corresponding to the target interface identification when the target interface identification is the interface identification in the VR mode;
the fourth obtaining submodule is used for obtaining the content displayed in the corresponding non-VR interface by the application to which the VR interface belongs;
and the second display sub-module is used for displaying the acquired content on the VR interface.
7. An apparatus for switching between a VR mode and a non-VR mode, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the steps of any of the methods of claims 1-3.
8. A computer-readable storage medium having instructions stored thereon, wherein the instructions, when executed by a processor, implement the steps of any of the methods of claims 1-3.
CN201710444455.6A 2017-06-13 2017-06-13 Method and device for switching between VR mode and non-VR mode Active CN107272896B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710444455.6A CN107272896B (en) 2017-06-13 2017-06-13 Method and device for switching between VR mode and non-VR mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710444455.6A CN107272896B (en) 2017-06-13 2017-06-13 Method and device for switching between VR mode and non-VR mode

Publications (2)

Publication Number Publication Date
CN107272896A CN107272896A (en) 2017-10-20
CN107272896B true CN107272896B (en) 2020-06-02

Family

ID=60066757

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710444455.6A Active CN107272896B (en) 2017-06-13 2017-06-13 Method and device for switching between VR mode and non-VR mode

Country Status (1)

Country Link
CN (1) CN107272896B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102645423B1 (en) * 2021-07-08 2024-03-11 리모캐스트 주식회사 Method and apparatus for providing game contents using augmented reality view

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109976889B (en) * 2019-03-26 2024-01-23 孙涛 Multitasking collaborative processing method based on intelligent glasses
CN114612635B (en) * 2022-02-28 2022-10-25 北京行者无疆科技有限公司 Method and device capable of switching between augmented reality mode and virtual reality mode
CN115550886B (en) * 2022-11-29 2023-03-28 蔚来汽车科技(安徽)有限公司 Vehicle-mounted augmented reality equipment control method and system and vehicle-mounted interaction system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3062280A1 (en) * 2015-02-26 2016-08-31 Staging Design Inc. Method and system of management for switching virtual-reality mode and augmented-reality mode
CN106406907A (en) * 2016-10-11 2017-02-15 传线网络科技(上海)有限公司 Application program flow execution control method and device
CN106598514A (en) * 2016-12-01 2017-04-26 惠州Tcl移动通信有限公司 Method and system for switching virtual reality mode in terminal device
CN106791779A (en) * 2016-12-13 2017-05-31 深圳市潘多拉虚拟与现实科技有限公司 A kind of video player and image display method, system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3062280A1 (en) * 2015-02-26 2016-08-31 Staging Design Inc. Method and system of management for switching virtual-reality mode and augmented-reality mode
CN106406907A (en) * 2016-10-11 2017-02-15 传线网络科技(上海)有限公司 Application program flow execution control method and device
CN106598514A (en) * 2016-12-01 2017-04-26 惠州Tcl移动通信有限公司 Method and system for switching virtual reality mode in terminal device
CN106791779A (en) * 2016-12-13 2017-05-31 深圳市潘多拉虚拟与现实科技有限公司 A kind of video player and image display method, system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102645423B1 (en) * 2021-07-08 2024-03-11 리모캐스트 주식회사 Method and apparatus for providing game contents using augmented reality view

Also Published As

Publication number Publication date
CN107272896A (en) 2017-10-20

Similar Documents

Publication Publication Date Title
CN107608561B (en) Touch screen control method and device
EP3188066A1 (en) A method and an apparatus for managing an application
CN107204883B (en) Network fault processing method and device
JP6285615B2 (en) Remote assistance method, client, program, and recording medium
CN109274510B (en) Message processing method, device, client, server and storage medium
KR20160022286A (en) Method and apparatus for sharing video information
CN112019893B (en) Screen projection method of terminal and screen projection device of terminal
CN109521918B (en) Information sharing method and device, electronic equipment and storage medium
CN107272896B (en) Method and device for switching between VR mode and non-VR mode
CN105786507B (en) Display interface switching method and device
EP3147802B1 (en) Method and apparatus for processing information
CN109451341B (en) Video playing method, video playing device, electronic equipment and storage medium
EP3327548A1 (en) Method, device and terminal for processing live shows
CN108495168B (en) Bullet screen information display method and device
EP4093031A1 (en) Livestreaming room data exchange method and apparatus
CN113365153B (en) Data sharing method and device, storage medium and electronic equipment
CN105912204B (en) Method and device for starting application interface
US20220391446A1 (en) Method and device for data sharing
CN112291631A (en) Information acquisition method, device, terminal and storage medium
CN106878654B (en) Video communication method and device
CN106506808B (en) Method and device for prompting communication message
CN105227426B (en) Application interface switching method and device and terminal equipment
CN106447747B (en) Image processing method and device
CN109245992B (en) Request processing method and device, electronic equipment and storage medium
CN106535147B (en) Communication signal processing method and device

Legal Events

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