Method, device, equipment, medium and program product for playing stereoscopic video

By triggering the opening of a stereoscopic playback application in an application that does not support stereoscopic playback, and using a media library to build a stereoscopic display space, the problem of displaying stereoscopic videos in applications that do not support stereoscopic playback is solved, achieving a stereoscopic display effect while saving development costs.

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

Patent Information

Application Number
CN202510685525.1
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 existing technologies, applications that do not support stereoscopic playback cannot directly play stereoscopic videos, requiring program development and increasing development costs.

Method used

By receiving a stereoscopic playback command in a first application that does not support stereoscopic playback, a second application that can play stereoscopic music is triggered to open. The second application is then used to construct a stereoscopic display space for stereoscopic presentation, and a media library is used as an intermediary for information transmission and control.

Benefits of technology

It achieves a stereoscopic video display effect, while saving development costs for the first application and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185337A_ABST
    Figure CN123185337A_ABST
Patent Text Reader

Abstract

The application provides a stereoscopic video playing method, device, equipment, medium and program product. The method comprises the following steps: displaying a target stereoscopic video in a plane in a first application program; in response to receiving a stereoscopic playing instruction for the target stereoscopic video through the first application program, triggering a second application program to open; and constructing a stereoscopic display space by using the second application program, and performing stereoscopic display of the target stereoscopic video in the stereoscopic display space. The user can control the second application program which can support stereoscopic playing of the video to open by operating the first application program, so as to perform stereoscopic display of the target stereoscopic video, without developing a stereoscopic display function for the first application program, thereby saving the development cost of the first application program while ensuring the stereoscopic display effect of the target stereoscopic video.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of video processing technology, and in particular to a method, apparatus, device, medium, and program product for playing stereoscopic video. Background Technology

[0002] In existing technologies, applications that support stereoscopic playback are generally required to play stereoscopic videos in stereoscopic mode. If other applications that do not support stereoscopic playback are used to open the stereoscopic video, it can only be played in a flat plane and not in stereoscopic mode.

[0003] To enable stereo playback capabilities in applications that do not support stereo playback, it is often necessary to redevelop the program, which increases development costs. Summary of the Invention

[0004] In view of this, the purpose of this application is to provide a method, apparatus, device, medium and program product for playing stereoscopic video, so as to solve or partially solve the above-mentioned technical problems.

[0005] To achieve the above objectives, this application proposes a method for playing stereoscopic video, comprising:

[0006] The target stereoscopic video is displayed in a flat plane in the first application; wherein, the first application is an application that cannot play videos in stereoscopic form;

[0007] In response to receiving a stereoscopic playback instruction for the target stereoscopic video through the first application, a second application is triggered to open; wherein, the second application is an application capable of playing videos in stereoscopic mode;

[0008] The second application is used to construct a stereoscopic display space, and the target stereoscopic video is displayed in the stereoscopic display space in a stereoscopic manner.

[0009] Based on the same concept, this application also proposes a method for playing stereoscopic video, applied to a media library, wherein the media library is communicatively connected to a first application and a second application; wherein the first application is an application that cannot play stereoscopic video, and the second application is an application that can play stereoscopic video;

[0010] The method includes:

[0011] Upon receiving the stereoscopic playback command for the target stereoscopic video from the first application, a start command is generated;

[0012] The second application is opened according to the startup command, and the second application is used to construct a stereoscopic display space.

[0013] The target stereoscopic video is controlled to be displayed in stereoscopic space.

[0014] Based on the same concept, this application also proposes a method for playing stereoscopic video, applied to a first application, which communicates with a second application through a media library; wherein, the first application is an application that cannot play video in stereo, and the second application is an application that can play video in stereo.

[0015] The method includes:

[0016] Display the target stereoscopic video in a flat surface on the display interface;

[0017] Upon receiving a stereoscopic playback instruction for the target stereoscopic video, the stereoscopic playback instruction is fed back to the media library so that the media library can be used to control the second application to construct a stereoscopic display space and generate control instructions based on the stereoscopic display space;

[0018] Upon receiving the control command from the media library, the video frame of the target stereoscopic video is displayed in stereoscopic display space of the second application.

[0019] Based on the same concept, this application also proposes a method for playing stereoscopic video, applied to a second application, which communicates with the first application through a media library; wherein the first application is an application that cannot play stereoscopic video, and the second application is an application that can play stereoscopic video;

[0020] The method includes:

[0021] Receive the startup command from the media library, and construct a stereoscopic display space according to the startup command;

[0022] The video frame of the target stereoscopic video displayed in the first application is obtained through the media library, and the video frame is displayed in stereoscopic space.

[0023] Based on the same concept, this application also proposes a stereoscopic video playback device, comprising:

[0024] The video opening module is configured to display the target stereoscopic video in a planar format in a first application; wherein, the first application is an application that cannot play videos in stereoscopic format.

[0025] The instruction triggering module is configured to trigger the opening of a second application in response to receiving a stereoscopic playback instruction for the target stereoscopic video through the first application; wherein the second application is an application capable of stereoscopic video playback;

[0026] The stereoscopic playback module is configured to construct a stereoscopic display space using the second application and display the target stereoscopic video in the stereoscopic display space in a stereoscopic manner.

[0027] Based on the same concept, this application also proposes a stereoscopic video playback device, wherein the device includes a media library, which is communicatively connected to a first application and a second application; wherein the first application is an application that cannot play stereoscopic videos, and the second application is an application that can play stereoscopic videos.

[0028] Video playback applications;

[0029] The device includes:

[0030] The startup command generation module is configured to receive a stereoscopic playback command for the target stereoscopic video from the first application and generate a startup command.

[0031] The space creation control module is configured to control the second application to open according to the startup command, and to control the second application to construct a stereoscopic display space;

[0032] The display control module is configured to control the video footage of the target stereoscopic video to be displayed in the stereoscopic display space in a stereoscopic manner.

[0033] Based on the same concept, this application also proposes a stereoscopic video playback device, wherein the device includes a first application, which communicates with a second application through a media library; wherein the first application is an application that cannot play videos in stereo, and the second application is an application that can play videos in stereo.

[0034] The device includes:

[0035] The video display module is configured to display the target stereoscopic video in a flat display interface.

[0036] The stereoscopic playback instruction control module is configured to receive a stereoscopic playback instruction for the target stereoscopic video, feed the stereoscopic playback instruction back to the media library, so as to use the media library to control the second application to construct a stereoscopic display space, and generate control instructions based on the stereoscopic display space;

[0037] The control command processing module is configured to receive control commands from the media library and display the video image of the target stereoscopic video in the stereoscopic display space of the second application in stereoscopic form.

[0038] Based on the same concept, this application also proposes a stereoscopic video playback device, which includes a second application that communicates with a first application via a media library; wherein the first application is an application that cannot play videos in stereoscopic mode, and the second application is an application that can play videos in stereoscopic mode.

[0039] The device includes:

[0040] The stereoscopic display space construction module is configured to receive a startup command from the media library and construct a stereoscopic display space according to the startup command.

[0041] The stereoscopic display module is configured to obtain the video frame of the target stereoscopic video displayed in the first application through the media library, and display the video frame in stereoscopic space.

[0042] Based on the same concept, this application also proposes an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method described above.

[0043] Based on the same concept, this application also proposes a non-transient computation method.

[0044] A machine-readable storage medium, the non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the methods described above.

[0045] Based on the same concept, this application also proposes a computer program product, including computer program instructions that, when the computer program instructions are run on a computer, cause the computer to perform the method described above.

