Video display method and apparatus, electronic device, and storage medium

The method and apparatus adjust spatial video sizes to match the playback window, addressing size discrepancies and enhancing the viewing experience in shared space environments by optimizing video fit and transition processing.

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

Patent Information

Application Number
US19/675399
Authority / Receiving Office
US · United States
Patent Type
Applications(United States)
Current Assignee / Owner
Priority Date
2025-05-26
Filing Date
2026-05-12
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

In existing spatial video playback systems, the sudden size changes of spatial videos when switching between videos with different image sizes disrupt the user's viewing experience in shared space environments.

Method used

A method and apparatus for a head-mounted display device that adjusts the size of spatial videos based on the size of the video playback window, ensuring the video fits optimally within the window and includes transition regions with feathering processing to enhance the viewing experience.

Benefits of technology

Ensures that spatial videos maintain a consistent size with the playback window, preventing waste of space and ensuring all content is visible, thereby providing a seamless and immersive viewing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US20260378173A1-D00000_ABST
    Figure US20260378173A1-D00000_ABST
Patent Text Reader

Abstract

The present disclosure relates to a video display method and apparatus, an electronic device, and a storage medium. The method is applicable to a head-mounted display device and includes the following: displaying a video playback window in an extended reality space in response to an instruction to display a target spatial video, where the video playback window is used to display an image of a spatial video; determining a first target size of the target spatial video based on a size of the video playback window; and displaying the target spatial video in the video playback window at the first target size.
Need to check novelty before this filing date? Find Prior Art

Description

CROSS-REFERENCE TO RELATED APPLICATION

[0001] This application claims priority to China Patent Application No. 202510686162.3 filed on May 26, 2025, the disclosure of which is incorporated herein by reference in its entirety.TECHNICAL FIELD

[0002] The present disclosure relates to the technical field of head-mounted display devices, and in particular, to a video display method and apparatus, an electronic device, and a storage medium.BACKGROUND

[0003] A spatial video is a video in which depth and disparity information is acquired and encoded by using multiple cameras and which is packaged in a specific format, and the spatial video may present a stereoscopic effect on a supporting device (such as a VR headset). A shared space is an experience mode provided by an extended reality device. In this experience mode, a user may simultaneously experience a fusion of the physical world and virtual content. This experience mode allows the user to interact with the surrounding environment and other people without being completely isolated in a virtual environment. The shared space is well suited for situations that require simultaneous attention to the real world and digital content, such as collaborative work, social interaction, and enhanced real-time applications.

[0004] When a spatial video is presented in the shared space, the spatial video is played by using a video playback window. However, in the related art, the video playback window and spatial video content are processed in different layers: the video playback window acts as a "container", while the spatial video content is an "exhibit" placed in the "container".SUMMARY

[0005] In order to solve the above technical problem or at least partially solve the above technical problem, the present disclosure provides a video display method and apparatus, an electronic device, and a storage medium.

[0006] In a first aspect, the present disclosure provides a video display method, where the video display method is applicable to a head-mounted display device, and the video display method includes:

[0007] displaying a video playback window in an extended reality space in response to an instruction to display a target spatial video, where the video playback window is used to display an image of a spatial video;

[0008] determining a first target size of the target spatial video based on a size of the video playback window; and

[0009] displaying the target spatial video in the video playback window at the first target size.

[0010] In a second aspect, the present disclosure further provides a video display apparatus, where the video display apparatus is applicable to a head-mounted display device, and the video display apparatus includes:

[0011] a first display module configured to display a video playback window in an extended reality space in response to an instruction to display a target spatial video, where the video playback window is used to display an image of a spatial video;

[0012] a determination module configured to determine a first target size of the target spatial video based on a size of the video playback window; and

[0013] a second display module configured to display the target spatial video in the video playback window at the first target size.

[0014] In a third aspect, the present disclosure further provides an electronic device, where the electronic device includes:

[0015] one or more processors;

[0016] a storage apparatus configured to store one or more programs, where

[0017] the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the video display method according to the above first aspect.

