Video playing method and device, electronic equipment and readable storage medium

By encapsulating panoramic and planar video tracks within the same video file, seamless switching and perspective adjustment between panoramic and planar videos are achieved, solving the problem of poor playback quality when switching between panoramic and planar videos, and improving video playback quality and device compatibility.

CN123164192APending Publication Date: 2026-11-24VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611189798.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-06
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In existing technologies, switching between panoramic and 2D video requires file format conversion, resulting in poor video playback quality.

Method used

The panoramic video track and the planar video track are encapsulated in the same video file, and track switching and perspective adjustment are achieved through user input, avoiding format conversion.

Benefits of technology

It improves video playback quality, enabling compatible playback and panoramic viewing on different devices without format conversion, thus enhancing playback flexibility and effectiveness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123164192A_ABST
    Figure CN123164192A_ABST
Patent Text Reader

Abstract

This application discloses a video playback method, apparatus, electronic device, and readable storage medium, relating to the field of video processing technology. The method includes: an electronic device reading a first video file, the first video file including a panoramic video track and a planar video track; the electronic device playing the first video file based on the first video track and using video parameters corresponding to the first video track; and in response to a first user input, the electronic device playing the first video file based on a second video track and using video parameters corresponding to the second video track; wherein the first video track is a panoramic video track, and the second video track is a planar video track; or, the first video track is a planar video track, and the second video track is a panoramic video track.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of video processing technology, specifically relating to a video playback method, apparatus, electronic device, and readable storage medium. Background Technology

[0002] Panoramic video, captured from a 360-degree perspective, provides users with an immersive viewing experience where the viewing angle can be freely adjusted. It is currently used in scenarios such as travel documentation, real estate demonstrations, and remote conferencing. To achieve a 360-degree viewing effect, panoramic video typically uses a dedicated panoramic standard for its encoding format and encapsulation method.

[0003] Two-dimensional video, also known as 2D video, is a common form of video that we encounter every day. It presents images on a flat screen from a fixed perspective and relies on composition, editing, and camera movement to tell a story. It is suitable for most scenarios such as drama, teaching, and publicity.

[0004] Currently, to switch between panoramic and 2D video playback, file format conversion is required, resulting in poor video playback quality in related technologies. Summary of the Invention

[0005] The purpose of this application is to provide a video playback method, apparatus, electronic device, and readable storage medium to improve video playback performance.

[0006] In a first aspect, embodiments of this application provide a video playback method, the method comprising: an electronic device reading a first video file, the first video file including a panoramic video track and a planar video track; the electronic device playing the first video file based on the first video track in the first video file and using video parameters corresponding to the first video track; and in response to a first user input, the electronic device playing the first video file based on a second video track and using video parameters corresponding to the second video track; wherein, the first video track is a panoramic video track and the second video track is a planar video track; or, the first video track is a planar video track and the second video track is a panoramic video track.

[0007] Secondly, embodiments of this application provide a video playback device, the device comprising: a reading unit for reading a first video file, the first video file including a panoramic video track and a planar video track; and a playback unit for playing the first video file based on the first video track in the first video file and using video parameters corresponding to the first video track; and, in response to a first user input, playing the first video file based on a second video track and using video parameters corresponding to the second video track; wherein the first video track is a panoramic video track and the second video track is a planar video track; or, the first video track is a planar video track and the second video track is a panoramic video track.

[0008] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions implementing the steps of the method as described in the first aspect when executed by the processor.

[0009] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, and when the program or instructions are executed by a processor, they implement the steps of the method as described in the first aspect.

[0010] Fifthly, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method as described in the first aspect.

[0011] In this embodiment, the first video file includes a panoramic video track and a planar video track. When the first video file is played based on one of the panoramic and planar video tracks, the electronic device can be instructed to play the first video file based on the other video track via user input. Since the first video file includes both a panoramic and a planar video track, it is unnecessary to convert a panoramic video file to a planar video file or vice versa, thus improving the video playback effect. Attached Figure Description

[0012] Figure 1 This is a flowchart illustrating a video playback method provided in some embodiments of this application;

[0013] Figure 2 This is a flowchart illustrating a video playback method provided in some embodiments of this application;

[0014] Figure 3 This is a flowchart illustrating a video playback method provided in some embodiments of this application.

[0015] Figure 4 These are schematic diagrams illustrating panoramic view switching provided in some embodiments of this application;

[0016] Figure 5 This is a flowchart illustrating a video playback method provided in some embodiments of this application;

[0017] Figure 6 This is a flowchart illustrating a video playback method provided in some embodiments of this application;

[0018] Figure 7 These are schematic diagrams of the structure of a video playback device provided in some embodiments of this application;

[0019] Figure 8This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0020] Figure 9 These are schematic diagrams of the hardware structure of electronic devices provided in some embodiments of this application. Detailed Implementation

[0021] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0022] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0023] The terms "at least one" and "at least one of" in the specification and claims of this application refer to any one, any two, or a combination of two or more of the included objects. For example, at least one of A, B, and C can mean: "A", "B", "C", "A and B", "A and C", "B and C", and "A, B, and C", where A, B, and C can be a single item or multiple items.

[0024] The video playback method, apparatus, electronic device, and readable storage medium provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.

[0025] The video playback method provided in this application can be applied to various playback devices with a playback screen. The playback device can include any device with video playback capability and a display screen. For example, the playback device can be a mobile phone, tablet computer, television, laptop computer, desktop computer, in-vehicle electronic device, wearable device, virtual reality (VR) device, augmented reality (AR) device, etc. The specific type of playback device is not limited in this application.