[0046] As can be seen from the above, the stereoscopic video playback method, apparatus, device, medium, and program product provided in this application can display a target stereoscopic video in a planar manner using a first application. After receiving a stereoscopic playback command from a user, the first application, unable to directly display the target stereoscopic video in stereo, triggers the opening of a second application. The second application constructs a stereoscopic display space, thereby displaying the target stereoscopic video in stereo. In this way, the user can control the opening of a second application that supports stereoscopic video playback to display the target stereoscopic video in stereo, eliminating the need to develop stereoscopic display functionality for the first application. This ensures the stereoscopic display effect of the target stereoscopic video while saving development costs for the first application. Attached Figure Description

[0047] To more clearly illustrate the technical solutions in this application or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0048] Figure 1 This is a schematic diagram illustrating an application scenario of an embodiment of this application;

[0049] Figure 2 This is a schematic diagram of the internal structure of a terminal device in an application scenario according to an embodiment of this application;

[0050] Figure 3 A flowchart illustrating a method for playing stereoscopic video according to an embodiment of this application;

[0051] Figure 4 This is a flowchart illustrating a method for playing stereoscopic video in a media library, as described in an embodiment of this application.

[0052] Figure 5 This is a flowchart illustrating a method for playing stereoscopic video in a first application according to an embodiment of this application;

[0053] Figure 6 This is a flowchart illustrating a method for playing stereoscopic video in a second application according to an embodiment of this application;

[0054] Figure 7 This is a structural diagram of a specific application embodiment of this application;

[0055] Figure 8 This is a schematic diagram of a browser interface display in a specific application embodiment of this application;

[0056] Figure 9 This is a structural block diagram of a stereoscopic video playback device according to an embodiment of this application;

[0057] Figure 10 This is a structural block diagram of a stereoscopic video playback device with a media library according to an embodiment of this application;

[0058] Figure 11 This is a structural block diagram of a stereoscopic video playback device with a first application provided in an embodiment of this application;

[0059] Figure 12 This is a structural block diagram of a stereoscopic video playback device with a second application provided in an embodiment of this application;

[0060] Figure 13 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Detailed Implementation

[0061] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.

[0062] The principles and spirit of this application will now be described with reference to several exemplary embodiments. It should be understood that these embodiments are provided merely to enable those skilled in the art to better understand and implement this application, and are not intended to limit the scope of this application in any way. Rather, these embodiments are provided to make this application more thorough and complete, and to fully convey the scope of this application to those skilled in the art.

[0063] It is understood that before using the technical solutions of the various embodiments in this disclosure, users will be informed of the type, scope of use, and usage scenarios of the personal information involved in an appropriate manner, and user authorization will be obtained.

[0064] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose, based on the prompt message, whether to provide personal information to the software or hardware such as electronic devices, applications, servers, or storage media performing the operations of this disclosed technical solution.

[0065] As an optional but not limited implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0066] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.

[0067] In this article, it is important to understand that any number of elements in the accompanying figures is for illustrative purposes and not for limitation, and any naming is for distinction only and has no limiting meaning.

[0068] Definitions:

[0069] PICO system: An operating system used on XR (Extended Reality) devices that display stereoscopic space.

[0070] PICO Browser: A browser used in the PICO system.

[0071] MediaLib: A multimedia library, a portable low-level library for accelerating multimedia applications.

[0072] CypressPlayer: A video decoder in the browser used to decode loaded videos.

[0073] SpatialUI: A spatial processor in stereoscopic video players, used to determine the stereoscopic display space of the video.

[0074] Surface: A rendering buffer in the PICO system, used to cache the rendering of images.

[0075] Based on the above background description, the following situations also exist in the related technologies:

[0076] For browsers running operating systems (e.g., the PICO system) that display stereoscopic videos, the browser typically only displays the viewed stereoscopic video in a flat plane and does not support stereoscopic display functionality. To enable stereoscopic display in a browser, developers need to add stereoscopic video display functionality to the existing browser. This involves data linking, video decoding, video rendering, scene management, and other functions, all of which require program development, increasing development difficulty and costs.

[0077] Based on the above description, the principles and spirit of this application will be explained in detail below with reference to several representative embodiments.

[0078] refer to Figure 1 This diagram illustrates an application scenario for the stereoscopic video playback method provided in this embodiment. The application scenario includes a terminal device 101 and a server 102. Both the terminal device 101 and the server 102 can be connected via wired or wireless communication networks. The terminal device 101 is a display device for stereoscopic display, including but not limited to 3D display glasses (e.g., XR glasses), 3D projection devices, and 3D displays. The server 102 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network) architecture, and big data and artificial intelligence platforms.

[0079] refer to Figure 2This is a schematic diagram of the internal structure of the terminal device in this embodiment. The terminal device 101 includes a first application 1011, a media library 1012, and a second application 1013. The first application 1011 communicates with the second application 1013 through the media library 1012. The first application 1011 in the terminal device 101 loads a target stereoscopic video from the server 102 and displays the target stereoscopic video in a flat manner on the display interface of the first application 1011. The user triggers a stereoscopic playback command for the target stereoscopic video through the first application 1011, and the first application 1011 sends the stereoscopic playback command to the media library 1012. The media library 1012 controls the second application 1013 to open according to the stereoscopic playback command and constructs a stereoscopic display space in the second application 1013. The media library 1012 controls the video frame of the target stereoscopic video to be displayed stereoscopically in the stereoscopic display space of the second application 1013.

[0080] The following is combined Figure 1 and Figure 2 The above application scenarios are used to describe the method for playing stereoscopic video according to exemplary embodiments of this application. It should be noted that the above application scenarios are only shown to facilitate understanding of the spirit and principles of this application, and the embodiments of this application are not limited in any way in this respect. Rather, the embodiments of this application can be applied to any applicable scenario.

[0081] This application provides a method for playing stereoscopic video, applied to a terminal device for stereoscopic display. The terminal device includes a first application, a media library (e.g., MediaLib), and a second application. The first application communicates with the second application through the media library.

[0082] like Figure 3 As shown, the method includes:

[0083] Step 201: Display the target stereoscopic video in a planar format in the first application; wherein, the first application is an application that cannot play videos in stereoscopic format.

[0084] In practice, the first application retrieves the target stereoscopic video from the server via the network, continuously loads and decodes the target stereoscopic video, renders the decoded video in the rendering buffer, and then displays the rendered video in the rendering buffer in a flat format through the display interface of the first application.

[0085] The first application is capable of loading the target stereoscopic video from the server and displaying the target stereoscopic video in a flat format, but it cannot play the stereoscopic video.

[0086] Step 202, in response to receiving a request for the application via the first application

[0087] The stereoscopic playback command of the target stereoscopic video triggers the opening of a second application; wherein, the second application is an application capable of playing stereoscopic videos.

[0088] In practice, the first application can communicate with the second application through a media library. When the user receives a stereoscopic playback command for the target stereoscopic video through the first application, the first application sends the stereoscopic playback command to the media library, which then controls the second application to open. After the second application opens, the first application runs in the background, continuing to load the target stereoscopic video from the server and continue decoding.

[0089] Step 203: Construct a stereoscopic display space using the second application, and display the target stereoscopic video in the stereoscopic display space.

[0090] In practice, after the second application is opened, it constructs a stereoscopic display space, determining the necessary spatial construction parameters based on the display requirements of the target stereoscopic video. These parameters include size, brightness, texture, and viewing angle. Once the stereoscopic display space is constructed, the target stereoscopic video can be displayed in stereoscopic form, allowing the user to see the video in a stereoscopic format.

[0091] Additionally, within the stereoscopic display space, if the user issues a trigger command in the second application, operation controls will appear in the stereoscopic display space, allowing the user to issue corresponding control commands. Alternatively, the user can directly control the corresponding controller to issue corresponding control commands. These control commands are divided into two types: one type is screen change commands that can be directly controlled using the second application (e.g., 360VR view adjustment commands, 180VR view adjustment commands, 3D view left / right movement commands, and / or 3D view up / down movement commands, etc.); the other type is playback update commands that require control through the media library using the first application (e.g., volume adjustment commands, playback progress adjustment commands, pause playback commands, and / or resume playback commands, etc.). The user can adjust and control the target stereoscopic video displayed in the stereoscopic display using the operation controls.