[0018] In a fourth aspect, the present disclosure further provides a computer-readable storage medium having stored thereon a computer program that, when executed by a processor, causes the video display method according to the above first aspect to be implemented.BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings herein, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0020] In order to more clearly explain the technical solutions in the embodiments of the present disclosure or in the related art, the following briefly introduces the drawings that need to be used in the description of the embodiments or the related art. Obviously, for those of ordinary skill in the art, they may also obtain other drawings from these drawings without paying any creative effort.

[0021] FIG. 1 is a flowchart of a video display method according to an embodiment of the present disclosure;

[0022] FIGS. 2 and 3 are schematic diagrams of two methods for determining a picture transition region according to an embodiment of the present disclosure;

[0023] FIG. 4 is a schematic structure diagram of a video display apparatus according to an embodiment of the present disclosure; and

[0024] FIG. 5 is a schematic structure diagram of an electronic device according to an embodiment of the present disclosure.DETAILED DESCRIPTION OF EMBODIMENTS

[0025] In order to understand the above objects, features and advantages of the present disclosure more clearly, the solutions of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments may be combined with each other without conflict.

[0026] Many specific details are set forth in the following description to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein. Obviously, the described embodiments are part of the embodiments of the present disclosure, but not all of them.

[0027] In the related art, when different spatial videos are played in the video playback window, if the different spatial videos have different image sizes, a video picture is large when a spatial video with a larger image size is displayed, and the video picture is small when a spatial video with a smaller image size is displayed. Therefore, in a process of switching between the different spatial videos, the size of the video picture changes suddenly, affecting the viewing experience of the user.

[0028] FIG. 1 is a flowchart of a video display method according to an embodiment of the present disclosure. The embodiment may be applied to a case of playing a spatial video. The method may be performed by a video display apparatus. The apparatus may be implemented in a form of software and / or hardware, and may be configured in a head-mounted display device. The head-mounted display device is a device that may achieve vision and other forms of perception. The form of the head-mounted display device may be, for example, glasses, a helmet-mounted display, contact lenses, etc. Certainly, the form of the head-mounted display device is not limited thereto, and the head-mounted display device may be further miniaturized or enlarged according to the demand. In some application scenarios, the head-mounted display device may be externally connected to a PC or other electronic device, and the externally connected PC or other electronic device performs relevant calculations of the technical solution provided in the present application and outputs data. Alternatively, the head-mounted display device itself adopts an all-in-one design, and the head-mounted display device itself has a display function and performs relevant calculations and outputs data of the technical solution of the present application. Optionally, the head-mounted display device may be an extended reality device.

[0029] As shown in FIG. 1, the method may specifically include:

[0030] S110, displaying a video playback window in an extended reality space in response to an instruction to display a target spatial video, where the video playback window is used to display an image of a spatial video.

[0031] The extended reality space may be, for example, a virtual scene created with an environmental image when an extended reality device is running. The virtual scene may be a simulation environment of the real world, a semi-simulation and semi-fictional virtual scene, or a pure fictional virtual scene. The extended reality space may include a sky, a land, an ocean, etc., and the land may include environmental elements such as a desert and a city, and a user may move in the extended reality space. The environmental image is equivalent to the desktop wallpaper displayed after the computer is turned on.

[0032] The video playback window may be, for example, an area in the extended reality space that is used to play a spatial video. In practice, the video playback window may be, for example, an area in a control panel that is used to play the spatial video.

[0033] A spatial video is a video in which multi-channel video data of the same scene is acquired by using multiple cameras with different focal lengths, multi-layer video encoding is performed on the data (including determining disparity information, distinguishing between primary and secondary perspectives, and encoding the primary and secondary perspectives separately), and then the multi-layer encoding data and a preset spatial video identification are packaged into a file in a specific format. Such a video includes not only plane image information, but also the spatial position and stereoscopic effect of an object by presenting disparity information and a depth value, so that a terminal device (such as a head-mounted display device) supporting displaying this format may decode and generate a spatial video with a real stereoscopic effect and immersive experience. In some scenarios, the spatial video may be encoded using the MV-HEVC (i.e., multi-view-high efficiency video coding) standard.

[0034] The target spatial video may be, for example, a spatial video that needs to be played currently. In practice, the target spatial video may be specified by the user, for example.