[0026] The video playback method provided in this application can be applied to scenarios where the same captured content is played on different types of playback devices. For example, for the same panoramic video, a user may watch it on a playback device that displays the image in a two-dimensional manner, such as a mobile phone or tablet, or on a playback device that can display a panoramic image. The user may also switch between two-dimensional and panoramic viewing during the viewing process and adjust the perspective of the panoramic image.

[0027] The core concept of this application is to encapsulate the panoramic video track and the planar video track obtained by planarizing its image content into the same video file. This allows the same video file to be played in a planar manner based on the planar video track, and to switch to the panoramic video track and adjust the panoramic view during playback. Thus, without having to create separate video files for different playback devices, it can ensure compatible playback and panoramic viewing on different playback devices.

[0028] It should be noted that the execution subject of the video playback method provided in this application embodiment can be a video playback device, which can be an electronic device, or a functional module or functional entity in an electronic device. The following description uses an electronic device executing the video playback method as an example to illustrate the technical solution provided in this application embodiment.

[0029] Figure 1 A flowchart illustrating a video playback method provided for some embodiments of this application, such as... Figure 1 As shown, the video playback method may include the following steps 101 to 103:

[0030] Step 101: The electronic device reads the first video file.

[0031] The first video file includes a panoramic video track and a planar video track.

[0032] In some embodiments of this application, the first video file may include at least two video tracks, including the panoramic video track and the planar video track described above.

[0033] In some embodiments of this application, the electronic device reads the first video file through a native player.

[0034] In some embodiments of this application, the first video file may be a multimedia file that organizes the above-mentioned at least two video tracks together according to a preset encapsulation format, wherein the at least two video tracks carry different presentation forms of the same shot content.

[0035] In some embodiments of this application, each video track may include a media track for carrying one continuous stream of video content and / or audio content.

[0036] In some embodiments of this application, the panoramic video track may include a video track that supports adjusting the viewing angle within a certain spatial range, the content of which is obtained by panoramic shooting and the content of the image at each viewing angle is recorded by spherical projection.

[0037] In some embodiments of this application, the aforementioned planar video track is a video track obtained by planarizing the image content of the panoramic video track, and its image content is a two-dimensional planar presentation of the image content of the panoramic video track from a certain perspective.

[0038] In some embodiments of this application, planarization processing may include projecting or unfolding the spherical image of the panoramic video track into a two-dimensional planar image from a specified perspective, so that the processed planar video track can be played by a playback device that presents the image in a planar manner.

[0039] In some embodiments of this application, the electronic device may first create and encapsulate a first video file, specifically including steps A to C below.

[0040] Step A: The electronic device acquires the video data captured in the panoramic shot to obtain the panoramic video track.

[0041] In some embodiments of this application, a panoramic shooting device is used to capture a scene in 360 degrees to obtain panoramic video data, and a panoramic video track is obtained based on the panoramic video data. Exemplarily, the panoramic video track is recorded using a panoramic-specific encoding and encapsulation format that includes spherical projection data.

[0042] Step B: The electronic device performs planarization processing on the content of the panoramic video track to obtain a planar video track.

[0043] In some embodiments of this application, while acquiring panoramic video data, the image content of the panoramic video track is subjected to real-time planarization processing to obtain a planar video track. This allows the planar video track to be obtained immediately after shooting, eliminating the need for additional conversion processing. For example, the planarization processing uses conventional planar video parameters natively compatible with the playback device as a benchmark, converting the image content of the panoramic video track into a planar video track using H.264 or H.265 encoding format, with resolution and frame rate adapted to the playback device's screen. This enables the player configured on the playback device to decode and play the planar video track correctly. As another example, when multiple planar video tracks corresponding to different viewpoints are required, the image content of the panoramic video track from the front, left, and right viewpoints is respectively planarized to obtain multiple planar video tracks.

[0044] Step C: Package the panoramic video track and the planar video track into a first video file.

[0045] The following provides an illustrative example of the encapsulation structure of video files and the specific format of multiple video tracks.

[0046] In some embodiments of this application, the video file is a single file, and the resolution and frame rate of the planar video track are adapted to the screen of the playback device. For example, the video file is an MP4 file conforming to the MPEG-4 Part 14 (Moving Picture Experts Group-4 Part 14) standard. The MP4 file contains media metadata for multiple video tracks and stores the bitstream data of multiple video tracks. As another example, the resolution of the planar video track can be 1920×1080, and the frame rate can be 30 frames per second, adapted to the screen resolution and refresh rate of the playback device. It should be noted that the resolution and frame rate of the planar video track can be adjusted according to the screen parameters of the playback device; this application does not limit this, but 1920×1080 and 30 frames per second are used as an example here.

[0047] In some embodiments of this application, the panoramic video track adopts a dedicated encoding and encapsulation format for panoramic viewing, which includes spherical projection data for recording panoramic images; the planar video track adopts an encoding format of H.264 (Advanced Video Coding) or H.265 (High Efficiency Video Coding). It should be noted that the encoding format of the planar video track can be selected according to the decoding capability of the playback device; this application does not limit this selection, but H.264 or H.265 is used as an example for illustration.

[0048] In some embodiments of this application, a media encapsulation module encapsulates the panoramic video track and the planar video track into a single video file, forming a single-file multi-track structure. For example, during encapsulation, the planar video track is set as the default playback track, the panoramic video track is set as a hidden track, and a viewpoint switching instruction is embedded in the video file. Through the above-described production and encapsulation process, the panoramic video track and the planar video track are encapsulated in the same video file, thereby preserving the panoramic image content while enabling the video file to be adapted to different types of playback devices.