[0092] With the above solution, after the user opens the target stereoscopic video in the first application, they can control the opening of a second application that supports stereoscopic video playback to display the target stereoscopic video in stereoscopic mode. This eliminates the need to develop stereoscopic display functionality for the first application, ensuring the stereoscopic display effect of the target stereoscopic video while saving development costs for the first application.

[0093] In some embodiments, the triggering method of the stereoscopic playback command includes at least one of the following:

[0094] Triggered by a stereoscopic playback control (e.g., a full-screen control) set in the display interface of the first application;

[0095] Triggered by received voice commands;

[0096] Triggered by the received attitude command;

[0097] Triggered by received eye-tracking commands.

[0098] In practice, when the stereoscopic playback control triggers the stereoscopic playback command: the target stereoscopic video will be displayed in a flat manner in the display interface of the first application. In this way, stereoscopic playback controls will be set at the bottom, side and / or top of the target stereoscopic video. When the user triggers the stereoscopic playback control, a stereoscopic playback command will be generated. The first application will then trigger the second application to open through the media library according to the stereoscopic playback command.

[0099] For cases where a voice command triggers stereo playback: the user can pre-set and store the voice command that triggers stereo playback (e.g., the voice commands "full-screen playback" or "stereo playback") in the first application. After the user issues the corresponding voice command, the first application will generate a stereo playback command based on the voice command, and then trigger the second application to open via the media library. The voice command is captured by a recording device.

[0100] For cases where gesture commands trigger stereoscopic playback: Users can pre-set and store gesture commands (e.g., gesture commands or body movement commands) to trigger stereoscopic playback through a first application. The user can then issue gesture commands via movement, and the first application will generate stereoscopic playback commands based on these commands. The first application will then trigger a second application to open via the media library based on these stereoscopic playback commands. The gesture commands are obtained from image acquisition devices.

[0101] For cases where eye-tracking commands trigger stereoscopic playback: The terminal device is equipped with an eye tracker that can capture eye movements. The user can then set an eye-tracking command to trigger stereoscopic playback via a first application. Once triggered, the eye tracker will capture the user's eye movements during the setting period (e.g., eye rotation and / or eye up / down and / or eye left / right movement). Based on the captured eye movements, the eye tracker generates and stores an eye-tracking command. The user can then issue an eye-tracking command through eye movements. After the eye tracker captures the command, it sends it to the first application. Once the first application confirms the command is correct, it generates a stereoscopic playback command and triggers a second application to open the device via the media library.

[0102] The above solution provides multiple ways to trigger stereo playback commands, allowing users to choose according to their actual needs, thus offering diverse options and enhancing the user experience.

[0103] The terminal device is a terminal device that can support stereoscopic display (for example, the terminal device has a PICO system).

[0104] In some embodiments, the first application is a browser (e.g., the PICO browser in the PICO system), and the second application is a stereoscopic video player (e.g., a local video player in the PICO system).

[0105] In practice, users typically use a browser to search for the desired 3D video and view its 2D display within the browser. If a user finds the 2D display of the 3D video unsatisfactory, they will issue a 3D playback command. This will trigger the 3D video player to launch, displaying the 3D video in a 3D stereoscopic space, while the browser runs in the background.

[0106] With the above solution, since the stereoscopic video player is an existing stereoscopic video playback application in the terminal device, the stereoscopic video player can be triggered by the browser to display the target stereoscopic video in stereoscopic form. This eliminates the need to redevelop the stereoscopic display function of the browser, simplifying the development process and making full use of the stereoscopic display function of the stereoscopic video player.

[0107] Based on the same inventive concept, embodiments of this application also provide a method for playing stereoscopic video, applied to a media library (e.g., MediaLib), wherein the media library is communicatively connected to a first application (e.g., a browser) and a second application (e.g., a stereoscopic video player); wherein the first application is an application that cannot play videos in stereo, and the second application is an application that can play videos in stereo.

[0108] Furthermore, the first application, the media library, and the second application are all located on the same terminal device. This terminal device is capable of supporting stereoscopic display. For example, the terminal device has a PICO system, and the corresponding first application is the IPCO browser.

[0109] like Figure 4 As shown, the method for playing stereoscopic video using a media library includes the following steps:

[0110] Step 301: Receive the stereoscopic playback instruction for the target stereoscopic video from the first application and generate a start instruction.

[0111] In practice, the first application opens the target stereoscopic video, and the user receives a stereoscopic playback command through the first application. The first application then sends this stereoscopic playback command back to the media library. Upon receiving the stereoscopic playback command, the media library analyzes it, selects the corresponding second application, and generates a launch command to open the second application.

[0112] Step 302: Control the second application to open according to the startup command, and control the second application to construct a stereoscopic display space.

[0113] In practice, after receiving the launch command, the media library sends it to the second application, thereby controlling the second application to open. The launch command contains the spatial information required for the target stereoscopic video display, or the second application can retrieve the required spatial information from the first application via the media library. In this way, the second application can construct the stereoscopic display space based on this spatial information.

[0114] Step 303: Control the video frame of the target stereoscopic video to be displayed in stereoscopic display space.

[0115] In practice, after the second application is opened, the first application immediately runs in the background and continues loading the target stereoscopic video. Then, the media library retrieves the rendering buffer (e.g., Surface) corresponding to the stereoscopic display space. After retrieval, it sends control commands to the first application, instructing the first application to render the target stereoscopic video frames into the rendering buffer corresponding to the stereoscopic display space. Finally, the rendering buffer sends the rendered video frames to the second application for stereoscopic display in the second application's stereoscopic display space. During this process, the first application continuously loads the target stereoscopic video and continuously renders its frames into the rendering buffer, which in turn continuously sends the rendered video frames to the second application for stereoscopic display.

[0116] The above solution utilizes a media library as an intermediary for information transmission between the first and second applications. After the user receives a stereoscopic playback command from the first application, the media library receives this command and generates a launch command based on the stereoscopic playback. This launch command is then sent to the second application, which supports stereoscopic video playback, thereby controlling the second application to open and construct a stereoscopic display space. Finally, the media library controls the first application to display the target stereoscopic video in the stereoscopic display space of the second application. This eliminates the need to develop stereoscopic display functionality for the first application, ensuring the stereoscopic display effect of the target stereoscopic video while saving development costs for the first application.

[0117] In some embodiments, the media library is communicatively connected to a spatial processor (e.g., SpatialUI) in the second application.

[0118] Step 302, which involves controlling the second application to construct a stereoscopic display space, includes:

[0119] Step 3021: Retrieve the spatial information corresponding to the target stereoscopic video from the first application, and send the spatial information to the spatial processor so that the spatial processor can analyze and process the spatial information to determine the spatial construction parameters, and construct the stereoscopic display space according to the spatial construction parameters.

[0120] In practice, after the second application is opened, the media library retrieves the spatial information required for stereoscopic playback of the target stereoscopic video from the first application. The media library then sends this spatial information to the spatial processor, which performs spatial analysis to determine spatial construction parameters, including size, brightness, texture, and viewing angle. Finally, the spatial processor constructs a stereoscopic display space within the second application based on these parameters, and then uses this stereoscopic display space to display the target stereoscopic video.

[0121] With the above solution, since the second application is an existing application in the terminal device that can play stereoscopic videos, the existing spatial processor in the second application only needs to be controlled by the media library to open the second application and use the existing spatial processor to directly construct a stereoscopic display space for stereoscopic display of the target stereoscopic video based on the spatial information corresponding to the target stereoscopic video. This process is simple and quick.

