Video display method and device, electronic equipment and storage medium
By determining the appropriate size of the target space video and video playback window based on the user's extended reality environment in a head-mounted display device, the problem of insufficient integration between video display and environment is solved, thus enhancing the user's immersive viewing experience.
Patent Information
- Application Number
- CN202510686169.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-26
- Publication Date
- 2026-11-27
AI Technical Summary
In existing technologies, head-mounted display devices struggle to effectively integrate the video presentation with the user's extended reality environment when playing spatial videos, resulting in an insufficient immersive viewing experience.
In response to the instruction to display video in the target space, the system determines the first size of the video based on the user's current extended reality environment, and then determines the second size of the video playback window based on that size, ensuring that the video is displayed at an appropriate size in the extended reality environment and that the user is at the optimal viewing point.
It enhances the user's immersive viewing experience by aligning the depth of the spatial video images and video playback window with the depth of the extended real-world environment, thereby improving the integration of spatial video display with the environment.
Smart Images

Figure CN123185339A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of head-mounted display technology, and more particularly to a video display method, apparatus, electronic device, and storage medium. Background Technology
[0002] Spatial video is created by capturing and encoding depth and parallax information through multiple cameras and encapsulating it into a specific video format, which can then be displayed in a stereoscopic effect on head-mounted display devices.
[0003] In related technologies, head-mounted display devices typically create different extended reality environments using ambient images. These environments can be, for example, dark environments, cinema environments, summer beach camping environments, or cozy winter rooms. Different extended reality environments create varying degrees of spatial depth, providing users with diverse visual and sensory experiences. When playing spatial videos, how to integrate the video presentation with the user's surrounding extended reality environment to provide an immersive viewing experience is a pressing issue that needs to be addressed. Summary of the Invention
[0004] In order to solve the above-mentioned technical problems, or at least partially solve the above-mentioned technical problems, this disclosure provides a video display method, apparatus, electronic device and storage medium.
[0005] In a first aspect, this disclosure provides a video display method applicable to head-mounted display devices, the video display method comprising:
[0006] In response to an instruction to display a target space video, a first size of the target space video is determined based on the user's current extended reality environment;
[0007] Based on the first size of the target spatial video, determine the second size of the video playback window;
[0008] In the extended reality environment, the video playback window is displayed at the second size;
[0009] The target space video is displayed in the video playback window at the first size.
[0010] Secondly, this disclosure also provides a video display device suitable for head-mounted display devices, the video display device comprising:
[0011] The video size determination module is used to determine the first size of the target space video based on the extended reality environment in which the user is currently located in response to the instruction to display the target space video;
[0012] The window size determination module is used to determine a second size of the video playback window based on a first size of the target spatial video;
[0013] A display module is configured to display the video playback window at the second size in the extended reality environment; and to display the target space video at the first size in the video playback window.
[0014] Thirdly, this disclosure also provides an electronic device, the electronic device comprising:
[0015] One or more processors;
[0016] Storage device for storing one or more programs;
[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the video display method as described above.
[0018] Fourthly, this disclosure also provides a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the video display method described above.
[0019] The technical solution provided in this disclosure has the following advantages compared with the prior art:
[0020] The technical solution provided in this disclosure, in response to an instruction to display a target spatial video, determines a first size of the target spatial video based on the user's current extended reality environment. In the extended reality environment, when the target spatial video is displayed at the first size, the user is positioned at the optimal viewing point of the target spatial video. Based on the first size of the target spatial video, a second size of the video playback window is determined. In the extended reality environment, the video playback window is displayed at the second size. Within the video playback window, the target spatial video is displayed at the first size. Essentially, when displaying the target spatial video, the first size of the target spatial video and the second size of the video playback window are determined to be compatible with the characteristics of the user's extended reality environment. This ensures that the depth of the spatial video image and the video playback window matches the depth provided by the user's extended reality environment, thereby effectively combining the spatial video display with the user's extended reality environment and enhancing the user's immersive viewing experience. Attached Figure Description
[0021] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0022] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 A flowchart illustrating a video display method provided in this embodiment of the disclosure;
[0024] Figure 2 A schematic diagram illustrating a method for determining a first size of a target spatial video, provided in an embodiment of this disclosure;
[0025] Figure 3 A schematic diagram of a method for determining an image transition region provided in this disclosure embodiment;
[0026] Figure 4 This is a schematic diagram of the structure of a video display method apparatus according to an embodiment of the present disclosure;
[0027] Figure 5 This is a schematic diagram of the structure of an electronic device according to an embodiment of this disclosure. Detailed Implementation
[0028] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.
[0029] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.
[0030] Figure 1This is a flowchart illustrating a video display method provided in an embodiment of this disclosure. This embodiment is applicable to situations involving the playback of spatial video. The method can be executed by a video display device, which can be implemented using software and / or hardware. This device can be configured within a head-mounted display device. A head-mounted display device is a device capable of realizing visual and other forms of perception. Its form can be, for example, glasses, a helmet-mounted display, or contact lenses. Of course, the implementation form of a head-mounted display device is not limited to these, and it can be further miniaturized or enlarged as needed. In some application scenarios, the head-mounted display device can be externally connected to a PC or other electronic devices, and the external PC or other electronic devices can perform the relevant calculations of the technical solutions provided in this application and output data. Alternatively, the head-mounted display device itself adopts an all-in-one design, possessing its own display function and the ability to perform the relevant calculations and output data of the technical solutions in this application. Optionally, the head-mounted display device can be an extended reality device.
[0031] like Figure 1 As shown, the method may specifically include:
[0032] S110. In response to the instruction to display the target space video, determine the first size of the target space video based on the extended reality environment in which the user is currently located.
[0033] Spatial video is a type of video that uses multiple cameras with different focal lengths to capture multi-channel video data of the same scene. This data undergoes multi-layer video encoding (including determining parallax information, distinguishing primary and secondary viewpoints, and encoding them separately), and is then encapsulated with a pre-defined spatial video identifier into a video file of a specific format. This type of video not only contains planar image information but also presents the spatial position and stereoscopic effect of objects through parallax information and depth values. This allows terminal devices that support this format (such as head-mounted displays) to decode and generate spatial videos with realistic stereoscopic effects and an immersive experience. In some scenarios, spatial video can be encoded using the MV-HEVC (Multi-View-High-Efficiency Video Coding) standard.
[0034] The target spatial video could be, for example, the spatial video that needs to be played currently. In practice, the target spatial video could be specified by the user.
[0035] The instruction to display the target space video could be, for example, an instruction indicating that the user wishes to play the target space video. The instruction to display the target space video could be generated at, for example, when a specific operation is detected by the user on the head-mounted display device, or when a specific operation is detected by the user on a controller connected to the head-mounted display device, or when a specific action is completed by the user, or when a specific voice command is detected.
[0036] The first size of the target spatial video can be, for example, the size data required to display the target spatial video image in the user's current extended reality environment. It should be noted that the first size of the target spatial video is data determined based on the user's current extended reality environment; it is data adapted to the user's current extended reality environment. In other words, the first size of the target spatial video will differ depending on the user's extended reality environment. Optionally, the first size of the target spatial video includes at least one of the following: viewing distance, the size of the target spatial video image in the width direction, and the size in the height direction. The viewing distance refers to the distance from the plane containing the target spatial video image to the user's viewing position.
[0037] Extended reality environments can be virtual scenes created by extended reality devices using environmental images. These virtual scenes can be simulations of the real world, semi-simulated / semi-fictional, or purely fictional. Examples of extended reality environments include dark environments, movie theater environments, summer beach camping environments, or cozy winter rooms. Different extended reality environments can include different environmental elements. For example, a summer beach camping environment includes the ocean, beach, rocks, tents, and campfire.
[0038] Different extended reality environments create varying degrees of spatial depth (i.e., the perceived three-dimensional spatial depth by the user). This spatial depth contributes to the user's sense of immersion. Creating spatial depth in an extended reality environment is achieved by "placing" environmental elements in appropriate positions, ensuring the user perceives these elements at a suitable distance. When playing spatial videos, to maintain the user's immersion, both the target spatial video image and the video playback window need to be placed in the extended reality environment at a suitable distance from the user and displayed at an appropriate size, ensuring the user can see the details in the target spatial video image.
[0039] In some scenarios, within an extended reality environment, when a target spatial video is displayed at its first size, the user is positioned at the optimal viewing point for that video. The optimal viewing point for a video can refer, for example, to the position that provides the viewer with the best visual experience and immersion while watching the video. "In an extended reality environment, when a target spatial video is displayed at its first size, the user is positioned at the optimal viewing point for that video," for example, meaning that within the user's current extended reality environment, displaying the target spatial video at its first size provides the best spatial video viewing experience compared to displaying it at other sizes.
[0040] There are multiple methods to "determine the first size of the target spatial video based on the user's current extended reality environment," and this application does not limit this method. For example, the method for "determining the first size of the target spatial video based on the user's current extended reality environment" may include: determining the viewing distance based on the user's current extended reality environment; determining the size of the target spatial video image in the width direction and the size in the height direction based on the viewing distance; and using the viewing distance, the size of the target spatial video image in the width direction, and the size in the height direction as the first size of the target spatial video.
[0041] In some scenarios, a correspondence between extended reality environments and viewing distances can be pre-established. "Determining the viewing distance based on the user's current extended reality environment" includes: determining the viewing distance corresponding to the user's current extended reality environment according to the pre-established correspondence.
[0042] There are various specific methods for "determining the size of the target spatial video image in the width direction and the size in the height direction based on the viewing distance," and this application does not limit this method. For example, "determining the size of the target spatial video image in the width direction and the size in the height direction based on the viewing distance" includes: determining the field of view and aspect ratio of the target spatial video based on its metadata; and determining the size of the target spatial video image in the width direction and the size in the height direction based on the viewing distance, the field of view, and the aspect ratio of the target spatial video.
[0043] The metadata of spatial video refers to the data describing the spatial video. It is supplementary data related to the content of the spatial video and may include one or more of the following: the original size, aspect ratio, and field of view. The original size of the spatial video may, for example, refer to the image height and width determined during recording based on the recording parameters used. The aspect ratio of the target spatial video may, for example, be the ratio of the width to the height of the target spatial video image. The aspect ratio of the target spatial video may or may not be recorded directly in the spatial video's metadata. When the aspect ratio of the target spatial video is not recorded in the spatial video's metadata, it can be obtained from the original size of the spatial video.
[0044] "Determining the size of the target spatial video image in the width direction and the size in the height direction based on the viewing distance, the field of view and the aspect ratio of the target spatial video" can include: determining the size of the target spatial video image in the width direction based on the viewing distance and the field of view of the target spatial video; and determining the size of the target spatial video image in the height direction based on the size of the target spatial video image in the width direction and the aspect ratio of the target spatial video.
[0045] For example, see Figure 2 If the viewing distance is a, the field of view of the target space video is fov, and the aspect ratio of the target space video is r, the size W of the target space video image in the width direction can be obtained based on equation (1).
[0046]
[0047] The height dimension H of the target spatial video image can be obtained based on equation (2).
[0048]
[0049] It should be noted that when a user is in any extended reality environment and plays different spatial videos using the technical solution provided in this application, the first size parameters determined for each spatial video will also be different due to the differences in the field of view and / or aspect ratio of the different spatial videos. For example, the viewing distance may be the same in the first size determined for different spatial videos, but the dimensions of the spatial video image in the width direction and the dimensions in the height direction may be different.
[0050] S120. Determine the second size of the video playback window based on the first size of the target spatial video.
[0051] A video playback window can be, for example, an area used to play spatial video in an extended reality environment. In practice, a video playback window can be, for example, an area within a control panel used to play spatial video.
[0052] The second size of the video playback window can be, for example, an adapted size calculated based on the first size of the target spatial video, which allows the target spatial video to be fully displayed within the video playback window at the first size. In other words, when the target spatial video is displayed at the first size, the image of the target spatial video is entirely within the video playback window, rather than the video playback window only displaying a portion of the image of the target spatial video. Optionally, the second size of the video playback window includes at least one of the following: the distance of the video playback window from the user, the size of the video playback window in the width direction, and the size of the video playback window in the height direction.
[0053] There are various ways to implement this step, and this application does not limit this one. For example, the implementation method of this step may include: determining the size of the video playback window in the width direction and the size in the height direction based on the size of the target spatial video image in the width direction and the size in the height direction, and a preset image coverage ratio of the window; determining the distance between the video playback window and the user based on the viewing distance of the target spatial video; the distance between the video playback window and the user being equal to the viewing distance; and using the distance between the video playback window and the user, the size of the video playback window in the width direction, and the size in the height direction as the second size of the video playback window.
[0054] The image coverage ratio of the window can be, for example, a specific preset value or a range of values. It refers to the ratio of the area of the spatial video image to the area of the video playback window when the spatial video image is displayed in the video playback window. This application does not limit which specific value or range of values the image coverage ratio of the window refers to. In practice, it can optionally be set according to user needs. Optionally, the image coverage ratio of the window can be a value less than or equal to 1.
[0055] By setting the dimensions of the target spatial video image in the width and height directions, as well as the preset image coverage ratio of the window, the dimensions of the video playback window in the width and height directions can be determined. This ensures that the size of the video playback window is appropriate and can fully display the target spatial video.
[0056] S130. In an extended reality environment, display the video playback window at a second size.
[0057] S140. In the video playback window, display the target space video at the first size.
[0058] The aforementioned technical solution, by setting a response to an instruction to display a target spatial video, determines a first size of the target spatial video based on the user's current extended reality environment. Within the extended reality environment, when the target spatial video is displayed at the first size, the user is positioned at the optimal viewing point. Based on the first size of the target spatial video, a second size of the video playback window is determined. Within the extended reality environment, the video playback window is displayed at the second size. Within the video playback window, the target spatial video is displayed at the first size. Essentially, when displaying the target spatial video, the first size of the target spatial video and the second size of the video playback window are determined to be compatible with the characteristics of the user's extended reality environment. In this way, the depth perception of the spatial video image and the video playback window can be ensured to be consistent with the depth perception provided by the user's extended reality environment, thereby effectively combining the spatial video display with the user's extended reality environment and enhancing the user's immersive viewing experience.
[0059] Furthermore, when determining the first size of the target spatial video and the second size of the video playback window to match the user's extended reality environment, the technical solution of this application takes into account the field of view and aspect ratio of the target spatial video. This method ensures that when playing the target spatial video, the image size not only fits the spatial depth of the current extended reality environment, but also guarantees that the user can clearly observe the details in the video image.
[0060] Based on the above technical solutions, the method may optionally include: determining a screen transition area within the video playback window; the screen transition area being adjacent to the edge of the video playback window and used to connect the image of the target space video with the extended reality environment; and feathering the screen transition area.
[0061] The transition area can be, for example, within the video playback window and adjacent to its edge, an area enclosed by two rectangles whose centers coincide.
[0062] Feathering the transition area of the image can distinguish the image of the target space video from the environmental image used to create the extended reality environment, thereby highlighting the image of the target space video and making it easier for users to focus on the content presented by the image of the target space video, reducing visual interference.
[0063] Furthermore, in some scenarios, the target space video image may be distorted near the edge of the video playback window during playback. By setting the transition area of the image to coincide with the distorted area in the target space video image, and then feathering the transition area, the distorted image can be occluded.
[0064] Optionally, determining the screen transition area within the video playback window may include: using the area in the video playback window not filled by the image of the target space video as the screen transition area. For example, see... Figure 3 Assuming that rectangle 1 represents the edge of the video playback window, rectangle 2 represents the edge of the target space video image, and the transition area 3 (i.e. the area filled by the dots in the figure) is the area enclosed by rectangle 1 and rectangle 2.
[0065] Optionally, determining the screen transition area within the video playback window may further include: extending a preset size inward from the edge of the video playback window, and using the resulting area as the screen transition area. For example, see [link to example]. Figure 3Assuming rectangle 1 represents the edge of the video playback window, and rectangle 2 represents the rectangle obtained by extending a preset size into the video playback window based on the edge of the video playback window, the screen transition area 3 (i.e. the area filled by the dots in the figure) is the area enclosed by rectangle 1 and rectangle 2.
[0066] Feathering can be applied to transition areas of the image. For example, this could involve displaying an image with a specific texture in the transition area, or blurring an image displayed in the transition area.
[0067] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0068] Figure 4 This is a schematic diagram of a video display method apparatus according to an embodiment of this disclosure. The video display apparatus provided in this embodiment is applicable to head-mounted display devices. See also... Figure 4 The video display method device specifically includes:
[0069] The video size determination module 310 is used to determine the first size of the target space video based on the extended reality environment in which the user is currently located in response to an instruction to display the target space video.
[0070] The window size determination module 320 is used to determine the second size of the video playback window based on the first size of the target spatial video;
[0071] The display module 330 is used to display the video playback window at the second size in the extended reality environment; and to display the target space video at the first size in the video playback window.
[0072] Furthermore, the video size determination module 310 is used for:
[0073] Determine the viewing distance based on the user's current extended reality environment;
[0074] Based on the viewing distance, determine the size of the target spatial video image in the width direction and the size in the height direction;
[0075] The viewing distance, the size of the target spatial video image in the width direction, and the size in the height direction are used as the first size of the target spatial video.
[0076] Furthermore, the video size determination module 310 is used for:
[0077] Based on the metadata of the target spatial video, determine the field of view and aspect ratio of the target spatial video;
[0078] Based on the viewing distance, and the field of view and aspect ratio of the target spatial video, the dimensions of the target spatial video image in the width direction and the dimensions in the height direction are determined.
[0079] Furthermore, the video size determination module 310 is used for:
[0080] Based on the viewing distance and the field of view of the target space video, the size of the target space video image in the width direction is determined;
[0081] The dimensions of the target spatial video image in the height direction are determined based on the width dimension of the target spatial video image and the aspect ratio of the target spatial video.
[0082] Furthermore, the window size determination module 320 is used for:
[0083] Based on the dimensions of the target spatial video image in the width direction and the dimensions in the height direction, and the preset image coverage ratio of the window, the dimensions of the video playback window in the width direction and the dimensions in the height direction are determined.
[0084] Based on the viewing distance of the target spatial video, the distance between the video playback window and the user is determined; the distance between the video playback window and the user is equal to the viewing distance.
[0085] The distance between the video playback window and the user, the width of the video playback window, and the height of the video playback window are used as the second size of the video playback window.
[0086] Furthermore, the device also includes a transition module for:
[0087] A transition area is defined within the video playback window; the transition area is adjacent to the edge of the video playback window and is used to connect the image of the target space video with the extended reality environment.
[0088] Feathering is applied to the transition area of the image.
[0089] Furthermore, the transition module is used for:
[0090] The area in the video playback window that is not filled by the image of the target space video is used as the screen transition area; or...
[0091] Based on the edge of the video playback window, a preset size is extended into the interior of the video playback window, and the resulting area is used as the screen transition area.
[0092] The video display method apparatus provided in this disclosure can execute the steps in the video display method provided in this disclosure, and has the functions of execution steps and beneficial effects, which will not be described in detail here.
[0093] The following is a detailed reference. Figure 5 The diagram illustrates a structural schematic suitable for implementing the electronic device 1000 in the embodiments of this disclosure. The electronic device 1000 in the embodiments of this disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), wearable electronic devices, etc., as well as fixed terminals such as digital TVs, desktop computers, smart home devices, etc. Figure 5 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0094] like Figure 5 As shown, the electronic device 1000 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1008 into a random access memory (RAM) 1003 to implement the video display method as described in the embodiments of this disclosure. The RAM 1003 also stores various programs and information required for the operation of the electronic device 1000. The processing device 1001, ROM 1002, and RAM 1003 are interconnected via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0095] Typically, the following devices can be connected to the I / O interface 1005: input devices 1006 including, for example, a touchscreen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 1007 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1008 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. Communication device 1009 allows electronic device 1000 to exchange information with other devices wirelessly or via wired communication. Although Figure 5 An electronic device 1000 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0096] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts, thereby implementing the video display method as described above. In such embodiments, the computer program can be downloaded and installed from a network via communication device 1009, or installed from storage device 1008, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of embodiments of this disclosure.
[0097] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include information signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated information signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0098] In some implementations, clients and servers may communicate using any known or future network protocol, such as HTTP (Hypertext Transfer Protocol), and may interconnect with any form or medium of digital information communication (e.g., a communication network). Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any known or future network.
[0099] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0100] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to:
[0101] In response to an instruction to display a target space video, a first size of the target space video is determined based on the user's current extended reality environment; in the extended reality environment, when the target space video is displayed at the first size, the user is located at the optimal viewing point of the target space video;
[0102] Based on the first size of the target spatial video, determine the second size of the video playback window;
[0103] In the extended reality environment, the video playback window is displayed at the second size;
[0104] The target space video is displayed in the video playback window at the first size.
[0105] Optionally, when one or more of the above-described procedures are executed by the electronic device, the electronic device may also execute other steps described in the above embodiments.
[0106] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including but not limited to object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0107] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0108] The units described in the embodiments of this disclosure can be implemented in software or hardware. The names of the units are not, in some cases, intended to limit the specific unit.
[0109] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0110] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0111] According to one or more embodiments of this disclosure, this disclosure provides an electronic device, including:
[0112] One or more processors;
[0113] Memory, used to store one or more programs;
[0114] When the one or more programs are executed by the one or more processors, the one or more processors implement any of the video display methods provided in this disclosure.
[0115] According to one or more embodiments of the present disclosure, the present disclosure provides a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements a video display method as described in any of the present disclosure.
[0116] This disclosure also provides a computer program product, which includes a computer program or instructions that, when executed by a processor, implement the video display method described above.
[0117] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0118] The above description is merely a specific embodiment of this disclosure, enabling those skilled in the art to understand or implement it. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this disclosure. Therefore, this disclosure is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A video display method, characterized in that, The video display method is applicable to head-mounted display devices, and the video display method includes: In response to an instruction to display a target space video, a first size of the target space video is determined based on the user's current extended reality environment; Based on the first size of the target spatial video, determine the second size of the video playback window; In the extended reality environment, the video playback window is displayed at the second size; The target space video is displayed in the video playback window at the first size.
2. The method according to claim 1, characterized in that, Determining the first size of the target spatial video based on the user's current extended reality environment includes: Determine the viewing distance based on the user's current extended reality environment; Based on the viewing distance, determine the size of the target spatial video image in the width direction and the size in the height direction; The viewing distance, the size of the target spatial video image in the width direction, and the size in the height direction are used as the first size of the target spatial video.
3. The method according to claim 2, characterized in that, Determining the size of the target spatial video image in the width direction and the size in the height direction based on the viewing distance includes: Based on the metadata of the target spatial video, determine the field of view and aspect ratio of the target spatial video; Based on the viewing distance, and the field of view and aspect ratio of the target spatial video, the dimensions of the target spatial video image in the width direction and the dimensions in the height direction are determined.
4. The method according to claim 3, characterized in that, The determination of the size of the target spatial video image in the width direction and the size in the height direction based on the viewing distance, the field of view angle, and the aspect ratio of the target spatial video includes: Based on the viewing distance and the field of view of the target space video, the size of the target space video image in the width direction is determined; The dimensions of the target spatial video image in the height direction are determined based on the width dimension of the target spatial video image and the aspect ratio of the target spatial video.
5. The method according to claim 4, characterized in that, Determining the second size of the video playback window based on the first size of the target spatial video includes: Based on the dimensions of the target spatial video image in the width direction and the dimensions in the height direction, and the preset image coverage ratio of the window, the dimensions of the video playback window in the width direction and the dimensions in the height direction are determined. Based on the viewing distance of the target spatial video, the distance between the video playback window and the user is determined; the distance between the video playback window and the user is equal to the viewing distance. The distance between the video playback window and the user, the width of the video playback window, and the height of the video playback window are used as the second size of the video playback window.
6. The method according to claim 1, characterized in that, The method further includes: A transition area is defined within the video playback window; the transition area is adjacent to the edge of the video playback window and is used to connect the image of the target space video with the extended reality environment. Feathering is applied to the transition area of the image.
7. The method according to claim 6, characterized in that, Determining the screen transition area within the video playback window includes: The area in the video playback window that is not filled by the image of the target space video is used as the screen transition area; or... Based on the edge of the video playback window, a preset size is extended into the interior of the video playback window, and the resulting area is used as the screen transition area.
8. A video display device, characterized in that, The video display device is suitable for head-mounted display devices, and the video display device includes: The video size determination module is used to determine the first size of the target space video based on the extended reality environment in which the user is currently located in response to the instruction to display the target space video. The window size determination module is used to determine a second size of the video playback window based on a first size of the target spatial video; A display module is configured to display the video playback window at the second size in the extended reality environment; and to display the target space video at the first size in the video playback window.
9. An electronic device, characterized in that, The electronic device includes: One or more processors; Storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-7.