[0049] It should be noted that the multiple video tracks encapsulated in the video file include at least panoramic video tracks and planar video tracks; in addition, it may also include multiple planar video tracks corresponding to different perspectives (e.g., front view, left view, right view), as well as tracks containing only audio content without video. The specific video tracks encapsulated in the video file, and the number of each type of video track, can be set according to actual needs, and this application embodiment does not limit this.

[0050] In some embodiments of this application, in addition to encapsulating multiple video tracks, the video file also carries control information. This control information indicates the correspondence between panoramic video tracks and planar video tracks, the default playback strategy of the video file, and the viewpoint interaction strategy. The default playback strategy indicates that the planar video track is the default playback track, and the viewpoint interaction strategy indicates the correspondence between operations on the playback device and video track switching and panoramic viewpoint adjustment. When playing a video file, the video playback component in the playback device reads and parses the control information, plays the planar video track as the default playback track according to the default playback strategy, and performs corresponding video track switching and panoramic viewpoint adjustment based on the control information. For example, based on the control information, it switches the hidden panoramic video track to the current playback track and parses the spherical projection data contained in the panoramic video track to present a panoramic view from the corresponding perspective. Exemplarily, the video playback component can be the system media framework or native playback component of the playback device, or it can be a pre-built playback component in the playback device used to parse control information. This application does not limit the specific implementation form of the video playback component, as long as it can parse the control information and accordingly complete the video track switching and panoramic view presentation.

[0051] In some embodiments of this application, multiple video tracks include multiple planar video tracks, each corresponding to a different viewpoint of the panoramic video track. For example, the content of the panoramic video track from the front, left, and right viewpoints can be planarized to obtain three planar video tracks corresponding to the front, left, and right viewpoints, respectively. These multiple planar video tracks, each corresponding to a different viewpoint of the panoramic video track, are encapsulated in the same video file as the panoramic video track. It should be noted that the number of planar video tracks and the viewpoints corresponding to each planar video track can be set according to actual needs, and this application does not limit this.

[0052] Furthermore, the panoramic video track records the scene content from various perspectives within a 360-degree range in a spherical manner. The scene content from different perspectives such as the front view, left view, and right view of the panoramic video track is planarized to obtain multiple planar video tracks corresponding to these perspectives. This establishes a one-to-one correspondence between the planar video tracks of different perspectives and the panoramic video track, making it easy for the user to select the corresponding planar video track for playback according to the desired perspective when switching video tracks.

[0053] In some embodiments of this application, multiple video tracks also include a video-free track, which is a track that does not contain video content but contains audio content. For example, when a user does not need to watch video content but only needs to listen to audio content, playback can be based on the video-free track, thereby ensuring normal audio playback while reducing the resources consumed by video rendering.

[0054] Step 102: The electronic device plays the first video file based on the first video track in the first video file, using the video parameters corresponding to the first video track.

[0055] In some embodiments of this application, the electronic device may include a device for decoding the first video file and presenting its visual and / or audio content. The first video track is the video track on which the electronic device plays the video based from the aforementioned at least two video tracks; for example, when the electronic device is adapted to present a planar image, the first video track is a planar video track; when the electronic device is adapted to present a panoramic image, the first video track is a panoramic video track.

[0056] In some embodiments of this application, the electronic device plays the first video file via a native player.

[0057] In some embodiments of this application, the video parameters corresponding to a video track may include the encoding format, encapsulation format, and data type used to present the image. When an electronic device plays a first video file using the video parameters corresponding to a certain video track, it decodes the video track and presents its image content according to the video parameters used by that video track. For example, the video parameters corresponding to a panoramic video track include a panoramic-specific encoding and encapsulation format and spherical projection data used to record the panoramic image. When the electronic device plays the first video file using the video parameters corresponding to the panoramic video track, it presents a panoramic image with an adjustable viewing angle based on the spherical projection data. The video parameters corresponding to a planar video track include an H.264 or H.265 encoding format and a resolution and frame rate adapted to the playback device screen. When the electronic device plays the first video file using the video parameters corresponding to the planar video track, it presents a two-dimensional planar image. Thus, by playing the same first video file based on the video parameters corresponding to different video tracks, different visual effects such as planar or panoramic views can be presented.

[0058] In some embodiments of this application, combined with Figure 1 ,like Figure 2 As shown, step 102 can be implemented through step 102a or step 102b as described below.

[0059] Step 102a: When the electronic device is a planar playback device, the electronic device plays the first video file based on the planar video track in the first video file and the video parameters corresponding to the planar video track.

[0060] In some embodiments of this application, the planar playback device may include a device that presents screen content in a two-dimensional planar manner. For example, the planar playback device may be a mobile phone, tablet computer, or other device with a flat-panel display screen. When the electronic device is a planar playback device, the electronic device plays the first video file based on the planar video track in the first video file and with the video parameters corresponding to the planar video track, so that the player configured on the electronic device does not need to have the ability to resolve panoramic videos to play them normally.

[0061] Step 102b: When the electronic device is a stereoscopic playback device, the electronic device plays the first video file based on the panoramic video track in the first video file and the video parameters corresponding to the panoramic video track.

[0062] In some embodiments of this application, the stereoscopic playback device may include a device capable of displaying stereoscopic or panoramic images. For example, the stereoscopic playback device may be a virtual reality device, an augmented reality device, or the like. When the electronic device is a stereoscopic playback device, it plays the first video file based on the panoramic video track in the first video file and with the video parameters corresponding to the panoramic video track, thereby presenting a panoramic viewing effect to the user.