[0122] In some embodiments, the media library is communicatively connected to a video decoder (e.g., CypressPlayer) in a first application.

[0123] In practice, the first application is equipped with a video decoder. When the first application displays the target stereoscopic video in a flat manner, it uses the video decoder to decode the video image of the target stereoscopic video, and then renders the decoded video image to the current rendering carrier corresponding to the first application. The current rendering carrier then displays the rendered video image in a flat manner on the display interface of the first application.

[0124] Step 303 includes:

[0125] Step 3031: Obtain the rendering buffer used by the stereoscopic display space, and generate control instructions after obtaining the rendering buffer.

[0126] In practice, after receiving the event information from the second application indicating that the stereoscopic display space has been built, the media library retrieves the rendering buffer used by that stereoscopic display space. After retrieving the rendering buffer, the media library generates control instructions, which contain the address information of the rendering buffer.

[0127] Step 3032: Send the control command to the video decoder so that the video decoder can decode the video frame of the target stereoscopic video according to the control command and render it into the rendering buffer. After rendering is completed, use the rendering buffer to transmit the rendered video frame to the stereoscopic display space for stereoscopic display.

[0128] In practice, after the media library generates control commands, it sends these commands to the video decoder of the first application. The main thread of the first application then updates the current rendering carrier of the video decoder to this rendering buffer. The video decoder then decodes the target stereoscopic video frames to obtain the decoded video frames and renders them into the rendering buffer. After the rendering buffer finishes rendering each frame of the decoded video, it generates a rendering completion event (e.g., an Available event), which is then processed by the application.

[0129] This rendering buffer is used by the second application for stereoscopic display space. Since it communicates with the second application, it can directly send rendering completion events to the second application's spatial processor. The second application's spatial processor then retrieves the rendered video footage from the rendering buffer and displays it in stereoscopic space.

[0130] Once the main thread of the first application updates the current rendering carrier of the video decoder to the rendering buffer, the video decoder of the first application can communicate with the second application through the rendering buffer (i.e., the transmission communication of the rendered video frame).

[0131] The above solution utilizes the rendering function of the existing rendering buffer in the terminal device to render the video image decoded by the video decoder in the first application into the rendering buffer. After rendering is completed, the rendering buffer can directly send the rendered video image to the second application for stereoscopic display in the stereoscopic display space. This allows users to directly watch the target stereoscopic video, making the operation simple and convenient and improving the user experience.

[0132] In some embodiments, after step 303, the method further includes:

[0133] Step 304: Receive the playback update instruction sent by the second application.

[0134] In practice, users can issue playback update commands through the second application. These commands include, for example, volume adjustment commands, playback progress adjustment commands, pause playback commands, and / or resume playback commands. Upon receiving the playback update command, the second application will send it to the media library.

[0135] Step 305: Send the playback update instruction to the first application so that the first application can update and adjust the video frame of the target stereoscopic video according to the playback update instruction to obtain the adjusted video frame. After the adjusted video frame is rendered by the rendering buffer, it is displayed in stereoscopic display space.

[0136] In practice, after receiving a playback update command, the media library forwards it to the first application. The first application updates and adjusts the video frame of the target stereoscopic video according to the playback update command, resulting in an adjusted video frame. For example, if the update command is a volume adjustment command, the first application controls the volume controller to adjust the volume, and the adjusted volume is combined with the video frame to form the adjusted video frame; if the update command is a playback progress adjustment command, the first application loads the video frame corresponding to the playback progress of the target stereoscopic video, decodes the video frame at that playback progress, and uses it as the adjusted video frame; if the update command is a pause playback command, the first application stops decoding the video frame of the target stereoscopic video, and the stopped video frame is used as the adjusted video frame; if the update command is a resume playback command, the first application continues decoding the video frame of the target stereoscopic video, and the decoded video frame is used as the adjusted video frame.

[0137] After receiving the adjusted video frame, the first application sends it to the rendering buffer for rendering. Once the rendering buffer has finished rendering, it sends the rendered adjusted video frame to the second application. The second application then displays the rendered adjusted video frame in stereoscopic space.

[0138] The above solution allows the second application to send playback update instructions received by the media library to the first application, enabling the first application to update and adjust the playback of the target stereoscopic video according to the playback update instructions. This avoids the problem that the second application cannot directly adjust the playback of the target stereoscopic video if it does not directly load the target stereoscopic video.

[0139] Based on the same inventive concept, this application also proposes a method for playing stereoscopic video, applied to a first application (e.g., a browser). The first application communicates with a second application (e.g., a stereoscopic video player) via a media library (e.g., MediaLib). The first application is not capable of playing stereoscopic video, while the second application is capable of playing stereoscopic video. Furthermore, the first application, the media library, and the second application are all located on the same terminal device. This terminal device is capable of supporting stereoscopic display. For example, the terminal device may have a PICO system, and the corresponding first application may be an IPCO browser.

[0140] like Figure 5 As shown, the method for playing stereoscopic video using the first application includes the following steps:

[0141] Step 401: Display the target stereoscopic video in a flat plane on the display interface.

[0142] In practice, the first application communicates with various servers via the network. The first application can load the corresponding target stereoscopic video from the server. After the user triggers the opening of the target stereoscopic video, the target stereoscopic video will be displayed in a flat manner on the display interface of the first application.

[0143] Step 402: Receive a stereoscopic playback instruction for the target stereoscopic video, and feed the stereoscopic playback instruction back to the media library so that the media library can be used to control the second application to construct a stereoscopic display space and generate control instructions based on the stereoscopic display space.

[0144] In practice, the user can issue a stereoscopic playback command through a first application, which will then send the command back to the media library. Upon receiving the command, the media library analyzes it, selects the corresponding second application, generates a launch command to open the second application, and sends the launch command to the second application, thereby controlling its opening. The launch command contains the spatial information required for the target stereoscopic video display, or the second application can retrieve this spatial information from the first application via the media library; thus, the second application can construct the stereoscopic display space based on this information.

[0145] The media library retrieves the rendering buffer (e.g., Surface) corresponding to the stereoscopic display space, and then generates control commands and sends them to the first application.

[0146] Step 403: Upon receiving the control command from the media library, the video frame of the target stereoscopic video is displayed stereoscopically in the stereoscopic display space of the second application.

[0147] In practice, after receiving the control command, the first application sends the target stereoscopic video frame to the rendering buffer. The rendering buffer renders the video frame and then sends the rendered video frame to the second application, which then displays it in stereoscopic space. During this process, the first application continuously loads the target stereoscopic video and continuously renders its frame to the rendering buffer, which in turn continuously sends the rendered video frame to the second application for stereoscopic display.

[0148] Through the above scheme, while the first application is displaying the target stereoscopic video in a flat manner on the display interface, the user can issue a stereoscopic playback command to the first application, and the first application will immediately...

[0149] The stereoscopic playback command is sent to the media library, which then controls the second application to open based on the stereoscopic playback command. This allows the second application to construct a stereoscopic display space. The media library then generates control commands based on the stereoscopic display space and sends them to the first application. The first application then displays the target stereoscopic video in stereoscopic space within the second application, eliminating the need to develop stereoscopic display functionality for the first application. This ensures the stereoscopic display effect of the target stereoscopic video while saving development costs for the first application.

[0150] In some embodiments, the first application includes a video decoder (e.g., CypressPlayer), which is communicatively connected to the media library.

[0151] In practice, during the process of displaying the target stereoscopic video in a flat manner, the first application uses a video decoder to decode the video image of the target stereoscopic video, and then renders the decoded video image to the current rendering carrier corresponding to the first application. The current rendering carrier then displays the rendered video image in a flat manner on the display interface of the first application.

[0152] Step 403 includes:

