WO2022062899A1 - Vr scene-based video previewing method, electronic device, and storage medium - Google Patents

Vr scene-based video previewing method, electronic device, and storage medium Download PDF

Info

Publication number
WO2022062899A1
WO2022062899A1 PCT/CN2021/117157 CN2021117157W WO2022062899A1 WO 2022062899 A1 WO2022062899 A1 WO 2022062899A1 CN 2021117157 W CN2021117157 W CN 2021117157W WO 2022062899 A1 WO2022062899 A1 WO 2022062899A1
Authority
WO
WIPO (PCT)
Prior art keywords
preview
video
window
user
preview window
Prior art date
Application number
PCT/CN2021/117157
Other languages
French (fr)
Chinese (zh)
Inventor
黄炳洁
李帅
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022062899A1 publication Critical patent/WO2022062899A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Definitions

  • the present application relates to the technical field of virtual reality, and in particular, to a video preview method, electronic device and storage medium based on a VR scene.
  • fast-forward or fast-rewind preview playback function In order to improve the user experience, currently video applications usually set the fast-forward or fast-rewind preview playback function.
  • the user can perform fast-forward or fast-rewind preview playback by sliding left and right on the screen of the video playback terminal, or dragging the progress bar, and the playback is in progress.
  • the picture in the current main screen window is played normally.
  • FIG. 1 a is a schematic diagram of a video preview playback in the related art.
  • a user watches a video through the main screen window 101 .
  • the user needs to perform fast reverse or fast forward preview, he can slide left and right on the screen of the video playback terminal, or drag the progress bar 103 to display the preview window 102 above the progress bar 103 .
  • the content displayed in the preview window 102 corresponds to the user's trigger instruction. For example, when the user drags the progress bar 103 to 88 minutes and 17 seconds of the video, the preview window 102 displays the corresponding video at 88 minutes and 17 seconds. screen.
  • Figure 1b is another schematic diagram of video preview playback in the related art.
  • the preview window in the above solution is displayed in the main screen window
  • the preview window blocks the main screen window, which affects the user's viewing of the playback picture in the main screen window.
  • the present application provides a VR scene-based video preview method, electronic device and storage medium, so as to help solve the problem in the prior art that the preview window blocks the main screen window and affects the user's viewing of the playback screen in the main screen window.
  • an embodiment of the present application provides a video preview method based on a virtual reality VR scene, including:
  • a preview video of the main video is played in the preview window.
  • playing the preview video of the main video in the preview window includes:
  • the preview video is played from a position of a first time stamp, where the first time stamp is the current time stamp of the main video.
  • the method further includes:
  • the preview window is controlled to obtain the user operation focus, so that the preview window can respond to the operation instruction input by the user.
  • playing the preview video of the main video in the preview window includes:
  • a preview video corresponding to the operation instruction is played in the preview window.
  • playing a preview video corresponding to the operation instruction in the preview window includes:
  • the fast-forward or fast-rewind command input in the preview window includes:
  • the preview window is triggered, and the preview window is slid left and right, and/or the progress bar in the preview window is dragged.
  • playing a preview video corresponding to the operation instruction in the preview window includes:
  • the preview video is played in the preview window from a position of a third time stamp, where the third time stamp is the end fast The timestamp of the preview video when the forward or rewind command is performed.
  • the ending fast-forward or fast-rewind instruction input in the preview window includes:
  • playing a preview video corresponding to the operation instruction in the preview window includes:
  • the resolution of the preview video is switched.
  • the resolution of the preview video is lower than the resolution of the main video in the main screen window.
  • playing a preview video corresponding to the operation instruction in the preview window includes:
  • the playback speed of the preview video is switched.
  • the method further includes:
  • the audio corresponding to the preview video is turned on, and the audio corresponding to the main video in the main screen window is turned off;
  • the audio corresponding to the preview video is turned off, and the audio corresponding to the main video in the main screen window is turned on.
  • the method further includes:
  • the main screen window is controlled to obtain the user operation focus.
  • the method further includes:
  • the main screen window is controlled to obtain the user operation focus.
  • the preview window and the main screen window are arranged in parallel in the virtual space.
  • an embodiment of the present application provides a video preview method based on a virtual reality VR scene, the method comprising:
  • the method before receiving the preview video of the main video sent by the VR video application, the method further includes:
  • the preview video request instruction is used to instruct the VR video application to send the preview video of the main video, specifically:
  • the preview video request instruction is used to instruct the VR video application to send the preview video of the main video from a fifth time stamp, where the fifth time stamp is the current time stamp of the main video.
  • the method further includes:
  • the preview window is controlled to obtain the user operation focus, so that the preview window can respond to an operation instruction input by the user.
  • sending a preview video request instruction to the VR video application includes:
  • a preview video request instruction corresponding to the operation instruction is sent to the VR video application.
  • the sending a preview video request instruction corresponding to the operation instruction to the VR video application in response to the operation instruction input by the user in the preview window includes:
  • a first preview video request instruction is sent to the VR video application, and the first preview video request instruction is used to instruct the VR video application to send the first preview video request instruction.
  • the preview video corresponding to the six time stamps, where the sixth time stamp is the time stamp of the preview video corresponding to the fast-forward or fast-rewind instruction.
  • the fast-forward or fast-rewind command input in the preview window includes:
  • the preview window is triggered, and the preview window is slid left and right, and/or the progress bar in the preview window is dragged.
  • the sending a preview video request instruction corresponding to the operation instruction to the VR video application in response to the operation instruction input by the user in the preview window includes:
  • a second preview video request instruction is sent to the VR video application, where the second preview video request instruction is used to instruct the VR video application to start from
  • the seventh time stamp starts to send the preview video
  • the seventh time stamp is the time stamp of the preview video corresponding to the end of the fast-forward or fast-rewind command.
  • the ending fast-forward or fast-rewind instruction input in the preview window includes:
  • a third preview video request instruction is sent to the VR video application, where the third preview video request instruction includes the target resolution requested for switching, and the third preview video request instruction is The third preview video request instruction is used to instruct the VR video application to send a preview video corresponding to the target resolution.
  • the target resolution is lower than the resolution of the main video in the main screen window.
  • a fourth preview video request instruction is sent to the VR video application, where the fourth preview video request instruction includes the target playback speed requested for switching, and the first preview video request instruction is The fourth preview video request instruction is used to instruct the VR video application to send a preview video corresponding to the target playback speed.
  • the method further includes:
  • the audio corresponding to the preview video is turned on, and the audio corresponding to the main video in the main screen window is turned off;
  • the audio corresponding to the preview video is turned off, and the audio corresponding to the main video in the main screen window is turned on.
  • the method further includes:
  • the main screen window is controlled to obtain the user operation focus.
  • the method further includes:
  • the main screen window is controlled to obtain the user operation focus.
  • the preview window and the main screen window are arranged in parallel in the virtual space.
  • an embodiment of the present application provides an electronic device, and the electronic device includes:
  • processors one or more processors
  • the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions that, when executed by the electronic device, cause all The electronic device executes the video preview method described in any one of the first aspect above.
  • an embodiment of the present application provides an electronic device, the electronic device comprising:
  • processors one or more processors
  • the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions that, when executed by the electronic device, cause all The electronic device executes the video preview method described in any one of the second aspect above.
  • an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium includes a stored program, wherein when the program runs, a device where the computer-readable storage medium is located is controlled to execute the above The video preview method according to any one of the first aspect.
  • an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium includes a stored program, wherein when the program runs, a device where the computer-readable storage medium is located is controlled to execute the above The video preview method according to any one of the second aspect.
  • the preview window is displayed through the virtual space in the VR scene, and the preview window does not block the main screen window, and does not affect the normal viewing of the video in the main screen window by the user.
  • Fig. 1a is a kind of video preview playing schematic diagram in the related art
  • Fig. 1b is another kind of video preview playing schematic diagram in the related art
  • FIG. 2 is a schematic diagram of a scene of a VR device provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a VR scene-based video playback provided by an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of a method for previewing a video based on a VR scene provided by an embodiment of the present application
  • 5a is a schematic diagram of a video preview based on a VR scene provided by an embodiment of the application
  • FIG. 5b is a schematic diagram of another VR scene-based video preview provided by an embodiment of the present application.
  • FIG. 5c is a schematic diagram of another VR scene-based video preview provided by an embodiment of the present application.
  • FIG. 6 is a schematic flowchart of another VR scene-based video preview method provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of another VR scene-based video preview provided by an embodiment of the present application.
  • FIG. 8 is a software structural block diagram of an electronic device according to an embodiment of the application.
  • FIG. 9 is a schematic flowchart of another VR scene-based video preview method provided by an embodiment of the present application.
  • FIG. 10 is a schematic flowchart of another VR scene-based video preview method provided by an embodiment of the present application.
  • FIG. 11 is a schematic flowchart of another VR scene-based video preview method provided by an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIG. 13 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
  • the electronic device involved in this application may be a virtual reality (VR) device, some modules of the VR device, or an electronic device connected to the VR device, and the VR device may be an all-in-one VR machine, VR glasses, etc.;
  • the electronic device may be a mobile phone, a tablet computer, a personal computer (PC), a personal digital assistant (PDA), a smart watch, a netbook, a wearable electronic device, and the like.
  • VR technology is a computer simulation system that can create and experience virtual worlds. It uses computer simulation to generate a three-dimensional (also known as 3D) space virtual environment. It is a multi-source information fusion, interactive three-dimensional dynamic vision and System simulation of entity behavior, allowing users to immerse themselves in the VR scene.
  • VR is a virtual reality technology that allows users to integrate into the VR scene to the maximum extent and enjoy an immersive experience through the rendering of the visual environment.
  • FIG. 2 is a schematic diagram of a scene of a VR device provided by an embodiment of the present application.
  • FIG. 2 shows a mobile terminal 201 and VR glasses 202, and the mobile terminal 201 and the VR glasses 202 are interconnected based on a connection line.
  • the mobile terminal 201 projects its own screen display content into the VR glasses 202 , and the user watches photos, videos or plays games through the VR glasses 202 to enjoy a larger screen experience.
  • FIG. 2 is only a specific application scenario listed in the embodiment of the present application, and should not be taken as a limitation of the protection scope of the present application.
  • the VR device in addition to being connected to the VR glasses 202 through the mobile terminal 201, the VR device can also be connected to the VR glasses 202 through a PC; the VR device can also integrate the functions of the mobile terminal 201 and the VR glasses 202 together. VR all-in-one.
  • the mobile terminal 201 and the VR glasses 202 in FIG. 2 may also be connected wirelessly.
  • the communication network may be a local area network, or may be a wide area network switched through a relay (relay) device.
  • the communication network may be a near field communication network such as a wifi hotspot network, a wifi P2P network, a Bluetooth network, a zigbee network, or a near field communication (near field communication, NFC) network.
  • the communication network is a wide area network, exemplarily, the communication network may be a 3rd generation wireless telephone technology (3G) network, the 4th generation mobile communication technology (4G) ) network, the 5th-generation mobile communication technology (5G) network, the future evolved public land mobile network (PLMN) or the Internet, etc.
  • 3G 3rd generation wireless telephone technology
  • 4G 4th generation mobile communication technology
  • 5G 5th-generation mobile communication technology
  • PLMN future evolved public land mobile network
  • the preview window can only be superimposed on the main screen window.
  • a virtual reality (virtual reality, VR) scene there is a three-dimensional virtual space environment, and the preview window can be displayed in other virtual spaces other than the main screen window.
  • FIG. 3 is a schematic diagram of a video playback based on a VR scene provided by an embodiment of the present application.
  • the viewing angle can be freely switched to provide the user with an immersive user experience.
  • the main screen window 302 is the window that displays the video image when the user normally watches the video, and the main screen window 302 does not occupy all the virtual space 301 , that is, the video resource is not 360 °Panoramic video, there is an unused virtual space 301 other than the main screen window 302 .
  • the size or proportion of the main screen window 302 in the VR scene matches the display screen of the traditional video playback terminal.
  • the complete VR scene is a three-dimensional spherical space
  • FIG. 3 only shows a part of the space in the VR scene, and its size, shape and the positional relationship between the main screen window 302 and the virtual space 301 should not be regarded as the protection scope of the present application. limit.
  • the size or proportion of the main screen window 302 in the VR scene matches the display screen of the traditional video playback terminal.
  • FIG. 4 is a schematic flowchart of a method for previewing a video based on a VR scene provided by an embodiment of the present application. The method can be applied to the VR device shown in FIG. 2 and mainly includes the following steps.
  • Step S401 In response to an instruction to open a preview window input by a user, draw a preview window in a virtual space other than the main screen window, where the main screen window is used to play the main video.
  • the embodiment of the present application does not specifically limit the triggering form of the instruction to open the preview window.
  • the user can trigger the trigger through a touch screen, a button on a VR handle, a visual focus in a VR scene, or the like.
  • FIG. 5a is a schematic diagram of a video preview based on a VR scene provided by an embodiment of the present application.
  • a user watches a video playback screen through the main screen window 501.
  • the preview window 502 is drawn in the virtual space 301 other than the main screen window 501 .
  • the preview window 502 can be set larger, for example, the same size as the main screen window 501, so that the user can use the preview window 502 Get the same movie viewing experience as the home screen window 501 .
  • the preview window 502 and the main screen window 501 can be set horizontally, so that the user can shake his head left and right to switch the visual focus between the main screen window 501 and the preview window 502, as shown in FIG. 5a.
  • the embodiment of the present application does not limit the size and position of the preview window 502 .
  • Those skilled in the art can set the preview window 502 at other positions or other sizes of the main screen window 501 according to actual needs.
  • the preview window 502 and the main screen window 501 are vertically arranged, and the user can switch the focus of the verse between the main screen window 501 and the preview window 502 by raising or lowering the head;
  • the size of the preview window 502 is different from that of the main screen window 501
  • the preview window 502 is located at the upper right of the main screen window 501 .
  • those skilled in the art can set the preview window 502 at other positions or other sizes of the main screen window 501 according to actual needs, which should all fall within the protection scope of the present application.
  • Step S402 Play the preview video of the main video in the preview window.
  • the preview video of the main video is played in the preview window.
  • the user watches the preview video image, it will not affect the video image in the main screen window.
  • the preview window is displayed through the virtual space in the VR scene, and the preview window will not block the main screen window, thereby improving user experience.
  • the preview video in the preview window is kept synchronized with the main video by default.
  • the playback mode of the preview video in the preview window can be adjusted accordingly according to the user's control, for example, fast forward, rewind, pause, turn on the audio of the preview window, switch the resolution of the preview video in the preview window, switch the playback of the preview video speed etc.
  • the audio in the preview window is turned on, the audio in the main screen window needs to be turned off synchronously.
  • FIG. 6 is a schematic flowchart of another VR scene-based video preview method provided by an embodiment of the present application. As shown in FIG. 6 , the method mainly includes the following steps.
  • Step S601 In response to an instruction to open a preview window input by a user, a preview window is drawn in a virtual space other than the main screen window.
  • a preview window when a user watches a video based on a VR scene, a preview window can be triggered to open.
  • the triggering manner may be a touch screen, a button on a VR handle, or a visual focus in a VR scene, etc., which is not limited in this embodiment of the present application.
  • the VR device After the VR device receives the instruction to open the preview window, in response to the instruction to open the preview window input by the user, it draws the preview window in the virtual space other than the main screen window, as shown in Figures 5a-5c.
  • Step S602 In the preview window, start playing the preview video from a position of a first time stamp, where the first time stamp is the current time stamp of the main video.
  • the time stamp is a time stamp in the audio or video, and the playback position of the video can be accurately located by the time stamp, for example, the playback of the preview video starts from the 35th minute and 20th second.
  • main video and the preview video are the same video resource, then when the time stamps of the main video and the preview video are the same, the corresponding playback pictures are the same. Start playback so that the preview video and the main video are in sync.
  • the preview video is played from the current timestamp of the main video. That is, by default, the preview video and the main video keep playing in sync.
  • Step S603 Control the preview window to obtain the user operation focus.
  • the controls in the preview window are activated, and the user can input corresponding control commands in the preview window; in the same principle, if the main screen window obtains the user operation focus, the controls in the main screen window will be activated. is activated, the user can enter the corresponding control commands in the main screen window.
  • FIG. 7 is a schematic diagram of another VR scene-based video preview provided by an embodiment of the present application.
  • FIG. 7 shows a main screen window 701 and a preview window 702.
  • the preview window 702 In the preview window 702, there is a progress bar 703, and “Resolution Cut” ”, “Home screen playback”, “Cancel preview”, “Turn on audio” and other controls.
  • To activate the controls in the preview window 702 it is first necessary to control the preview window 702 to obtain the user operation focus. After the preview window 702 obtains the user's operation focus, the user can input relevant control instructions by clicking or sliding the relevant controls. For example, fast forward, rewind, pause, turn on the audio of the preview window, switch the resolution of the preview video in the preview window, switch the playback speed of the preview video, etc.
  • relevant control instructions For example, fast forward, rewind, pause, turn on the audio of the preview window, switch the resolution of the preview video in the preview window, switch the playback speed of the preview video, etc.
  • Step S604 Determine whether a preview audio turn-on or turn-off instruction is received.
  • the audio can be selected to keep synchronization with the main video in the main screen window, or with the preview video in the preview window according to the needs of the user. .
  • step S605 If a preview audio on or off instruction is received, go to step S605; otherwise, go to step S606.
  • Step S605 Turn on or off the audio corresponding to the preview video, and turn off or turn on the audio corresponding to the main video in the main screen window.
  • the audio corresponding to the preview video is turned on, and the audio corresponding to the main video in the main screen window is turned off; if a preview audio turn-off command is received, the audio corresponding to the preview video is turned off, Turn on the audio corresponding to the main video in the main screen window.
  • the user may click the “Turn on audio” control in the preview window 502 to input an instruction to turn on or turn off the preview audio, that is, to turn on or off the preview audio.
  • Step S606 Determine whether a fast-forward or fast-rewind command is received.
  • the user can swipe left or right or drag the progress bar on the touch screen with a finger to input fast-forward or fast-rewind commands. For example, the user inputs a fast-forward command by sliding the preview window to the right or dragging the progress bar in the preview window to the right; the user inputs a fast-rewinding command by sliding the preview window to the left or dragging the progress bar in the preview window to the left.
  • the user can also trigger the fast-forward or fast-rewind instruction in other manners, which will not be repeated here.
  • step S607 If a fast-forward or fast-rewind instruction is received, go to step S607; otherwise, go to step S608.
  • Step S607 Play the preview video from a second time stamp, where the second time stamp is the time stamp of the preview video corresponding to the fast-forward or fast-rewind command.
  • the time stamp corresponding to the position of the progress bar after the left and right sliding displacement or dragging the progress bar is recorded in real time, so that the playback position of the preview video can be located by the time stamp.
  • the preview video in the preview window starts to play from the 30th minute and 12 seconds.
  • the video duration corresponding to the sliding distance is 2 minutes and 02 seconds, and the preview video in the preview window rewinds to 29 minutes and 10 seconds to start playing. That is to say, as the user slides or drags the progress bar left and right, the playback screen of the preview video changes in real time, which always corresponds to the left and right sliding displacement of the user or the drag position of the progress bar.
  • the audio of the preview video is turned on when the user slides the screen left and right or drags the progress bar, discontinuous audio signals will be generated, which affects the user experience.
  • the audio of the preview video is turned off. That is, after receiving the fast-forward or fast-rewind instruction, it is determined whether the audio of the preview video is turned on, and if the audio of the preview video is turned on, the audio of the preview video needs to be turned off.
  • Step S608 Determine whether an end fast-forward or fast-rewind command is received.
  • the VR device when the user stops triggering the preview window, receives an instruction to end fast-forward or fast-rewind. Also taking the touch screen as an example, when the user slides or drags the progress bar on the touch screen with his finger, the user lifts his finger on the touch screen, and the VR device receives an instruction to end fast forward or fast rewind.
  • step S609 If the VR device receives the end fast-forward or fast-rewind instruction, it goes to step S609; otherwise, returns to step S606, and continues to switch the video playback screen in the preview window according to the fast-forward or fast-rewind instruction.
  • Step S609 Start playing the preview video from a third time stamp, where the third time stamp is the time stamp of the preview video when the fast-forward or fast-rewind command ends.
  • the VR device receives an end fast-forward or fast-rewind command, it starts playing from the position of the preview video when the fast-forward or fast-rewind command ends. For example, when the user drags the progress bar to the 22nd minute and 15th second, stops dragging and lifts the finger from the touch screen, the preview video starts to play from the 22nd minute and 15th second.
  • the preview window still maintains the preview state.
  • the preview window disappears, the main screen window starts playing from the position where the progress bar is, and the preview mode ends.
  • the user's finger does not need to always trigger the fast-forward or fast-rewind button or press the touch screen all the time.
  • the preview window still maintains the playback state of the preview video.
  • Step S610 Determine whether a resolution switching instruction is received.
  • the preview video in the preview window does not need to have a very high resolution.
  • the resolution of the preview video is set to be lower than the resolution of the main video.
  • the resolution of the preview video can also be adjusted accordingly according to the user's needs. As shown in FIG. 7 , there is a “Resolution Cut” control in the preview window 702, and the user can switch the preview video resolution by clicking the “Resolution Cut” control, for example, the resolution can be switched to 352x288, 720x576, 1920x1080 Wait.
  • step S61 If the VR device receives the resolution switching instruction, go to step S611, otherwise go to step S612.
  • Step S611 Switch the resolution of the preview video.
  • the current resolution of the preview video is 720x576, and after receiving the resolution switching instruction, the resolution is adjusted to 352x288.
  • the size of the specific resolution can be set and selected by users according to their own needs.
  • Step S612 Determine whether a playback speed switching instruction is received.
  • the playback speed refers to the speed at which the preview video is played, for example, it can be played at 1.5 times or 2.0 times the normal playback speed, so as to facilitate the user to preview quickly. Of course, it can also be set to 0.5 times, 0.8 times, etc. according to the special needs of the user, which is not specifically limited in the embodiment of the present application.
  • Step S613 Switch the playback speed of the preview video.
  • the current playback speed of the preview video is 1.0 times the speed, that is, the preview video is played at the normal playback speed. After receiving the playback speed switching instruction, adjust the playback speed to 1.5 times the speed.
  • users can set and select the specific speed according to their own needs.
  • Step S614 Determine whether an instruction to cancel the preview window is received.
  • the preview window can be canceled by inputting an instruction to cancel the preview window, and the normal playback mode can be restored.
  • a “cancel preview” control is provided in the preview window 702 , and the user can cancel the preview window by clicking the “cancel preview” control.
  • step S617 If an instruction to cancel the preview window is received, go to step S617; otherwise, go to step S615.
  • the main screen window will not be affected, and the main screen window will still maintain the playback state before the preview.
  • the main video is played to 20 minutes and 13 seconds, and the preview video is played to 30 minutes and 25 seconds.
  • the main video continues to be played from the 20 minutes and 13 seconds. That is to say, in the embodiment of the present application, after the preview mode ends, there is no need for the user to return the main video to the state before the preview by manually adjusting the progress bar or sliding the screen.
  • the main screen window starts playing from the position where the current progress bar is by default. If the user wants to return to the position before the preview, he needs to drag the progress again. Bar or swipe the screen to adjust, the user experience is poor.
  • Step S615 Determine whether an instruction to start playing the main screen is received.
  • the preview window 702 is provided with a “play on home screen” control, the user can cancel the preview window by clicking on the “play on home screen” control, and switch the playback state of the preview video to play on the home screen window.
  • Step S616 Control the main video in the main screen window to start playing from a fourth time stamp, where the fourth time stamp is the time stamp of the preview video when the preview window is closed.
  • the main video when receiving an instruction to start playing the main screen, the main video is played to the 20th minute and 13 seconds, and the preview video is played to 30 minutes and 25 seconds. After the preview window is canceled, the main video jumps to the 30th minute and 25 seconds to start playing.
  • Step S617 Close the preview window.
  • the preview window After receiving an instruction to cancel the preview window, or receiving an instruction to start playing the main screen, the preview window needs to be closed, and only the main screen window is retained to play the main video.
  • Step S618 Control the main screen window to obtain the user operation focus.
  • the main screen window After the preview window is canceled, the main screen window regains the user's operation focus, and the user can input corresponding control instructions in the main screen window.
  • FIG. 6 is only a specific implementation manner listed in the embodiment of the present application, and should not be regarded as a limitation of the protection scope of the present application.
  • those skilled in the art can adjust the timing relationship in FIG. 6 according to actual needs, first determine "whether a fast-forward or fast-rewind command is received", and then determine "whether a preview audio on or off command is received”; "Whether a resolution switching instruction is received”, and then determine "whether a playback speed switching instruction is received”, etc.
  • the above steps are deleted according to actual needs, and only some functions in the above solution are implemented.
  • the preview window is displayed through the virtual space in the VR scene.
  • the preview window will not block the main screen window and will not affect the normal viewing of the video in the main screen window.
  • the preview window can be set to be large enough to facilitate users to watch the preview video
  • main screen window and the preview window are two independent windows, users can slide or drag the progress bar to adjust at will when fast-forwarding or rewinding in the preview window, without having to keep the trigger state all the time, which is convenient for precise fine-tuning;
  • the user can start the audio of the preview window and mute the main screen window at the same time, so that the user can hear the preview audio while watching the preview video.
  • FIG. 8 is a block diagram of a software structure of an electronic device according to an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
  • the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, and a kernel layer.
  • the application layer can include a series of application packages.
  • the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and so on.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
  • a window manager is used to manage window programs.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc.
  • Content providers are used to store and retrieve data and make these data accessible to applications.
  • the data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications.
  • a display interface can consist of one or more views.
  • the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide the communication function of the electronic device. For example, the management of call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.
  • the notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications on the screen in the form of dialog windows. For example, text information is prompted in the status bar, a prompt sound is issued, the electronic device vibrates, and the indicator light flashes.
  • Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
  • the core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
  • a system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • surface manager surface manager
  • media library Media Libraries
  • 3D graphics processing library eg: OpenGL ES
  • 2D graphics engine eg: SGL
  • the Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
  • the video application in the application framework layer may be a VR video application, and the video preview solution involved in the above embodiments may be implemented based on the VR video application.
  • SDK Software Development Kit
  • the above-mentioned video preview solution may be integrated in the VR SDK, and an interface is provided in the VR SDK for access by VR video applications, and the video preview solution is jointly completed by the VR SDK and the VR video application.
  • FIG. 9 is a schematic flowchart of another VR scene-based video preview method provided by an embodiment of the present application.
  • the method is applied to the VR SDK and VR video application in the VR device, and the video preview solution is jointly completed by the VR SDK and the VR video application. It mainly includes the following steps.
  • Step S901 The VR video application sends an instruction to open the preview window to the VR SDK.
  • Step S902 The VR SDK draws a preview window in a virtual space other than the main screen window.
  • Step S903 The VR video application sends the preview video of the main video to the VR SDK.
  • Step S904 The VR SDK plays the preview video in the preview window.
  • the preview window is displayed through the virtual space in the VR scene, and the preview window will not block the main screen window, thereby improving user experience.
  • the SDK draws the preview window uniformly, and injects the video stream sent by the VR video application into the preview window. That is to say, VR video applications only need to access the VR SDK to realize video preview, which saves the workload of VR video application development, and facilitates the uniformity of video preview styles and improves user experience.
  • the embodiment of the present application implements the above-mentioned video preview solution based on the VR SDK and VR video application, and the specific process and principle are the same as those of the above-mentioned embodiment. No longer.
  • FIG. 10 is a schematic flowchart of another VR scene-based video preview method provided by an embodiment of the present application. As shown in FIG. 10 , on the basis of the embodiment shown in FIG. 9 , step S1001 is added: VR SDK is applied to VR video Send a preview video request instruction, where the preview video request instruction is used to instruct the VR video application to send the preview video of the main video.
  • the preview video request instruction is used to instruct the VR video application to send the preview video of the main video from a fifth time stamp, where the fifth time stamp is the time stamp of the main video Current timestamp. That is, the preview video and the main video keep playing in sync.
  • the VR video application sends the preview video based on the request instruction of the VR SDK.
  • the VR video application sends the command to open the preview window to the VR SDK, it can also send the preview video to the VR SDK directly from the current timestamp.
  • FIG. 11 is a schematic flowchart of another VR scene-based video preview method provided by an embodiment of the present application. As shown in FIG. 11 , on the basis of the embodiment shown in FIG. 9 , the method further includes the following steps.
  • Step S1101 The VR SDK controls the preview window to obtain the user operation focus.
  • Step S1102 In response to the operation instruction input by the user in the preview window, the VR SDK sends a preview video request instruction corresponding to the operation instruction to the VR video application.
  • Step S1103 The VR video application sends a preview video corresponding to the preview video request instruction to the VR SDK.
  • the controls in the preview window are activated, and the user can input corresponding control commands in the preview window. is activated, the user can enter the corresponding control commands in the main screen window.
  • the playback control of the preview video can be realized based on the VR SDK. For example, fast forward, rewind, pause, turn on the audio of the preview window, switch the resolution of the preview video in the preview window, switch the playback speed of the preview video, etc. A detailed description will be given below.
  • the step S1102 includes: the VR SDK sends a first preview video request instruction to the VR video application in response to a fast-forward or fast-rewind instruction input by the user in the preview window, so The first preview video request instruction is used to instruct the VR video application to send the preview video corresponding to a sixth time stamp, where the sixth time stamp is the time of the preview video corresponding to the fast-forward or fast-rewind command stamp.
  • Step S1103 includes: the VR video application sends the preview video corresponding to the sixth timestamp to the VR SDK. Based on this, fast-forward or fast-rewind of the preview video is realized.
  • the fast-forward or fast-rewind instruction input in the preview window includes: triggering the preview window, sliding the preview window left and right, and/or dragging the preview window progress bar.
  • the step S1102 includes: sending a second preview video request instruction to the VR video application in response to an end fast-forward or fast-rewind instruction input by the user in the preview window, the The second preview video request instruction is used to instruct the VR video application to send the preview video from a seventh time stamp, where the seventh time stamp is the corresponding preview video when the fast-forward or fast-rewind command ends. timestamp.
  • Step S1103 includes: the VR video application sends the preview video to the VR SDK starting from the seventh timestamp. At this point, the fast-forward or fast-rewind operation of the preview video is completed, and the preview video starts playing from the position of the progress bar when the fast-forward or fast-rewind operation ends.
  • the ending fast-forward or fast-rewind instruction input in the preview window includes: stopping triggering of the preview window.
  • the step S1102 includes: in response to a resolution switching instruction input by the user in the preview window, sending a third preview video request instruction to the VR video application, the third preview The video request instruction includes a target resolution for requesting switching, and the third preview video request instruction is used to instruct the VR video application to send a preview video corresponding to the target resolution.
  • Step S1103 includes: the VR video application sends a preview video corresponding to the target resolution to the VR SDK. Based on this, the switching of the preview video resolution is completed.
  • the target resolution is lower than the resolution of the main video in the main screen window.
  • the step S1102 includes: in response to a playback speed switching instruction input by the user in the preview window, sending a fourth preview video request instruction to the VR video application, the fourth preview The video request instruction includes a target playback speed for requesting switching, and the fourth preview video request instruction is used to instruct the VR video application to send a preview video corresponding to the target playback speed.
  • Step S1103 includes: the VR video application sends a preview video corresponding to the target playback speed to the VR SDK. Based on this, the switching of the playback speed of the preview video is completed.
  • the method further includes: the VR SDK, in response to a preview audio start instruction input by the user, turns on the audio corresponding to the preview video, and turns off the audio corresponding to the main video in the main screen window; and/ Or, the VR SDK closes the audio corresponding to the preview video in response to the preview audio closing instruction input by the user, and opens the audio corresponding to the main video in the main screen window. Based on this, turn the audio of the preview video on or off.
  • the method further includes: the VR SDK closes the preview window in response to an instruction to start playing the main screen input by the user; controlling the main video in the main screen window to start playing from the eighth timestamp, The eighth timestamp is the timestamp of the preview video when the preview window is closed; the home screen window is controlled to obtain the user operation focus. Based on this, the video preview is completed, and the main video in the main screen window is jumped to the position of the preview video when the preview was canceled to start playing.
  • the method further includes: closing the preview window in response to an instruction of canceling the preview window input by the user; and controlling the home screen window to obtain the user operation focus.
  • the main screen window remains in its original state and continues to play.
  • the preview window and the main screen window are arranged in parallel in the virtual space.
  • the preview window is displayed through the virtual space in the VR scene.
  • the preview window will not block the main screen window and will not affect the normal viewing of the video in the main screen window.
  • the preview window can be set to be large enough to facilitate users to watch the preview video
  • main screen window and the preview window are two independent windows, users can slide or drag the progress bar to adjust at will when fast-forwarding or rewinding in the preview window, without having to keep the trigger state all the time, which is convenient for precise fine-tuning;
  • the user can start the audio of the preview window and mute the main screen window at the same time, so that the user can hear the preview audio while watching the preview video.
  • the present application further provides an electronic device.
  • the electronic device is a first electronic device 1200
  • the first electronic device 1200 may include: a processor 1201 , a memory 1202 , and a communication unit 1203 . These components communicate through one or more buses.
  • a processor 1201 a memory 1202
  • a communication unit 1203 a communication unit.
  • These components communicate through one or more buses.
  • the structure of the server shown in the figure does not constitute a limitation on this application. It can be either a bus-shaped structure, a star-shaped structure, or a More or fewer components than shown may be included, or some components may be combined, or a different arrangement of components.
  • the communication unit 1203 is used to establish a communication channel, so that the storage device can communicate with other devices. Receive user data sent by other devices or send user data to other devices.
  • the processor 1201 which is the control center of the storage device, uses various interfaces and lines to connect various parts of the entire electronic device, runs or executes the software programs and/or modules stored in the memory 1202, and invokes the software programs and/or modules stored in the memory. data to perform various functions of the electronic device and/or process data.
  • the processor may be composed of an integrated circuit (Integrated Circuit, IC for short), for example, may be composed of a single packaged IC, or may be composed of a plurality of packaged ICs connected with the same function or different functions.
  • the processor 1201 may only include a central processing unit (Central Processing Unit, CPU for short).
  • the CPU may be a single computing core, or may include multiple computing cores.
  • the memory 1202 is used to store the execution instructions of the processor 1201.
  • the memory 1202 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), which can be electrically Erasable Programmable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic Disk or Optical Disk.
  • SRAM static random access memory
  • EEPROM Electrically Erasable Programmable Read Only Memory
  • EPROM Erasable Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Magnetic Disk Magnetic Disk or Optical Disk.
  • the first electronic device 1200 When the execution instructions in the memory 1202 are executed by the processor 1201, the first electronic device 1200 is enabled to perform the following steps: in response to an instruction to open a preview window input by a user, draw a preview window in a virtual space other than the main screen window, wherein all The main screen window is used to play the main video; the preview video of the main video is played in the preview window.
  • the present application further provides another electronic device.
  • the electronic device is a second electronic device 1300
  • the second electronic device 1300 may include: a processor 1301 , a memory 1302 , and a communication unit 1303 . These components communicate through one or more buses.
  • a processor 1301 a memory 1302
  • a communication unit 1303 a communication unit 1303 .
  • These components communicate through one or more buses.
  • the structure of the server shown in the figure does not constitute a limitation on this application. It can be either a bus-shaped structure, a star-shaped structure, or a More or fewer components than shown may be included, or some components may be combined, or a different arrangement of components.
  • the communication unit 1303 is used to establish a communication channel, so that the storage device can communicate with other devices. Receive user data sent by other devices or send user data to other devices.
  • the processor 1301 which is the control center of the storage device, uses various interfaces and lines to connect various parts of the entire electronic device, runs or executes the software programs and/or modules stored in the memory 1302, and invokes the software programs and/or modules stored in the memory. data to perform various functions of the electronic device and/or process data.
  • the processor may be composed of an integrated circuit (Integrated Circuit, IC for short), for example, may be composed of a single packaged IC, or may be composed of a plurality of packaged ICs connected with the same function or different functions.
  • the processor 1301 may only include a central processing unit (Central Processing Unit, CPU for short).
  • the CPU may be a single computing core, or may include multiple computing cores.
  • the memory 1302 is used to store the execution instructions of the processor 1301.
  • the memory 1302 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), which can be electrically Erasable Programmable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic Disk or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically Erasable Programmable Read Only Memory
  • EPROM Erasable Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Magnetic Disk Magnetic Disk or Optical Disk.
  • the second electronic device 1300 is enabled to perform the following steps: receiving an instruction to open a preview window sent by the VR video application, and drawing a preview window in a virtual space other than the main screen window, wherein, The main screen window is used to play the main video; the preview video of the main video sent by the VR video application is received, and the preview video of the main video sent by the VR video application is played in the preview window.
  • the present application further provides a computer storage medium, wherein the computer storage medium can store a program, and when the program is executed, it can include some or all of the steps in the various embodiments provided in the present application.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (English: read-only memory, abbreviated as: ROM) or a random access memory (English: random access memory, abbreviated as: RAM) and the like.