[0063] In some embodiments of this application, the display type of the playback device may include a planar display type and a stereoscopic display type. The electronic device can determine the default video track to be played based on its default display type. The default display type can be the display type set at the factory or the display type set by the user. For example, the default display type of mobile phones, tablets, etc., is a planar display type, and they default to playing based on a planar video track; the default display type of virtual reality devices, augmented reality devices, 3D glasses, etc., is a stereoscopic display type, and they default to playing based on a panoramic video track. It should be noted that the default video track played by the electronic device can be changed by the user. For example, a user can change the default video track played by a mobile phone from a planar video track to a panoramic video track. This application does not limit this.

[0064] In some embodiments of this application, a flat-panel display playback device can also play panoramic video tracks. However, because it presents a panoramic image recorded using spherical projection in a two-dimensional plane, the resulting image is usually distorted (e.g., an image that is spherically unfolded or spherically shaped) and it is difficult to support free switching of viewing angles. In contrast, the flat-panel video track encapsulated in the first video file is obtained by flattening the content of the panoramic video track. When a flat-panel display playback device plays the video based on the flat-panel video track, it can normally present a two-dimensional plane image. When a stereoscopic display playback device plays the video based on the panoramic video track, it can present a panoramic viewing effect that allows the user to freely adjust the viewing angle based on the spherical projection data. Therefore, a flat-panel display playback device can play the first video file normally without installing a third-party player.

[0065] Both 2D and 3D playback devices can play videos based on the corresponding video tracks in the same first video file without the need for file format conversion, thus improving the video playback effect.

[0066] Specifically, the planar playback device can be a device such as a mobile phone or tablet computer that presents the image in a two-dimensional plane, and it plays the image based on the planar video track in the first video file; the stereo playback device can be a device such as a virtual reality headset or an augmented reality headset that can present stereoscopic or panoramic images, and it plays the image based on the panoramic video track in the first video file, so that monitoring and viewing can be completed on the same first video file, without the need to create or convert video files separately for different types of playback devices.

[0067] In this way, depending on whether the electronic device is a planar playback device or a stereo playback device, the first video file can be played based on the corresponding video track in the first video file and its corresponding video parameters, thereby improving the flexibility of playing the first video file.

[0068] Step 103: In response to the first user input, the electronic device plays the first video file based on the second video track and the video parameters corresponding to the second video track.

[0069] Wherein, the first video track is a panoramic video track and the second video track is a planar video track; or, the first video track is a planar video track and the second video track is a panoramic video track.

[0070] In some embodiments of this application, the electronic device plays the first video file via a native player.

[0071] In some embodiments of this application, the first video file encapsulates a panoramic video track and a planar video track, wherein the planar video track is set as the default playback track and the panoramic video track is set as a hidden track; the first video file also embeds a perspective switching instruction bound to the operation of the playback device, the perspective switching instruction being used to trigger the switching between video tracks or the adjustment of the panoramic perspective when the corresponding operation is detected.

[0072] In some embodiments of this application, after the electronic device plays the first video file based on a first video track and with the video parameters corresponding to the first video track, in response to a first user input, the electronic device plays the first video file based on a second video track and with the video parameters corresponding to the second video track. The first user input may include instructions for indicating a switch to the playing video track.

[0073] In some embodiments of this application, the process of responding to a first user input and having the electronic device play a first video file based on a second video track and using the video parameters corresponding to the second video track is a process in which the electronic device switches the video parameters on which it plays the first video file from the video parameters corresponding to the first video track to the video parameters corresponding to the second video track. Before the switch, the electronic device plays the first video file and presents the image corresponding to the first video track using the video parameters corresponding to the first video track. After the switch, the electronic device plays the first video file and presents the image corresponding to the second video track using the video parameters corresponding to the second video track. Thus, without changing the video file, the presented playback effect changes from the playback effect corresponding to the first video track to the playback effect corresponding to the second video track.

[0074] In some embodiments of this application, the aforementioned first user input and subsequent second user input can be determined based on operations on the playback device, and this process may include steps 1 to 3:

[0075] Step 1: The electronic device detects operations performed on the electronic device. The operations include at least one of the following: touch swiping operation on the playback interface of the first video file, posture change operation on the electronic device, button operation on the electronic device, voice command, and gaze point displacement operation.

[0076] Step 2: The electronic device determines the user's intention based on the operation.

[0077] Step 3: If the intention of the operation is to switch video tracks, the operation is the first user input; if the intention of the operation is to adjust the panoramic view, the operation is the second user input.

[0078] For example, touch swiping operations can be swiping operations performed by the user on the video file playback interface; posture change operations can be operations performed by the user changing the holding posture of the playback device (e.g., rotating, tilting); button operations can be operations performed by the user on the physical or virtual buttons of the playback device; voice commands can be voice input by the user to instruct switching video tracks or adjusting the panoramic view; and gaze point displacement operations can be operations in which the user's gaze point is displaced on the playback interface. By detecting at least one of the above operations and identifying their corresponding operation intentions, when the operation intention is to switch video tracks, the operation is determined as the first user input, and when the operation intention is to adjust the panoramic view, the operation is determined as the second user command, enabling the user to trigger the switching of video tracks or the adjustment of the panoramic view through multiple interaction methods.

[0079] In some embodiments of this application, multiple video tracks include multiple planar video tracks corresponding to different perspectives of the panoramic video track. In response to a first user input, playback switches to the planar video track corresponding to the perspective of the first user input. For example, when currently playing a planar video track based on a corresponding frontal perspective, in response to a first user input instructing switching to a left-side perspective, playback switches to the planar video track corresponding to the left-side perspective, thereby allowing the user to switch between planar video tracks with different perspectives.