[0153] Step 4031: Receive the control command for the rendering buffer sent by the media library through the communication interface, and update the current rendering carrier to the rendering buffer according to the control command.

[0154] In practice, after receiving the event information from the second application indicating that the stereoscopic display space has been built, the media library retrieves the rendering buffer used by that stereoscopic display space. After retrieving the rendering buffer, the media library generates a control command, which carries the address information of the rendering buffer. The media library then sends this control command to the video decoder of the first application. The main thread of the first application then updates the current rendering medium of the video decoder to the rendering buffer.

[0155] Step 4032: Use the video decoder to decode the video frame of the target stereoscopic video to obtain the decoded video frame.

[0156] Step 4033: The decoded video frame obtained by the video decoder after decoding the target stereoscopic video is rendered into the rendering buffer, so that the rendered video frame can be transmitted to the stereoscopic display space for stereoscopic display after rendering is completed.

[0157] In practice, the video decoder decodes the target stereoscopic video frames to obtain decoded video frames, which are then rendered into the rendering buffer. After rendering each frame of the decoded video, the rendering buffer generates a rendering completion event (e.g., an Available event). Since this rendering buffer is used by the second application for its stereoscopic display space and already communicates with it, it can directly send the rendering completion event to the second application's spatial processor. The second application's spatial processor then retrieves the rendered video frames from the rendering buffer and displays them in stereoscopic space.

[0158] Once the main thread of the first application updates the current rendering carrier of the video decoder to the rendering buffer, the video decoder of the first application can communicate with the second application through the rendering buffer (i.e., the transmission communication of the rendered video frame).

[0159] Through the above scheme, the first application can utilize the media library and the rendering function of the existing rendering buffer in the terminal device. The video decoder renders the decoded video image in the rendering buffer. After rendering is completed, the rendering buffer can directly send the rendered video image to the second application for stereoscopic display in the stereoscopic display space. This allows users to directly watch the target stereoscopic video, which is simple and convenient to operate and improves the user experience.

[0160] In some embodiments, after step 403, the method further includes:

[0161] Step 404: Receive the playback update instruction from the media library, and update and adjust the video frame of the target stereoscopic video according to the playback update instruction to obtain the adjusted video frame.

[0162] In practice, during the stereoscopic playback of the target stereoscopic video in the second application, the second application does not directly load the target stereoscopic video and cannot directly adjust its playback. Therefore, the second application sends a playback update command to the first application through the media library. The first application then controls the video frame of the target stereoscopic video to update and adjust according to the playback update command, resulting in an adjusted video frame. For example, if the update command is a volume adjustment command, the first application controls the volume controller to adjust the volume, and the adjusted volume combined with the video frame forms the adjusted video frame; if the update command is a playback progress adjustment command, the first application loads the video frame corresponding to the playback progress of the target stereoscopic video and decodes it as the adjusted video frame; if the update command is a pause playback command, the first application stops decoding the target stereoscopic video frame, and the stopped video frame serves as the adjusted video frame; if the update command is a resume playback command, the first application continues decoding the target stereoscopic video frame, and the decoded video frame serves as the adjusted video frame.

[0163] Step 405: The adjusted video frame is sent to the rendering buffer so that the rendering buffer can render the adjusted video frame and display the rendered adjusted video frame in stereoscopic display space.

[0164] In practice, after receiving the adjusted video frame, the first application sends it to the rendering buffer for rendering. Once rendering is complete, the rendered adjusted video frame is sent to the second application. The second application then displays the rendered adjusted video frame in stereoscopic space.

[0165] Through the above solution, the first application can update and adjust the playback of the target stereoscopic video according to the playback update instruction sent by the second application through the media library, thereby achieving the user's purpose of playback update and avoiding the problem that the second application cannot directly adjust the playback of the target stereoscopic video because it does not directly load the target stereoscopic video.

[0166] Based on the same inventive concept, this application also provides a method for playing stereoscopic video, applied to a second application (e.g., a stereoscopic video player). The second application communicates with a first application (e.g., a browser) through a media library (e.g., MediaLib). The first application is an application that cannot play videos in stereoscopic mode, while the second application is an application that can play videos in stereoscopic mode. Furthermore, the first application, the media library, and the second application are all located on the same terminal device. This terminal device is capable of supporting stereoscopic display. For example, the terminal device may have a PICO system, corresponding to the first application...

[0167] The sequence name is IPCO browser.

[0168] like Figure 6 As shown, the method for playing stereoscopic video using a second application includes the following steps:

[0169] Step 501: Receive the startup command sent by the media library, and construct a stereoscopic display space according to the startup command.

[0170] In practice, after the first application opens the target stereoscopic video, the user receives a stereoscopic playback command through the first application. The first application then sends this stereoscopic playback command back to the media library. Upon receiving the stereoscopic playback command, the media library analyzes it, selects the corresponding second application, generates a launch command to open the second application, and sends the launch command to the second application.

[0171] Upon receiving the launch command, the second application can either retrieve the required spatial information for displaying the target stereoscopic video from the first application via the media library, or it can use this information to construct the stereoscopic display space.

[0172] Step 502: Obtain the video frame of the target stereoscopic video displayed in the first application through the media library, and display the video frame in stereoscopic space.

[0173] In practice, after the second application constructs the stereoscopic display space, the media library retrieves the rendering buffer (e.g., Surface) corresponding to the stereoscopic display space. After retrieval, it sends control commands to the first application. The first application renders the target stereoscopic video frame into the rendering buffer corresponding to the stereoscopic display space. The second application can then retrieve the rendered video frame from the rendering buffer and display it in stereoscopic space. During this process, the first application continuously loads the target stereoscopic video and continuously renders its frame into the rendering buffer, which in turn continuously sends the rendered video frame to the second application for stereoscopic display.

[0174] Through the above scheme, the first application sends a launch command to the second application through the media library, thereby controlling the second application to open and construct a stereoscopic display space. Then, according to the control of the media library, the video image of the target stereoscopic video is displayed in stereoscopic space in the second application. This can make full use of the original stereoscopic playback function of the second application without developing stereoscopic display function for the first application. While ensuring the stereoscopic display effect of the target stereoscopic video, it also saves the development cost for the first application.

[0175] In some embodiments, the second application includes a spatial processor (e.g., SpatialUI) that is communicatively connected to the media library.

[0176] The construction of the stereoscopic display space in step 501 includes:

[0177] Step 5011: Receive the spatial information corresponding to the target stereoscopic video fed back by the media library.

[0178] In practice, the spatial information corresponding to the target stereoscopic video can be directly extracted from the startup command, or it can be retrieved from the media library of the first application after the second application receives the startup command.

[0179] Step 5012: Analyze and process the spatial information using the spatial processor to determine spatial construction parameters, and construct the stereoscopic display space based on the spatial construction parameters.

[0180] In practice, the spatial processor performs spatial analysis on the spatial information to determine spatial construction parameters, including size, brightness, texture, and viewpoint. Finally, the spatial...

[0181] The processor will then construct a stereoscopic display space within the second application based on the space construction parameters, and then use this stereoscopic display space to display the target stereoscopic video in stereoscopic form.

[0182] With the above solution, since the second application is an existing application in the terminal device that can play stereoscopic videos, the existing spatial processor in the second application only needs to be controlled by the media library to open the second application and use the existing spatial processor to directly construct a stereoscopic display space for stereoscopic display of the target stereoscopic video based on the spatial information corresponding to the target stereoscopic video. This process is simple and quick.

[0183] In some embodiments, after step 502, the method further includes:

[0184] Step 503: Receive a screen change instruction for the video screen, and adjust the stereoscopic display space according to the screen change instruction.

[0185] In practice, the screen change command adjusts the stereoscopic display space of the video image, and the second application can adjust the stereoscopic display space according to the screen change command. The screen change command includes: 360VR view adjustment command, 180VR view adjustment command, 3D view horizontal movement command and / or 3D view vertical movement command, etc.