[0035] The instruction to display the target spatial video may be, for example, an instruction indicating that a user desires to play the target spatial video. The instruction to display the target spatial video may be generated when it is detected that the user performs a specific operation on the head-mounted display device, or when it is detected that the user performs a specific operation on a controller connected to the head-mounted display device, or when a preset specific action is completed, or when a specific voice instruction is detected.

[0036] S120, determining a first target size of the target spatial video based on a size of the video playback window.

[0037] The first target size of the target spatial video is determined according to the size of the video playback window, and is suitable for the size displayed in the video playback window. In other words, the first target size of the target spatial video is a size adapted to the video playback window. If the sizes of the video playback windows are different, the first target sizes of the target spatial video are also different. For a specific video playback window, its size is determined.

[0038] If the target spatial video is displayed at the first target size in the video playback window, the picture of the target spatial video may cover the entire video playback window as much as possible or completely cover the entire video playback window, and the picture of the target spatial video will not be much larger than the video playback window, resulting in that the video playback window may only display a small part of the picture of the target spatial video. In other words, when the target spatial video is displayed at the first target size, the picture size of the target spatial video matches the video playback window more appropriately, and there will be no case that the spatial video image appears too small and thus wastes the video playback window, and there will also be no case that the spatial video image is too large and thus causes part of content to be unable to be displayed, thereby providing the user with a better viewing experience.

[0039] There are multiple implementation methods for this step, and the present application does not limit this. Exemplarily, the implementation method of this step may include: determining a first direction from a width direction and a height direction and determining a size of an image of the target spatial video in the first direction based on an aspect ratio of the target spatial video and the size of the video playback window; determining a size of the image of the target spatial video in a second direction based on the aspect ratio of the target spatial video and the size of the image of the target spatial video in the first direction, where if the first direction is the width direction, the second direction is the height direction, and if the first direction is the height direction, the second direction is the width direction; and determining that 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 of the image of the target spatial video in the second direction.

[0040] The aspect ratio of the target spatial video may be, for example, a ratio of a width to a height of the image of the target spatial video. In practice, the aspect ratio of the target spatial video may be directly recorded in metadata of the target spatial video, or determined according to an original size of the target spatial video. The original size of the target spatial video is the image height and image width that are recorded in the metadata of the spatial video and determined according to recording parameters used during recording in the recording process.

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

[0042] Determining the size of the image of the target spatial video in the first direction may be, for example, referring to the size of the target spatial video in the first direction when the target spatial video is displayed in the video playback window. The size is a part of the first target size of the target spatial video, and is used to calculate the size of the target spatial video in the second direction, thereby obtaining a better picture size (i.e., the first target size) suitable for display in the video playback window.

[0043] Further, determining a first direction from a width direction and a height direction and determining a size of an image of the target spatial video in the first direction based on an aspect ratio of the target spatial video and the size of the video playback window may include: determining the first direction from the width direction and the height direction 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 a coverage ratio of the image to the window and the size of the video playback window.

[0044] The coverage ratio of the image to the window may be, for example, a preset specific numerical value or a numerical range, and it means a value range of 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. The present application does not limit which specific numerical range the coverage ratio of the image to the window refers to. In practice, optionally, it may be set according to user needs.

[0045] In practice, a correspondence set associated with the size of the video playback window may be constructed for the size of the video playback window, where the correspondence set includes a 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 from the width direction and the height direction based on the aspect ratio of the target spatial video and the size of the video playback window", the correspondence set associated with the size of the video playback window is queried according to the aspect ratio of the target spatial video, and then whether the first direction is the width direction or the height direction is determined for the target spatial video.

[0046] Exemplarily, for the size of a certain video playback window, the set correspondence set includes multiple correspondences. Different correspondences are applicable to different ranges of aspect ratios. The multiple correspondences include correspondence 1, correspondence 2, and correspondence 3. Correspondence 1 is: 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 2 is: 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 the target spatial video needs to be displayed, the correspondence matching the target spatial video is determined according to which area the aspect ratio of the target spatial video falls into, and then whether the first direction specifically indicates the width direction or the height direction is determined based on the correspondence matching the target spatial video.

[0047] There are multiple specific implementation methods for "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", and the present application does not limit this. Exemplarily, a function may be pre-established in which the size of the image of the target spatial video in the first direction is a dependent variable and the coverage ratio of the image to the window and the size of the video playback window are independent variables, and the size of the image of the target spatial video in the first direction is determined based on the function.

