Video display method and device, electronic equipment and storage medium

By adjusting the display size of the spatial video in the head-mounted display device according to the size of the video playback window, the problem of image mismatch in shared spatial videos is solved, thus improving the user experience.

CN123185338APending Publication Date: 2026-11-27BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510686162.3
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

Technical Problem

In shared space video display, the size of the video playback window does not match the size of the video content, causing the image to appear inconsistently large or small, which affects the user's viewing experience.

Method used

In response to an instruction to display video in a target space, a video playback window is displayed in the extended reality space within a head-mounted display device. The size of the video in the target space is then determined based on the size of the video playback window to ensure that the video image matches the window.

Benefits of technology

It achieves matching between the size of the spatial video frame and the video playback window, avoiding content waste or incomplete display caused by the frame being too small or too large, and providing a better viewing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185338A_ABST
    Figure CN123185338A_ABST
Patent Text Reader

Abstract

The present disclosure relates to a video display method and device, electronic equipment and storage medium, the method is suitable for a head-mounted display device, the method comprises: in response to an instruction to display a target spatial video, displaying a video playing window in an extended reality space; the video playing window is used to display an image of the spatial video; determining a first target size of the target spatial video based on a size of the video playing window; displaying the target spatial video in the first target size in the video playing window. By using this method, no matter how the original size of the spatial video is, when the spatial video is displayed, the picture size of the spatial video matches the video playing window, neither the case that the video picture is too small to waste the video playing window, nor the case that the video picture is too large to cause part of the content to be unable to be displayed, and a better viewing experience can be provided for the user.
Need to check novelty before this filing date? Find Prior Art

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, then encapsulating it into a specific video format to create a stereoscopic effect on supporting devices such as VR headsets. Shared Space is an experience mode offered by extended reality devices. In this mode, users can simultaneously experience a fusion of the physical world and virtual content. This mode allows users to interact with their surroundings and others, rather than being completely isolated in a virtual environment. Shared Space is ideal for situations requiring simultaneous attention to the real world and digital content, such as collaborative work, social interaction, and augmented real-time applications.

[0003] When displaying spatial videos in a shared space, playback is achieved through a video playback window. However, in related technologies, the video playback window and the spatial video content are treated as separate layers: the video playback window acts as a "container," while the spatial video content is the "exhibit" placed within this "container." This setup results in inconsistent video sizes when different spatial videos are played within the video playback window. If the images of different spatial videos differ, the larger spatial video will display a larger image, while the smaller spatial video will display a smaller image. Therefore, the video size fluctuates during switching between different spatial videos, negatively impacting the user's viewing experience. 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 video of the target space, a video playback window is displayed in the extended reality space; the video playback window is used to display images of the spatial video.

[0007] Based on the size of the video playback window, determine the first target size of the target space video;

[0008] The target space video is displayed in the video playback window at the first target size.

[0009] Secondly, this disclosure also provides a video display device suitable for head-mounted display devices, the video display device comprising:

[0010] The first display module is used to display a video playback window in the extended reality space in response to an instruction to display a target space video; the video playback window is used to display images of the space video;

[0011] The determining module is used to determine a first target size of the target space video based on the size of the video playback window;

[0012] The second display module is used to display the target space video at the first target size in the video playback window.

[0013] Thirdly, this disclosure also provides an electronic device, the electronic device comprising:

[0014] One or more processors;

[0015] Storage device for storing one or more programs;

[0016] 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.

[0017] 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.

[0018] The technical solution provided in this disclosure has the following advantages compared with the prior art:

[0019] The technical solution provided in this disclosure displays a video playback window in an extended reality space in response to an instruction to display a target spatial video. The video playback window displays the image of the spatial video. A first target size for the target spatial video is determined based on the size of the video playback window. The target spatial video is then displayed in the video playback window at the first target size. Essentially, in a shared space, when a spatial video needs to be displayed, the size of the spatial video is determined based on the size of the video playback window, and then the spatial video is displayed at the determined size. This method ensures that regardless of the original size of the spatial video, the screen size of the spatial video matches the video playback window when it is displayed. It avoids situations where the video screen is too small, wasting the video playback window, or where the video screen is too large, causing some content to be undisplayed, thus providing a better viewing experience for the user. Attached Figure Description