[0186] And / or, in step 504, a playback update instruction for the video frame is received, and the playback update instruction is sent to the media library so that the media library can send the playback update instruction to the first application, and the first application can update and adjust the video frame to obtain the adjusted video frame feedback to the rendering buffer.

[0187] In practice, users can issue playback update commands through the second application. These commands include, for example, volume adjustment commands, playback progress adjustment commands, pause playback commands, and / or resume playback commands. Upon receiving the playback update command, the second application will send it to the media library.

[0188] After receiving the playback update instruction, the media library forwards it to the first application. The first application updates and adjusts the video frame of the target stereoscopic video according to the playback update instruction, obtaining the adjusted video frame. After receiving the adjusted video frame, the first application sends it to the rendering buffer for rendering.

[0189] Step 505: Receive the rendered adjusted video frame sent by the rendering buffer, and display the rendered adjusted video frame in stereoscopic display space.

[0190] In practice, after the rendering buffer finishes rendering the adjusted video frame, it sends a rendering completion command to the second application. Upon receiving the rendering completion command, the second application retrieves the rendered adjusted video frame from the rendering buffer and displays it in stereoscopic space.

[0191] Through the above scheme, the second application can handle the screen change instructions for adjusting the stereoscopic display space on its own. For playback update instructions for adjusting playback, they need to be sent to the first application through the media. The first application then controls the playback according to the playback update instructions. This avoids the problem that the second application cannot directly adjust the playback of the target stereoscopic video if it does not directly load the target stereoscopic video.

[0192] The following describes a specific embodiment of the stereoscopic video playback method of this application, applied to a terminal device for stereoscopic display. The terminal device is equipped with a PICO system, in which a browser (i.e., the first application), MediaLib (i.e., the media library), and a stereoscopic video player (i.e., the second application) are installed.

[0193] The browser communicates with the stereoscopic video player via MediaLib. The PICO system also includes a Surface (i.e., a render buffer).

[0194] like Figure 7 The diagram shown is an architecture diagram consisting of a browser, MediaLib, a stereoscopic video player, and Surface.

[0195] The stereoscopic video player is equipped with SpatialUI (i.e., spatial processor), which communicates with MediaLib to construct a stereoscopic display space and display the video image of the target stereoscopic video in stereoscopic form.

[0196] The browser includes CypressPlayer (i.e., a video decoder) to decode the target stereoscopic video. CypressPlayer communicates with MediaLib.

[0197] MediaLib is the communication medium between the browser and the stereoscopic video player;

[0198] During the rendering process, Surface renders the decoded video footage sent by the browser's CypressPlayer and hands it over to SpatialUI for 3D display.

[0199] The specific execution process includes:

[0200] 1. Open a video website in your browser and play the target 3D video in a 2D format within the browser (e.g., ...). Figure 8 As shown in the diagram, during the actual playback process, the browser loads the target stereoscopic video, decodes it using CypressPlayer, renders it using the current rendering carrier (i.e., the currently used Surface), and then sends the result back to the playback platform for planar playback.

[0201] 2. Various control controls are provided at the bottom of the display area of ​​the target stereoscopic video. Users can click on the stereoscopic playback control (e.g., the full-screen control) from these control controls.

[0202] 3. The browser generates a stereoscopic playback command and sends it to MediaLib. MediaLib then generates a launch command based on the stereoscopic playback command and sends it to the stereoscopic video player to control the player's startup. MediaLib also sends the spatial information of the target stereoscopic video to SpatialUI and uses SpatialUI to construct the stereoscopic display space.

[0203] 4. Access the PICO system backend in your browser to continue acquiring data from the target stereoscopic video. In the backend, use CypressPlayer to decode the target stereoscopic video to obtain the decoded video image.

[0204] 5. After the stereoscopic video player starts, MediaLib obtains the Surface used to build the stereoscopic display space in the stereoscopic video player.

[0205] 6. After MediaLib obtains the Surface, it notifies the browser through the setBrowserSurface communication interface. The browser then controls CypressPlayer to update the current rendering medium to the Surface corresponding to the stereoscopic display space. This allows communication between the browser and the stereoscopic video player to occur during rendering through the Surface.

[0206] 7. The browser uses the main thread to configure the Surface to the browser's CypressPlayer. After CypressPlayer decodes the next frame of the target stereoscopic video, it renders the decoded video onto the Surface. Once the Surface confirms that the decoded video has been rendered, it will generate a rendering completion event (e.g., the OnImageAvailableListener.onImageAvailable event).

[0207] 8. The Surface will notify the stereoscopic video player of the rendering completion event. After receiving the rendering completion event, the stereoscopic video player will obtain the rendered video image from the Surface and display the rendered video image in the stereoscopic display space using SpatialUI.

[0208] It should be noted that the method in this embodiment can be executed by a single device, such as a computer or server. The method can also be applied in a distributed scenario, where multiple devices cooperate to complete the task. In such a distributed scenario, one of these devices may execute only one or more steps of the method in this embodiment, and the multiple devices will interact with each other to complete the method described.

[0209] It should be noted that the above description describes some embodiments of this application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in a different order than that shown in the above embodiments and still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0210] Based on the same concept, corresponding to the stereoscopic video playback method applied to terminal devices in the above embodiments, this application also provides a stereoscopic video playback device.

[0211] refer to Figure 9 The device includes:

[0212] The video opening module 601 is configured to display the target stereoscopic video in a planar manner in a first application; wherein, the first application is an application that cannot play videos in stereoscopic manner;

[0213] The instruction triggering module 602 is configured to trigger the opening of a second application in response to receiving a stereoscopic playback instruction for the target stereoscopic video through the first application; wherein the second application is an application capable of stereoscopic video playback;

[0214] The stereoscopic playback module 603 is configured to construct a stereoscopic display space using the second application and to display the target stereoscopic video in the stereoscopic display space in a stereoscopic manner.

[0215] In some embodiments, the triggering method of the stereoscopic playback command includes at least one of the following:

[0216] Triggered by the stereoscopic playback control set in the display interface of the first application;

[0217] Triggered by received voice commands;

[0218] Triggered by the received attitude command;

[0219] Triggered by received eye-tracking commands.

[0220] In some embodiments, the first application is a browser and the second application is a stereoscopic video player.

[0221] Based on the same concept, corresponding to the stereoscopic video playback method applied to the media library in the above embodiments, this application also provides a stereoscopic video playback device. The device includes a media library, which is communicatively connected to a first application and a second application; wherein the first application is an application that cannot play videos in stereo, and the second application is an application that can play videos in stereo.

[0222] refer to Figure 10 The device includes:

[0223] The startup instruction generation module 701 is configured to receive a stereoscopic playback instruction for the target stereoscopic video fed back by the first application and generate a startup instruction.

[0224] The space creation control module 702 is configured to control the second application to open according to the startup command, and to control the second application to construct a stereoscopic display space;

[0225] The display control module 703 is configured to control the video image of the target stereoscopic video to be displayed in the stereoscopic display space in a stereoscopic manner.

[0226] In some embodiments, the media library is communicatively connected to a space processor in the second application;

[0227] The space creation control module 702 is specifically configured as follows:

[0228] The spatial information corresponding to the target stereoscopic video is retrieved from the first application and sent to the spatial processor so that the spatial processor can analyze and process the spatial information to determine the spatial construction parameters and construct the stereoscopic display space according to the spatial construction parameters.

[0229] In some embodiments, the media library is communicatively connected to a video decoder in a first application;

[0230] The display control module 703 is specifically configured as follows:

[0231] Obtain the rendering buffer used by the stereoscopic display space, and generate control instructions after obtaining the rendering buffer;