[0048] S130, displaying the target spatial video in the video playback window at the first target size.

[0049] In the above technical solution, a video playback window is displayed in an extended reality space in response to an instruction to display a target spatial video, where the video playback window is used to display an image of a spatial video; a first target size of the target spatial video is determined based on a size of the video playback window; and the target spatial video is displayed in the video playback window at the first target size. In essence, in a shared space, when a spatial video needs to be displayed, a size at which the spatial video is to be displayed is determined according to the size of the video playback window, and then the spatial video is displayed at the determined size. With this method, regardless of the original size of the spatial video, when the spatial video is displayed, a picture size of the spatial video matches the video playback window; that is, there will be no case where the video picture is too small and thus wastes the video playback window, and there will also be no case where the video picture is too large and thus causes part of content to be unable to be displayed, thereby providing a user with a better viewing experience.

[0050] Based on the above technical solution, optionally, the method may further include: determining a picture transition region in the video playback window, where the picture transition region is adjacent to an edge of the video playback window and is used to connect the image of the target spatial video and the extended reality space; and performing feathering processing on the picture transition region.

[0051] The picture transition region may be, for example, an area in the video playback window that is adjacent to the edge of the video playback window and that is enclosed by two rectangles with a coincident center.

[0052] Performing feathering processing on the picture transition region may distinguish the image of the target spatial video from the environmental image used to create the extended reality space, thereby highlighting the image of the target spatial video, facilitating the user to focus on the content presented by the image of the target spatial video, and reducing visual interference. In addition, in some scenarios, in a process of playing the image of the target spatial video, the picture of the target spatial video close to the edge of the video playback window may be distorted. By performing feathering processing on the picture transition region, the distorted picture may be occluded.

[0053] There are multiple specific implementation methods for "determining the picture transition region in the video playback window", and the present application does not limit this. In some scenarios, "determining the picture transition region in the video playback window" may include: if the image of the target spatial video does not fill the video playback window, using an area in the video playback window that is not filled by the image of the target spatial video as the picture transition region. In this case, feathering processing is performed on the picture transition region. For example, an image with a specific texture may be filled in the picture transition region. The present application does not limit the specific texture of the image with the specific texture. Exemplarily, the image with the specific texture is an image with a frosted glass texture.

[0054] Exemplarily, referring to FIG. 2, the image 2 of the target spatial video does not fill the video playback window 1, and the remaining area in the video playback window 1 except the area occupied by the image 2 of the target spatial video is used as the picture transition region. The area is filled with the image with the frosted glass texture.

[0055] In some other scenarios, "determining the picture transition region in the video playback window" may include: if the image of the target spatial video fills the video playback window, extending a preset size toward an interior of the video playback window based on an edge of the video playback window and using an obtained region as the picture transition region.

[0056] The image of the target spatial video filling the video playback window refers to the situation where the picture of the target spatial video mentioned above completely covers the entire video playback window. The preset size may be, for example, a predetermined size used to determine the picture transition region, and the present application does not limit a specific value of the preset size.

[0057] Exemplarily, if the predicted size is a, referring to FIG. 3, assuming that an edge contour of the video playback window is a rectangular box 3, extending a toward the interior of the video playback window from the rectangular box 3 to obtain a rectangular box 4. A closed hollow area enclosed by the rectangular box 3 and the rectangular box 4 is the picture transition region (i.e., the area filled with diagonal lines in FIG. 3).

[0058] In this case, performing feathering processing on the picture transition region may be, for example, displaying an image with a specific texture in the picture transition region, or blurring the image of the target spatial video displayed in the picture transition region.

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

[0060] The size adjustment operation on the video playback window may be, for example, an operation that reflects that the user desires to adjust the size of the video playback window in the extended reality space. Specifically, it may be a drag-and-drop operation on a border of the video playback window or a selection operation on an option with a function of adjusting the size of the video playback window by the user through operating a controller (such as a handle) connected to the head-mounted display device or through gestures.