[0080] Thus, if multiple video tracks also include tracks without video, then in response to the first user input, the playback will switch to the track without video, thereby satisfying the user's need to listen to only audio content.

[0081] In some embodiments of the video playback method provided in this application, the first video file includes a panoramic video track and a planar video track. When the first video file is played based on one of the panoramic video track and the planar video track, the electronic device can be made to play the first video file based on the other video track through first user input. Since the first video file includes both a panoramic video track and a planar video track, it is not necessary to convert the panoramic video format file to a planar video format file or vice versa, thus improving the video playback effect.

[0082] In some embodiments of this application, where the second video track is a panoramic video track, exemplarily, in combination with Figure 1 ,like Figure 3 As shown, after step 103 above, some embodiments of this application provide a video playback method that may further include step 104 below.

[0083] Step 104: In response to the second user input, the electronic device plays the panoramic view of the panoramic video track based on the spherical projection data contained in the panoramic video track and according to the viewpoint parameters corresponding to the input parameters of the second user input.

[0084] The aforementioned input parameters include at least one of the input direction and the input amplitude.

[0085] In some embodiments of this application, the second user input may include instructions for adjusting the panoramic viewing angle. The input parameters of the second user input include at least one of input direction and input amplitude; the viewing angle parameter is a parameter corresponding to the input parameters and used to determine the viewing angle of the panoramic image. For example, when the video track corresponding to the first user instruction is a panoramic video track, i.e., the playback has been switched to a panoramic video track, in response to the second user input, the spherical projection data contained in the panoramic video track is parsed. The spherical projection data is used to characterize the projection relationship of the panoramic image on the sphere. Based on the spherical projection data, the viewing angle of the panoramic image can be adjusted; then, the panoramic image is adjusted according to the viewing angle parameter corresponding to the input parameters of the second user input and played back, thereby realizing the adjustment of the panoramic viewing angle.

[0086] In some embodiments of this application, the process of playing panoramic images of a panoramic video track according to the viewpoint parameters corresponding to the input parameters input by the second user may include the following steps a to b:

[0087] Step a: With the input direction set to the first direction, the electronic device switches the horizontal viewpoint of the panoramic image.

[0088] Step b: When the input direction is the second direction, the electronic device switches the vertical view of the panoramic image, and the angle of the view switching corresponds to the input amplitude.

[0089] The following combination Figure 4 An example is provided to illustrate the switching of perspectives in panoramic images. For example... Figure 4 As shown, the input direction corresponds to the direction of view switching, and the input amplitude corresponds to the angle of view switching. Specifically, when the input direction is left-right, the panoramic view is switched horizontally; when the input direction is up-down, the panoramic view is switched vertically. For example, when the second user input is a touch swipe operation, the input direction is the direction of the swipe, and the input amplitude is the distance of the swipe. Left-right swipes correspond to horizontal view switching, and up-down swipes correspond to vertical view switching. Furthermore, the greater the swipe distance, the larger the angle of view switching, thus ensuring that the panoramic view switching corresponds to the user's input operation.

[0090] Specifically, while watching the panoramic view, users can adjust the viewing angle in real time by swiping on the playback interface: swiping left or right switches the panoramic view horizontally, presenting content from different directions; swiping up or down switches the panoramic view vertically, presenting content from different directions; and the greater the swipe, the greater the angle of view switching, allowing users to freely browse all directions of the panoramic scene as if they were there.

[0091] In some embodiments of this application, combined with Figure 3 ,like Figure 5 As shown, after step 104 above, some embodiments of this application provide a video playback method that may further include step 105 below.

[0092] Step 105: After playing the panoramic view of the panoramic video track, if no third user input is received within the first duration, the electronic device plays the first video file with the video parameters corresponding to the first video track.

[0093] In some embodiments of this application, after switching to the panoramic video playback track, if no third user input is received within a first duration, it indicates that the user has not adjusted the panoramic view within that first duration. At this time, the electronic device switches back to the first video track for playback, thus maintaining playback of the first video file when the user does not perform any view adjustment. The first duration is 1 to 3 seconds. It should be noted that the first duration can be customized according to actual needs; this embodiment does not limit this setting, but uses 1 to 3 seconds as an example for explanation.

[0094] Specifically, after the electronic device switches to playing panoramic images based on a panoramic video track, if the user does not adjust the viewing angle within a first time period, i.e., no third user input is received, the electronic device automatically switches back to the video track: it can switch back to the first video track to continue playback; if at least two video tracks contain at least two planar video tracks corresponding to different viewing angles, it switches back to the planar video track adjacent to the viewing angle range of the panoramic image played before the switch, so that after the user stops the viewing angle operation, it naturally transitions back to planar playback, avoiding prolonged lingering on the panoramic image and increasing the processing burden of the electronic device.

[0095] In some embodiments of this application, the first video file includes at least two planar video tracks, each corresponding to a different viewpoint of the aforementioned panoramic video track. For example, in conjunction with... Figure 3 ,like Figure 6 As shown, after step 104 above, some embodiments of this application provide a video playback method that may further include step 106 below.

[0096] Step 106: After playing the panoramic view of the panoramic video track, if no fourth user input is received within the second duration, the electronic device plays the first video file with video parameters corresponding to the planar video track adjacent to the viewing angle range of the panoramic view played in at least two planar video tracks.