[0232] The control command is sent to the video decoder so that the video decoder can decode the video frame of the target stereoscopic video according to the control command and render it into the rendering buffer. After the rendering is completed, the rendered video frame is transmitted to the stereoscopic display space and displayed in stereoscopic form using the rendering buffer.

[0233] In some embodiments, the apparatus further includes: a playback update control module configured to:

[0234] After displaying the video image in stereoscopic space, a playback update command is received from the second application.

[0235] The playback update instruction is sent to the first application so that the first application can update and adjust the video frame of the target stereoscopic video according to the playback update instruction to obtain the adjusted video frame. The adjusted video frame is then rendered by the rendering buffer and displayed in stereoscopic space.

[0236] Based on the same concept, corresponding to the stereoscopic video playback method applied to the first application in the above embodiments, this application also provides a stereoscopic video playback device. The device includes a first application, which communicates with a second application via a media library; wherein the first application is an application that cannot play videos in stereo, and the second application is an application that can play videos in stereo.

[0237] refer to Figure 11 The device includes:

[0238] The video display module 801 is configured to display the target stereoscopic video in a planar display interface;

[0239] The stereoscopic playback instruction control module 802 is configured to receive a stereoscopic playback instruction for the target stereoscopic video, feed the stereoscopic playback instruction back to the media library, so as to use the media library to control the second application to construct a stereoscopic display space, and generate control instructions based on the stereoscopic display space;

[0240] The control instruction processing module 803 is configured to receive control instructions from the media library and display the video image of the target stereoscopic video in the stereoscopic display space of the second application in stereoscopic form.

[0241] In some embodiments, the first application includes a video decoder, wherein the video decoder is communicatively connected to the media library;

[0242] The control command processing module 803 is specifically configured as follows:

[0243] Upon receiving a control command for the rendering buffer from the media library via the communication interface, the current rendering medium is updated to the rendering buffer according to the control command.

[0244] The video decoder is used to decode the video frame of the target stereoscopic video to obtain the decoded video frame;

[0245] The decoded video frame obtained by the video decoder after decoding the target stereoscopic video is rendered into the rendering buffer, so that after the rendering is completed, the rendered video frame can be transmitted to the stereoscopic display space for stereoscopic display.

[0246] In some embodiments, the device further includes a playback adjustment control module configured to:

[0247] After displaying the target stereoscopic video in the stereoscopic display space through the media library, a playback update instruction is received from the media library. Based on the playback update instruction, the video frame of the target stereoscopic video is updated and adjusted to obtain an adjusted video frame.

[0248] The adjusted video image is sent to the rendering buffer so that the rendering buffer can render the adjusted video image and display the rendered adjusted video image in stereoscopic display space.

[0249] Based on the same concept, corresponding to the stereoscopic video playback method applied to the second application in the above embodiments, this application also provides a stereoscopic video playback device. The device includes a second application, which is communicatively connected to a first application via a media library; wherein the first application is an application that cannot play videos in stereo, and the second application is an application that can play videos in stereo.

[0250] refer to Figure 12 The device includes:

[0251] The stereoscopic display space construction module 901 is configured to receive a startup command from the media library and construct a stereoscopic display space according to the startup command.

[0252] The stereoscopic display module 902 is configured to obtain the video frame of the target stereoscopic video displayed in the first application through the media library, and to display the video frame in stereoscopic space.

[0253] In some embodiments, the second application includes: a space processor, the space processor being communicatively connected to the media library;

[0254] The stereoscopic display space construction module 901 is specifically configured as follows:

[0255] Receive spatial information corresponding to the target stereoscopic video fed back by the media library;

[0256] The spatial processor is used to analyze and process the spatial information to determine the spatial construction parameters, and the stereoscopic display space is constructed according to the spatial construction parameters.

[0257] In some embodiments, the device further includes: an adjustment control module, specifically configured to: after the video image is displayed in stereoscopic space;

[0258] Upon receiving a screen change instruction for the video frame, the stereoscopic display space is adjusted according to the screen change instruction; and / or,

[0259] Upon receiving a playback update instruction for the video frame, the playback update instruction is sent to the media library, so that the media library can send the playback update instruction to the first application, and the first application can update and adjust the video frame to obtain the adjusted video frame feedback to the rendering buffer.

[0260] Receive the rendered and adjusted video frame sent by the rendering buffer.

[0261] The rendered and adjusted video footage is then displayed in a stereoscopic display space.

[0262] For ease of description, the above devices are described in terms of function, divided into various modules. Of course, in implementing this application, the functions of each module can be implemented in one or more software and / or hardware.

[0263] The apparatus of the above embodiments is used to implement the corresponding method in any of the foregoing embodiments and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0264] Based on the same concept, corresponding to the methods of any of the above embodiments, this application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the methods described in any of the above embodiments.

[0265] Figure 13 This embodiment illustrates a more specific hardware structure of an electronic device, which may include a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, memory 1020, input / output interface 1030, and communication interface 1040 are interconnected internally via the bus 1050.

[0266] The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0267] The memory 1020 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.

[0268] The input / output interface 1030 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components within the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touchscreens, microphones, various sensors, etc., while output devices may include displays, speakers, vibrators, indicator lights, etc.

[0269] The communication interface 1040 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0270] Bus 1050 includes a pathway for transmitting information between various components of the device, such as processor 1010, memory 1020, input / output interface 1030, and communication interface 1040.

[0271] It should be noted that although the above-described device only shows the processor 1010, memory 1020, input / output interface 1030, communication interface 1040, and bus 1050, in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the embodiments of this specification, and not necessarily all the components shown in the figures.

[0272] The electronic devices described above are used to implement the corresponding methods in any of the foregoing embodiments and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0273] Based on the same concept, corresponding to the methods of any of the above embodiments, this application also provides a non-transitory computer-readable storage medium that stores computer instructions for causing the computer to perform the methods described in any of the above embodiments.

[0274] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random-access memory (SRAM), dynamic random-access memory (DRAM), other types of random-access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital video disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.

[0275] The computer instructions stored in the storage medium of the above embodiments are used to cause the computer to perform the methods described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0276] Based on the same concept, corresponding to any of the above embodiments, this application also provides a computer program product, including computer program instructions, which, when run on a computer, cause the computer to perform the method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0277] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of this application (including the claims) is limited to these examples; within the framework of this application, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of the embodiments of this application as described above, which are not provided in the details for the sake of brevity.

[0278] Additionally, to simplify the description and discussion, and to avoid obscuring the embodiments of this application, the well-known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided drawings. Furthermore, the apparatus may be shown in block diagram form to avoid obscuring the embodiments of this application, and this also takes into account the fact that the details of the implementation of these block diagram apparatuses are highly dependent on the platform on which the embodiments of this application will be implemented (i.e., these details should be fully within the understanding of those skilled in the art). While specific details (e.g., circuits) have been set forth to describe exemplary embodiments of this application, it will be apparent to those skilled in the art that the embodiments of this application can be implemented without these specific details or with variations thereof. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0279] Although this application has been described in conjunction with specific embodiments thereof, many substitutions, modifications, and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., DRAM) may be used with the embodiments discussed.

[0280] The embodiments of this application are intended to cover all such substitutions, modifications, and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the embodiments of this application should be included within the protection scope of this application.

Claims

1. A method for playing stereoscopic video, characterized in that, include: The target stereoscopic video is displayed in a flat plane in the first application; wherein, the first application is an application that cannot play videos in stereoscopic form; In response to receiving a stereoscopic playback instruction for the target stereoscopic video through the first application, a second application is triggered to open; wherein, the second application is an application capable of playing videos in stereoscopic mode; The second application is used to construct a stereoscopic display space, and the target stereoscopic video is displayed in the stereoscopic display space in a stereoscopic manner.