[0061] The second target size is determined according to the adjusted size of the video playback window, and is suitable for the size displayed in the video playback window after the size adjustment. In other words, the second target size of the target spatial video is a size adapted to the video playback window after the size adjustment. 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 details are not described herein again.

[0062] It is set that the second target size of the target spatial video is determined based on the size of the video playback window after the size adjustment, and the target spatial video is displayed at the second target size in the video playback window after the size adjustment. In essence, the display size of the target spatial video is set to be adaptively adjusted with the size change of the video playback window, thereby avoiding the problem of poor visual experience caused by the size change of the video playback window and the unchanged size of the target spatial video. In this way, it may be ensured that the spatial video picture always matches the video playback window in terms of size, thereby providing a comfortable viewing experience.

[0063] It should be noted that, for the sake of simple description, the foregoing method embodiments are expressed as a series of action combinations, but those skilled in the art should know that the present disclosure is not limited by the described action sequence, because according to the present disclosure, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification all belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present disclosure.

[0064] FIG. 4 is a schematic structure diagram of a video display apparatus according to an embodiment of the present disclosure. The video display apparatus provided in the embodiments of the present disclosure is applicable to a head-mounted display device. Referring to FIG. 4, the video display apparatus specifically includes:

[0065] a first display module 310 configured to display a video playback window in an extended reality space in response to an instruction to display a target spatial video, where the video playback window is used to display an image of a spatial video;

[0066] a determination module 320 configured to determine a first target size of the target spatial video based on a size of the video playback window; and

[0067] a second display module 330 configured to display the target spatial video in the video playback window at the first target size.

[0068] Further, the determination module 320 is configured to:

[0069] determine a first direction from a width direction and a height direction and determine a size of an image of the target spatial video in the first direction based on an aspect ratio of the target spatial video and the size of the video playback window;

[0070] determine a size of the image of the target spatial video in a second direction based on the aspect ratio of the target spatial video and the size of the image of the target spatial video in the first direction, where if the first direction is the width direction, the second direction is the height direction, and if the first direction is the height direction, the second direction is the width direction; and

[0071] determine that 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 of the image of the target spatial video in the second direction.

[0072] Further, the determination module 320 is configured to:

[0073] determine a coverage ratio of the image to the window,

[0074] determine the first direction from the width direction and the height direction based on the aspect ratio of the target spatial video and the size of the video playback window; and

[0075] determine 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.

[0076] Further, the apparatus further includes a transition processing module, configured to:

[0077] determine a picture transition region in the video playback window, where the picture transition region is adjacent to an edge of the video playback window and is used to connect the image of the target spatial video and the extended reality space; and

[0078] perform feathering processing on the picture transition region.

[0079] Further, the transition processing module is configured to:

[0080] if the image of the target spatial video does not fill the video playback window, use an area in the video playback window that is not filled by the image of the target spatial video as the picture transition region.

[0081] Further, the transition processing module is configured to:

[0082] if the image of the target spatial video fills the video playback window, extend a preset size toward an interior of the video playback window based on the edge of the video playback window, and use the obtained area as the picture transition region.

[0083] Further, the apparatus further includes an adjustment module, configured to:

[0084] when the target spatial video is displayed in the video playback window, adjust a size of the video playback window in response to a size adjustment operation on the video playback window;

[0085] determine a second target size of the target spatial video based on the size of the video playback window after the size adjustment; and

[0086] display the target spatial video at the second target size in the video playback window after the size adjustment.

[0087] The video display apparatus provided in the embodiments of the present disclosure may perform the steps in the video display method provided in the method embodiments of the present disclosure, and has the beneficial effects of performing the steps, which are not repeated herein.

[0088] Reference is made specifically to FIG. 5 below, which illustrates a schematic structure diagram of an electronic device 1000 suitable for implementing the embodiments of the present disclosure. The electronic device 1000 in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a tablet computer, a PMP (portable multimedia player), a vehicle-mounted terminal (such as a vehicle navigation terminal), and a wearable electronic device, and fixed terminals such as a digital TV, a desktop computer, and a smart home device. The electronic device shown in FIG. 5 is only an example, and should not impose any limitation on the functions and the range of use of the embodiments of the present disclosure.