[0020] 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.

[0021] 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.

[0022] Figure 1 A flowchart illustrating a video display method provided in this embodiment of the disclosure;

[0023] Figure 2 and Figure 3 This is a schematic diagram illustrating two methods for determining screen transition areas according to embodiments of this disclosure;

[0024] Figure 4 This is a schematic diagram of the structure of a video display device according to an embodiment of the present disclosure;

[0025] Figure 5 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. Detailed Implementation

[0026] 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.

[0027] 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.

[0028] Figure 1 This 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.

[0029] like Figure 1 As shown, the method may specifically include:

[0030] S110. In response to the instruction to display video in the target space, a video playback window is displayed in the extended reality space; the video playback window is used to display images of the spatial video.

[0031] Extended reality (AR) spaces can be virtual scenes created by AR devices using environmental images. These virtual scenes can be simulations of the real world, semi-simulated / semi-fictional, or purely fictional. AR spaces can include skies, land, and oceans; the land can include environmental elements such as deserts and cities. Users can move within AR spaces. Environmental images are analogous to the desktop wallpaper displayed when a computer is turned on.

[0032] The video playback window can be, for example, an area in an extended real-world space used for playing spatial video. In practice, the video playback window can be, for example, an area within a control panel used for playing spatial video.

[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 video in the target space could be, for example, an instruction indicating that the user wishes to play video in the target space. The instruction to display video in the target space could be generated, for example, upon detecting that the user has performed a specific operation on the head-mounted display device, or upon detecting that the user has performed a specific operation on a controller connected to the head-mounted display device, or by completing a preset specific action, or upon detecting a specific voice command.

[0036] S120. Determine the first target size of the target space video based on the size of the video playback window.

[0037] The first target size of the target spatial video is determined based on the size of the video playback window and is suitable for display within that window. In other words, the first target size of the target spatial video is the size that fits the video playback window. If the size of the video playback window is different, the first target size of the target spatial video will also be different. For a specific video playback window, its size is fixed.

[0038] Displaying the target spatial video at the first target size in the video playback window ensures that the video fills or completely fills the playback window, without the video being significantly larger, thus limiting the view to a small portion. In other words, displaying the target spatial video at the first target size achieves a suitable size match between the video and playback window. This avoids the video being too small to waste the playback window or too large to prevent content from being displayed, providing a better viewing experience for the user.

[0039] 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 a first direction in the width and height directions based on the aspect ratio of the target spatial video and the size of the video playback window; determining the size of the target spatial video image in the first direction based on the aspect ratio of the target spatial video and the size of the target spatial video image in the first direction; if the first direction is the width direction, the second direction is the height direction; if the first direction is the height direction, the second direction is the width direction; determining the first target size of the target spatial video includes the size of the target spatial video image in the first direction and the size in the second direction.

[0040] The aspect ratio of a target spatial video can be, for example, the ratio of the width to the height of the target spatial video image. In practice, the aspect ratio of a target spatial video may be directly recorded in the target spatial video's metadata, or it may be determined based on the original dimensions of the target spatial video. The original dimensions of the target spatial video are recorded in the spatial video's metadata, and the image height and width are determined during recording based on the recording parameters used at the time of recording.

[0041] The width direction (also known as the horizontal direction) refers to the width of the image; the height direction (also known as the vertical direction) refers to the height of the image. For a specific target spatial video, whether the first direction is the width or height direction is determined by the aspect ratio of the target spatial video and the size of the video playback window. The first direction can be understood as the starting point for determining the initial target size of the target spatial video.

[0042] Determining the size of the target spatial video image in the first direction can, for example, refer to the size of the target spatial video in the first direction when it is displayed in the video playback window. This size is a part of the first target size of the target spatial video. This is used to calculate the size of the target spatial video in the second direction, thereby obtaining a better screen size (i.e., the first target size) suitable for display in the video playback window.

[0043] Furthermore, determining a first direction in the width and height directions based on the aspect ratio of the target spatial video and the size of the video playback window, and determining the size of the image of the target spatial video in the first direction, may include: determining a first direction in the width and height directions based on the aspect ratio of the target spatial video and the size of the video playback window; and determining the size of the image of the target spatial video in the first direction based on the coverage ratio of the image to the window and the size of the video playback window.

[0044] The image coverage ratio of the window can be, for example, a specific pre-set value or a range of values. It refers to the range of values ​​for 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 range of values ​​the image coverage ratio of the window refers to. In practice, it can optionally be set according to user needs.

[0045] In practice, a set of correspondences can be constructed for the size of the video playback window, including the correspondence between the aspect ratio of the spatial video and the direction indicated by the first direction. When performing the step of "determining the first direction (width or height) based on the aspect ratio of the target spatial video and the size of the video playback window," the set of correspondences associated with the size of the video playback window is queried according to the aspect ratio of the target spatial video, thereby determining whether the first direction for the target spatial video is the width or height direction.

[0046] For example, for the size of a video playback window, the set of correspondence relationships includes multiple correspondence relationships. Different correspondence relationships apply to different aspect ratio ranges. These multiple correspondence relationships include correspondence relationship 1, correspondence relationship 2, and correspondence relationship 3. Correspondence relationship 1 states that if the aspect ratio of the spatial video is greater than or equal to 1:1 and less than or equal to 16:9, the first direction is the width direction. Correspondence relationship 2 states that if the aspect ratio of the spatial video is greater than or equal to 9:16 and less than 1:1, the first direction is the height direction. When it is necessary to display the target spatial video, the correspondence relationship matching the target spatial video is determined based on which area the aspect ratio of the target spatial video falls into. Then, based on the correspondence relationship matching the target spatial video, it is determined whether the first direction specifically refers to the width direction or the height direction.

[0047] There are various specific implementation methods for "determining the size of the target spatial video image in the first direction based on the image's coverage ratio to the window and the size of the video playback window," and this application does not limit this one. For example, a function can be pre-constructed with the size of the target spatial video image in the first direction as the dependent variable and the image's coverage ratio to the window and the size of the video playback window as independent variables, and the size of the target spatial video image in the first direction can be determined based on this function.

[0048] S130. In the video playback window, display the target space video at the first target size.

[0049] The above technical solution displays a video playback window in the extended reality space in response to an instruction to display a target spatial video. The video playback window displays the image of the spatial video. Based on the size of the video playback window, a first target size for the target spatial video is determined. The target spatial video is then displayed in the video playback window at the first target size. Essentially, in a shared space, when a spatial video needs to be displayed, the size of the spatial video is determined based on the size of the video playback window, and then displayed at the determined size. This method ensures that regardless of the original size of the spatial video, the screen size of the spatial video matches the video playback window when it is displayed. It avoids situations where the video screen is too small, wasting the playback window, or too large, preventing some content from being displayed, thus providing a better viewing experience for the user.

[0050] Based on the above technical solution, the method may optionally include: determining a screen transition area within the video playback window; the screen 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 real space; and feathering the screen transition area.

[0051] The transition area can be, for example, an area within the video playback window that is adjacent to the edge of the video playback window and is enclosed by two rectangles whose centers coincide.

[0052] Feathering the transition area of ​​the image can distinguish the target space video image from the environmental image used to create extended reality, thus highlighting the target space video image and allowing the user to focus on its content, reducing visual distractions. Furthermore, in some scenarios, the target space video image near the edge of the playback window may be distorted during playback. Feathering the transition area can occlude this distorted portion of the image.

[0053] There are various specific methods for "determining the screen transition area within the video playback window," and this application does not limit this. In some scenarios, "determining the screen transition area within the video playback window" may include: if the image of the target spatial video does not fill the video playback window, the area in the video playback window not filled by the image of the target spatial video is taken as the screen transition area. In this case, the screen transition area is feathered. For example, it may be filled with an image of a specific texture. This application does not limit the specific texture of the image. For example, the image of the specific texture is an image with a frosted glass texture.

[0054] For example, see Figure 2 Since image 2 of the target space video does not completely fill the video playback window 1, the area remaining in the video playback window 1, excluding the area occupied by image 2 of the target space video, is designated as a transition area. This transition area is then filled with a frosted glass-like image.

[0055] In other scenarios, "determining the transition area within the video playback window" can include: if the image of the target spatial video fills the video playback window, based on the edge of the video playback window, extending a preset size into the interior of the video playback window, and using the resulting area as the transition area.

[0056] The image of the target space video fills the video playback window, meaning that the image of the target space video, as mentioned above, completely fills the entire video playback window. The preset size can be, for example, a pre-specified size used to determine the transition area of ​​the image; this application does not limit the specific value of this preset size.

[0057] For example, if the predicted size is a, see Figure 3 Assuming the edge outline of the video playback window is rectangle 3, extending 'a' inwards from rectangle 3 gives rectangle 4. The closed hollow area enclosed by rectangles 3 and 4 is the image transition area (i.e.,...). Figure 3 (The area filled with a diagonal dash).

[0058] In this case, feathering can be applied to the transition area of ​​the image. For example, the transition area could display an image with a specific texture. Alternatively, the target spatial video image displayed in the transition area could be blurred.

[0059] Based on the above technical solution, the method may optionally include: when the target spatial video is displayed in the video playback window, adjusting the size of the video playback window in response to the size adjustment operation of the video playback window; determining a second target size of the target spatial video based on the size of the video playback window after size adjustment; and displaying the target spatial video in the video playback window with the second target size after size adjustment.

[0060] The operation of resizing the video playback window can be, for example, an operation that reflects the user's desired adjustment of the video playback window's size in extended reality space. This could involve the user dragging the border of the video playback window using a controller (such as a gamepad) connected to the head-mounted display device, or using gestures, or selecting options that allow resizing the video playback window.

[0061] The second target size is determined based on the adjusted size of the video playback window and is suitable for display within the adjusted video playback window. In other words, the second target size of the target spatial video is the size that fits the adjusted video playback window. The method for "determining the second target size of the target spatial video" is similar to the method for "determining the first target size of the target spatial video," and will not be described in detail here.

[0062] By setting a second target size for the target spatial video based on the resized video playback window, the target spatial video is displayed in the resized video playback window at this second target size. Essentially, this allows the display size of the target spatial video to adaptively adjust according to changes in the video playback window size, thus avoiding the poor visual experience caused by changes in the video playback window size while the target spatial video size remains unchanged. In this way, it ensures that the spatial video image always matches the size of the video playback window, providing a comfortable viewing experience.

[0063] 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 the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. 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 the present invention.

[0064] Figure 4 This is a schematic diagram of the structure of a video display device according to an embodiment of this disclosure. The video display device provided in this embodiment is suitable for head-mounted display devices. See also... Figure 4 The video display device specifically includes:

[0065] The first display module 310 is used to display a video playback window in the extended reality space in response to an instruction to display a target space video; the video playback window is used to display images of the space video;

[0066] The determining module 320 is used to determine a first target size of the target space video based on the size of the video playback window;

[0067] The second display module 330 is used to display the target space video at the first target size in the video playback window.

[0068] Furthermore, module 320 is defined as being used for:

[0069] Based on the aspect ratio of the target spatial video and the size of the video playback window, a first direction is determined in the width and height directions, and the size of the image of the target spatial video in the first direction is determined.

[0070] Based on the aspect ratio of the target spatial video and the size of the target spatial video image in the first direction, the size of the target spatial video image in the second direction is determined; if the first direction is the width direction, the second direction is the height direction; if the first direction is the height direction, the second direction is the width direction.

[0071] Determining the first target size of the target spatial video includes the size of the image of the target spatial video in the first direction and the size in the second direction.

[0072] Furthermore, module 320 is defined as being used for:

[0073] Determine the proportion of the image that covers the window.

[0074] Based on the aspect ratio of the target spatial video and the size of the video playback window, a first direction is determined between the width and height directions;

[0075] Based on the coverage ratio of the image to the window and the size of the video playback window, the size of the target spatial video image in the first direction is determined.

[0076] Furthermore, the device also includes a transition processing module for:

[0077] 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 space.

[0078] Feathering is applied to the transition area of ​​the image.

[0079] Furthermore, the transition processing module is used for:

[0080] If the image of the target space video does not fill the video playback window, the area in the video playback window that is not filled by the image of the target space video is taken as the screen transition area.

[0081] Furthermore, the transition processing module is used for:

[0082] If the image of the target space video fills the video playback window, 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.

[0083] Furthermore, the device also includes an adjustment module for:

[0084] When the target space video is displayed in the video playback window, the size of the video playback window is adjusted in response to the resizing operation of the video playback window;

[0085] Based on the size of the video playback window after size adjustment, determine the second target size of the target spatial video;

[0086] In the video playback window after size adjustment, the target space video is displayed at the second target size.

[0087] The video display device provided in this disclosure embodiment can execute the steps in the video display method provided in this disclosure method embodiment, and has the execution steps and beneficial effects, which will not be repeated here.

[0088] 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.

[0089] like Figure 5As 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.

[0090] 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.

[0091] 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.

[0092] 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.

[0093] 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.

[0094] 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.

[0095] The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to:

[0096] In response to an instruction to display video of the target space, a video playback window is displayed in the extended reality space; the video playback window is used to display images of the spatial video.

[0097] Based on the size of the video playback window, determine the first target size of the target space video;

[0098] The target space video is displayed in the video playback window at the first target size.

[0099] Optionally, when one or more of the above-described procedures are executed by the electronic device, the electronic device may also perform other steps described in the above embodiments.

[0100] 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).