2. The method according to claim 1, characterized in that, The triggering method for the stereoscopic playback command includes at least one of the following: Triggered by the stereoscopic playback control set in the display interface of the first application; Triggered by received voice commands; Triggered by the received attitude command; Triggered by received eye-tracking commands.

3. The method according to claim 1, characterized in that, The first application is a browser, and the second application is a stereoscopic video player.

4. A method for playing stereoscopic video, characterized in that, It is applied to a media library, which is communicatively connected to a first application and a second application; wherein, the first application is an application that cannot play videos in stereo, and the second application is an application that can play videos in stereo. The method includes: Upon receiving the stereoscopic playback command for the target stereoscopic video from the first application, a start command is generated; The second application is opened according to the startup command, and the second application is used to construct a stereoscopic display space. The target stereoscopic video is controlled to be displayed in stereoscopic space.

5. The method according to claim 4, characterized in that, The media library is communicatively connected to the space processor in the second application; The control of the second application to construct a stereoscopic display space includes: The spatial information corresponding to the target stereoscopic video is retrieved from the first application and sent to the spatial processor so that the spatial processor can analyze and process the spatial information to determine the spatial construction parameters and construct the stereoscopic display space according to the spatial construction parameters.

6. The method according to claim 4, characterized in that, The media library is communicatively connected to the video decoder in the first application; The control of displaying the target stereoscopic video in stereoscopic space includes: Obtain the rendering buffer used by the stereoscopic display space, and generate control instructions after obtaining the rendering buffer; The control command is sent to the video decoder so that the video decoder can decode the video frame of the target stereoscopic video according to the control command and render it into the rendering buffer. After the rendering is completed, the rendered video frame is transmitted to the stereoscopic display space and displayed in stereoscopic form using the rendering buffer.

7. The method according to claim 4, characterized in that, After displaying the video footage in the stereoscopic display space, the method further includes: Receive playback update instructions from the second application; The playback update instruction is sent to the first application so that the first application can update and adjust the video frame of the target stereoscopic video according to the playback update instruction to obtain the adjusted video frame. The adjusted video frame is then rendered by the rendering buffer and displayed in stereoscopic space.

8. A method for playing stereoscopic video, characterized in that, It is applied to a first application, which communicates with a second application through a media library; wherein the first application is an application that cannot play videos in stereoscopic mode, and the second application is an application that can play videos in stereoscopic mode; The method includes: Display the target stereoscopic video in a flat surface on the display interface; Upon receiving a stereoscopic playback instruction for the target stereoscopic video, the stereoscopic playback instruction is fed back to the media library so that the media library can be used to control the second application to construct a stereoscopic display space and generate control instructions based on the stereoscopic display space; Upon receiving the control command from the media library, the video frame of the target stereoscopic video is displayed in stereoscopic display space of the second application.

9. The method according to claim 8, characterized in that, The first application includes a video decoder, which is communicatively connected to the media library; Receiving the control command from the media library and displaying the target stereoscopic video in stereoscopic display space of the second application includes: Upon receiving a control command for the rendering buffer from the media library via the communication interface, the current rendering medium is updated to the rendering buffer according to the control command. The video decoder is used to decode the video frame of the target stereoscopic video to obtain the decoded video frame; The decoded video frame obtained by the video decoder after decoding the target stereoscopic video is rendered into the rendering buffer, so that after the rendering is completed, the rendered video frame can be transmitted to the stereoscopic display space for stereoscopic display.

10. The method according to claim 8, characterized in that, After displaying the target stereoscopic video footage in the stereoscopic display space through the media library, the method further includes: Receive a playback update instruction from the media library, and update and adjust the video frame of the target stereoscopic video according to the playback update instruction to obtain an adjusted video frame; The adjusted video image is sent to the rendering buffer so that the rendering buffer can render the adjusted video image and display the rendered adjusted video image in stereoscopic display space.

11. A method for playing stereoscopic video, characterized in that, It is applied to a second application, which communicates with the first application through a media library; wherein the first application is an application that cannot play videos in stereoscopic mode, and the second application is an application that can play videos in stereoscopic mode; The method includes: Receive the startup command from the media library, and construct a stereoscopic display space according to the startup command; The video frame of the target stereoscopic video displayed in the first application is obtained through the media library, and the video frame is displayed in stereoscopic space.

12. The method according to claim 11, characterized in that, The second application includes a space processor, which is communicatively connected to the media library; The construction of the three-dimensional display space includes: Receive spatial information corresponding to the target stereoscopic video fed back by the media library; The spatial processor is used to analyze and process the spatial information to determine the spatial construction parameters, and the stereoscopic display space is constructed according to the spatial construction parameters.

13. The method according to claim 11, characterized in that, After displaying the video footage in the stereoscopic display space, the method further includes: Upon receiving a screen change instruction for the video frame, the stereoscopic display space is adjusted according to the screen change instruction; and / or, Upon receiving a playback update instruction for the video frame, the playback update instruction is sent to the media library, so that the media library can send the playback update instruction to the first application, and the first application can update and adjust the video frame to obtain the adjusted video frame feedback to the rendering buffer. The rendered and adjusted video image sent by the rendering buffer is received, and the rendered and adjusted video image is displayed in stereoscopic space.

14. A stereoscopic video playback device, characterized in that, include: The video opening module is configured to display the target stereoscopic video in a planar format in a first application; wherein, the first application is an application that cannot play videos in stereoscopic format. The instruction triggering module is configured to trigger the opening of a second application in response to receiving a stereoscopic playback instruction for the target stereoscopic video through the first application; wherein the second application is an application capable of stereoscopic video playback; The stereoscopic playback module is configured to construct a stereoscopic display space using the second application and display the target stereoscopic video in the stereoscopic display space in a stereoscopic manner.

15. A stereoscopic video playback device, characterized in that, The device includes a media library, which is communicatively connected to a first application and a second application; wherein the first application is an application that cannot play videos in stereoscopic mode, and the second application is an application that can play videos in stereoscopic mode. The device includes: The startup command generation module is configured to receive a stereoscopic playback command for the target stereoscopic video from the first application and generate a startup command. The space creation control module is configured to control the second application to open according to the startup command, and to control the second application to construct a stereoscopic display space; The display control module is configured to control the video footage of the target stereoscopic video to be displayed in the stereoscopic display space in a stereoscopic manner.

16. A stereoscopic video playback device, characterized in that, The device includes a first application, which communicates with a second application via a media library; wherein the first application is an application that cannot play videos in stereoscopic mode, and the second application is an application that can play videos in stereoscopic mode. The device includes: The video display module is configured to display the target stereoscopic video in a flat display interface. The stereoscopic playback instruction control module is configured to receive a stereoscopic playback instruction for the target stereoscopic video, feed the stereoscopic playback instruction back to the media library, so as to use the media library to control the second application to construct a stereoscopic display space, and generate control instructions based on the stereoscopic display space; The control command processing module is configured to receive control commands from the media library and display the video frame of the target stereoscopic video in the stereoscopic display space of the second application. To provide a three-dimensional display.

17. A stereoscopic video playback device, characterized in that, The device includes a second application that communicates with the first application via a media library; wherein the first application is an application that cannot play videos in stereoscopic mode, and the second application is an application that can play videos in stereoscopic mode. The device includes: The stereoscopic display space construction module is configured to receive a startup command from the media library and construct a stereoscopic display space according to the startup command. The stereoscopic display module is configured to obtain the video frame of the target stereoscopic video displayed in the first application through the media library, and display the video frame in stereoscopic space.

18. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method as described in any one of claims 1 to 13.

19. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method as described in any one of claims 1 to 13.

20. A computer program product comprising computer program instructions, characterized in that, When the computer program instructions are executed on a computer, the computer causes the computer to perform the method as described in any one of claims 1 to 13.