[0089] As shown in FIG. 5, the electronic device 1000 may include a processing apparatus (such as a central processing unit and a graphics processor) 1001, which may perform various appropriate actions and processing according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage apparatus 1008 into a random access memory (RAM) 1003 to implement the video display method of the embodiments as described in the present disclosure. In the RAM 1003, various programs and information required for the operation of the electronic device 1000 are also stored. The processing apparatus 1001, the ROM 1002, and the RAM 1003 are connected to each other through a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0090] Usually, the following apparatuses may be connected to the I / O interface 1005: an input apparatus 1006 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, and a gyroscope; an output apparatus 1007 including, for example, a liquid crystal display (LCD), a speaker, and a vibrator; a storage apparatus 1008 including, for example, a magnetic tape and a hard disk; and a communication apparatus 1009. The communication apparatus 1009 may allow the electronic device 1000 to perform wireless or wired communication with other devices to exchange information. Although FIG. 5 shows the electronic device 1000 having various apparatuses, it should be understood that it is not required to implement or have all the apparatuses shown. Alternatively, more or fewer apparatuses may be implemented or provided.

[0091] In particular, according to the embodiments of the present disclosure, the process described above with reference to the flowchart may be implemented as a computer software program. For example, the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, where the computer program includes program code for performing the method shown in the flowchart, thereby implementing the video display method as described above. In such an embodiment, the computer program may be downloaded and installed from a network through the communication apparatus 1009, or installed from the storage apparatus 1008, or installed from the ROM 1002. When the computer program is executed by the processing apparatus 1001, the above-mentioned functions defined in the method of the embodiments of the present disclosure are executed.

[0092] It should be noted that the above-mentioned computer-readable medium in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any suitable combination of the above. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer magnetic disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus or device. In the present disclosure, the computer-readable signal medium may include an information signal propagated in a baseband or as a part of a carrier wave, and computer-readable program code is carried therein. This propagated information signal may take many forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium, and the computer-readable signal medium may send, propagate, or transmit a program used by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted by any suitable medium, including but not limited to: a wire, an optical cable, an RF (radio frequency), etc., or any suitable combination of the above.

[0093] In some implementations, clients and servers may communicate using any known or future developed network protocol, such as the HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital information communication (for example, a communication network). Examples of the communication network include a local area network ("LAN"), a wide area network ("WAN"), an internet (for example, the Internet), a peer-to-peer network (for example, an Ad-Hoc network), and any network known or to be developed in the future.

[0094] The above-mentioned computer-readable medium may be included in the above-mentioned electronic device, or it may exist alone without being assembled into the electronic device.

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

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

[0097] determine a first target size of the target spatial video based on a size of the video playback window; and

[0098] display the target spatial video in the video playback window at the first target size.

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

[0100] The computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, where the programming languages include, but are not limited to, an object-oriented programming language such as Java, Smalltalk, and C++, and further include conventional procedural programming languages such as "C" language or similar programming languages. The program code may be executed entirely on a user computer, partly on a user computer, as a stand-alone software package, partly on a user computer and partly on a remote computer, or entirely on a remote computer or server. In the case involving a remote computer, the remote computer may be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it may be connected to an external computer (for example, connected through Internet provided by an Internet service provider).

[0101] The flowchart and block diagram in the drawings illustrate the possibly implemented architectures, functions, and operations of the system, the method, and the computer program product according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, program segment, or part of code, which contains one or more executable instructions for implementing the specified logical functions. It should also be noted that, in some alternative implementations, the functions marked in the blocks may also occur in an order different from that marked in the drawings. For example, two blocks shown in succession may actually be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or the flowchart, and the combination of the blocks in the block diagram and / or the flowchart may be implemented by a dedicated hardware-based system that executes specified functions or operations, or by a combination of dedicated hardware and computer instructions.

[0102] The involved units described in the embodiments of the present disclosure may be implemented by software or hardware. The name of a unit does not constitute a limitation on the unit itself under certain circumstances.

[0103] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), an application specific standard product (ASSP), a system on chip (SOC), a complex programmable logical device (CPLD), etc.

[0104] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in combination with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the above. More specific examples of the machine-readable storage medium may include an electrical connection based on one or more wires, a portable computer magnetic disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

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

[0106] one or more processors;