[0101] 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.

[0102] 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.

[0103] 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.

[0104] 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.

[0105] According to one or more embodiments of this disclosure, this disclosure provides an electronic device, including:

[0106] One or more processors;

[0107] Memory, used to store one or more programs;

[0108] 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.

[0109] 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.

[0110] 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.

[0111] 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.

[0112] 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, applicable to head-mounted display devices, includes: In response to an instruction to display video of the target space, a video playback window is displayed in the extended reality space; the video playback window is used to display images of the spatial video. Based on the size of the video playback window, determine the first target size of the target space video; The target space video is displayed in the video playback window at the first target size.

2. The method according to claim 1, characterized in that, Determining the first target size of the target spatial video based on the size of the video playback window includes: Based on the aspect ratio of the target spatial video and the size of the video playback window, a first direction is determined in the width and height directions, and the size of the image of the target spatial video in the first direction is determined. Based on the aspect ratio of the target spatial video and the size of the target spatial video image in the first direction, the size of the target spatial video image in the second direction is determined; if the first direction is the width direction, the second direction is the height direction; if the first direction is the height direction, the second direction is the width direction. Determining the first target size of the target spatial video includes the size of the image of the target spatial video in the first direction and the size in the second direction.

3. The method according to claim 2, characterized in that, The step of determining a first direction in the width and height directions based on the aspect ratio of the target spatial video and the size of the video playback window, and determining the size of the target spatial video image in the first direction, includes: Determine the proportion of the image that covers the window. Based on the aspect ratio of the target spatial video and the size of the video playback window, a first direction is determined between the width and height directions; Based on the coverage ratio of the image to the window and the size of the video playback window, the size of the target spatial video image in the first direction is determined.

4. The method according to claim 3, 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 space. Feathering is applied to the transition area of ​​the image.

5. The method according to claim 4, characterized in that, Determining the screen transition area within the video playback window includes: If the image of the target space video does not fill the video playback window, the area in the video playback window that is not filled by the image of the target space video is taken as the screen transition area.

6. The method according to claim 4, characterized in that, The step of determining the transition area within the video playback window includes: If the image of the target space video fills the video playback window, 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.

7. The method according to claim 1, characterized in that, The method further includes: When the target space video is displayed in the video playback window, the size of the video playback window is adjusted in response to the resizing operation of the video playback window; Based on the size of the video playback window after size adjustment, determine the second target size of the target spatial video; In the video playback window after size adjustment, the target space video is displayed at the second target size.

8. A video display device, characterized in that, Suitable for head-mounted display devices, the video display device includes: The first display module is used to display a video playback window in the extended reality space in response to an instruction to display a target space video; the video playback window is used to display images of the space video; The determining module is used to determine a first target size of the target space video based on the size of the video playback window; The second display module is used to display the target space video at the first target 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.