Abstract

Provided in the embodiments of the present application are a VR scene-based video previewing method, an electronic device, and a storage medium. The method comprises: in response to an open preview window instruction inputted by a user, rendering a preview window in a virtual space outside of a main screen window, where the main screen window is used for playing back a main video; and playing back a preview video of the main video in the preview window. In the embodiments of the present application, with the display of the preview window in the virtual space of a VR scene, the preview window does not block the main screen window, and does not affect the normal viewing of the video in the main screen window by the user.

Description

基于VR场景的视频预览方法、电子设备和存储介质Video preview method, electronic device and storage medium based on VR scene
本申请要求于2020年9月25日提交中国专利局、申请号为202011024993.8、申请名称为“基于VR场景的视频预览方法、电子设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202011024993.8 and the application name "VR scene-based video preview method, electronic device and storage medium" filed with the China Patent Office on September 25, 2020, the entire content of which is approved by Reference is incorporated in this application.
技术领域technical field
本申请涉及虚拟现实技术领域,具体地涉及一种基于VR场景的视频预览方法、电子设备和存储介质。The present application relates to the technical field of virtual reality, and in particular, to a video preview method, electronic device and storage medium based on a VR scene.
背景技术Background technique
为了提高用户体验,目前视频类应用通常设置快进或快退预览播放功能,用户通过在视频播放终端的屏幕上左右滑动,或者拖动进度条可以进行快进或快退预览播放,且在进行预览播放时,当前主屏窗口内的画面正常播放。In order to improve the user experience, currently video applications usually set the fast-forward or fast-rewind preview playback function. The user can perform fast-forward or fast-rewind preview playback by sliding left and right on the screen of the video playback terminal, or dragging the progress bar, and the playback is in progress. During preview playback, the picture in the current main screen window is played normally.
图1a为相关技术中一种视频预览播放示意图,如图1a所示,正常情况下,用户通过主屏窗口101观看视频。当用户需要进行快退或快进预览时,可以在视频播放终端的屏幕上左右滑动,或者拖动进度条103,在进度条103的上方显示预览窗口102。其中,预览窗口102内显示的内容与用户的触发指令相对应,例如,当用户拖动进度条103至该视频的88分17秒时,预览窗口102显示该视频在88分17秒时对应的画面。图1b为相关技术中另一种视频预览播放示意图,在图1b中,当用户在视频播放终端的屏幕上左右滑动,或者拖动进度条103时,预览窗口102显示在主屏窗口101的中间位置,用户在预览窗口102内进行快退或快进预览。FIG. 1 a is a schematic diagram of a video preview playback in the related art. As shown in FIG. 1 a , under normal circumstances, a user watches a video through the main screen window 101 . When the user needs to perform fast reverse or fast forward preview, he can slide left and right on the screen of the video playback terminal, or drag the progress bar 103 to display the preview window 102 above the progress bar 103 . The content displayed in the preview window 102 corresponds to the user's trigger instruction. For example, when the user drags the progress bar 103 to 88 minutes and 17 seconds of the video, the preview window 102 displays the corresponding video at 88 minutes and 17 seconds. screen. Figure 1b is another schematic diagram of video preview playback in the related art. In Figure 1b, when the user slides left and right on the screen of the video playback terminal, or drags the progress bar 103, the preview window 102 is displayed in the middle of the main screen window 101 , the user performs a fast-rewind or fast-forward preview in the preview window 102 .
但是,由于上述方案中的预览窗口在主屏窗口内展示,使得预览窗口对主屏窗口造成遮挡,影响用户对主屏窗口内播放画面的观看。However, because the preview window in the above solution is displayed in the main screen window, the preview window blocks the main screen window, which affects the user's viewing of the playback picture in the main screen window.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本申请提供一种基于VR场景的视频预览方法、电子设备和存储介质,以利于解决现有技术中预览窗口对主屏窗口造成遮挡,影响用户对主屏窗口内播放画面观看的问题。In view of this, the present application provides a VR scene-based video preview method, electronic device and storage medium, so as to help solve the problem in the prior art that the preview window blocks the main screen window and affects the user's viewing of the playback screen in the main screen window.
第一方面,本申请实施例提供了一种基于虚拟现实VR场景的视频预览方法,包括:In a first aspect, an embodiment of the present application provides a video preview method based on a virtual reality VR scene, including:
响应于用户输入的开启预览窗口指令,在主屏窗口以外的虚拟空间内绘制预览窗口,其中,所述主屏窗口用于播放主视频;drawing a preview window in a virtual space other than the main screen window in response to an instruction to open the preview window input by the user, wherein the main screen window is used to play the main video;
在所述预览窗口内播放所述主视频的预览视频。A preview video of the main video is played in the preview window.
在一种可能的实现方式中,在所述预览窗口内播放所述主视频的预览视频,包括:In a possible implementation, playing the preview video of the main video in the preview window includes:
在所述预览窗口内、从第一时间戳位置开始播放所述预览视频,所述第一时间戳为所述主视频的当前时间戳。In the preview window, the preview video is played from a position of a first time stamp, where the first time stamp is the current time stamp of the main video.
在一种可能的实现方式中,所述方法还包括:In a possible implementation, the method further includes:
控制所述预览窗口获取用户操作焦点,使得所述预览窗口可以响应用户输入的操 作指令。The preview window is controlled to obtain the user operation focus, so that the preview window can respond to the operation instruction input by the user.
在一种可能的实现方式中,在所述预览窗口内播放所述主视频的预览视频,包括:In a possible implementation, playing the preview video of the main video in the preview window includes:
响应于用户在所述预览窗口内输入的操作指令,在所述预览窗口内播放与所述操作指令相对应的预览视频。In response to an operation instruction input by the user in the preview window, a preview video corresponding to the operation instruction is played in the preview window.
在一种可能的实现方式中,响应于用户在所述预览窗口内输入的操作指令,在所述预览窗口内播放与所述操作指令相对应的预览视频,包括:In a possible implementation manner, in response to an operation instruction input by a user in the preview window, playing a preview video corresponding to the operation instruction in the preview window includes:
响应于用户在所述预览窗口内输入的快进或快退指令,在所述预览窗口内、从第二时间戳位置播放所述预览视频,所述第二时间戳为所述快进或快退指令对应的所述预览视频的时间戳。In response to a fast-forward or fast-rewind instruction input by the user in the preview window, play the preview video in the preview window from a second time stamp, where the second time stamp is the fast-forward or fast-forward Timestamp of the preview video corresponding to the retreat instruction.
在一种可能的实现方式中,在所述预览窗口内输入的快进或快退指令,包括:In a possible implementation manner, the fast-forward or fast-rewind command input in the preview window includes:
触发所述预览窗口,且左右滑动所述预览窗口,和/或拖动所述预览窗口内的进度条。The preview window is triggered, and the preview window is slid left and right, and/or the progress bar in the preview window is dragged.
在一种可能的实现方式中,响应于用户在所述预览窗口内输入的操作指令,在所述预览窗口内播放与所述操作指令相对应的预览视频,包括:In a possible implementation manner, in response to an operation instruction input by a user in the preview window, playing a preview video corresponding to the operation instruction in the preview window includes:
响应于用户在所述预览窗口内输入的结束快进或快退指令,在所述预览窗口内、从第三时间戳位置开始播放所述预览视频,所述第三时间戳为所述结束快进或快退指令时所述预览视频的时间戳。In response to an end fast-forward or fast-rewind instruction input by the user in the preview window, the preview video is played in the preview window from a position of a third time stamp, where the third time stamp is the end fast The timestamp of the preview video when the forward or rewind command is performed.
在一种可能的实现方式中,在所述预览窗口内输入的结束快进或快退指令,包括:In a possible implementation manner, the ending fast-forward or fast-rewind instruction input in the preview window includes:
停止触发所述预览窗口。Stop triggering the preview window.
在一种可能的实现方式中,响应于用户在所述预览窗口内输入的操作指令,在所述预览窗口内播放与所述操作指令相对应的预览视频,包括:In a possible implementation manner, in response to an operation instruction input by a user in the preview window, playing a preview video corresponding to the operation instruction in the preview window includes:
响应于用户在所述预览窗口内输入的分辨率切换指令,切换所述预览视频的分辨率。In response to a resolution switching instruction input by the user in the preview window, the resolution of the preview video is switched.
在一种可能的实现方式中,所述预览视频的分辨率低于所述主屏窗口内主视频的分辨率。In a possible implementation manner, the resolution of the preview video is lower than the resolution of the main video in the main screen window.
在一种可能的实现方式中,响应于用户在所述预览窗口内输入的操作指令,在所述预览窗口内播放与所述操作指令相对应的预览视频,包括:In a possible implementation manner, in response to an operation instruction input by a user in the preview window, playing a preview video corresponding to the operation instruction in the preview window includes:
响应于用户在所述预览窗口内输入的播放速度切换指令,切换所述预览视频的播放速度。In response to a playback speed switching instruction input by the user in the preview window, the playback speed of the preview video is switched.
在一种可能的实现方式中,所述方法还包括:In a possible implementation, the method further includes:
响应于用户输入的预览音频开启指令,开启所述预览视频对应的音频,关闭所述主屏窗口内主视频对应的音频;In response to the preview audio opening instruction input by the user, the audio corresponding to the preview video is turned on, and the audio corresponding to the main video in the main screen window is turned off;
和/或,and / or,
响应于用户输入的预览音频关闭指令,关闭所述预览视频对应的音频,开启所述主屏窗口内主视频对应的音频。In response to the preview audio closing instruction input by the user, the audio corresponding to the preview video is turned off, and the audio corresponding to the main video in the main screen window is turned on.
在一种可能的实现方式中,所述方法还包括:In a possible implementation, the method further includes:
响应于用户输入的开始主屏播放指令,关闭所述预览窗口;closing the preview window in response to the start home screen playback instruction input by the user;
关闭所述预览窗口,控制所述主屏窗口内的主视频从第四时间戳位置开始播放,所述第四时间戳为所述预览窗口关闭时所述预览视频的时间戳;closing the preview window, and controlling the main video in the main screen window to start playing from a fourth time stamp, where the fourth time stamp is the time stamp of the preview video when the preview window is closed;
控制所述主屏窗口获取用户操作焦点。The main screen window is controlled to obtain the user operation focus.
在一种可能的实现方式中,所述方法还包括:In a possible implementation, the method further includes:
响应于用户输入的取消预览窗口指令,关闭所述预览窗口;closing the preview window in response to an instruction to cancel the preview window input by the user;
控制所述主屏窗口获取用户操作焦点。The main screen window is controlled to obtain the user operation focus.
在一种可能的实现方式中,所述预览窗口与所述主屏窗口在所述虚拟空间内平行设置。In a possible implementation manner, the preview window and the main screen window are arranged in parallel in the virtual space.
第二方面,本申请实施例提供了一种基于虚拟现实VR场景的视频预览方法,所述方法包括:In a second aspect, an embodiment of the present application provides a video preview method based on a virtual reality VR scene, the method comprising:
接收VR视频应用发送的开启预览窗口指令,在主屏窗口以外的虚拟空间内绘制预览窗口,其中,所述主屏窗口用于播放主视频;receiving an instruction to open a preview window sent by the VR video application, and drawing a preview window in a virtual space other than the main screen window, wherein the main screen window is used to play the main video;
接收所述VR视频应用发送的所述主视频的预览视频,在所述预览窗口内播放所述VR视频应用发送的所述主视频的预览视频。Receive the preview video of the main video sent by the VR video application, and play the preview video of the main video sent by the VR video application in the preview window.
在一种可能的实现方式中,在接收所述VR视频应用发送的所述主视频的预览视频之前,还包括:In a possible implementation manner, before receiving the preview video of the main video sent by the VR video application, the method further includes:
向所述VR视频应用发送预览视频请求指令,所述预览视频请求指令用于指示所述VR视频应用发送所述主视频的预览视频。Send a preview video request instruction to the VR video application, where the preview video request instruction is used to instruct the VR video application to send the preview video of the main video.
在一种可能的实现方式中,所述预览视频请求指令用于指示所述VR视频应用发送所述主视频的预览视频,具体为:In a possible implementation manner, the preview video request instruction is used to instruct the VR video application to send the preview video of the main video, specifically:
所述预览视频请求指令用于指示所述VR视频应用从第五时间戳开始发送所述主视频的预览视频,所述第五时间戳为所述主视频的当前时间戳。The preview video request instruction is used to instruct the VR video application to send the preview video of the main video from a fifth time stamp, where the fifth time stamp is the current time stamp of the main video.
在一种可能的实现方式中,所述方法还包括:In a possible implementation, the method further includes:
控制所述预览窗口获取用户操作焦点,使得所述预览窗口可以响应用户输入的操作指令。The preview window is controlled to obtain the user operation focus, so that the preview window can respond to an operation instruction input by the user.
在一种可能的实现方式中,向所述VR视频应用发送预览视频请求指令,包括:In a possible implementation manner, sending a preview video request instruction to the VR video application includes:
响应于用户在所述预览窗口内输入的操作指令,向所述VR视频应用发送与所述操作指令相对应的预览视频请求指令。In response to an operation instruction input by the user in the preview window, a preview video request instruction corresponding to the operation instruction is sent to the VR video application.
在一种可能的实现方式中,所述响应于用户在所述预览窗口内输入的操作指令,向所述VR视频应用发送与所述操作指令相对应的预览视频请求指令,包括:In a possible implementation manner, the sending a preview video request instruction corresponding to the operation instruction to the VR video application in response to the operation instruction input by the user in the preview window includes:
响应于用户在所述预览窗口内输入的快进或快退指令,向所述VR视频应用发送第一预览视频请求指令,所述第一预览视频请求指令用于指示所述VR视频应用发送第六时间戳对应的所述预览视频,所述第六时间戳为所述快进或快退指令对应的所述预览视频的时间戳。In response to the fast-forward or fast-rewind instruction input by the user in the preview window, a first preview video request instruction is sent to the VR video application, and the first preview video request instruction is used to instruct the VR video application to send the first preview video request instruction. The preview video corresponding to the six time stamps, where the sixth time stamp is the time stamp of the preview video corresponding to the fast-forward or fast-rewind instruction.
在一种可能的实现方式中,在所述预览窗口内输入的快进或快退指令,包括:In a possible implementation manner, the fast-forward or fast-rewind command input in the preview window includes:
触发所述预览窗口,且左右滑动所述预览窗口,和/或拖动所述预览窗口内的进度条。The preview window is triggered, and the preview window is slid left and right, and/or the progress bar in the preview window is dragged.
在一种可能的实现方式中,所述响应于用户在所述预览窗口内输入的操作指令,向所述VR视频应用发送与所述操作指令相对应的预览视频请求指令,包括:In a possible implementation manner, the sending a preview video request instruction corresponding to the operation instruction to the VR video application in response to the operation instruction input by the user in the preview window includes:
响应于用户在所述预览窗口内输入的结束快进或快退指令,向所述VR视频应用发送第二预览视频请求指令,所述第二预览视频请求指令用于指示所述VR视频应用 从第七时间戳开始发送所述预览视频,所述第七时间戳为所述结束快进或快退指令时对应的所述预览视频的时间戳。In response to the end fast-forward or fast-rewind instruction input by the user in the preview window, a second preview video request instruction is sent to the VR video application, where the second preview video request instruction is used to instruct the VR video application to start from The seventh time stamp starts to send the preview video, and the seventh time stamp is the time stamp of the preview video corresponding to the end of the fast-forward or fast-rewind command.
在一种可能的实现方式中,在所述预览窗口内输入的结束快进或快退指令,包括:In a possible implementation manner, the ending fast-forward or fast-rewind instruction input in the preview window includes:
停止触发所述预览窗口。Stop triggering the preview window.
在一种可能的实现方式中,响应于用户在所述预览窗口内输入的操作指令,向所述VR视频应用发送与所述操作指令相对应的预览视频请求指令,包括:In a possible implementation manner, in response to an operation instruction input by the user in the preview window, sending a preview video request instruction corresponding to the operation instruction to the VR video application, including:
响应于用户在所述预览窗口内输入的分辨率切换指令,向所述VR视频应用发送第三预览视频请求指令,所述第三预览视频请求指令中包含请求切换的目标分辨率,所述第三预览视频请求指令用于指示所述VR视频应用发送与所述目标分辨率相对应的预览视频。In response to the resolution switching instruction input by the user in the preview window, a third preview video request instruction is sent to the VR video application, where the third preview video request instruction includes the target resolution requested for switching, and the third preview video request instruction is The third preview video request instruction is used to instruct the VR video application to send a preview video corresponding to the target resolution.
在一种可能的实现方式中,所述目标分辨率低于所述主屏窗口内主视频的分辨率。In a possible implementation manner, the target resolution is lower than the resolution of the main video in the main screen window.
在一种可能的实现方式中,响应于用户在所述预览窗口内输入的操作指令,向所述VR视频应用发送与所述操作指令相对应的预览视频请求指令,包括:In a possible implementation manner, in response to an operation instruction input by the user in the preview window, sending a preview video request instruction corresponding to the operation instruction to the VR video application, including:
响应于用户在所述预览窗口内输入的播放速度切换指令,向所述VR视频应用发送第四预览视频请求指令,所述第四预览视频请求指令中包含请求切换的目标播放速度,所述第四预览视频请求指令用于指示所述VR视频应用发送与所述目标播放速度相对应的预览视频。In response to the playback speed switching instruction input by the user in the preview window, a fourth preview video request instruction is sent to the VR video application, where the fourth preview video request instruction includes the target playback speed requested for switching, and the first preview video request instruction is The fourth preview video request instruction is used to instruct the VR video application to send a preview video corresponding to the target playback speed.
在一种可能的实现方式中,所述方法还包括:In a possible implementation, the method further includes:
响应于用户输入的预览音频开启指令,开启所述预览视频对应的音频,关闭所述主屏窗口内主视频对应的音频;In response to the preview audio opening instruction input by the user, the audio corresponding to the preview video is turned on, and the audio corresponding to the main video in the main screen window is turned off;
和/或,and / or,
响应于用户输入的预览音频关闭指令,关闭所述预览视频对应的音频,开启所述主屏窗口内主视频对应的音频。In response to the preview audio closing instruction input by the user, the audio corresponding to the preview video is turned off, and the audio corresponding to the main video in the main screen window is turned on.
在一种可能的实现方式中,所述方法还包括:In a possible implementation, the method further includes:
响应于用户输入的开始主屏播放指令,关闭所述预览窗口;closing the preview window in response to the start home screen playback instruction input by the user;
控制所述主屏窗口内的主视频从第八时间戳开始播放,所述第八时间戳为所述预览窗口关闭时所述预览视频的时间戳;controlling the main video in the main screen window to start playing from an eighth timestamp, where the eighth timestamp is the timestamp of the preview video when the preview window is closed;
控制所述主屏窗口获取用户操作焦点。The main screen window is controlled to obtain the user operation focus.
在一种可能的实现方式中,所述方法还包括:In a possible implementation, the method further includes:
响应于用户输入的取消预览窗口指令,关闭所述预览窗口;closing the preview window in response to an instruction to cancel the preview window input by the user;
控制所述主屏窗口获取用户操作焦点。The main screen window is controlled to obtain the user operation focus.
在一种可能的实现方式中,所述预览窗口与所述主屏窗口在所述虚拟空间内平行设置。In a possible implementation manner, the preview window and the main screen window are arranged in parallel in the virtual space.
第三方面,本申请实施例提供了一种电子设备,所述电子设备包括:In a third aspect, an embodiment of the present application provides an electronic device, and the electronic device includes:
一个或多个处理器;one or more processors;
存储器;memory;
以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述电子设备执行时,使得所述电子设备执行上述第一方面任意一项所述的视频预览方法。and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions that, when executed by the electronic device, cause all The electronic device executes the video preview method described in any one of the first aspect above.
第四方面,本申请实施例提供了一种电子设备,所述电子设备包括:In a fourth aspect, an embodiment of the present application provides an electronic device, the electronic device comprising:
一个或多个处理器;one or more processors;
存储器;memory;
以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述电子设备执行时,使得所述电子设备执行上述第二方面任意一项所述的视频预览方法。and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions that, when executed by the electronic device, cause all The electronic device executes the video preview method described in any one of the second aspect above.
第五方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质包括存储的程序,其中,在所述程序运行时控制所述计算机可读存储介质所在设备执行上述第一方面任意一项所述的视频预览方法。In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium includes a stored program, wherein when the program runs, a device where the computer-readable storage medium is located is controlled to execute the above The video preview method according to any one of the first aspect.
第六方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质包括存储的程序,其中,在所述程序运行时控制所述计算机可读存储介质所在设备执行上述第二方面任意一项所述的视频预览方法。In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium includes a stored program, wherein when the program runs, a device where the computer-readable storage medium is located is controlled to execute the above The video preview method according to any one of the second aspect.
在本申请实施例中,通过VR场景中的虚拟空间进行预览窗口的展示,预览窗口不会对主屏窗口造成遮挡,不影响用户在主屏窗口内视频的正常观看。In the embodiment of the present application, the preview window is displayed through the virtual space in the VR scene, and the preview window does not block the main screen window, and does not affect the normal viewing of the video in the main screen window by the user.
附图说明Description of drawings
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。In order to illustrate the technical solutions of the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings used in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1a为相关技术中一种视频预览播放示意图;Fig. 1a is a kind of video preview playing schematic diagram in the related art;
图1b为相关技术中另一种视频预览播放示意图;Fig. 1b is another kind of video preview playing schematic diagram in the related art;
图2为本申请实施例提供的一种VR设备的场景示意图;2 is a schematic diagram of a scene of a VR device provided by an embodiment of the present application;
图3为本申请实施例提供的一种基于VR场景的视频播放示意图;3 is a schematic diagram of a VR scene-based video playback provided by an embodiment of the present application;
图4为本申请实施例提供的一种基于VR场景的视频预览方法流程示意图;4 is a schematic flowchart of a method for previewing a video based on a VR scene provided by an embodiment of the present application;
图5a为本申请实施例提供的一种基于VR场景的视频预览示意图;5a is a schematic diagram of a video preview based on a VR scene provided by an embodiment of the application;
图5b为本申请实施例提供的另一种基于VR场景的视频预览示意图;5b is a schematic diagram of another VR scene-based video preview provided by an embodiment of the present application;
图5c为本申请实施例提供的另一种基于VR场景的视频预览示意图;FIG. 5c is a schematic diagram of another VR scene-based video preview provided by an embodiment of the present application;
图6为本申请实施例提供的另一种基于VR场景的视频预览方法流程示意图;6 is a schematic flowchart of another VR scene-based video preview method provided by an embodiment of the present application;
图7为本申请实施例提供的另一种基于VR场景的视频预览示意图;7 is a schematic diagram of another VR scene-based video preview provided by an embodiment of the present application;
图8为本申请实施例的一种电子设备的软件结构框图;8 is a software structural block diagram of an electronic device according to an embodiment of the application;
图9为本申请实施例提供的另一种基于VR场景的视频预览方法流程示意图;FIG. 9 is a schematic flowchart of another VR scene-based video preview method provided by an embodiment of the present application;
图10为本申请实施例提供的另一种基于VR场景的视频预览方法流程示意图;10 is a schematic flowchart of another VR scene-based video preview method provided by an embodiment of the present application;
图11为本申请实施例提供的另一种基于VR场景的视频预览方法流程示意图;11 is a schematic flowchart of another VR scene-based video preview method provided by an embodiment of the present application;
图12为本申请实施例提供的一种电子设备结构示意图;12 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
图13为本申请实施例提供的另一种电子设备结构示意图。FIG. 13 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
具体实施方式detailed description
为了更好的理解本申请的技术方案,下面结合附图对本申请实施例进行详细描述。In order to better understand the technical solutions of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
应当明确,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的 所有其它实施例,都属于本申请保护的范围。It should be clear that the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
在本申请实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. As used in the embodiments of this application and the appended claims, the singular forms "a," "the," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise.
应当理解,本文中使用的术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,甲和/或乙,可以表示:单独存在甲,同时存在甲和乙,单独存在乙这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that the term "and/or" used in this article is only an association relationship to describe related objects, indicating that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, and A and B exist at the same time. B, there are three cases of B alone. In addition, the character "/" in this document generally indicates that the related objects are an "or" relationship.
在对本申请实施例进行具体介绍之前,首先对本申请所涉及的场景进行简单介绍。本申请所涉及的电子设备可以为虚拟现实(virtual reality,VR)设备、VR设备的部分模块或者与VR设备相连的电子设备,VR设备可以为VR一体机、VR眼镜等;与VR设备相连的电子设备可以为手机、平板电脑、个人计算机(personal computer,PC)、个人数字助理(personal digital assistant,PDA)、智能手表、上网本、可穿戴电子设备等。Before the specific introduction of the embodiments of the present application, the scenarios involved in the present application are briefly introduced first. The electronic device involved in this application may be a virtual reality (VR) device, some modules of the VR device, or an electronic device connected to the VR device, and the VR device may be an all-in-one VR machine, VR glasses, etc.; The electronic device may be a mobile phone, a tablet computer, a personal computer (PC), a personal digital assistant (PDA), a smart watch, a netbook, a wearable electronic device, and the like.
VR技术是一种可以创建和体验虚拟世界的计算机仿真系统,它利用计算机模拟产生一个三维(又称3D)空间的虚拟环境,是一种多源信息融合的、交互式的三维动态视景和实体行为的系统仿真,使用户可以沉浸到该VR场景中。简单来说,VR就是一种虚拟现实的技术,通过对视觉环境的渲染,让用户最大限度融入VR场景,享受沉浸式的体验。VR technology is a computer simulation system that can create and experience virtual worlds. It uses computer simulation to generate a three-dimensional (also known as 3D) space virtual environment. It is a multi-source information fusion, interactive three-dimensional dynamic vision and System simulation of entity behavior, allowing users to immerse themselves in the VR scene. Simply put, VR is a virtual reality technology that allows users to integrate into the VR scene to the maximum extent and enjoy an immersive experience through the rendering of the visual environment.
图2为本申请实施例提供的一种VR设备的场景示意图,在图2中示出了移动终端201和VR眼镜202,移动终端201和VR眼镜202基于连接线互联。在图2所示的场景中,移动终端201将自身的屏幕显示内容投影到VR眼镜202中,用户通过VR眼镜202观看照片、视频或者打游戏,享受更大屏幕的体验。可理解,图2仅是本申请实施例所列举的一种具体应用场景,并不应当将其作为本申请保护范围的限制。例如,从结构形态上来看,VR设备除了通过移动终端201与VR眼镜202相连外,还可以通过PC与VR眼镜202相连;VR设备还可以为将移动终端201和VR眼镜202的功能集成到一起的VR一体机。另外,图2中的移动终端201和VR眼镜202也可以通过无线连接。其中,该通信网络可以是局域网,也可以是通过中继(relay)设备转接的广域网。当该通信网络为局域网时,示例性的,该通信网络可以是wifi热点网络、wifi P2P网络、蓝牙网络、zigbee网络或近场通信(near field communication,NFC)网络等近距离通信网络。当该通信网络为广域网时,示例性的,该通信网络可以是第三代移动通信技术(3rd-generation wireless telephone technology,3G)网络、第四代移动通信技术(the 4th generation mobile communication technology,4G)网络、第五代移动通信技术(5th-generation mobile communication technology,5G)网络、未来演进的公共陆地移动网络(public land mobile network,PLMN)或因特网等。FIG. 2 is a schematic diagram of a scene of a VR device provided by an embodiment of the present application. FIG. 2 shows a mobile terminal 201 and VR glasses 202, and the mobile terminal 201 and the VR glasses 202 are interconnected based on a connection line. In the scenario shown in FIG. 2 , the mobile terminal 201 projects its own screen display content into the VR glasses 202 , and the user watches photos, videos or plays games through the VR glasses 202 to enjoy a larger screen experience. It can be understood that FIG. 2 is only a specific application scenario listed in the embodiment of the present application, and should not be taken as a limitation of the protection scope of the present application. For example, from a structural point of view, in addition to being connected to the VR glasses 202 through the mobile terminal 201, the VR device can also be connected to the VR glasses 202 through a PC; the VR device can also integrate the functions of the mobile terminal 201 and the VR glasses 202 together. VR all-in-one. In addition, the mobile terminal 201 and the VR glasses 202 in FIG. 2 may also be connected wirelessly. Wherein, the communication network may be a local area network, or may be a wide area network switched through a relay (relay) device. When the communication network is a local area network, for example, the communication network may be a near field communication network such as a wifi hotspot network, a wifi P2P network, a Bluetooth network, a zigbee network, or a near field communication (near field communication, NFC) network. When the communication network is a wide area network, exemplarily, the communication network may be a 3rd generation wireless telephone technology (3G) network, the 4th generation mobile communication technology (4G) ) network, the 5th-generation mobile communication technology (5G) network, the future evolved public land mobile network (PLMN) or the Internet, etc.
在传统的视频播放场景中(如图1a和图1b所示),由于视频播放窗口无法超出显示屏的限制,因此,预览窗口只能在主屏窗口上叠加。但是在虚拟现实(virtual reality,VR)场景中,具有三维的虚拟空间环境,预览窗口可以在主屏窗口以外的其它虚拟空间进行展示。In a traditional video playback scenario (as shown in Figure 1a and Figure 1b), since the video playback window cannot exceed the limit of the display screen, the preview window can only be superimposed on the main screen window. However, in a virtual reality (virtual reality, VR) scene, there is a three-dimensional virtual space environment, and the preview window can be displayed in other virtual spaces other than the main screen window.
图3为本申请实施例提供的一种基于VR场景的视频播放示意图,用户在该场景中观看视频时,可以自由切换观看视角,给用户提供沉浸式的用户体验。需要指出的是,在图3示出的场景中,主屏窗口302为用户正常观看视频时,显示视频画面的窗口,主屏窗口302并未占据全部虚拟空间301,也就是说,该视频资源并非360°全景视频,主屏窗口302以外还存在未被使用的虚拟空间301。通常情况下,VR场景中主屏窗口302的大小或比例与传统视频播放终端的显示屏相匹配。可理解,完整的VR场景为三维的球面空间,图3仅示出了VR场景中的部分空间,并不应当将其大小、形状以及主屏窗口302与虚拟空间301的位置关系作为本申请保护范围的限定。通常情况下,VR场景中主屏窗口302的大小或比例与传统视频播放终端的显示屏相匹配。FIG. 3 is a schematic diagram of a video playback based on a VR scene provided by an embodiment of the present application. When a user watches a video in the scene, the viewing angle can be freely switched to provide the user with an immersive user experience. It should be pointed out that in the scenario shown in FIG. 3 , the main screen window 302 is the window that displays the video image when the user normally watches the video, and the main screen window 302 does not occupy all the virtual space 301 , that is, the video resource is not 360 °Panoramic video, there is an unused virtual space 301 other than the main screen window 302 . Normally, the size or proportion of the main screen window 302 in the VR scene matches the display screen of the traditional video playback terminal. It can be understood that the complete VR scene is a three-dimensional spherical space, and FIG. 3 only shows a part of the space in the VR scene, and its size, shape and the positional relationship between the main screen window 302 and the virtual space 301 should not be regarded as the protection scope of the present application. limit. Normally, the size or proportion of the main screen window 302 in the VR scene matches the display screen of the traditional video playback terminal.
图4为本申请实施例提供的一种基于VR场景的视频预览方法流程示意图,该方法可应用于图2所示的VR设备,其主要包括以下步骤。FIG. 4 is a schematic flowchart of a method for previewing a video based on a VR scene provided by an embodiment of the present application. The method can be applied to the VR device shown in FIG. 2 and mainly includes the following steps.
步骤S401:响应于用户输入的开启预览窗口指令,在主屏窗口以外的虚拟空间内绘制预览窗口,其中,所述主屏窗口用于播放主视频。Step S401: In response to an instruction to open a preview window input by a user, draw a preview window in a virtual space other than the main screen window, where the main screen window is used to play the main video.
本申请实施例对所述开启预览窗口指令的触发形式不做具体限定,例如,用户可以通过触摸屏、VR手柄上的按键、VR场景中的视觉焦点等形式触发。The embodiment of the present application does not specifically limit the triggering form of the instruction to open the preview window. For example, the user can trigger the trigger through a touch screen, a button on a VR handle, a visual focus in a VR scene, or the like.
图5a为本申请实施例提供的一种基于VR场景的视频预览示意图,正常情况下,用户通过主屏窗口501观看视频播放画面,当VR设备接收到用户输入的开启预览窗口指令后,VR设备在主屏窗口501以外的虚拟空间301内绘制预览窗口502。5a is a schematic diagram of a video preview based on a VR scene provided by an embodiment of the present application. Under normal circumstances, a user watches a video playback screen through the main screen window 501. The preview window 502 is drawn in the virtual space 301 other than the main screen window 501 .
由于预览窗口502在虚拟空间301内展示,并不会对主屏窗口501造成遮挡,因此可以将预览窗口502设置的大一些,例如,和主屏窗口501设置同样大小,使得用户可以在预览窗口502中获得主屏窗口501相同的观影体验。另外,在VR三维空间内,可以将预览窗口502和主屏窗口501水平设置,以便于用户左右摇头将视觉焦点在主屏窗口501和预览窗口502之间切换,如图5a所示。Since the preview window 502 is displayed in the virtual space 301 and will not block the main screen window 501, the preview window 502 can be set larger, for example, the same size as the main screen window 501, so that the user can use the preview window 502 Get the same movie viewing experience as the home screen window 501 . In addition, in the VR three-dimensional space, the preview window 502 and the main screen window 501 can be set horizontally, so that the user can shake his head left and right to switch the visual focus between the main screen window 501 and the preview window 502, as shown in FIG. 5a.
需要指出的是,本申请实施例对预览窗口502的大小、位置不做限制。本领域技术人员可以根据实际需要将预览窗口502设置在主屏窗口501的其它位置或者其它大小。例如,在图5b中,在VR三维空间内,预览窗口502和主屏窗口501竖直设置,用户通过抬头或低头动作可以将诗句焦点在主屏窗口501和预览窗口502之间切换;在图5c中,预览窗口502与主屏窗口501大小不同,且预览窗口502位于主屏窗口501的右上方。当然,本领域技术人员可以根据实际需要将预览窗口502设置在主屏窗口501的其它位置或者其它大小,其均应当落入本申请的保护范围之内。It should be pointed out that the embodiment of the present application does not limit the size and position of the preview window 502 . Those skilled in the art can set the preview window 502 at other positions or other sizes of the main screen window 501 according to actual needs. For example, in Figure 5b, in the VR three-dimensional space, the preview window 502 and the main screen window 501 are vertically arranged, and the user can switch the focus of the verse between the main screen window 501 and the preview window 502 by raising or lowering the head; in Figure 5c , the size of the preview window 502 is different from that of the main screen window 501 , and the preview window 502 is located at the upper right of the main screen window 501 . Of course, those skilled in the art can set the preview window 502 at other positions or other sizes of the main screen window 501 according to actual needs, which should all fall within the protection scope of the present application.
步骤S402:在所述预览窗口内播放所述主视频的预览视频。Step S402: Play the preview video of the main video in the preview window.
预览窗口绘制完成后,在预览窗口内播放主视频的预览视频。用户在观看预览视频画面时,不会对主屏窗口内的视频画面造成影响。After the preview window is drawn, the preview video of the main video is played in the preview window. When the user watches the preview video image, it will not affect the video image in the main screen window.
在本申请实施例中,通过VR场景中的虚拟空间进行预览窗口的展示,预览窗口不会对主屏窗口造成遮挡,提高用户体验。In the embodiment of the present application, the preview window is displayed through the virtual space in the VR scene, and the preview window will not block the main screen window, thereby improving user experience.
在本申请实施例中,开启预览窗口后,预览窗口内的预览视频默认与主视频保持同步。但是,预览窗口内预览视频的播放模式可以根据用户的控制进行相应调整,例如,快进、快退、暂停、开启预览窗口的音频、切换预览窗口内预览视频的分辨率、切换预览视频的播放速度等。其中,在开启预览窗口的音频后,需要同步将主屏窗口 内的音频关闭。以下结合具体实施例进行详细说明。In the embodiment of the present application, after the preview window is opened, the preview video in the preview window is kept synchronized with the main video by default. However, the playback mode of the preview video in the preview window can be adjusted accordingly according to the user's control, for example, fast forward, rewind, pause, turn on the audio of the preview window, switch the resolution of the preview video in the preview window, switch the playback of the preview video speed etc. Among them, after the audio in the preview window is turned on, the audio in the main screen window needs to be turned off synchronously. The following describes in detail with reference to specific embodiments.
图6为本申请实施例提供的另一种基于VR场景的视频预览方法流程示意图,如图6所示,该方法主要包括以下步骤。FIG. 6 is a schematic flowchart of another VR scene-based video preview method provided by an embodiment of the present application. As shown in FIG. 6 , the method mainly includes the following steps.
步骤S601:响应于用户输入的开启预览窗口指令,在主屏窗口以外的虚拟空间内绘制预览窗口。Step S601: In response to an instruction to open a preview window input by a user, a preview window is drawn in a virtual space other than the main screen window.
在本申请实施例中,用户基于VR场景进行视频观看时,可以触发开启预览窗口。该触发方式可以为触摸屏、VR手柄上的按键或VR场景中的视觉焦点等,本申请实施例对此不作限制。In this embodiment of the present application, when a user watches a video based on a VR scene, a preview window can be triggered to open. The triggering manner may be a touch screen, a button on a VR handle, or a visual focus in a VR scene, etc., which is not limited in this embodiment of the present application.
当VR设备接收到开启预览窗口指令后,响应于用户输入的开启预览窗口指令,在主屏窗口以外的虚拟空间内绘制预览窗口,如图5a-5c所示。After the VR device receives the instruction to open the preview window, in response to the instruction to open the preview window input by the user, it draws the preview window in the virtual space other than the main screen window, as shown in Figures 5a-5c.
步骤S602:在所述预览窗口内、从第一时间戳位置开始播放所述预览视频,所述第一时间戳为所述主视频的当前时间戳。Step S602: In the preview window, start playing the preview video from a position of a first time stamp, where the first time stamp is the current time stamp of the main video.
时间戳为音频或视频中的时间标记,通过时间戳可以准确定位视频的播放位置,例如定位预览视频从第35分20秒开始播放。The time stamp is a time stamp in the audio or video, and the playback position of the video can be accurately located by the time stamp, for example, the playback of the preview video starts from the 35th minute and 20th second.
可理解,主视频和预览视频为同一视频资源,那么在主视频和预览视频的时间戳相同时,对应的播放画面相同,因此,在本申请实施例中,预览视频从主视频的当前时间戳开始播放,使得预览视频和主视频保持同步。It can be understood that the main video and the preview video are the same video resource, then when the time stamps of the main video and the preview video are the same, the corresponding playback pictures are the same. Start playback so that the preview video and the main video are in sync.
开启预览窗口后,从主视频的当前时间戳开始播放预览视频。也就是说,默认情况下,预览视频和主视频保持同步播放。After opening the preview window, the preview video is played from the current timestamp of the main video. That is, by default, the preview video and the main video keep playing in sync.
步骤S603:控制所述预览窗口获取用户操作焦点。Step S603: Control the preview window to obtain the user operation focus.
可理解,若预览窗口获取用户操作焦点,则预览窗口内的控件被激活,用户可以在预览窗口内输入相应的控制指令;同样的原理,若主屏窗口获取用户操作焦点,则主屏窗口内的控件被激活,用户可以在主屏窗口内输入相应的控制指令。It can be understood that if the preview window obtains the user operation focus, the controls in the preview window are activated, and the user can input corresponding control commands in the preview window; in the same principle, if the main screen window obtains the user operation focus, the controls in the main screen window will be activated. is activated, the user can enter the corresponding control commands in the main screen window.
图7为本申请实施例提供的另一种基于VR场景的视频预览示意图,在图7中示出了主屏窗口701和预览窗口702,在预览窗口702内存在进度条703,以及“切分辨率”、“主屏播放”、“取消预览”、“开启音频”等控件。若要激活预览窗口702内的控件,首先需要控制所述预览窗口702获取用户操作焦点。在预览窗口702获取用户操作焦点后,用户可以通过点击或滑动相关控件输入相关的控制指令。例如,快进、快退、暂停、开启预览窗口的音频、切换预览窗口内预览视频的分辨率、切换预览视频的播放速度等。以下进行详细说明。FIG. 7 is a schematic diagram of another VR scene-based video preview provided by an embodiment of the present application. FIG. 7 shows a main screen window 701 and a preview window 702. In the preview window 702, there is a progress bar 703, and “Resolution Cut” ”, “Home screen playback”, “Cancel preview”, “Turn on audio” and other controls. To activate the controls in the preview window 702, it is first necessary to control the preview window 702 to obtain the user operation focus. After the preview window 702 obtains the user's operation focus, the user can input relevant control instructions by clicking or sliding the relevant controls. For example, fast forward, rewind, pause, turn on the audio of the preview window, switch the resolution of the preview video in the preview window, switch the playback speed of the preview video, etc. A detailed description will be given below.
步骤S604:判断是否接收到预览音频开启或关闭指令。Step S604: Determine whether a preview audio turn-on or turn-off instruction is received.
在本申请实施例中,由于主屏窗口和预览窗口相当于两个独立的窗口,因此,可以根据用户的需求选择音频与主屏窗口内的主视频保持同步,或者与预览窗口内的预览视频保持同步。In this embodiment of the present application, since the main screen window and the preview window are equivalent to two independent windows, the audio can be selected to keep synchronization with the main video in the main screen window, or with the preview video in the preview window according to the needs of the user. .
若接收到预览音频开启或关闭指令,则进入步骤S605;否则进入步骤S606。If a preview audio on or off instruction is received, go to step S605; otherwise, go to step S606.
步骤S605:开启或关闭所述预览视频对应的音频,关闭或开启所述主屏窗口内主视频对应的音频。Step S605: Turn on or off the audio corresponding to the preview video, and turn off or turn on the audio corresponding to the main video in the main screen window.
例如,若接收到预览音频开启指令,则开启所述预览视频对应的音频,关闭所述主屏窗口内主视频对应的音频;若接收到预览音频关闭指令,则关闭所述预览视频对 应的音频,开启所述主屏窗口内主视频对应的音频。For example, if a preview audio turn-on instruction is received, the audio corresponding to the preview video is turned on, and the audio corresponding to the main video in the main screen window is turned off; if a preview audio turn-off command is received, the audio corresponding to the preview video is turned off, Turn on the audio corresponding to the main video in the main screen window.
如图7所示,用户可以通过点击预览窗口502内的“开启音频”控件,实现预览音频开启或关闭指令的输入,即实现预览音频的开启或关闭。As shown in FIG. 7 , the user may click the “Turn on audio” control in the preview window 502 to input an instruction to turn on or turn off the preview audio, that is, to turn on or off the preview audio.
步骤S606:判断是否接收到快进或快退指令。Step S606: Determine whether a fast-forward or fast-rewind command is received.
若VR设备存在触摸屏,用户可以通过手指在触摸屏上左右滑动或拖动进度条,输入快进或快退指令。例如,用户通过向右滑动预览窗口或向右拖动预览窗口内的进度条,输入快进指令;用户通过向左滑动预览窗口或向左拖动预览窗口内的进度条,输入快退指令。If the VR device has a touch screen, the user can swipe left or right or drag the progress bar on the touch screen with a finger to input fast-forward or fast-rewind commands. For example, the user inputs a fast-forward command by sliding the preview window to the right or dragging the progress bar in the preview window to the right; the user inputs a fast-rewinding command by sliding the preview window to the left or dragging the progress bar in the preview window to the left.
当然,用户也可以采用其他方式触发所述快进或快退指令,在此不再赘述。Of course, the user can also trigger the fast-forward or fast-rewind instruction in other manners, which will not be repeated here.
若接收到快进或快退指令,则进入步骤S607;否则进入步骤S608。If a fast-forward or fast-rewind instruction is received, go to step S607; otherwise, go to step S608.
步骤S607:从第二时间戳位置播放所述预览视频,所述第二时间戳为所述快进或快退指令对应的所述预览视频的时间戳。Step S607: Play the preview video from a second time stamp, where the second time stamp is the time stamp of the preview video corresponding to the fast-forward or fast-rewind command.
当用户在预览窗口内左右滑动或拖动进度条时,实时记录该左右滑动位移或拖动进度条后进度条位置对应的时间戳,以便通过该时间戳定位预览视频的播放位置。例如,用户向右拖动进度条至30分12秒,预览窗口内的预览视频从第30分12秒开始播放;若用户从预览视频的第30分12秒开始向左滑动屏幕,在屏幕上滑动的距离对应的视频时长为2分02秒,则预览窗口内的预览视频快退至第29分10秒开始播放。也就是说,随着用户左右滑动或拖动进度条,预览视频的播放画面实时变化,始终与用户左右滑动位移或进度条拖动位置相对应。When the user slides or drags the progress bar left and right in the preview window, the time stamp corresponding to the position of the progress bar after the left and right sliding displacement or dragging the progress bar is recorded in real time, so that the playback position of the preview video can be located by the time stamp. For example, if the user drags the progress bar to the right to 30 minutes and 12 seconds, the preview video in the preview window starts to play from the 30th minute and 12 seconds. The video duration corresponding to the sliding distance is 2 minutes and 02 seconds, and the preview video in the preview window rewinds to 29 minutes and 10 seconds to start playing. That is to say, as the user slides or drags the progress bar left and right, the playback screen of the preview video changes in real time, which always corresponds to the left and right sliding displacement of the user or the drag position of the progress bar.
其中,如果用户左右滑动屏幕或拖动进度条时,预览视频的音频处于开启状态,则会产生不连续的音频信号,影响用户体验。在本申请实施例中,在用户左右滑动屏幕或拖动进度条时,将预览视频的音频关闭。也就是说,在接收到快进或快退指令后,判定预览视频的音频是否开启,若预览视频的音频处于开启状态,则需要将预览视频的音频关闭。Among them, if the audio of the preview video is turned on when the user slides the screen left and right or drags the progress bar, discontinuous audio signals will be generated, which affects the user experience. In this embodiment of the present application, when the user slides the screen left and right or drags the progress bar, the audio of the preview video is turned off. That is, after receiving the fast-forward or fast-rewind instruction, it is determined whether the audio of the preview video is turned on, and if the audio of the preview video is turned on, the audio of the preview video needs to be turned off.
步骤S608:判断是否接收到结束快进或快退指令。Step S608: Determine whether an end fast-forward or fast-rewind command is received.
在一种可选实施例中,当用户停止触发预览窗口时,VR设备接收到结束快进或快退指令。同样以触摸屏为例,当用户通过手指在触摸屏上左右滑动或拖动进度条后,用户手指在触摸屏上抬起,VR设备接收到结束快进或快退指令。In an optional embodiment, when the user stops triggering the preview window, the VR device receives an instruction to end fast-forward or fast-rewind. Also taking the touch screen as an example, when the user slides or drags the progress bar on the touch screen with his finger, the user lifts his finger on the touch screen, and the VR device receives an instruction to end fast forward or fast rewind.
若VR设备接收到结束快进或快退指令则进入步骤S609;否则返回步骤S606,继续根据所述快进或快退指令切换预览窗口内的视频播放画面。If the VR device receives the end fast-forward or fast-rewind instruction, it goes to step S609; otherwise, returns to step S606, and continues to switch the video playback screen in the preview window according to the fast-forward or fast-rewind instruction.
步骤S609:从第三时间戳位置开始播放所述预览视频,所述第三时间戳为所述结束快进或快退指令时所述预览视频的时间戳。Step S609: Start playing the preview video from a third time stamp, where the third time stamp is the time stamp of the preview video when the fast-forward or fast-rewind command ends.
如果VR设备接收到结束快进或快退指令,则从快进或快退指令结束时,预览视频的位置开始播放。例如,当用户拖动进度条至第22分15秒时,停止拖动,将手指从触摸屏上抬起,则预览视频从第22分15秒开始播放。If the VR device receives an end fast-forward or fast-rewind command, it starts playing from the position of the preview video when the fast-forward or fast-rewind command ends. For example, when the user drags the progress bar to the 22nd minute and 15th second, stops dragging and lifts the finger from the touch screen, the preview video starts to play from the 22nd minute and 15th second.
需要指出的是,在本申请实施例中,用户停止触发预览窗口后,预览窗口仍保持预览状态。相反,在图1a和图1b示出的实施例中,在用户停止触发主屏窗口后,预览窗口消失,主屏窗口从此时进度条所在的位置开始播放,预览模式结束。换句话讲,在本申请实施例中进行快退或快进预览时,用户的手指无需一直触发快进或快退按键 或者一直按着触摸屏,当用户的手指在按键或触摸屏上提起后,预览窗口仍然保持着预览视频的播放状态。It should be noted that, in this embodiment of the present application, after the user stops triggering the preview window, the preview window still maintains the preview state. On the contrary, in the embodiment shown in FIG. 1a and FIG. 1b, after the user stops triggering the main screen window, the preview window disappears, the main screen window starts playing from the position where the progress bar is, and the preview mode ends. In other words, when performing fast-rewind or fast-forward preview in this embodiment of the present application, the user's finger does not need to always trigger the fast-forward or fast-rewind button or press the touch screen all the time. The preview window still maintains the playback state of the preview video.
步骤S610:判断是否接收到分辨率切换指令。Step S610: Determine whether a resolution switching instruction is received.
可理解,为了节约资源,在预览窗口内的预览视频不需要具备很高的分辨率,通常情况下,设置预览视频的分辨率低于主视频的分辨率。It can be understood that, in order to save resources, the preview video in the preview window does not need to have a very high resolution. Generally, the resolution of the preview video is set to be lower than the resolution of the main video.
但是,预览视频的分辨率也可以根据用户的需求进行相应的调整。如图7所示,在预览窗口702内设有“切分辨率”控件,用户可以通过点击“切分辨率”控件实现预览视频分辨率的切换,例如可以将分辨率切换为352x288、720x576、1920x1080等。However, the resolution of the preview video can also be adjusted accordingly according to the user's needs. As shown in FIG. 7 , there is a “Resolution Cut” control in the preview window 702, and the user can switch the preview video resolution by clicking the “Resolution Cut” control, for example, the resolution can be switched to 352x288, 720x576, 1920x1080 Wait.
若VR设备接收到分辨率切换指令,则进入步骤S611,否则进入步骤S612。If the VR device receives the resolution switching instruction, go to step S611, otherwise go to step S612.
步骤S611:切换所述预览视频的分辨率。Step S611: Switch the resolution of the preview video.
例如,预览视频当前的分辨率为720x576,在接收到分辨率切换指令后,将分辨率调整为352x288。当然,具体分辨率的大小,用户可以根据自己的需求进行设置和选择。For example, the current resolution of the preview video is 720x576, and after receiving the resolution switching instruction, the resolution is adjusted to 352x288. Of course, the size of the specific resolution can be set and selected by users according to their own needs.
步骤S612:判断是否接收到播放速度切换指令。Step S612: Determine whether a playback speed switching instruction is received.
所述播放速度是指预览视频进行播放时的倍速,例如,可以为正常播放速度的1.5倍、2.0倍播放,以便于用户快速预览。当然,根据用户的特殊需求也可以设置为0.5倍、0.8倍等,本申请实施例不做具体限定。The playback speed refers to the speed at which the preview video is played, for example, it can be played at 1.5 times or 2.0 times the normal playback speed, so as to facilitate the user to preview quickly. Of course, it can also be set to 0.5 times, 0.8 times, etc. according to the special needs of the user, which is not specifically limited in the embodiment of the present application.
步骤S613:切换所述预览视频的播放速度。Step S613: Switch the playback speed of the preview video.
例如,预览视频当前的播放速度为1.0倍速,也就是按照正常的播放速度播放预览视频。在接收到播放速度切换指令后,将播放速度调整为1.5倍速。当然,具体倍速的大小,用户可以根据自己的需求进行设置和选择。For example, the current playback speed of the preview video is 1.0 times the speed, that is, the preview video is played at the normal playback speed. After receiving the playback speed switching instruction, adjust the playback speed to 1.5 times the speed. Of course, users can set and select the specific speed according to their own needs.
步骤S614:判断是否接收到取消预览窗口指令。Step S614: Determine whether an instruction to cancel the preview window is received.
在用户完成视频的预览后,可以通过输入取消预览窗口指令,将预览窗口取消,恢复正常的播放模式。如图7所示,在预览窗口702内设有“取消预览”控件,用户可以通过点击“取消预览”控件实现预览窗口的取消。After the user completes the preview of the video, the preview window can be canceled by inputting an instruction to cancel the preview window, and the normal playback mode can be restored. As shown in FIG. 7 , a “cancel preview” control is provided in the preview window 702 , and the user can cancel the preview window by clicking the “cancel preview” control.
若接收到取消预览窗口指令,则进入步骤S617;否则进入步骤S615。If an instruction to cancel the preview window is received, go to step S617; otherwise, go to step S615.
需要指出的是,在本申请实施例中,预览窗口取消后,并不会对主屏窗口造成影响,主屏窗口仍然从保持预览前的播放状态。例如,预览窗口取消时,主视频播放至第20分13秒,预览视频播放至30分25秒,在预览窗口取消后,主视频仍然从第20分13秒继续播放。也就是说,在本申请实施例中,预览模式结束后,无需用户通过手动调节进度条或滑动屏幕等方式,将主视频退回到预览前的状态。It should be pointed out that, in the embodiment of the present application, after the preview window is canceled, the main screen window will not be affected, and the main screen window will still maintain the playback state before the preview. For example, when the preview window is canceled, the main video is played to 20 minutes and 13 seconds, and the preview video is played to 30 minutes and 25 seconds. After the preview window is canceled, the main video continues to be played from the 20 minutes and 13 seconds. That is to say, in the embodiment of the present application, after the preview mode ends, there is no need for the user to return the main video to the state before the preview by manually adjusting the progress bar or sliding the screen.
相反,在图1a和图1b示出的方案中,在预览模式结束后,主屏窗口默认从当前进度条所在的位置开始播放,若用户想要回到预览前的位置,则需要再次拖动进度条或滑动屏幕进行调整,用户体验较差。On the contrary, in the solutions shown in Figure 1a and Figure 1b, after the preview mode ends, the main screen window starts playing from the position where the current progress bar is by default. If the user wants to return to the position before the preview, he needs to drag the progress again. Bar or swipe the screen to adjust, the user experience is poor.
步骤S615:判断是否接收到开始主屏播放指令。Step S615: Determine whether an instruction to start playing the main screen is received.
若用户完成视频预览后,需要从预览视频的位置切换到主屏窗口播放,可以输入开始主屏播放指令。如图7所示,在预览窗口702内设有“主屏播放”控件,用户可以通过点击“主屏播放”控件实现预览窗口的取消,且将预览视频的播放状态切换至主屏窗口播放。If the user needs to switch from the position of the previewed video to playing in the main screen window after completing the video preview, he or she can enter an instruction to start playing the main screen. As shown in FIG. 7 , the preview window 702 is provided with a “play on home screen” control, the user can cancel the preview window by clicking on the “play on home screen” control, and switch the playback state of the preview video to play on the home screen window.
步骤S616:控制所述主屏窗口内的主视频从第四时间戳位置开始播放,所述第四时间戳为所述预览窗口关闭时所述预览视频的时间戳。Step S616: Control the main video in the main screen window to start playing from a fourth time stamp, where the fourth time stamp is the time stamp of the preview video when the preview window is closed.
例如,接收到开始主屏播放指令时,主视频播放至第20分13秒,预览视频播放至30分25秒,在预览窗口取消后,主视频跳转至第30分25秒开始播放。For example, when receiving an instruction to start playing the main screen, the main video is played to the 20th minute and 13 seconds, and the preview video is played to 30 minutes and 25 seconds. After the preview window is canceled, the main video jumps to the 30th minute and 25 seconds to start playing.
步骤S617:关闭所述预览窗口。Step S617: Close the preview window.
在接收到取消预览窗口指令,或者接收到开始主屏播放指令,均需要关闭预览窗口,仅保留主屏窗口进行主视频的播放。After receiving an instruction to cancel the preview window, or receiving an instruction to start playing the main screen, the preview window needs to be closed, and only the main screen window is retained to play the main video.
步骤S618:控制所述主屏窗口获取用户操作焦点。Step S618: Control the main screen window to obtain the user operation focus.
预览窗口取消后,主屏窗口重新获取用户操作焦点,用户可以在主屏窗口内进行相应的控制指令的输入。After the preview window is canceled, the main screen window regains the user's operation focus, and the user can input corresponding control instructions in the main screen window.
需要指出的是,图6所示的技术方案仅是本申请实施例所列举的一种具体实现方式,并不应当将其作为本申请保护范围的限制。例如,本领域技术人员可以根据实际需要对图6中的时序关系进行调整,先判断“是否接收到快进或快退指令”,再判断“是否接收到预览音频开启或关闭指令”;先判断“是否接收到分辨率切换指令”,再判断“是否接收到播放速度切换指令”等。或者,根据实际需求对上述步骤进行删减,仅实现上述方案中的部分功能。It should be pointed out that the technical solution shown in FIG. 6 is only a specific implementation manner listed in the embodiment of the present application, and should not be regarded as a limitation of the protection scope of the present application. For example, those skilled in the art can adjust the timing relationship in FIG. 6 according to actual needs, first determine "whether a fast-forward or fast-rewind command is received", and then determine "whether a preview audio on or off command is received"; "Whether a resolution switching instruction is received", and then determine "whether a playback speed switching instruction is received", etc. Alternatively, the above steps are deleted according to actual needs, and only some functions in the above solution are implemented.
综上所述,采用本申请实施例所提供的技术方案具有以下优点:To sum up, the technical solutions provided by the embodiments of the present application have the following advantages:
1、通过VR场景中的虚拟空间进行预览窗口的展示,预览窗口不会对主屏窗口造成遮挡,不影响用户在主屏窗口内视频的正常观看;1. The preview window is displayed through the virtual space in the VR scene. The preview window will not block the main screen window and will not affect the normal viewing of the video in the main screen window.
2、由于VR场景中存在较多的虚拟空间,因此预览窗口可以设置的足够大,便于用户对预览视频的观看;2. Since there are many virtual spaces in the VR scene, the preview window can be set to be large enough to facilitate users to watch the preview video;
3、由于主屏窗口和预览窗口是两个独立的窗口,用户在预览窗口内进行快进或快退时,可以随意滑动或拖动进度条进行调整,无需一直保持触发状态,便于精准微调;3. Since the main screen window and the preview window are two independent windows, users can slide or drag the progress bar to adjust at will when fast-forwarding or rewinding in the preview window, without having to keep the trigger state all the time, which is convenient for precise fine-tuning;
4、预览结束后,取消预览窗口,用户可以选择按照主视频的播放时间继续播放,以免用户还要手动调整退回到预览之前观看的时间;另外,用户还可以选择跳转至预览视频的播放时间开始播放;4. After the preview is over, cancel the preview window, and the user can choose to continue playing according to the playback time of the main video, so as not to manually adjust the viewing time before returning to the preview; in addition, the user can also choose to jump to the playback time of the preview video Start playing;
5、用户可以开始预览窗口的音频,同时将主屏窗口静音,使得用户观看预览视频的同时可以听到预览音频。5. The user can start the audio of the preview window and mute the main screen window at the same time, so that the user can hear the preview audio while watching the preview video.
图8为本申请实施例的一种电子设备的软件结构框图。FIG. 8 is a block diagram of a software structure of an electronic device according to an embodiment of the present application.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, and a kernel layer.
应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图8所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。As shown in Figure 8, the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and so on.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图8所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in Figure 8, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。A window manager is used to manage window programs. The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。Content providers are used to store and retrieve data and make these data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications. A display interface can consist of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
电话管理器用于提供电子设备的通信功能。例如通话状态的管理(包括接通,挂断等)。The phone manager is used to provide the communication function of the electronic device. For example, the management of call status (including connecting, hanging up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications on the screen in the form of dialog windows. For example, text information is prompted in the status bar, a prompt sound is issued, the electronic device vibrates, and the indicator light flashes.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in virtual machines. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。A system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
2D图形引擎是2D绘图的绘图引擎。2D graphics engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
所述应用程序框架层中的视频应用可以为VR视频应用,上述实施例涉及的视频预览方案可以基于VR视频应用来实现。The video application in the application framework layer may be a VR video application, and the video preview solution involved in the above embodiments may be implemented based on the VR video application.
但是,VR视频应用的种类繁多,如果每个VR视频应用均自己实现视频预览方案,工作量较大,且无法保证视频预览风格统一,影响用户体验。However, there are many types of VR video applications. If each VR video application implements its own video preview solution, the workload is large, and the uniform video preview style cannot be guaranteed, which affects the user experience.
软件开发工具包(Software Development Kit,SDK)是为特定的软件包、软件框架、硬件平台、操作系统等建立应用软件时的开发工具的集合,它可以简单的为某个程序设计语言提供应用程序接口API的一些文件。Software Development Kit (SDK) is a collection of development tools for building application software for a specific software package, software framework, hardware platform, operating system, etc. It can simply provide application programs for a programming language Some files for the interface API.
在本申请实施例中,可以在VR SDK中集成上述视频预览方案,在VR SDK提供接口,以便VR视频应用接入,由VR SDK和VR视频应用共同完成视频预览方案。以下结合附图进行详细说明。In the embodiment of the present application, the above-mentioned video preview solution may be integrated in the VR SDK, and an interface is provided in the VR SDK for access by VR video applications, and the video preview solution is jointly completed by the VR SDK and the VR video application. The following detailed description is given in conjunction with the accompanying drawings.
图9为本申请实施例提供的另一种基于VR场景的视频预览方法流程示意图,该方法应用于VR设备中的VR SDK和VR视频应用,由VR SDK和VR视频应用共同完成视频预览方案。其主要包括以下步骤。9 is a schematic flowchart of another VR scene-based video preview method provided by an embodiment of the present application. The method is applied to the VR SDK and VR video application in the VR device, and the video preview solution is jointly completed by the VR SDK and the VR video application. It mainly includes the following steps.
步骤S901:VR视频应用向VR SDK发送开启预览窗口指令。Step S901: The VR video application sends an instruction to open the preview window to the VR SDK.
步骤S902:VR SDK在主屏窗口以外的虚拟空间内绘制预览窗口。Step S902: The VR SDK draws a preview window in a virtual space other than the main screen window.
步骤S903:VR视频应用向VR SDK发送所述主视频的预览视频。Step S903: The VR video application sends the preview video of the main video to the VR SDK.
步骤S904:VR SDK在所述预览窗口内播放所述预览视频。Step S904: The VR SDK plays the preview video in the preview window.
在本申请实施例中,通过VR场景中的虚拟空间进行预览窗口的展示,预览窗口不会对主屏窗口造成遮挡,提高用户体验。In the embodiment of the present application, the preview window is displayed through the virtual space in the VR scene, and the preview window will not block the main screen window, thereby improving user experience.
在本申请实施例中,在VR视频应用向VR SDK发送开启预览窗口指令后,由SDK统一绘制预览窗口,并在预览窗口内注入由VR视频应用发送的视频流。也就是说,VR视频应用仅需要接入VR SDK便可实现视频预览,节省VR视频应用开发的工作量,且便于视频预览风格统一,提升用户体验。In the embodiment of the present application, after the VR video application sends an instruction to open the preview window to the VR SDK, the SDK draws the preview window uniformly, and injects the video stream sent by the VR video application into the preview window. That is to say, VR video applications only need to access the VR SDK to realize video preview, which saves the workload of VR video application development, and facilitates the uniformity of video preview styles and improves user experience.
本申请实施例与图4和图6所示实施例的不同之处在于,本申请实施例基于VR SDK和VR视频应用实现上述视频预览方案,其具体过程和原理与上述实施例相同,在此不再赘述。The difference between the embodiment of the present application and the embodiment shown in FIG. 4 and FIG. 6 is that the embodiment of the present application implements the above-mentioned video preview solution based on the VR SDK and VR video application, and the specific process and principle are the same as those of the above-mentioned embodiment. No longer.
图10为本申请实施例提供的另一种基于VR场景的视频预览方法流程示意图,如图10所示,其在图9所示实施例的基础上增加了步骤S1001:VR SDK向VR视频应用发送预览视频请求指令,所述预览视频请求指令用于指示所述VR视频应用发送所述主视频的预览视频。FIG. 10 is a schematic flowchart of another VR scene-based video preview method provided by an embodiment of the present application. As shown in FIG. 10 , on the basis of the embodiment shown in FIG. 9 , step S1001 is added: VR SDK is applied to VR video Send a preview video request instruction, where the preview video request instruction is used to instruct the VR video application to send the preview video of the main video.
在一种可选实施例中,所述预览视频请求指令用于指示所述VR视频应用从第五时间戳开始发送所述主视频的预览视频,所述第五时间戳为所述主视频的当前时间戳。也就是说,预览视频和主视频保持同步播放。In an optional embodiment, the preview video request instruction is used to instruct the VR video application to send the preview video of the main video from a fifth time stamp, where the fifth time stamp is the time stamp of the main video Current timestamp. That is, the preview video and the main video keep playing in sync.
在本申请实施例中,VR视频应用基于VR SDK的请求指令发送预览视频。当然,VR视频应用向VR SDK发送开启预览窗口指令后,也可以直接从当前时间戳开始向VR SDK发送预览视频。In the embodiment of the present application, the VR video application sends the preview video based on the request instruction of the VR SDK. Of course, after the VR video application sends the command to open the preview window to the VR SDK, it can also send the preview video to the VR SDK directly from the current timestamp.
图11为本申请实施例提供的另一种基于VR场景的视频预览方法流程示意图,如图11所示,其在图9所示实施例的基础上,还包括以下步骤。FIG. 11 is a schematic flowchart of another VR scene-based video preview method provided by an embodiment of the present application. As shown in FIG. 11 , on the basis of the embodiment shown in FIG. 9 , the method further includes the following steps.
步骤S1101:VR SDK控制所述预览窗口获取用户操作焦点。Step S1101: The VR SDK controls the preview window to obtain the user operation focus.
步骤S1102:VR SDK响应于用户在所述预览窗口内输入的操作指令,向所述VR视频应用发送与所述操作指令相对应的预览视频请求指令。Step S1102: In response to the operation instruction input by the user in the preview window, the VR SDK sends a preview video request instruction corresponding to the operation instruction to the VR video application.
步骤S1103:VR视频应用向VR SDK发送与所述预览视频请求指令相对应的预览视频。Step S1103: The VR video application sends a preview video corresponding to the preview video request instruction to the VR SDK.
可理解,若预览窗口获取用户操作焦点,则预览窗口内的控件被激活,用户可以在预览窗口内输入相应的控制指令;同样的原理,若主屏窗口获取用户操作焦点,则主屏窗口内的控件被激活,用户可以在主屏窗口内输入相应的控制指令。It can be understood that if the preview window obtains the user's operation focus, the controls in the preview window are activated, and the user can input corresponding control commands in the preview window. is activated, the user can enter the corresponding control commands in the main screen window.
在本申请实施例中,可以基于VR SDK实现预览视频的播放控制。例如,快进、快退、暂停、开启预览窗口的音频、切换预览窗口内预览视频的分辨率、切换预览视频的播放速度等。以下进行详细说明。In the embodiment of the present application, the playback control of the preview video can be realized based on the VR SDK. For example, fast forward, rewind, pause, turn on the audio of the preview window, switch the resolution of the preview video in the preview window, switch the playback speed of the preview video, etc. A detailed description will be given below.
在一种可选实施例中,所述步骤S1102包括:VR SDK响应于用户在所述预览窗口内输入的快进或快退指令,向所述VR视频应用发送第一预览视频请求指令,所述第一预览视频请求指令用于指示所述VR视频应用发送第六时间戳对应的所述预览视频,所述第六时间戳为所述快进或快退指令对应的所述预览视频的时间戳。步骤S1103包括:VR视频应用向VR SDK发送所述第六时间戳对应的所述预览视频。基于此,实现预览视频的快进或快退。In an optional embodiment, the step S1102 includes: the VR SDK sends a first preview video request instruction to the VR video application in response to a fast-forward or fast-rewind instruction input by the user in the preview window, so The first preview video request instruction is used to instruct the VR video application to send the preview video corresponding to a sixth time stamp, where the sixth time stamp is the time of the preview video corresponding to the fast-forward or fast-rewind command stamp. Step S1103 includes: the VR video application sends the preview video corresponding to the sixth timestamp to the VR SDK. Based on this, fast-forward or fast-rewind of the preview video is realized.
在一种可选实施例中,在所述预览窗口内输入的快进或快退指令,包括:触发所述预览窗口,且左右滑动所述预览窗口,和/或拖动所述预览窗口内的进度条。In an optional embodiment, the fast-forward or fast-rewind instruction input in the preview window includes: triggering the preview window, sliding the preview window left and right, and/or dragging the preview window progress bar.
在一种可选实施例中,所述步骤S1102包括:响应于用户在所述预览窗口内输入的结束快进或快退指令,向所述VR视频应用发送第二预览视频请求指令,所述第二预览视频请求指令用于指示所述VR视频应用从第七时间戳开始发送所述预览视频,所述第七时间戳为所述结束快进或快退指令时对应的所述预览视频的时间戳。步骤S1103包括:VR视频应用向VR SDK从第七时间戳开始发送所述预览视频。此时,完成预览视频的快进或快退操作,预览视频从结束快进或快退操作时进度条的位置,开始播放。In an optional embodiment, the step S1102 includes: sending a second preview video request instruction to the VR video application in response to an end fast-forward or fast-rewind instruction input by the user in the preview window, the The second preview video request instruction is used to instruct the VR video application to send the preview video from a seventh time stamp, where the seventh time stamp is the corresponding preview video when the fast-forward or fast-rewind command ends. timestamp. Step S1103 includes: the VR video application sends the preview video to the VR SDK starting from the seventh timestamp. At this point, the fast-forward or fast-rewind operation of the preview video is completed, and the preview video starts playing from the position of the progress bar when the fast-forward or fast-rewind operation ends.
在一种可选实施例中,在所述预览窗口内输入的结束快进或快退指令,包括:停止触发所述预览窗口。In an optional embodiment, the ending fast-forward or fast-rewind instruction input in the preview window includes: stopping triggering of the preview window.
在一种可选实施例中,所述步骤S1102包括:响应于用户在所述预览窗口内输入的分辨率切换指令,向所述VR视频应用发送第三预览视频请求指令,所述第三预览视频请求指令中包含请求切换的目标分辨率,所述第三预览视频请求指令用于指示所述VR视频应用发送与所述目标分辨率相对应的预览视频。步骤S1103包括:VR视频应用向VR SDK发送与所述目标分辨率相对应的预览视频。基于此,完成预览视频分辨率的切换。In an optional embodiment, the step S1102 includes: in response to a resolution switching instruction input by the user in the preview window, sending a third preview video request instruction to the VR video application, the third preview The video request instruction includes a target resolution for requesting switching, and the third preview video request instruction is used to instruct the VR video application to send a preview video corresponding to the target resolution. Step S1103 includes: the VR video application sends a preview video corresponding to the target resolution to the VR SDK. Based on this, the switching of the preview video resolution is completed.
在一种可选实施例中,所述目标分辨率低于所述主屏窗口内主视频的分辨率。In an optional embodiment, the target resolution is lower than the resolution of the main video in the main screen window.
在一种可选实施例中,所述步骤S1102包括:响应于用户在所述预览窗口内输入的播放速度切换指令,向所述VR视频应用发送第四预览视频请求指令,所述第四预览视频请求指令中包含请求切换的目标播放速度,所述第四预览视频请求指令用于指示所述VR视频应用发送与所述目标播放速度相对应的预览视频。步骤S1103包括:VR视频应用向VR SDK发送与所述目标播放速度相对应的预览视频。基于此,完成预览视频播放速度的切换。In an optional embodiment, the step S1102 includes: in response to a playback speed switching instruction input by the user in the preview window, sending a fourth preview video request instruction to the VR video application, the fourth preview The video request instruction includes a target playback speed for requesting switching, and the fourth preview video request instruction is used to instruct the VR video application to send a preview video corresponding to the target playback speed. Step S1103 includes: the VR video application sends a preview video corresponding to the target playback speed to the VR SDK. Based on this, the switching of the playback speed of the preview video is completed.
在一种可选实施例中,所述方法还包括:VR SDK响应于用户输入的预览音频开启指令,开启所述预览视频对应的音频,关闭所述主屏窗口内主视频对应的音频;和/或,VR SDK响应于用户输入的预览音频关闭指令,关闭所述预览视频对应的音频, 开启所述主屏窗口内主视频对应的音频。基于此,打开或关闭预览视频的音频。In an optional embodiment, the method further includes: the VR SDK, in response to a preview audio start instruction input by the user, turns on the audio corresponding to the preview video, and turns off the audio corresponding to the main video in the main screen window; and/ Or, the VR SDK closes the audio corresponding to the preview video in response to the preview audio closing instruction input by the user, and opens the audio corresponding to the main video in the main screen window. Based on this, turn the audio of the preview video on or off.
在一种可选实施例中,所述方法还包括:VR SDK响应于用户输入的开始主屏播放指令,关闭所述预览窗口;控制所述主屏窗口内的主视频从第八时间戳开始播放,所述第八时间戳为所述预览窗口关闭时所述预览视频的时间戳;控制所述主屏窗口获取用户操作焦点。基于此,完成视频预览,且将主屏窗口内主视频跳转至取消预览时预览视频的位置开始播放。In an optional embodiment, the method further includes: the VR SDK closes the preview window in response to an instruction to start playing the main screen input by the user; controlling the main video in the main screen window to start playing from the eighth timestamp, The eighth timestamp is the timestamp of the preview video when the preview window is closed; the home screen window is controlled to obtain the user operation focus. Based on this, the video preview is completed, and the main video in the main screen window is jumped to the position of the preview video when the preview was canceled to start playing.
在一种可选实施例中,所述方法还包括:响应于用户输入的取消预览窗口指令,关闭所述预览窗口;控制所述主屏窗口获取用户操作焦点。主屏窗口仍然保持原来的状态继续播放。In an optional embodiment, the method further includes: closing the preview window in response to an instruction of canceling the preview window input by the user; and controlling the home screen window to obtain the user operation focus. The main screen window remains in its original state and continues to play.
在一种可选实施例中,所述预览窗口与所述主屏窗口在所述虚拟空间内平行设置。In an optional embodiment, the preview window and the main screen window are arranged in parallel in the virtual space.
综上所述,采用本申请实施例所提供的技术方案具有以下优点:To sum up, the technical solutions provided by the embodiments of the present application have the following advantages:
1、通过VR场景中的虚拟空间进行预览窗口的展示,预览窗口不会对主屏窗口造成遮挡,不影响用户在主屏窗口内视频的正常观看;1. The preview window is displayed through the virtual space in the VR scene. The preview window will not block the main screen window and will not affect the normal viewing of the video in the main screen window.
2、由于VR场景中存在较多的虚拟空间,因此预览窗口可以设置的足够大,便于用户对预览视频的观看;2. Since there are many virtual spaces in the VR scene, the preview window can be set to be large enough to facilitate users to watch the preview video;
3、由于主屏窗口和预览窗口是两个独立的窗口,用户在预览窗口内进行快进或快退时,可以随意滑动或拖动进度条进行调整,无需一直保持触发状态,便于精准微调;3. Since the main screen window and the preview window are two independent windows, users can slide or drag the progress bar to adjust at will when fast-forwarding or rewinding in the preview window, without having to keep the trigger state all the time, which is convenient for precise fine-tuning;
4、预览结束后,取消预览窗口,用户可以选择按照主视频的播放时间继续播放,以免用户还要手动调整退回到预览之前观看的时间;另外,用户还可以选择跳转至预览视频的播放时间开始播放;4. After the preview is over, cancel the preview window, and the user can choose to continue playing according to the playback time of the main video, so as not to manually adjust the viewing time before returning to the preview; in addition, the user can also choose to jump to the playback time of the preview video Start playing;
5、用户可以开始预览窗口的音频,同时将主屏窗口静音,使得用户观看预览视频的同时可以听到预览音频。5. The user can start the audio of the preview window and mute the main screen window at the same time, so that the user can hear the preview audio while watching the preview video.
与本申请实施例提供的视频预览方法相对应,本申请还提供了一种电子设备。Corresponding to the video preview method provided by the embodiment of the present application, the present application further provides an electronic device.
参见图12,为本申请实施例提供的一种电子设备结构示意图,所述电子设备为第一电子设备1200,所述第一电子设备1200可以包括:处理器1201、存储器1202及通信单元1203。这些组件通过一条或多条总线进行通信,本领域技术人员可以理解,图中示出的服务器的结构并不构成对本申请的限定,它既可以是总线形结构,也可以是星型结构,还可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Referring to FIG. 12 , which is a schematic structural diagram of an electronic device provided by an embodiment of the present application, the electronic device is a first electronic device 1200 , and the first electronic device 1200 may include: a processor 1201 , a memory 1202 , and a communication unit 1203 . These components communicate through one or more buses. Those skilled in the art can understand that the structure of the server shown in the figure does not constitute a limitation on this application. It can be either a bus-shaped structure, a star-shaped structure, or a More or fewer components than shown may be included, or some components may be combined, or a different arrangement of components.
其中,所述通信单元1203,用于建立通信信道,从而使所述存储设备可以与其它设备进行通信。接收其他设备发是的用户数据或者向其他设备发送用户数据。The communication unit 1203 is used to establish a communication channel, so that the storage device can communicate with other devices. Receive user data sent by other devices or send user data to other devices.
所述处理器1201,为存储设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器1202内的软件程序和/或模块,以及调用存储在存储器内的数据,以执行电子设备的各种功能和/或处理数据。所述处理器可以由集成电路(Integrated Circuit,简称IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器1201可以仅包括中央处理器(Central Processing Unit,简称CPU)。在本申请实施方式中,CPU可以是单运算核心,也可以包括多运算核心。The processor 1201, which is the control center of the storage device, uses various interfaces and lines to connect various parts of the entire electronic device, runs or executes the software programs and/or modules stored in the memory 1202, and invokes the software programs and/or modules stored in the memory. data to perform various functions of the electronic device and/or process data. The processor may be composed of an integrated circuit (Integrated Circuit, IC for short), for example, may be composed of a single packaged IC, or may be composed of a plurality of packaged ICs connected with the same function or different functions. For example, the processor 1201 may only include a central processing unit (Central Processing Unit, CPU for short). In the embodiments of the present application, the CPU may be a single computing core, or may include multiple computing cores.
所述存储器1202,用于存储处理器1201的执行指令,存储器1202可以由任何类 型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 1202 is used to store the execution instructions of the processor 1201. The memory 1202 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), which can be electrically Erasable Programmable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic Disk or Optical Disk.
当存储器1202中的执行指令由处理器1201执行时,使得第一电子设备1200能够执行以下步骤:响应于用户输入的开启预览窗口指令,在主屏窗口以外的虚拟空间内绘制预览窗口,其中,所述主屏窗口用于播放主视频;在所述预览窗口内播放所述主视频的预览视频。When the execution instructions in the memory 1202 are executed by the processor 1201, the first electronic device 1200 is enabled to perform the following steps: in response to an instruction to open a preview window input by a user, draw a preview window in a virtual space other than the main screen window, wherein all The main screen window is used to play the main video; the preview video of the main video is played in the preview window.
与本申请申请实施例提供的视频预览方法相对应,本申请还提供了另一种电子设备。Corresponding to the video preview method provided by the embodiments of the present application, the present application further provides another electronic device.
参见图13,为本申请实施例提供的另一种电子设备结构示意图,所述电子设备为第二电子设备1300,所述第二电子设备1300可以包括:处理器1301、存储器1302及通信单元1303。这些组件通过一条或多条总线进行通信,本领域技术人员可以理解,图中示出的服务器的结构并不构成对本申请的限定,它既可以是总线形结构,也可以是星型结构,还可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Referring to FIG. 13 , which is a schematic structural diagram of another electronic device provided by an embodiment of the present application, the electronic device is a second electronic device 1300 , and the second electronic device 1300 may include: a processor 1301 , a memory 1302 , and a communication unit 1303 . These components communicate through one or more buses. Those skilled in the art can understand that the structure of the server shown in the figure does not constitute a limitation on this application. It can be either a bus-shaped structure, a star-shaped structure, or a More or fewer components than shown may be included, or some components may be combined, or a different arrangement of components.
其中,所述通信单元1303,用于建立通信信道,从而使所述存储设备可以与其它设备进行通信。接收其他设备发是的用户数据或者向其他设备发送用户数据。The communication unit 1303 is used to establish a communication channel, so that the storage device can communicate with other devices. Receive user data sent by other devices or send user data to other devices.
所述处理器1301,为存储设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器1302内的软件程序和/或模块,以及调用存储在存储器内的数据,以执行电子设备的各种功能和/或处理数据。所述处理器可以由集成电路(Integrated Circuit,简称IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器1301可以仅包括中央处理器(Central Processing Unit,简称CPU)。在本申请实施方式中,CPU可以是单运算核心,也可以包括多运算核心。The processor 1301, which is the control center of the storage device, uses various interfaces and lines to connect various parts of the entire electronic device, runs or executes the software programs and/or modules stored in the memory 1302, and invokes the software programs and/or modules stored in the memory. data to perform various functions of the electronic device and/or process data. The processor may be composed of an integrated circuit (Integrated Circuit, IC for short), for example, may be composed of a single packaged IC, or may be composed of a plurality of packaged ICs connected with the same function or different functions. For example, the processor 1301 may only include a central processing unit (Central Processing Unit, CPU for short). In the embodiments of the present application, the CPU may be a single computing core, or may include multiple computing cores.
所述存储器1302,用于存储处理器1301的执行指令,存储器1302可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 1302 is used to store the execution instructions of the processor 1301. The memory 1302 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), which can be electrically Erasable Programmable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic Disk or Optical Disk.
当存储器1302中的执行指令由处理器1301执行时,使得第二电子设备1300能够执行以下步骤:接收VR视频应用发送的开启预览窗口指令,在主屏窗口以外的虚拟空间内绘制预览窗口,其中,所述主屏窗口用于播放主视频;接收所述VR视频应用发送的所述主视频的预览视频,在所述预览窗口内播放所述VR视频应用发送的所述主视频的预览视频。When the execution instructions in the memory 1302 are executed by the processor 1301, the second electronic device 1300 is enabled to perform the following steps: receiving an instruction to open a preview window sent by the VR video application, and drawing a preview window in a virtual space other than the main screen window, wherein, The main screen window is used to play the main video; the preview video of the main video sent by the VR video application is received, and the preview video of the main video sent by the VR video application is played in the preview window.
具体实现中,本申请还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时可包括本申请提供的各实施例中的部分或全部步骤。所述的存储介质可为磁碟、光盘、只读存储记忆体(英文:read-only memory,简称:ROM)或随机存储记忆体(英文:random access memory,简称:RAM)等。In a specific implementation, the present application further provides a computer storage medium, wherein the computer storage medium can store a program, and when the program is executed, it can include some or all of the steps in the various embodiments provided in the present application. The storage medium may be a magnetic disk, an optical disk, a read-only memory (English: read-only memory, abbreviated as: ROM) or a random access memory (English: random access memory, abbreviated as: RAM) and the like.
本领域的技术人员可以清楚地了解到本申请实施例中的技术可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本申请实施例中的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例或者实施例的某些部分所述的方法。Those skilled in the art can clearly understand that the technology in the embodiments of the present application can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solutions in the embodiments of the present application can be embodied in the form of software products in essence or in the parts that make contributions to the prior art, and the computer software products can be stored in a storage medium, such as ROM/RAM , magnetic disk, optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of the present application.
本说明书中各个实施例之间相同相似的部分互相参见即可。尤其,对于装置实施例和终端实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例中的说明即可。It is sufficient to refer to each other for the same and similar parts among the various embodiments in this specification. In particular, for the apparatus embodiment and the terminal embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and for the relevant part, refer to the description in the method embodiment.
以上所述的本申请实施方式并不构成对本申请保护范围的限定。The above-mentioned embodiments of the present application do not constitute a limitation on the protection scope of the present application.

Claims (35)

  1. 一种基于虚拟现实VR场景的视频预览方法,其特征在于,包括:A video preview method based on a virtual reality VR scene, characterized in that it includes:
    响应于用户输入的开启预览窗口指令,在主屏窗口以外的虚拟空间内绘制预览窗口,其中,所述主屏窗口用于播放主视频;drawing a preview window in a virtual space other than the main screen window in response to an instruction to open the preview window input by the user, wherein the main screen window is used to play the main video;
    在所述预览窗口内播放所述主视频的预览视频。A preview video of the main video is played in the preview window.
  2. 根据权利要求1所述的方法,其特征在于,在所述预览窗口内播放所述主视频的预览视频,包括:The method according to claim 1, wherein playing the preview video of the main video in the preview window comprises:
    在所述预览窗口内、从第一时间戳位置开始播放所述预览视频,所述第一时间戳为所述主视频的当前时间戳。In the preview window, the preview video is played from a position of a first time stamp, where the first time stamp is the current time stamp of the main video.
  3. 根据权利要求1所述的方法,其特征在于,还包括:The method of claim 1, further comprising:
    控制所述预览窗口获取用户操作焦点,使得所述预览窗口可以响应用户输入的操作指令。The preview window is controlled to obtain the user operation focus, so that the preview window can respond to an operation instruction input by the user.
  4. 根据权利要求3所述的方法,其特征在于,在所述预览窗口内播放所述主视频的预览视频,包括:The method according to claim 3, wherein playing the preview video of the main video in the preview window comprises:
    响应于用户在所述预览窗口内输入的操作指令,在所述预览窗口内播放与所述操作指令相对应的预览视频。In response to an operation instruction input by the user in the preview window, a preview video corresponding to the operation instruction is played in the preview window.
  5. 根据权利要求4所述的方法,其特征在于,响应于用户在所述预览窗口内输入的操作指令,在所述预览窗口内播放与所述操作指令相对应的预览视频,包括:The method according to claim 4, wherein, in response to an operation instruction input by a user in the preview window, playing a preview video corresponding to the operation instruction in the preview window comprises:
    响应于用户在所述预览窗口内输入的快进或快退指令,在所述预览窗口内、从第二时间戳位置播放所述预览视频,所述第二时间戳为所述快进或快退指令对应的所述预览视频的时间戳。In response to a fast-forward or fast-rewind instruction input by the user in the preview window, play the preview video in the preview window from a second time stamp, where the second time stamp is the fast-forward or fast-forward Timestamp of the preview video corresponding to the retreat instruction.
  6. 根据权利要求5所述的方法,其特征在于,在所述预览窗口内输入的快进或快退指令,包括:The method according to claim 5, wherein the fast-forward or fast-rewind command input in the preview window comprises:
    触发所述预览窗口,且左右滑动所述预览窗口,和/或拖动所述预览窗口内的进度条。The preview window is triggered, and the preview window is slid left and right, and/or the progress bar in the preview window is dragged.
  7. 根据权利要求5所述的方法,其特征在于,响应于用户在所述预览窗口内输入的操作指令,在所述预览窗口内播放与所述操作指令相对应的预览视频,包括:The method according to claim 5, wherein, in response to an operation instruction input by a user in the preview window, playing a preview video corresponding to the operation instruction in the preview window comprises:
    响应于用户在所述预览窗口内输入的结束快进或快退指令,在所述预览窗口内、从第三时间戳位置开始播放所述预览视频,所述第三时间戳为所述结束快进或快退指令时所述预览视频的时间戳。In response to an end fast-forward or fast-rewind instruction input by the user in the preview window, the preview video is played in the preview window from a position of a third time stamp, where the third time stamp is the end fast The timestamp of the preview video when the forward or rewind command is performed.
  8. 根据权利要求7所述的方法,其特征在于,在所述预览窗口内输入的结束快进或快退指令,包括:The method according to claim 7, wherein the ending fast-forward or fast-rewind instruction input in the preview window comprises:
    停止触发所述预览窗口。Stop triggering the preview window.
  9. 根据权利要求4所述的方法,其特征在于,响应于用户在所述预览窗口内输入的操作指令,在所述预览窗口内播放与所述操作指令相对应的预览视频,包括:The method according to claim 4, wherein, in response to an operation instruction input by a user in the preview window, playing a preview video corresponding to the operation instruction in the preview window comprises:
    响应于用户在所述预览窗口内输入的分辨率切换指令,切换所述预览视频的分辨率。In response to a resolution switching instruction input by the user in the preview window, the resolution of the preview video is switched.
  10. 根据权利要求9所述的方法,其特征在于,所述预览视频的分辨率低于所述主屏窗口内主视频的分辨率。The method according to claim 9, wherein the resolution of the preview video is lower than the resolution of the main video in the main screen window.
  11. 根据权利要求4所述的方法,其特征在于,响应于用户在所述预览窗口内输入的操作指令,在所述预览窗口内播放与所述操作指令相对应的预览视频,包括:The method according to claim 4, wherein, in response to an operation instruction input by a user in the preview window, playing a preview video corresponding to the operation instruction in the preview window comprises:
    响应于用户在所述预览窗口内输入的播放速度切换指令,切换所述预览视频的播放速度。In response to a playback speed switching instruction input by the user in the preview window, the playback speed of the preview video is switched.
  12. 根据权利要求1所述的方法,其特征在于,还包括:The method of claim 1, further comprising:
    响应于用户输入的预览音频开启指令,开启所述预览视频对应的音频,关闭所述主屏窗口内主视频对应的音频;In response to the preview audio opening instruction input by the user, the audio corresponding to the preview video is turned on, and the audio corresponding to the main video in the main screen window is turned off;
    和/或,and / or,
    响应于用户输入的预览音频关闭指令,关闭所述预览视频对应的音频,开启所述主屏窗口内主视频对应的音频。In response to the preview audio closing instruction input by the user, the audio corresponding to the preview video is turned off, and the audio corresponding to the main video in the main screen window is turned on.
  13. 根据权利要求1所述的方法,其特征在于,还包括:The method of claim 1, further comprising:
    响应于用户输入的开始主屏播放指令,关闭所述预览窗口;closing the preview window in response to the start home screen playback instruction input by the user;
    关闭所述预览窗口,控制所述主屏窗口内的主视频从第四时间戳位置开始播放,所述第四时间戳为所述预览窗口关闭时所述预览视频的时间戳;closing the preview window, and controlling the main video in the main screen window to start playing from a fourth time stamp, where the fourth time stamp is the time stamp of the preview video when the preview window is closed;
    控制所述主屏窗口获取用户操作焦点。The main screen window is controlled to obtain the user operation focus.
  14. 根据权利要求1所述的方法,其特征在于,还包括:The method of claim 1, further comprising:
    响应于用户输入的取消预览窗口指令,关闭所述预览窗口;closing the preview window in response to an instruction to cancel the preview window input by the user;
    控制所述主屏窗口获取用户操作焦点。The main screen window is controlled to obtain the user operation focus.
  15. 根据权利要求1-14任一项所述的方法,其特征在于,所述预览窗口与所述主屏窗口在所述虚拟空间内平行设置。The method according to any one of claims 1-14, wherein the preview window and the main screen window are arranged in parallel in the virtual space.
  16. 一种基于虚拟现实VR场景的视频预览方法,其特征在于,包括:A video preview method based on a virtual reality VR scene, characterized in that it includes:
    接收VR视频应用发送的开启预览窗口指令,在主屏窗口以外的虚拟空间内绘制预览窗口,其中,所述主屏窗口用于播放主视频;receiving an instruction to open a preview window sent by the VR video application, and drawing a preview window in a virtual space other than the main screen window, wherein the main screen window is used to play the main video;
    接收所述VR视频应用发送的所述主视频的预览视频,在所述预览窗口内播放所述VR视频应用发送的所述主视频的预览视频。Receive the preview video of the main video sent by the VR video application, and play the preview video of the main video sent by the VR video application in the preview window.
  17. 根据权利要求16所述的方法,其特征在于,在接收所述VR视频应用发送的所述主视频的预览视频之前,还包括:The method according to claim 16, wherein before receiving the preview video of the main video sent by the VR video application, the method further comprises:
    向所述VR视频应用发送预览视频请求指令,所述预览视频请求指令用于指示所述VR视频应用发送所述主视频的预览视频。Send a preview video request instruction to the VR video application, where the preview video request instruction is used to instruct the VR video application to send the preview video of the main video.
  18. 根据权利要求17所述的方法,其特征在于,所述预览视频请求指令用于指示所述VR视频应用发送所述主视频的预览视频,具体为:The method according to claim 17, wherein the preview video request instruction is used to instruct the VR video application to send the preview video of the main video, specifically:
    所述预览视频请求指令用于指示所述VR视频应用从第五时间戳开始发送所述主视频的预览视频,所述第五时间戳为所述主视频的当前时间戳。The preview video request instruction is used to instruct the VR video application to send the preview video of the main video from a fifth time stamp, where the fifth time stamp is the current time stamp of the main video.
  19. 根据权利要求17所述的方法,其特征在于,所述方法还包括:The method of claim 17, wherein the method further comprises:
    控制所述预览窗口获取用户操作焦点,使得所述预览窗口可以响应用户输入的操作指令。The preview window is controlled to obtain the user operation focus, so that the preview window can respond to an operation instruction input by the user.
  20. 根据权利要求19所述的方法,其特征在于,向所述VR视频应用发送预览视频请求指令,包括:The method according to claim 19, wherein sending a preview video request instruction to the VR video application comprises:
    响应于用户在所述预览窗口内输入的操作指令,向所述VR视频应用发送与所述操作指令相对应的预览视频请求指令。In response to an operation instruction input by the user in the preview window, a preview video request instruction corresponding to the operation instruction is sent to the VR video application.
  21. 根据权利要求20所述的方法,其特征在于,所述响应于用户在所述预览窗口 内输入的操作指令,向所述VR视频应用发送与所述操作指令相对应的预览视频请求指令,包括:The method according to claim 20, wherein, in response to an operation instruction input by a user in the preview window, sending a preview video request instruction corresponding to the operation instruction to the VR video application comprises: :
    响应于用户在所述预览窗口内输入的快进或快退指令,向所述VR视频应用发送第一预览视频请求指令,所述第一预览视频请求指令用于指示所述VR视频应用发送第六时间戳对应的所述预览视频,所述第六时间戳为所述快进或快退指令对应的所述预览视频的时间戳。In response to the fast-forward or fast-rewind instruction input by the user in the preview window, a first preview video request instruction is sent to the VR video application, and the first preview video request instruction is used to instruct the VR video application to send the first preview video request instruction. The preview video corresponding to the six time stamps, where the sixth time stamp is the time stamp of the preview video corresponding to the fast-forward or fast-rewind instruction.
  22. 根据权利要求21所述的方法,其特征在于,在所述预览窗口内输入的快进或快退指令,包括:The method according to claim 21, wherein the fast-forward or fast-rewind command input in the preview window comprises:
    触发所述预览窗口,且左右滑动所述预览窗口,和/或拖动所述预览窗口内的进度条。The preview window is triggered, and the preview window is slid left and right, and/or the progress bar in the preview window is dragged.
  23. 根据权利要求22所述的方法,其特征在于,所述响应于用户在所述预览窗口内输入的操作指令,向所述VR视频应用发送与所述操作指令相对应的预览视频请求指令,包括:The method according to claim 22, wherein, in response to an operation instruction input by a user in the preview window, sending a preview video request instruction corresponding to the operation instruction to the VR video application comprises: :
    响应于用户在所述预览窗口内输入的结束快进或快退指令,向所述VR视频应用发送第二预览视频请求指令,所述第二预览视频请求指令用于指示所述VR视频应用从第七时间戳开始发送所述预览视频,所述第七时间戳为所述结束快进或快退指令时对应的所述预览视频的时间戳。In response to the end fast-forward or fast-rewind instruction input by the user in the preview window, a second preview video request instruction is sent to the VR video application, where the second preview video request instruction is used to instruct the VR video application to start from The seventh time stamp starts to send the preview video, and the seventh time stamp is the time stamp of the preview video corresponding to the end of the fast-forward or fast-rewind command.
  24. 根据权利要求23所述的方法,其特征在于,在所述预览窗口内输入的结束快进或快退指令,包括:The method according to claim 23, wherein the ending fast-forward or fast-rewind command input in the preview window comprises:
    停止触发所述预览窗口。Stop triggering the preview window.
  25. 根据权利要求20所述的方法,其特征在于,响应于用户在所述预览窗口内输入的操作指令,向所述VR视频应用发送与所述操作指令相对应的预览视频请求指令,包括:The method according to claim 20, wherein, in response to an operation instruction input by a user in the preview window, sending a preview video request instruction corresponding to the operation instruction to the VR video application comprises:
    响应于用户在所述预览窗口内输入的分辨率切换指令,向所述VR视频应用发送第三预览视频请求指令,所述第三预览视频请求指令中包含请求切换的目标分辨率,所述第三预览视频请求指令用于指示所述VR视频应用发送与所述目标分辨率相对应的预览视频。In response to the resolution switching instruction input by the user in the preview window, a third preview video request instruction is sent to the VR video application, where the third preview video request instruction includes the target resolution requested for switching, and the third preview video request instruction is The third preview video request instruction is used to instruct the VR video application to send a preview video corresponding to the target resolution.
  26. 根据权利要求25所述的方法,其特征在于,所述目标分辨率低于所述主屏窗口内主视频的分辨率。The method according to claim 25, wherein the target resolution is lower than the resolution of the main video in the main screen window.
  27. 根据权利要求20所述的方法,其特征在于,响应于用户在所述预览窗口内输入的操作指令,向所述VR视频应用发送与所述操作指令相对应的预览视频请求指令,包括:The method according to claim 20, wherein, in response to an operation instruction input by a user in the preview window, sending a preview video request instruction corresponding to the operation instruction to the VR video application comprises:
    响应于用户在所述预览窗口内输入的播放速度切换指令,向所述VR视频应用发送第四预览视频请求指令,所述第四预览视频请求指令中包含请求切换的目标播放速度,所述第四预览视频请求指令用于指示所述VR视频应用发送与所述目标播放速度相对应的预览视频。In response to the playback speed switching instruction input by the user in the preview window, a fourth preview video request instruction is sent to the VR video application, where the fourth preview video request instruction includes the target playback speed requested for switching, and the first preview video request instruction is The fourth preview video request instruction is used to instruct the VR video application to send a preview video corresponding to the target playback speed.
  28. 根据权利要求16所述的方法,其特征在于,还包括:The method of claim 16, further comprising:
    响应于用户输入的预览音频开启指令,开启所述预览视频对应的音频,关闭所述主屏窗口内主视频对应的音频;In response to the preview audio opening instruction input by the user, the audio corresponding to the preview video is turned on, and the audio corresponding to the main video in the main screen window is turned off;
    和/或,and / or,
    响应于用户输入的预览音频关闭指令,关闭所述预览视频对应的音频,开启所述主屏窗口内主视频对应的音频。In response to the preview audio closing instruction input by the user, the audio corresponding to the preview video is turned off, and the audio corresponding to the main video in the main screen window is turned on.
  29. 根据权利要求16所述的方法,其特征在于,还包括:The method of claim 16, further comprising:
    响应于用户输入的开始主屏播放指令,关闭所述预览窗口;closing the preview window in response to the start home screen playback instruction input by the user;
    控制所述主屏窗口内的主视频从第八时间戳开始播放,所述第八时间戳为所述预览窗口关闭时所述预览视频的时间戳;controlling the main video in the main screen window to start playing from an eighth timestamp, where the eighth timestamp is the timestamp of the preview video when the preview window is closed;
    控制所述主屏窗口获取用户操作焦点。The main screen window is controlled to obtain the user operation focus.
  30. 根据权利要求16所述的方法,其特征在于,还包括:The method of claim 16, further comprising:
    响应于用户输入的取消预览窗口指令,关闭所述预览窗口;closing the preview window in response to an instruction to cancel the preview window input by the user;
    控制所述主屏窗口获取用户操作焦点。The main screen window is controlled to obtain the user operation focus.
  31. 根据权利要求16-30任一项所述的方法,其特征在于,所述预览窗口与所述主屏窗口在所述虚拟空间内平行设置。The method according to any one of claims 16-30, wherein the preview window and the main screen window are arranged in parallel in the virtual space.
  32. 一种电子设备,其特征在于,所述电子设备包括:An electronic device, characterized in that the electronic device comprises:
    一个或多个处理器;one or more processors;
    存储器;memory;
    以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述电子设备执行时,使得所述电子设备执行权利要求1至15中任意一项所述的视频预览方法。and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions that, when executed by the electronic device, cause all The electronic device executes the video preview method according to any one of claims 1 to 15.
  33. 一种电子设备,其特征在于,所述电子设备包括:An electronic device, characterized in that the electronic device comprises:
    一个或多个处理器;one or more processors;
    存储器;memory;
    以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述电子设备执行时,使得所述电子设备执行权利要求16至31中任意一项所述的视频预览方法。and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions that, when executed by the electronic device, cause all The electronic device executes the video preview method described in any one of claims 16 to 31.
  34. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括存储的程序,其中,在所述程序运行时控制所述计算机可读存储介质所在设备执行权利要求1至15中任意一项所述的视频预览方法。A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein, when the program is run, a device where the computer-readable storage medium is located is controlled to execute any one of claims 1 to 15 A video preview method as described.
  35. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括存储的程序,其中,在所述程序运行时控制所述计算机可读存储介质所在设备执行权利要求16至31中任意一项所述的视频预览方法。A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein when the program is run, a device where the computer-readable storage medium is located is controlled to execute any one of claims 16 to 31 A video preview method as described.
PCT/CN2021/117157 2020-09-25 2021-09-08 Vr scene-based video previewing method, electronic device, and storage medium WO2022062899A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011024993.8 2020-09-25
CN202011024993.8A CN114257852A (en) 2020-09-25 2020-09-25 Video preview method based on VR scene, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2022062899A1 true WO2022062899A1 (en) 2022-03-31

Family

ID=80789182

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/117157 WO2022062899A1 (en) 2020-09-25 2021-09-08 Vr scene-based video previewing method, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN114257852A (en)
WO (1) WO2022062899A1 (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103325396A (en) * 2012-03-23 2013-09-25 深圳市快播科技有限公司 Playblast method and system used for player
US20170263033A1 (en) * 2016-03-10 2017-09-14 FlyInside, Inc. Contextual Virtual Reality Interaction
CN107438813A (en) * 2015-05-27 2017-12-05 谷歌公司 Including the leader's method, apparatus investigated for virtual reality and the system for participating in method, apparatus
CN108235138A (en) * 2016-12-15 2018-06-29 宏达国际电子股份有限公司 Method, processing unit and its computer system of preview video
CN108924538A (en) * 2018-05-30 2018-11-30 太若科技(北京)有限公司 The screen expanding method of AR equipment
CN109257611A (en) * 2017-07-12 2019-01-22 阿里巴巴集团控股有限公司 A kind of video broadcasting method, device, terminal device and server
US20190129598A1 (en) * 2016-04-29 2019-05-02 Nokia Technologies Oy Method, apparatus or computer program for user control of access to displayed content
WO2019183997A1 (en) * 2018-03-28 2019-10-03 华为技术有限公司 Video preview method and electronic device
CN110507992A (en) * 2019-08-28 2019-11-29 腾讯科技(深圳)有限公司 Technical support approach, device, equipment and storage medium in a kind of virtual scene

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092467B (en) * 2013-01-29 2016-08-03 华为终端有限公司 A kind of method and device of video preview
US11032535B2 (en) * 2016-09-19 2021-06-08 Verizon Patent And Licensing Inc. Generating a three-dimensional preview of a three-dimensional video
CN110114746A (en) * 2017-01-04 2019-08-09 武汉六为科技有限公司 The method and virtual reality device of display virtual real picture
CN109561337A (en) * 2018-11-19 2019-04-02 青岛海信传媒网络技术有限公司 The playing method and device of preview video
CN109600659B (en) * 2018-12-17 2021-08-31 北京小米移动软件有限公司 Operation method, device and equipment for playing video and storage medium
CN110347305A (en) * 2019-05-30 2019-10-18 华为技术有限公司 A kind of VR multi-display method and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103325396A (en) * 2012-03-23 2013-09-25 深圳市快播科技有限公司 Playblast method and system used for player
CN107438813A (en) * 2015-05-27 2017-12-05 谷歌公司 Including the leader's method, apparatus investigated for virtual reality and the system for participating in method, apparatus
US20170263033A1 (en) * 2016-03-10 2017-09-14 FlyInside, Inc. Contextual Virtual Reality Interaction
US20190129598A1 (en) * 2016-04-29 2019-05-02 Nokia Technologies Oy Method, apparatus or computer program for user control of access to displayed content
CN108235138A (en) * 2016-12-15 2018-06-29 宏达国际电子股份有限公司 Method, processing unit and its computer system of preview video
CN109257611A (en) * 2017-07-12 2019-01-22 阿里巴巴集团控股有限公司 A kind of video broadcasting method, device, terminal device and server
WO2019183997A1 (en) * 2018-03-28 2019-10-03 华为技术有限公司 Video preview method and electronic device
CN108924538A (en) * 2018-05-30 2018-11-30 太若科技(北京)有限公司 The screen expanding method of AR equipment
CN110507992A (en) * 2019-08-28 2019-11-29 腾讯科技(深圳)有限公司 Technical support approach, device, equipment and storage medium in a kind of virtual scene

Also Published As

Publication number Publication date
CN114257852A (en) 2022-03-29

Similar Documents

Publication Publication Date Title
KR102350329B1 (en) Real-time sharing during a phone call
JP7053869B2 (en) Video generation methods, devices, electronics and computer readable storage media
JP7157177B2 (en) Video Acquisition Method, Apparatus, Terminal and Medium
WO2020029526A1 (en) Method for adding special effect to video, device, terminal apparatus, and storage medium
JP7195426B2 (en) Display page interaction control method and apparatus
CN111651116A (en) Split screen interaction method, electronic equipment and computer storage medium
TW202007142A (en) Video file generation method, device, and storage medium
TW201218060A (en) Data processing apparatus and method
JP6995425B2 (en) Virtual scene display methods, devices, and computer programs
KR102162714B1 (en) Display control method, terminal and recording medium recording programs
CN112653920B (en) Video processing method, device, equipment and storage medium
KR101850302B1 (en) User terminal device and method for controlling a renderer thereof
EP4171006A1 (en) Previewing method and apparatus for effect application, and device and storage medium
KR101700786B1 (en) User interface method for video block combination of several video files
WO2022062899A1 (en) Vr scene-based video previewing method, electronic device, and storage medium
CN109542430B (en) Method and device for realizing interface interaction effect and electronic equipment
WO2022194070A1 (en) Video processing method for application, and electronic device
CN115460448A (en) Media resource editing method and device, electronic equipment and storage medium
CA3224322A1 (en) Video playing method and apparatus, and storage medium
CN111324255B (en) Application processing method based on double-screen terminal and communication terminal
KR101532766B1 (en) Contents reproducing system based on a dynamic layer
WO2023165363A1 (en) Short video playback method and apparatus, and electronic device
JP2017192072A (en) Information processing method, program, and terminal
JP2017192074A (en) Information processing method, terminal, and program
JP2017192071A (en) Information processing method, information processing device, and program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21871271

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21871271

Country of ref document: EP

Kind code of ref document: A1