[0107] a memory configured to store one or more programs, where

[0108] the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the video display method according to any one described in the present disclosure.

[0109] According to one or more embodiments of the present disclosure, the present disclosure provides a computer-readable storage medium having stored thereon a computer program that, when executed by a processor, causes the video display method according to any one described in the present disclosure to be implemented.

[0110] An embodiment of the present disclosure further provides a computer program product, which includes a computer program or instruction(s) that, when executed by a processor, causes the video display method as described above to be implemented.

[0111] It should be noted that in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise", or any other variation thereof are intended to cover non-exclusive inclusion, so that a process, method, object, or device including a series of elements includes not only those elements, but also other elements not explicitly listed or elements inherent to such process, method, object, or device. Without further restrictions, an element defined by the phrase "includes a" does not exclude the existence of other identical elements in the process, method, object, or device that includes the element.

[0112] The above description is only specific implementations of the present disclosure, so that those skilled in the art may understand or implement the present disclosure. Various modifications to these embodiments will be obvious 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 the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A video display method, wherein the video display method is applicable to a head-mounted display device, and the video display method comprises:displaying a video playback window in an extended reality space in response to an instruction to display a target spatial video, wherein the video playback window is used to display an image of a spatial video;determining a first target size of the target spatial video based on a size of the video playback window; anddisplaying the target spatial video in the video playback window at the first target size.

2. The method of claim 1, wherein determining the first target size of the target spatial video based on the size of the video playback window comprises:determining a first direction from a width direction and a height direction and determining a size of an image of the target spatial video in the first direction based on an aspect ratio of the target spatial video and the size of the video playback window;determining a size of the image of the target spatial video in a second direction based on the aspect ratio of the target spatial video and the size of the image of the target spatial video in the first direction, wherein if the first direction is the width direction, the second direction is the height direction, and if the first direction is the height direction, the second direction is the width direction; anddetermining that the first target size of the target spatial video comprises the size of the image of the target spatial video in the first direction and the size of the image of the target spatial video in the second direction.

3. The method of claim 2, wherein determining a first direction from a width direction and a height direction and determining a size of an image of the target spatial video in the first direction based on an aspect ratio of the target spatial video and the size of the video playback window comprises:determining a coverage ratio of the image to the window,determining the first direction from the width direction and the height direction based on the aspect ratio of the target spatial video and the size of the video playback window; anddetermining 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.

4. The method of claim 3, wherein the method further comprises:determining a picture transition region in the video playback window, wherein the picture transition region is adjacent to an edge of the video playback window and is used to connect the image of the target spatial video and the extended reality space; andperforming feathering processing on the picture transition region.

5. The method of claim 4, wherein determining the picture transition region in the video playback window comprises:in response to the image of the target spatial video not filling the video playback window, using an area in the video playback window that is not filled by the image of the target spatial video as the picture transition region.

6. The method of claim 4, wherein determining the picture transition region in the video playback window comprises:in response to the image of the target spatial video filling the video playback window, extending a preset size toward an interior of the video playback window based on an edge of the video playback window and using an obtained area as the picture transition region.

7. The method of claim 1, wherein the method further comprises:in a case wherein the target spatial video is displayed in the video playback window, adjusting a size of the video playback window in response to a size adjustment operation on the video playback window;determining a second target size of the target spatial video based on the size of the video playback window after the size adjustment; anddisplaying the target spatial video at the second target size in the video playback window after the size adjustment.

8. An electronic device, wherein the electronic device comprises:one or more processors;a storage apparatus configured to store one or more programs, whereinthe one or more programs, when executed by the one or more processors, cause the one or more processors to implement a video display method, wherein the video display method is applicable to a head-mounted display device, and the video display method comprises:displaying a video playback window in an extended reality space in response to an instruction to display a target spatial video, wherein the video playback window is used to display an image of a spatial video;determining a first target size of the target spatial video based on a size of the video playback window; anddisplaying the target spatial video in the video playback window at the first target size.