[0097] In some embodiments of this application, at least two video tracks include at least two planar video tracks corresponding to different perspectives of the panoramic video track. After switching to the panoramic video track, if no fourth user input is received within a first duration, the playback switches to the planar video track adjacent to the perspective range of the panoramic view previously played. This maintains stable playback while ensuring the perspective of the switched planar video track aligns with the user-adjusted panoramic perspective. For example, if the panoramic view previously played is from the left perspective, and at least one of the planar video tracks corresponds to the left perspective, the playback switches to the planar video track corresponding to the left perspective.

[0098] In some embodiments of this application, in at least two planar video tracks corresponding to different viewpoints, each planar video track corresponds to a viewpoint range, which is the viewpoint interval of the image presented by the planar video track in the panoramic view. The viewpoint ranges of two planar video tracks are adjacent, meaning that the viewpoint ranges corresponding to the two planar video tracks are connected or joined to each other in the viewpoint space covered by the panoramic view. For example, when the panoramic view covers a 360-degree viewpoint and each planar video track corresponds to a continuous viewpoint range, the planar video track adjacent to the viewpoint range of the panoramic viewpoint played before the switch is the planar video track whose corresponding viewpoint range is connected to the viewpoint range of the panoramic viewpoint played before the switch. This allows the viewpoint of the planar video track played after the switch to naturally connect with the panoramic viewpoint before the switch, avoiding obvious jumps in viewpoint.

[0099] The video playback method provided in this application reads a first video file containing a panoramic video track and a planar video track, and plays the first video file based on the first video track and the video parameters corresponding to the first video track. It also supports switching the video track being played in response to user commands and adjusting the panoramic view in response to user input during playback, thereby improving the video playback effect.

[0100] To illustrate the application of the above video playback method in real-time monitoring scenarios, an example embodiment of this scenario is described below.

[0101] In some embodiments of this application, the above-described video playback method can be applied to scenarios of real-time playback and monitoring, such as a scenario where a panoramic camera captures video in real time, and a mobile phone monitors the captured content in real time. In this real-time monitoring scenario, a panoramic camera and a mobile phone are included. The panoramic camera is used to capture and encapsulate video files in real time, and the mobile phone is used to receive the video files and play them in real time for user monitoring.

[0102] Specifically, in this real-time monitoring scenario, the panoramic camera captures a real-time panoramic view of the scene on-site. Simultaneously, it performs real-time planarization processing on the panoramic image, encapsulating the panoramic video track and the planar video track into a video file. The planar video track serves as the default playback track, while the panoramic video track is a hidden track. The video file is transmitted to a mobile phone in real-time via wireless or wired connection. The mobile phone, acting as the monitoring device, uses its native player to read and monitor the planar video track (which serves as the default playback track). This allows monitoring personnel to view the panoramic camera's footage in real-time from outside the site and switch to the panoramic video track when needed to view panoramic details of the scene.

[0103] The video playback method provided in this application embodiment may include the following steps 301 to 305 in a real-time monitoring scenario:

[0104] Step 301: A panoramic video track is acquired in real time using a panoramic camera. During the acquisition, the content of the panoramic video track is planarized in real time to obtain a planar video track. The panoramic video track and the planar video track are then packaged into a video file in real time.

[0105] In some embodiments of this application, after the panoramic camera starts shooting, it simultaneously performs planarization processing and encapsulation while acquiring panoramic images, thus eliminating the need for additional conversion processing after shooting. For example, during encapsulation, the planar video track is set as the default playback track, the panoramic video track is set as a hidden track, and a perspective switching command bound to the operation of the mobile phone is embedded in the video file; the planar video track uses H.264 or H.265 encoding format, and its resolution and frame rate are adapted to the mobile phone screen.

[0106] It should be noted that in real-time monitoring scenarios, the process of encapsulating the panoramic video track and the planar video track to obtain a video file can be performed at the shooting end, for example, by the panoramic camera completing the encapsulation at the same time as capturing the video; or it can be performed on the mobile phone, for example, by the mobile phone completing the encapsulation after receiving the panoramic video track and the planar video track; the embodiments of this application do not limit the subject performing the encapsulation.

[0107] Step 302: Transmit the video file obtained from real-time encapsulation to the mobile phone in real time.

[0108] In some embodiments of this application, video files can be transmitted to a mobile phone in real time via wired or wireless means. It should be noted that this application does not limit the method of video file transmission.

[0109] Step 303: The mobile phone reads the planar video track in the video file as the default playback track in real time through its native player and plays it for the user to monitor.

[0110] In some embodiments of this application, after recognizing a video file, the phone's native player automatically reads the planar video track that serves as the default playback track, allowing real-time monitoring of the content captured by the panoramic camera without the need to install a third-party application.

[0111] Step 304: In response to the first user input on the mobile phone, switch the currently playing planar video track to a panoramic video track; and after switching to the panoramic video track, in response to the second user input, play the panoramic view of the panoramic video track according to the viewpoint parameters corresponding to the input parameters of the second user input.

[0112] In some embodiments of this application, the methods for determining the first user input and the second user input, as well as the methods for adjusting the panoramic view in this step, are the same as steps 203 to 204 in the aforementioned embodiments, and will not be repeated here.

[0113] Step 305: After switching to the panoramic video track, if no user input is received within the first duration, switch back to the planar video track to continue monitoring.

[0114] In some embodiments of this application, in real-time monitoring scenarios, the panoramic video track is acquired, the planar video track is planarized, and the two are encapsulated to obtain a video file on the panoramic camera side in real time. The video file is then transmitted to the mobile phone side in real time. On the mobile phone side, the native player reads the planar video track, which is the default playback track, in real time for monitoring and can switch between the planar video track and the panoramic video track in real time in response to user operations.

[0115] Specifically, in this real-time monitoring scenario, a real-time end-to-end data stream is formed between the panoramic camera and the mobile phone: the panoramic camera completes the acquisition of the panoramic video track, the planarization of the planar video track, and the encapsulation of both in real time, and then transmits the resulting video file to the mobile phone in real time; the native player on the mobile phone reads the planar video track, which serves as the default playback track, for monitoring in real time, and can respond to the operator's operation, switching between the planar video track and the panoramic video track in real time, so as to flexibly switch between regular planar monitoring and panoramic detailed inspection.

[0116] In this real-time monitoring scenario, since the video file is encapsulated as a single file with multiple tracks and uses a planar video track as the default playback track, the phone's native player can monitor the content captured by the panoramic camera in real time without installing third-party applications. It can also switch to the panoramic video track in real time to adjust the viewing angle during the monitoring process, thus taking into account both native compatibility for real-time monitoring and adjustment of the panoramic view in the real-time monitoring scenario.

[0117] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, data stored, data displayed, etc.) and signals involved in the embodiments of this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0118] In the above embodiments of this application, the descriptions of each embodiment have their own emphasis. Parts not described in detail in a certain embodiment can be referred to in the relevant descriptions of other embodiments. The steps illustrated in the related flowcharts can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be performed in a different order than that shown here. In other words, the order of steps described in the foregoing embodiments is merely an example. Reasonable adjustments to the order of steps based on the content of the embodiments of this application are also within the protection scope of the embodiments of this application.

[0119] The video playback method provided in this application can be executed by a video playback device. This application uses a video playback device executing the video playback method as an example to illustrate the video playback device provided in this application.

[0120] Figure 7 This is a schematic diagram of the structure of the video playback device provided in the embodiments of this application, such as... Figure 7 As shown, the video playback device 700 may include a reading unit 701 and a playback unit 702.

[0121] The reading unit 701 is used to read a first video file, which includes a panoramic video track and a planar video track; the playback unit 702 is used to play the first video file based on the first video track in the first video file and with the video parameters corresponding to the first video track; and in response to a first user input, to play the first video file based on a second video track and with the video parameters corresponding to the second video track; wherein the first video track is a panoramic video track and the second video track is a planar video track; or, the first video track is a planar video track and the second video track is a panoramic video track.

[0122] In some embodiments of this application, the playback unit 702 is specifically used to: when the electronic device where the video playback device 700 is located is a planar playback device, play the first video file based on the planar video track in the first video file and with the video parameters corresponding to the planar video track; when the electronic device where the video playback device 700 is located is a stereoscopic playback device, play the first video file based on the panoramic video track in the first video file and with the video parameters corresponding to the panoramic video track.

[0123] In some embodiments of this application, when the second video track is a panoramic video track, the playback unit 702 is further configured to, in response to the second user input, play the panoramic view of the panoramic video track based on the spherical projection data contained in the panoramic video track and according to the viewpoint parameters corresponding to the input parameters of the second user input; wherein, the input parameters include at least one of input direction and input amplitude.

[0124] In some embodiments of this application, the playback unit 702 is further configured to play the first video file with the video parameters corresponding to the first video track if no third user input is received within a first duration after playing the panoramic view of the panoramic video track.

[0125] In some embodiments of this application, the first video file includes at least two planar video tracks that correspond to different viewpoints of the panoramic video track. For example, the playback unit 702 is further configured to play the first video file with video parameters corresponding to the planar video track that is adjacent to the viewpoint range of the panoramic video played, if no fourth user input is received within a second duration after playing the panoramic view of the panoramic video track.

[0126] The video playback device provided in this embodiment belongs to the same concept as the video playback method provided in the above embodiments of this application. It can execute the video playback method provided in any of the above embodiments of this application and has the corresponding functional modules and beneficial effects for executing the video playback method. Technical details not described in detail in this embodiment can be found in the specific processing content of the video playback method provided in the above embodiments of this application, and will not be repeated here.

[0127] The video playback device provided in this application embodiment can implement the various processes implemented in the above video playback method embodiment. To avoid repetition, it will not be described again here.

[0128] The video playback device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.

[0129] The video playback device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system.

[0130] Optionally, such as Figure 8 As shown, this application embodiment also provides an electronic device 900, including a processor 901 and a memory 902. The memory 902 stores a program or instructions that can run on the processor 901. When the program or instructions are executed by the processor 901, they implement the various steps of the above-described video playback method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0131] It should be noted that the electronic devices in the embodiments of this application include the aforementioned mobile electronic devices and non-mobile electronic devices.

[0132] Figure 9 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.

[0133] The electronic device 100 includes, but is not limited to, components such as: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.

[0134] Those skilled in the art will understand that the electronic device 100 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 9 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0135] The processor 110 is configured to: read a first video file, the first video file including at least two video tracks, the at least two video tracks including a panoramic video track and a planar video track; and play the first video file based on the first video track in the first video file, using the video parameters corresponding to the first video track, wherein the first video track is a panoramic video track or a planar video track.

[0136] In this embodiment, by reading a first video file containing at least two video tracks and playing the first video file based on the first video track and the video parameters corresponding to the first video track, the video playback effect is improved.

[0137] The processor 110 is configured to read a first video file, which includes a panoramic video track and a planar video track; the processor 110 is also configured to play the first video file based on the first video track in the first video file, using the video parameters corresponding to the first video track; and in response to a first user input, play the first video file based on a second video track, using the video parameters corresponding to the second video track; wherein the first video track is a panoramic video track and the second video track is a planar video track; or, the first video track is a planar video track and the second video track is a panoramic video track.