9. The electronic device of claim 8, wherein determining the first target size of the target spatial video based on the size of the video playback window comprises:determining a first direction from a width direction and a height direction and determining a size of an image of the target spatial video in the first direction based on an aspect ratio of the target spatial video and the size of the video playback window;determining a size of the image of the target spatial video in a second direction based on the aspect ratio of the target spatial video and the size of the image of the target spatial video in the first direction, wherein if the first direction is the width direction, the second direction is the height direction, and if the first direction is the height direction, the second direction is the width direction; anddetermining that the first target size of the target spatial video comprises the size of the image of the target spatial video in the first direction and the size of the image of the target spatial video in the second direction.

10. The electronic device of claim 9, wherein determining a first direction from a width direction and a height direction and determining a size of an image of the target spatial video in the first direction based on an aspect ratio of the target spatial video and the size of the video playback window comprises:determining a coverage ratio of the image to the window,determining the first direction from the width direction and the height direction based on the aspect ratio of the target spatial video and the size of the video playback window; anddetermining 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.

11. The electronic device of claim 10, wherein the video display method further comprises:determining a picture transition region in the video playback window, wherein the picture transition region is adjacent to an edge of the video playback window and is used to connect the image of the target spatial video and the extended reality space; andperforming feathering processing on the picture transition region.

12. The electronic device of claim 11, wherein determining the picture transition region in the video playback window comprises:in response to the image of the target spatial video not filling the video playback window, using an area in the video playback window that is not filled by the image of the target spatial video as the picture transition region.

13. The electronic device of claim 11, wherein determining the picture transition region in the video playback window comprises:in response to the image of the target spatial video filling the video playback window, extending a preset size toward an interior of the video playback window based on an edge of the video playback window and using an obtained area as the picture transition region.

14. The electronic device of claim 8, wherein the video display method further comprises:in a case wherein the target spatial video is displayed in the video playback window, adjusting a size of the video playback window in response to a size adjustment operation on the video playback window;determining a second target size of the target spatial video based on the size of the video playback window after the size adjustment; anddisplaying the target spatial video at the second target size in the video playback window after the size adjustment.

15. A non-transitory computer-readable storage medium having stored thereon a computer program that, when executed by a processor, causes a video display method to be implemented, wherein the video display method is applicable to a head-mounted display device, and the video display method comprises:displaying a video playback window in an extended reality space in response to an instruction to display a target spatial video, wherein the video playback window is used to display an image of a spatial video;determining a first target size of the target spatial video based on a size of the video playback window; anddisplaying the target spatial video in the video playback window at the first target size.

16. The non-transitory computer-readable storage medium of claim 15, wherein determining the first target size of the target spatial video based on the size of the video playback window comprises:determining a first direction from a width direction and a height direction and determining a size of an image of the target spatial video in the first direction based on an aspect ratio of the target spatial video and the size of the video playback window;determining a size of the image of the target spatial video in a second direction based on the aspect ratio of the target spatial video and the size of the image of the target spatial video in the first direction, wherein if the first direction is the width direction, the second direction is the height direction, and if the first direction is the height direction, the second direction is the width direction; anddetermining that the first target size of the target spatial video comprises the size of the image of the target spatial video in the first direction and the size of the image of the target spatial video in the second direction.

17. The non-transitory computer-readable storage medium of claim 16, wherein determining a first direction from a width direction and a height direction and determining a size of an image of the target spatial video in the first direction based on an aspect ratio of the target spatial video and the size of the video playback window comprises:determining a coverage ratio of the image to the window,determining the first direction from the width direction and the height direction based on the aspect ratio of the target spatial video and the size of the video playback window; anddetermining 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.

18. The non-transitory computer-readable storage medium of claim 17, wherein the video display method further comprises:determining a picture transition region in the video playback window, wherein the picture transition region is adjacent to an edge of the video playback window and is used to connect the image of the target spatial video and the extended reality space; andperforming feathering processing on the picture transition region.

19. The non-transitory computer-readable storage medium of claim 18, wherein determining the picture transition region in the video playback window comprises:in response to the image of the target spatial video not filling the video playback window, using an area in the video playback window that is not filled by the image of the target spatial video as the picture transition region.

20. The non-transitory computer-readable storage medium of claim 18, wherein determining the picture transition region in the video playback window comprises:in response to the image of the target spatial video filling the video playback window, extending a preset size toward an interior of the video playback window based on an edge of the video playback window and using an obtained area as the picture transition region.