[0138] In some embodiments of this application, the processor 110 is specifically configured to: when the electronic device where the video playback device 700 is located is a planar playback device, play the first video file based on the planar video track in the first video file and with the video parameters corresponding to the planar video track; when the electronic device where the video playback device 700 is located is a stereoscopic playback device, play the first video file based on the panoramic video track in the first video file and with the video parameters corresponding to the panoramic video track.

[0139] In some embodiments of this application, when the second video track is a panoramic video track, the processor 110 is further configured to, in response to a second user input, play a panoramic view of the panoramic video track based on the spherical projection data contained in the panoramic video track and according to the viewpoint parameters corresponding to the input parameters of the second user input; wherein the input parameters include at least one of input direction and input amplitude.

[0140] In some embodiments of this application, the processor 110 is further configured to play the first video file with the video parameters corresponding to the first video track if no third user input is received within a first duration after playing the panoramic view of the panoramic video track.

[0141] In some embodiments of this application, the first video file includes at least two planar video tracks that correspond to different viewpoints of the panoramic video track. For example, the processor 110 is further configured to play the first video file with video parameters corresponding to the planar video track that is adjacent to the viewpoint range of the panoramic video played, if no fourth user input is received within a second duration after playing the panoramic view of the panoramic video track.

[0142] It should be understood that, in this embodiment, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.

[0143] The memory 109 can be used to store software programs and various data. The memory 109 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 109 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 109 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.

[0144] Processor 110 may include one or more processing units; optionally, processor 110 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 110.

[0145] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described video playback method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0146] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0147] This application also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above-described video playback method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0148] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0149] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the video playback method embodiments described above, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0150] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0151] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.

[0152] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A video playing method, characterized in that, The method includes: The electronic device reads a first video file, which includes a panoramic video track and a planar video track. The electronic device plays the first video file based on the first video track in the first video file, using the video parameters corresponding to the first video track. In response to a first user input, the electronic device plays the first video file based on a second video track and with the video parameters corresponding to the second video track; Wherein, the first video track is a panoramic video track and the second video track is a planar video track; or, the first video track is a planar video track and the second video track is a panoramic video track.

2. The method of claim 1, wherein, The electronic device plays the first video file based on the first video track and with the video parameters corresponding to the first video track, including: When the electronic device is a planar playback device, the electronic device plays the first video file based on the planar video track in the first video file and with the video parameters corresponding to the planar video track; When the electronic device is a stereoscopic playback device, the electronic device plays the first video file based on the panoramic video track in the first video file and with the video parameters corresponding to the panoramic video track.

3. The method according to claim 1 or 2, characterized in that, When the second video track is the panoramic video track, the method further includes: In response to a second user input, the electronic device plays a panoramic view of the panoramic video track based on the spherical projection data contained in the panoramic video track and according to the viewpoint parameters corresponding to the input parameters of the second user input. The input parameters include at least one of input direction and input amplitude.

4. The method of claim 3, wherein, The method further includes: After playing the panoramic view of the panoramic video track, if no third user input is received within a first time period, the electronic device plays the first video file with the video parameters corresponding to the first video track.

5. The method of claim 3, wherein, The first video file includes at least two planar video tracks, each corresponding to a different viewpoint of the panoramic video track; The method further includes: After playing the panoramic view of the panoramic video track, if no fourth user input is received within the second time period, the electronic device plays the first video file with the video parameters corresponding to the planar video track adjacent to the viewing angle range of the played panoramic view among the at least two planar video tracks.

6. A video playback device, comprising: include: A reading unit is used to read a first video file, the first video file including a panoramic video track and a planar video track; The playback unit is configured to play the first video file based on the first video track in the first video file, using the video parameters corresponding to the first video track. In response to the first user input, the first video file is played based on the second video track and the video parameters corresponding to the second video track. Wherein, the first video track is a panoramic video track and the second video track is a planar video track; or, the first video track is a planar video track and the second video track is a panoramic video track.

7. The apparatus of claim 6, wherein, The playback unit is specifically used for: When the electronic device in which the device is located is a planar playback device, the first video file is played based on the planar video track in the first video file and with the video parameters corresponding to the planar video track; When the electronic device containing the device is a stereoscopic playback device, the first video file is played based on the panoramic video track in the first video file and the video parameters corresponding to the panoramic video track.

8. The apparatus of claim 6 or 7, wherein, When the second video track is the panoramic video track, the playback unit is further configured to respond to the second user input and, based on the spherical projection data contained in the panoramic video track, play the panoramic view of the panoramic video track according to the viewpoint parameters corresponding to the input parameters of the second user input. The input parameters include at least one of input direction and input amplitude.

9. The apparatus of claim 8, wherein, The playback unit is further configured to, after playing the panoramic view of the panoramic video track, play the first video file using the video parameters corresponding to the first video track if no third user input is received within a first time period.

10. The apparatus of claim 8, wherein, The first video file includes at least two planar video tracks, each corresponding to a different viewpoint of the panoramic video track; The playback unit is further configured to, after playing the panoramic view of the panoramic video track, if no fourth user input is received within a second time period, play the first video file using the video parameters corresponding to the planar video track adjacent to the viewing angle range of the played panoramic view among the at least two planar video tracks.

11. An electronic device, comprising: It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the video playback method as described in any one of claims 1-5.

12. A readable storage medium, characterized by, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the video playback method as described in any one of claims 1-5.