WO2022062899A1 - 基于vr场景的视频预览方法、电子设备和存储介质 - Google Patents
基于vr场景的视频预览方法、电子设备和存储介质 Download PDFInfo
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-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/47217—End-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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/422—Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/422—Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
- H04N21/42204—User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
- H04N21/8547—Content 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.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Databases & Information Systems (AREA)
- Computer Security & Cryptography (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本申请实施例提供的一种基于VR场景的视频预览方法、电子设备和存储介质,所述方法包括响应于用户输入的开启预览窗口指令,在主屏窗口以外的虚拟空间内绘制预览窗口,其中,所述主屏窗口用于播放主视频;在所述预览窗口内播放所述主视频的预览视频。在本申请实施例中,通过VR场景中的虚拟空间进行预览窗口的展示,预览窗口不会对主屏窗口造成遮挡,不影响用户在主屏窗口内视频的正常观看。
Description
本申请要求于2020年9月25日提交中国专利局、申请号为202011024993.8、申请名称为“基于VR场景的视频预览方法、电子设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及虚拟现实技术领域,具体地涉及一种基于VR场景的视频预览方法、电子设备和存储介质。
为了提高用户体验,目前视频类应用通常设置快进或快退预览播放功能,用户通过在视频播放终端的屏幕上左右滑动,或者拖动进度条可以进行快进或快退预览播放,且在进行预览播放时,当前主屏窗口内的画面正常播放。
图1a为相关技术中一种视频预览播放示意图,如图1a所示,正常情况下,用户通过主屏窗口101观看视频。当用户需要进行快退或快进预览时,可以在视频播放终端的屏幕上左右滑动,或者拖动进度条103,在进度条103的上方显示预览窗口102。其中,预览窗口102内显示的内容与用户的触发指令相对应,例如,当用户拖动进度条103至该视频的88分17秒时,预览窗口102显示该视频在88分17秒时对应的画面。图1b为相关技术中另一种视频预览播放示意图,在图1b中,当用户在视频播放终端的屏幕上左右滑动,或者拖动进度条103时,预览窗口102显示在主屏窗口101的中间位置,用户在预览窗口102内进行快退或快进预览。
但是,由于上述方案中的预览窗口在主屏窗口内展示,使得预览窗口对主屏窗口造成遮挡,影响用户对主屏窗口内播放画面的观看。
发明内容
有鉴于此,本申请提供一种基于VR场景的视频预览方法、电子设备和存储介质,以利于解决现有技术中预览窗口对主屏窗口造成遮挡,影响用户对主屏窗口内播放画面观看的问题。
第一方面,本申请实施例提供了一种基于虚拟现实VR场景的视频预览方法,包括:
响应于用户输入的开启预览窗口指令,在主屏窗口以外的虚拟空间内绘制预览窗口,其中,所述主屏窗口用于播放主视频;
在所述预览窗口内播放所述主视频的预览视频。
在一种可能的实现方式中,在所述预览窗口内播放所述主视频的预览视频,包括:
在所述预览窗口内、从第一时间戳位置开始播放所述预览视频,所述第一时间戳为所述主视频的当前时间戳。
在一种可能的实现方式中,所述方法还包括:
控制所述预览窗口获取用户操作焦点,使得所述预览窗口可以响应用户输入的操 作指令。
在一种可能的实现方式中,在所述预览窗口内播放所述主视频的预览视频,包括:
响应于用户在所述预览窗口内输入的操作指令,在所述预览窗口内播放与所述操作指令相对应的预览视频。
在一种可能的实现方式中,响应于用户在所述预览窗口内输入的操作指令,在所述预览窗口内播放与所述操作指令相对应的预览视频,包括:
响应于用户在所述预览窗口内输入的快进或快退指令,在所述预览窗口内、从第二时间戳位置播放所述预览视频,所述第二时间戳为所述快进或快退指令对应的所述预览视频的时间戳。
在一种可能的实现方式中,在所述预览窗口内输入的快进或快退指令,包括:
触发所述预览窗口,且左右滑动所述预览窗口,和/或拖动所述预览窗口内的进度条。
在一种可能的实现方式中,响应于用户在所述预览窗口内输入的操作指令,在所述预览窗口内播放与所述操作指令相对应的预览视频,包括:
响应于用户在所述预览窗口内输入的结束快进或快退指令,在所述预览窗口内、从第三时间戳位置开始播放所述预览视频,所述第三时间戳为所述结束快进或快退指令时所述预览视频的时间戳。
在一种可能的实现方式中,在所述预览窗口内输入的结束快进或快退指令,包括:
停止触发所述预览窗口。
在一种可能的实现方式中,响应于用户在所述预览窗口内输入的操作指令,在所述预览窗口内播放与所述操作指令相对应的预览视频,包括:
响应于用户在所述预览窗口内输入的分辨率切换指令,切换所述预览视频的分辨率。
在一种可能的实现方式中,所述预览视频的分辨率低于所述主屏窗口内主视频的分辨率。
在一种可能的实现方式中,响应于用户在所述预览窗口内输入的操作指令,在所述预览窗口内播放与所述操作指令相对应的预览视频,包括:
响应于用户在所述预览窗口内输入的播放速度切换指令,切换所述预览视频的播放速度。
在一种可能的实现方式中,所述方法还包括:
响应于用户输入的预览音频开启指令,开启所述预览视频对应的音频,关闭所述主屏窗口内主视频对应的音频;
和/或,
响应于用户输入的预览音频关闭指令,关闭所述预览视频对应的音频,开启所述主屏窗口内主视频对应的音频。
在一种可能的实现方式中,所述方法还包括:
响应于用户输入的开始主屏播放指令,关闭所述预览窗口;
关闭所述预览窗口,控制所述主屏窗口内的主视频从第四时间戳位置开始播放,所述第四时间戳为所述预览窗口关闭时所述预览视频的时间戳;
控制所述主屏窗口获取用户操作焦点。
在一种可能的实现方式中,所述方法还包括:
响应于用户输入的取消预览窗口指令,关闭所述预览窗口;
控制所述主屏窗口获取用户操作焦点。
在一种可能的实现方式中,所述预览窗口与所述主屏窗口在所述虚拟空间内平行设置。
第二方面,本申请实施例提供了一种基于虚拟现实VR场景的视频预览方法,所述方法包括:
接收VR视频应用发送的开启预览窗口指令,在主屏窗口以外的虚拟空间内绘制预览窗口,其中,所述主屏窗口用于播放主视频;
接收所述VR视频应用发送的所述主视频的预览视频,在所述预览窗口内播放所述VR视频应用发送的所述主视频的预览视频。
在一种可能的实现方式中,在接收所述VR视频应用发送的所述主视频的预览视频之前,还包括:
向所述VR视频应用发送预览视频请求指令,所述预览视频请求指令用于指示所述VR视频应用发送所述主视频的预览视频。
在一种可能的实现方式中,所述预览视频请求指令用于指示所述VR视频应用发送所述主视频的预览视频,具体为:
所述预览视频请求指令用于指示所述VR视频应用从第五时间戳开始发送所述主视频的预览视频,所述第五时间戳为所述主视频的当前时间戳。
在一种可能的实现方式中,所述方法还包括:
控制所述预览窗口获取用户操作焦点,使得所述预览窗口可以响应用户输入的操作指令。
在一种可能的实现方式中,向所述VR视频应用发送预览视频请求指令,包括:
响应于用户在所述预览窗口内输入的操作指令,向所述VR视频应用发送与所述操作指令相对应的预览视频请求指令。
在一种可能的实现方式中,所述响应于用户在所述预览窗口内输入的操作指令,向所述VR视频应用发送与所述操作指令相对应的预览视频请求指令,包括:
响应于用户在所述预览窗口内输入的快进或快退指令,向所述VR视频应用发送第一预览视频请求指令,所述第一预览视频请求指令用于指示所述VR视频应用发送第六时间戳对应的所述预览视频,所述第六时间戳为所述快进或快退指令对应的所述预览视频的时间戳。
在一种可能的实现方式中,在所述预览窗口内输入的快进或快退指令,包括:
触发所述预览窗口,且左右滑动所述预览窗口,和/或拖动所述预览窗口内的进度条。
在一种可能的实现方式中,所述响应于用户在所述预览窗口内输入的操作指令,向所述VR视频应用发送与所述操作指令相对应的预览视频请求指令,包括:
响应于用户在所述预览窗口内输入的结束快进或快退指令,向所述VR视频应用发送第二预览视频请求指令,所述第二预览视频请求指令用于指示所述VR视频应用 从第七时间戳开始发送所述预览视频,所述第七时间戳为所述结束快进或快退指令时对应的所述预览视频的时间戳。
在一种可能的实现方式中,在所述预览窗口内输入的结束快进或快退指令,包括:
停止触发所述预览窗口。
在一种可能的实现方式中,响应于用户在所述预览窗口内输入的操作指令,向所述VR视频应用发送与所述操作指令相对应的预览视频请求指令,包括:
响应于用户在所述预览窗口内输入的分辨率切换指令,向所述VR视频应用发送第三预览视频请求指令,所述第三预览视频请求指令中包含请求切换的目标分辨率,所述第三预览视频请求指令用于指示所述VR视频应用发送与所述目标分辨率相对应的预览视频。
在一种可能的实现方式中,所述目标分辨率低于所述主屏窗口内主视频的分辨率。
在一种可能的实现方式中,响应于用户在所述预览窗口内输入的操作指令,向所述VR视频应用发送与所述操作指令相对应的预览视频请求指令,包括:
响应于用户在所述预览窗口内输入的播放速度切换指令,向所述VR视频应用发送第四预览视频请求指令,所述第四预览视频请求指令中包含请求切换的目标播放速度,所述第四预览视频请求指令用于指示所述VR视频应用发送与所述目标播放速度相对应的预览视频。
在一种可能的实现方式中,所述方法还包括:
响应于用户输入的预览音频开启指令,开启所述预览视频对应的音频,关闭所述主屏窗口内主视频对应的音频;
和/或,
响应于用户输入的预览音频关闭指令,关闭所述预览视频对应的音频,开启所述主屏窗口内主视频对应的音频。
在一种可能的实现方式中,所述方法还包括:
响应于用户输入的开始主屏播放指令,关闭所述预览窗口;
控制所述主屏窗口内的主视频从第八时间戳开始播放,所述第八时间戳为所述预览窗口关闭时所述预览视频的时间戳;
控制所述主屏窗口获取用户操作焦点。
在一种可能的实现方式中,所述方法还包括:
响应于用户输入的取消预览窗口指令,关闭所述预览窗口;
控制所述主屏窗口获取用户操作焦点。
在一种可能的实现方式中,所述预览窗口与所述主屏窗口在所述虚拟空间内平行设置。
第三方面,本申请实施例提供了一种电子设备,所述电子设备包括:
一个或多个处理器;
存储器;
以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述电子设备执行时,使得所述电子设备执行上述第一方面任意一项所述的视频预览方法。
第四方面,本申请实施例提供了一种电子设备,所述电子设备包括:
一个或多个处理器;
存储器;
以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述电子设备执行时,使得所述电子设备执行上述第二方面任意一项所述的视频预览方法。
第五方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质包括存储的程序,其中,在所述程序运行时控制所述计算机可读存储介质所在设备执行上述第一方面任意一项所述的视频预览方法。
第六方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质包括存储的程序,其中,在所述程序运行时控制所述计算机可读存储介质所在设备执行上述第二方面任意一项所述的视频预览方法。
在本申请实施例中,通过VR场景中的虚拟空间进行预览窗口的展示,预览窗口不会对主屏窗口造成遮挡,不影响用户在主屏窗口内视频的正常观看。
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。
图1a为相关技术中一种视频预览播放示意图;
图1b为相关技术中另一种视频预览播放示意图;
图2为本申请实施例提供的一种VR设备的场景示意图;
图3为本申请实施例提供的一种基于VR场景的视频播放示意图;
图4为本申请实施例提供的一种基于VR场景的视频预览方法流程示意图;
图5a为本申请实施例提供的一种基于VR场景的视频预览示意图;
图5b为本申请实施例提供的另一种基于VR场景的视频预览示意图;
图5c为本申请实施例提供的另一种基于VR场景的视频预览示意图;
图6为本申请实施例提供的另一种基于VR场景的视频预览方法流程示意图;
图7为本申请实施例提供的另一种基于VR场景的视频预览示意图;
图8为本申请实施例的一种电子设备的软件结构框图;
图9为本申请实施例提供的另一种基于VR场景的视频预览方法流程示意图;
图10为本申请实施例提供的另一种基于VR场景的视频预览方法流程示意图;
图11为本申请实施例提供的另一种基于VR场景的视频预览方法流程示意图;
图12为本申请实施例提供的一种电子设备结构示意图;
图13为本申请实施例提供的另一种电子设备结构示意图。
为了更好的理解本申请的技术方案,下面结合附图对本申请实施例进行详细描述。
应当明确,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的 所有其它实施例,都属于本申请保护的范围。
在本申请实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。
应当理解,本文中使用的术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,甲和/或乙,可以表示:单独存在甲,同时存在甲和乙,单独存在乙这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。
在对本申请实施例进行具体介绍之前,首先对本申请所涉及的场景进行简单介绍。本申请所涉及的电子设备可以为虚拟现实(virtual reality,VR)设备、VR设备的部分模块或者与VR设备相连的电子设备,VR设备可以为VR一体机、VR眼镜等;与VR设备相连的电子设备可以为手机、平板电脑、个人计算机(personal computer,PC)、个人数字助理(personal digital assistant,PDA)、智能手表、上网本、可穿戴电子设备等。
VR技术是一种可以创建和体验虚拟世界的计算机仿真***,它利用计算机模拟产生一个三维(又称3D)空间的虚拟环境,是一种多源信息融合的、交互式的三维动态视景和实体行为的***仿真,使用户可以沉浸到该VR场景中。简单来说,VR就是一种虚拟现实的技术,通过对视觉环境的渲染,让用户最大限度融入VR场景,享受沉浸式的体验。
图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)或因特网等。
在传统的视频播放场景中(如图1a和图1b所示),由于视频播放窗口无法超出显示屏的限制,因此,预览窗口只能在主屏窗口上叠加。但是在虚拟现实(virtual reality,VR)场景中,具有三维的虚拟空间环境,预览窗口可以在主屏窗口以外的其它虚拟空间进行展示。
图3为本申请实施例提供的一种基于VR场景的视频播放示意图,用户在该场景中观看视频时,可以自由切换观看视角,给用户提供沉浸式的用户体验。需要指出的是,在图3示出的场景中,主屏窗口302为用户正常观看视频时,显示视频画面的窗口,主屏窗口302并未占据全部虚拟空间301,也就是说,该视频资源并非360°全景视频,主屏窗口302以外还存在未被使用的虚拟空间301。通常情况下,VR场景中主屏窗口302的大小或比例与传统视频播放终端的显示屏相匹配。可理解,完整的VR场景为三维的球面空间,图3仅示出了VR场景中的部分空间,并不应当将其大小、形状以及主屏窗口302与虚拟空间301的位置关系作为本申请保护范围的限定。通常情况下,VR场景中主屏窗口302的大小或比例与传统视频播放终端的显示屏相匹配。
图4为本申请实施例提供的一种基于VR场景的视频预览方法流程示意图,该方法可应用于图2所示的VR设备,其主要包括以下步骤。
步骤S401:响应于用户输入的开启预览窗口指令,在主屏窗口以外的虚拟空间内绘制预览窗口,其中,所述主屏窗口用于播放主视频。
本申请实施例对所述开启预览窗口指令的触发形式不做具体限定,例如,用户可以通过触摸屏、VR手柄上的按键、VR场景中的视觉焦点等形式触发。
图5a为本申请实施例提供的一种基于VR场景的视频预览示意图,正常情况下,用户通过主屏窗口501观看视频播放画面,当VR设备接收到用户输入的开启预览窗口指令后,VR设备在主屏窗口501以外的虚拟空间301内绘制预览窗口502。
由于预览窗口502在虚拟空间301内展示,并不会对主屏窗口501造成遮挡,因此可以将预览窗口502设置的大一些,例如,和主屏窗口501设置同样大小,使得用户可以在预览窗口502中获得主屏窗口501相同的观影体验。另外,在VR三维空间内,可以将预览窗口502和主屏窗口501水平设置,以便于用户左右摇头将视觉焦点在主屏窗口501和预览窗口502之间切换,如图5a所示。
需要指出的是,本申请实施例对预览窗口502的大小、位置不做限制。本领域技术人员可以根据实际需要将预览窗口502设置在主屏窗口501的其它位置或者其它大小。例如,在图5b中,在VR三维空间内,预览窗口502和主屏窗口501竖直设置,用户通过抬头或低头动作可以将诗句焦点在主屏窗口501和预览窗口502之间切换;在图5c中,预览窗口502与主屏窗口501大小不同,且预览窗口502位于主屏窗口501的右上方。当然,本领域技术人员可以根据实际需要将预览窗口502设置在主屏窗口501的其它位置或者其它大小,其均应当落入本申请的保护范围之内。
步骤S402:在所述预览窗口内播放所述主视频的预览视频。
预览窗口绘制完成后,在预览窗口内播放主视频的预览视频。用户在观看预览视频画面时,不会对主屏窗口内的视频画面造成影响。
在本申请实施例中,通过VR场景中的虚拟空间进行预览窗口的展示,预览窗口不会对主屏窗口造成遮挡,提高用户体验。
在本申请实施例中,开启预览窗口后,预览窗口内的预览视频默认与主视频保持同步。但是,预览窗口内预览视频的播放模式可以根据用户的控制进行相应调整,例如,快进、快退、暂停、开启预览窗口的音频、切换预览窗口内预览视频的分辨率、切换预览视频的播放速度等。其中,在开启预览窗口的音频后,需要同步将主屏窗口 内的音频关闭。以下结合具体实施例进行详细说明。
图6为本申请实施例提供的另一种基于VR场景的视频预览方法流程示意图,如图6所示,该方法主要包括以下步骤。
步骤S601:响应于用户输入的开启预览窗口指令,在主屏窗口以外的虚拟空间内绘制预览窗口。
在本申请实施例中,用户基于VR场景进行视频观看时,可以触发开启预览窗口。该触发方式可以为触摸屏、VR手柄上的按键或VR场景中的视觉焦点等,本申请实施例对此不作限制。
当VR设备接收到开启预览窗口指令后,响应于用户输入的开启预览窗口指令,在主屏窗口以外的虚拟空间内绘制预览窗口,如图5a-5c所示。
步骤S602:在所述预览窗口内、从第一时间戳位置开始播放所述预览视频,所述第一时间戳为所述主视频的当前时间戳。
时间戳为音频或视频中的时间标记,通过时间戳可以准确定位视频的播放位置,例如定位预览视频从第35分20秒开始播放。
可理解,主视频和预览视频为同一视频资源,那么在主视频和预览视频的时间戳相同时,对应的播放画面相同,因此,在本申请实施例中,预览视频从主视频的当前时间戳开始播放,使得预览视频和主视频保持同步。
开启预览窗口后,从主视频的当前时间戳开始播放预览视频。也就是说,默认情况下,预览视频和主视频保持同步播放。
步骤S603:控制所述预览窗口获取用户操作焦点。
可理解,若预览窗口获取用户操作焦点,则预览窗口内的控件被激活,用户可以在预览窗口内输入相应的控制指令;同样的原理,若主屏窗口获取用户操作焦点,则主屏窗口内的控件被激活,用户可以在主屏窗口内输入相应的控制指令。
图7为本申请实施例提供的另一种基于VR场景的视频预览示意图,在图7中示出了主屏窗口701和预览窗口702,在预览窗口702内存在进度条703,以及“切分辨率”、“主屏播放”、“取消预览”、“开启音频”等控件。若要激活预览窗口702内的控件,首先需要控制所述预览窗口702获取用户操作焦点。在预览窗口702获取用户操作焦点后,用户可以通过点击或滑动相关控件输入相关的控制指令。例如,快进、快退、暂停、开启预览窗口的音频、切换预览窗口内预览视频的分辨率、切换预览视频的播放速度等。以下进行详细说明。
步骤S604:判断是否接收到预览音频开启或关闭指令。
在本申请实施例中,由于主屏窗口和预览窗口相当于两个独立的窗口,因此,可以根据用户的需求选择音频与主屏窗口内的主视频保持同步,或者与预览窗口内的预览视频保持同步。
若接收到预览音频开启或关闭指令,则进入步骤S605;否则进入步骤S606。
步骤S605:开启或关闭所述预览视频对应的音频,关闭或开启所述主屏窗口内主视频对应的音频。
例如,若接收到预览音频开启指令,则开启所述预览视频对应的音频,关闭所述主屏窗口内主视频对应的音频;若接收到预览音频关闭指令,则关闭所述预览视频对 应的音频,开启所述主屏窗口内主视频对应的音频。
如图7所示,用户可以通过点击预览窗口502内的“开启音频”控件,实现预览音频开启或关闭指令的输入,即实现预览音频的开启或关闭。
步骤S606:判断是否接收到快进或快退指令。
若VR设备存在触摸屏,用户可以通过手指在触摸屏上左右滑动或拖动进度条,输入快进或快退指令。例如,用户通过向右滑动预览窗口或向右拖动预览窗口内的进度条,输入快进指令;用户通过向左滑动预览窗口或向左拖动预览窗口内的进度条,输入快退指令。
当然,用户也可以采用其他方式触发所述快进或快退指令,在此不再赘述。
若接收到快进或快退指令,则进入步骤S607;否则进入步骤S608。
步骤S607:从第二时间戳位置播放所述预览视频,所述第二时间戳为所述快进或快退指令对应的所述预览视频的时间戳。
当用户在预览窗口内左右滑动或拖动进度条时,实时记录该左右滑动位移或拖动进度条后进度条位置对应的时间戳,以便通过该时间戳定位预览视频的播放位置。例如,用户向右拖动进度条至30分12秒,预览窗口内的预览视频从第30分12秒开始播放;若用户从预览视频的第30分12秒开始向左滑动屏幕,在屏幕上滑动的距离对应的视频时长为2分02秒,则预览窗口内的预览视频快退至第29分10秒开始播放。也就是说,随着用户左右滑动或拖动进度条,预览视频的播放画面实时变化,始终与用户左右滑动位移或进度条拖动位置相对应。
其中,如果用户左右滑动屏幕或拖动进度条时,预览视频的音频处于开启状态,则会产生不连续的音频信号,影响用户体验。在本申请实施例中,在用户左右滑动屏幕或拖动进度条时,将预览视频的音频关闭。也就是说,在接收到快进或快退指令后,判定预览视频的音频是否开启,若预览视频的音频处于开启状态,则需要将预览视频的音频关闭。
步骤S608:判断是否接收到结束快进或快退指令。
在一种可选实施例中,当用户停止触发预览窗口时,VR设备接收到结束快进或快退指令。同样以触摸屏为例,当用户通过手指在触摸屏上左右滑动或拖动进度条后,用户手指在触摸屏上抬起,VR设备接收到结束快进或快退指令。
若VR设备接收到结束快进或快退指令则进入步骤S609;否则返回步骤S606,继续根据所述快进或快退指令切换预览窗口内的视频播放画面。
步骤S609:从第三时间戳位置开始播放所述预览视频,所述第三时间戳为所述结束快进或快退指令时所述预览视频的时间戳。
如果VR设备接收到结束快进或快退指令,则从快进或快退指令结束时,预览视频的位置开始播放。例如,当用户拖动进度条至第22分15秒时,停止拖动,将手指从触摸屏上抬起,则预览视频从第22分15秒开始播放。
需要指出的是,在本申请实施例中,用户停止触发预览窗口后,预览窗口仍保持预览状态。相反,在图1a和图1b示出的实施例中,在用户停止触发主屏窗口后,预览窗口消失,主屏窗口从此时进度条所在的位置开始播放,预览模式结束。换句话讲,在本申请实施例中进行快退或快进预览时,用户的手指无需一直触发快进或快退按键 或者一直按着触摸屏,当用户的手指在按键或触摸屏上提起后,预览窗口仍然保持着预览视频的播放状态。
步骤S610:判断是否接收到分辨率切换指令。
可理解,为了节约资源,在预览窗口内的预览视频不需要具备很高的分辨率,通常情况下,设置预览视频的分辨率低于主视频的分辨率。
但是,预览视频的分辨率也可以根据用户的需求进行相应的调整。如图7所示,在预览窗口702内设有“切分辨率”控件,用户可以通过点击“切分辨率”控件实现预览视频分辨率的切换,例如可以将分辨率切换为352x288、720x576、1920x1080等。
若VR设备接收到分辨率切换指令,则进入步骤S611,否则进入步骤S612。
步骤S611:切换所述预览视频的分辨率。
例如,预览视频当前的分辨率为720x576,在接收到分辨率切换指令后,将分辨率调整为352x288。当然,具体分辨率的大小,用户可以根据自己的需求进行设置和选择。
步骤S612:判断是否接收到播放速度切换指令。
所述播放速度是指预览视频进行播放时的倍速,例如,可以为正常播放速度的1.5倍、2.0倍播放,以便于用户快速预览。当然,根据用户的特殊需求也可以设置为0.5倍、0.8倍等,本申请实施例不做具体限定。
步骤S613:切换所述预览视频的播放速度。
例如,预览视频当前的播放速度为1.0倍速,也就是按照正常的播放速度播放预览视频。在接收到播放速度切换指令后,将播放速度调整为1.5倍速。当然,具体倍速的大小,用户可以根据自己的需求进行设置和选择。
步骤S614:判断是否接收到取消预览窗口指令。
在用户完成视频的预览后,可以通过输入取消预览窗口指令,将预览窗口取消,恢复正常的播放模式。如图7所示,在预览窗口702内设有“取消预览”控件,用户可以通过点击“取消预览”控件实现预览窗口的取消。
若接收到取消预览窗口指令,则进入步骤S617;否则进入步骤S615。
需要指出的是,在本申请实施例中,预览窗口取消后,并不会对主屏窗口造成影响,主屏窗口仍然从保持预览前的播放状态。例如,预览窗口取消时,主视频播放至第20分13秒,预览视频播放至30分25秒,在预览窗口取消后,主视频仍然从第20分13秒继续播放。也就是说,在本申请实施例中,预览模式结束后,无需用户通过手动调节进度条或滑动屏幕等方式,将主视频退回到预览前的状态。
相反,在图1a和图1b示出的方案中,在预览模式结束后,主屏窗口默认从当前进度条所在的位置开始播放,若用户想要回到预览前的位置,则需要再次拖动进度条或滑动屏幕进行调整,用户体验较差。
步骤S615:判断是否接收到开始主屏播放指令。
若用户完成视频预览后,需要从预览视频的位置切换到主屏窗口播放,可以输入开始主屏播放指令。如图7所示,在预览窗口702内设有“主屏播放”控件,用户可以通过点击“主屏播放”控件实现预览窗口的取消,且将预览视频的播放状态切换至主屏窗口播放。
步骤S616:控制所述主屏窗口内的主视频从第四时间戳位置开始播放,所述第四时间戳为所述预览窗口关闭时所述预览视频的时间戳。
例如,接收到开始主屏播放指令时,主视频播放至第20分13秒,预览视频播放至30分25秒,在预览窗口取消后,主视频跳转至第30分25秒开始播放。
步骤S617:关闭所述预览窗口。
在接收到取消预览窗口指令,或者接收到开始主屏播放指令,均需要关闭预览窗口,仅保留主屏窗口进行主视频的播放。
步骤S618:控制所述主屏窗口获取用户操作焦点。
预览窗口取消后,主屏窗口重新获取用户操作焦点,用户可以在主屏窗口内进行相应的控制指令的输入。
需要指出的是,图6所示的技术方案仅是本申请实施例所列举的一种具体实现方式,并不应当将其作为本申请保护范围的限制。例如,本领域技术人员可以根据实际需要对图6中的时序关系进行调整,先判断“是否接收到快进或快退指令”,再判断“是否接收到预览音频开启或关闭指令”;先判断“是否接收到分辨率切换指令”,再判断“是否接收到播放速度切换指令”等。或者,根据实际需求对上述步骤进行删减,仅实现上述方案中的部分功能。
综上所述,采用本申请实施例所提供的技术方案具有以下优点:
1、通过VR场景中的虚拟空间进行预览窗口的展示,预览窗口不会对主屏窗口造成遮挡,不影响用户在主屏窗口内视频的正常观看;
2、由于VR场景中存在较多的虚拟空间,因此预览窗口可以设置的足够大,便于用户对预览视频的观看;
3、由于主屏窗口和预览窗口是两个独立的窗口,用户在预览窗口内进行快进或快退时,可以随意滑动或拖动进度条进行调整,无需一直保持触发状态,便于精准微调;
4、预览结束后,取消预览窗口,用户可以选择按照主视频的播放时间继续播放,以免用户还要手动调整退回到预览之前观看的时间;另外,用户还可以选择跳转至预览视频的播放时间开始播放;
5、用户可以开始预览窗口的音频,同时将主屏窗口静音,使得用户观看预览视频的同时可以听到预览音频。
图8为本申请实施例的一种电子设备的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android***分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和***库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图8所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图8所示,应用程序框架层可以包括窗口管理器,内容提供器,视图***,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图***包括可视控件,例如显示文字的控件,显示图片的控件等。视图***可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在***顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓***的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
***库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子***进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
所述应用程序框架层中的视频应用可以为VR视频应用,上述实施例涉及的视频预览方案可以基于VR视频应用来实现。
但是,VR视频应用的种类繁多,如果每个VR视频应用均自己实现视频预览方案,工作量较大,且无法保证视频预览风格统一,影响用户体验。
软件开发工具包(Software Development Kit,SDK)是为特定的软件包、软件框架、硬件平台、操作***等建立应用软件时的开发工具的集合,它可以简单的为某个程序设计语言提供应用程序接口API的一些文件。
在本申请实施例中,可以在VR SDK中集成上述视频预览方案,在VR SDK提供接口,以便VR视频应用接入,由VR SDK和VR视频应用共同完成视频预览方案。以下结合附图进行详细说明。
图9为本申请实施例提供的另一种基于VR场景的视频预览方法流程示意图,该方法应用于VR设备中的VR SDK和VR视频应用,由VR SDK和VR视频应用共同完成视频预览方案。其主要包括以下步骤。
步骤S901:VR视频应用向VR SDK发送开启预览窗口指令。
步骤S902:VR SDK在主屏窗口以外的虚拟空间内绘制预览窗口。
步骤S903:VR视频应用向VR SDK发送所述主视频的预览视频。
步骤S904:VR SDK在所述预览窗口内播放所述预览视频。
在本申请实施例中,通过VR场景中的虚拟空间进行预览窗口的展示,预览窗口不会对主屏窗口造成遮挡,提高用户体验。
在本申请实施例中,在VR视频应用向VR SDK发送开启预览窗口指令后,由SDK统一绘制预览窗口,并在预览窗口内注入由VR视频应用发送的视频流。也就是说,VR视频应用仅需要接入VR SDK便可实现视频预览,节省VR视频应用开发的工作量,且便于视频预览风格统一,提升用户体验。
本申请实施例与图4和图6所示实施例的不同之处在于,本申请实施例基于VR SDK和VR视频应用实现上述视频预览方案,其具体过程和原理与上述实施例相同,在此不再赘述。
图10为本申请实施例提供的另一种基于VR场景的视频预览方法流程示意图,如图10所示,其在图9所示实施例的基础上增加了步骤S1001:VR SDK向VR视频应用发送预览视频请求指令,所述预览视频请求指令用于指示所述VR视频应用发送所述主视频的预览视频。
在一种可选实施例中,所述预览视频请求指令用于指示所述VR视频应用从第五时间戳开始发送所述主视频的预览视频,所述第五时间戳为所述主视频的当前时间戳。也就是说,预览视频和主视频保持同步播放。
在本申请实施例中,VR视频应用基于VR SDK的请求指令发送预览视频。当然,VR视频应用向VR SDK发送开启预览窗口指令后,也可以直接从当前时间戳开始向VR SDK发送预览视频。
图11为本申请实施例提供的另一种基于VR场景的视频预览方法流程示意图,如图11所示,其在图9所示实施例的基础上,还包括以下步骤。
步骤S1101:VR SDK控制所述预览窗口获取用户操作焦点。
步骤S1102:VR SDK响应于用户在所述预览窗口内输入的操作指令,向所述VR视频应用发送与所述操作指令相对应的预览视频请求指令。
步骤S1103:VR视频应用向VR SDK发送与所述预览视频请求指令相对应的预览视频。
可理解,若预览窗口获取用户操作焦点,则预览窗口内的控件被激活,用户可以在预览窗口内输入相应的控制指令;同样的原理,若主屏窗口获取用户操作焦点,则主屏窗口内的控件被激活,用户可以在主屏窗口内输入相应的控制指令。
在本申请实施例中,可以基于VR SDK实现预览视频的播放控制。例如,快进、快退、暂停、开启预览窗口的音频、切换预览窗口内预览视频的分辨率、切换预览视频的播放速度等。以下进行详细说明。
在一种可选实施例中,所述步骤S1102包括:VR SDK响应于用户在所述预览窗口内输入的快进或快退指令,向所述VR视频应用发送第一预览视频请求指令,所述第一预览视频请求指令用于指示所述VR视频应用发送第六时间戳对应的所述预览视频,所述第六时间戳为所述快进或快退指令对应的所述预览视频的时间戳。步骤S1103包括:VR视频应用向VR SDK发送所述第六时间戳对应的所述预览视频。基于此,实现预览视频的快进或快退。
在一种可选实施例中,在所述预览窗口内输入的快进或快退指令,包括:触发所述预览窗口,且左右滑动所述预览窗口,和/或拖动所述预览窗口内的进度条。
在一种可选实施例中,所述步骤S1102包括:响应于用户在所述预览窗口内输入的结束快进或快退指令,向所述VR视频应用发送第二预览视频请求指令,所述第二预览视频请求指令用于指示所述VR视频应用从第七时间戳开始发送所述预览视频,所述第七时间戳为所述结束快进或快退指令时对应的所述预览视频的时间戳。步骤S1103包括:VR视频应用向VR SDK从第七时间戳开始发送所述预览视频。此时,完成预览视频的快进或快退操作,预览视频从结束快进或快退操作时进度条的位置,开始播放。
在一种可选实施例中,在所述预览窗口内输入的结束快进或快退指令,包括:停止触发所述预览窗口。
在一种可选实施例中,所述步骤S1102包括:响应于用户在所述预览窗口内输入的分辨率切换指令,向所述VR视频应用发送第三预览视频请求指令,所述第三预览视频请求指令中包含请求切换的目标分辨率,所述第三预览视频请求指令用于指示所述VR视频应用发送与所述目标分辨率相对应的预览视频。步骤S1103包括:VR视频应用向VR SDK发送与所述目标分辨率相对应的预览视频。基于此,完成预览视频分辨率的切换。
在一种可选实施例中,所述目标分辨率低于所述主屏窗口内主视频的分辨率。
在一种可选实施例中,所述步骤S1102包括:响应于用户在所述预览窗口内输入的播放速度切换指令,向所述VR视频应用发送第四预览视频请求指令,所述第四预览视频请求指令中包含请求切换的目标播放速度,所述第四预览视频请求指令用于指示所述VR视频应用发送与所述目标播放速度相对应的预览视频。步骤S1103包括:VR视频应用向VR SDK发送与所述目标播放速度相对应的预览视频。基于此,完成预览视频播放速度的切换。
在一种可选实施例中,所述方法还包括:VR SDK响应于用户输入的预览音频开启指令,开启所述预览视频对应的音频,关闭所述主屏窗口内主视频对应的音频;和/或,VR SDK响应于用户输入的预览音频关闭指令,关闭所述预览视频对应的音频, 开启所述主屏窗口内主视频对应的音频。基于此,打开或关闭预览视频的音频。
在一种可选实施例中,所述方法还包括:VR SDK响应于用户输入的开始主屏播放指令,关闭所述预览窗口;控制所述主屏窗口内的主视频从第八时间戳开始播放,所述第八时间戳为所述预览窗口关闭时所述预览视频的时间戳;控制所述主屏窗口获取用户操作焦点。基于此,完成视频预览,且将主屏窗口内主视频跳转至取消预览时预览视频的位置开始播放。
在一种可选实施例中,所述方法还包括:响应于用户输入的取消预览窗口指令,关闭所述预览窗口;控制所述主屏窗口获取用户操作焦点。主屏窗口仍然保持原来的状态继续播放。
在一种可选实施例中,所述预览窗口与所述主屏窗口在所述虚拟空间内平行设置。
综上所述,采用本申请实施例所提供的技术方案具有以下优点:
1、通过VR场景中的虚拟空间进行预览窗口的展示,预览窗口不会对主屏窗口造成遮挡,不影响用户在主屏窗口内视频的正常观看;
2、由于VR场景中存在较多的虚拟空间,因此预览窗口可以设置的足够大,便于用户对预览视频的观看;
3、由于主屏窗口和预览窗口是两个独立的窗口,用户在预览窗口内进行快进或快退时,可以随意滑动或拖动进度条进行调整,无需一直保持触发状态,便于精准微调;
4、预览结束后,取消预览窗口,用户可以选择按照主视频的播放时间继续播放,以免用户还要手动调整退回到预览之前观看的时间;另外,用户还可以选择跳转至预览视频的播放时间开始播放;
5、用户可以开始预览窗口的音频,同时将主屏窗口静音,使得用户观看预览视频的同时可以听到预览音频。
与本申请实施例提供的视频预览方法相对应,本申请还提供了一种电子设备。
参见图12,为本申请实施例提供的一种电子设备结构示意图,所述电子设备为第一电子设备1200,所述第一电子设备1200可以包括:处理器1201、存储器1202及通信单元1203。这些组件通过一条或多条总线进行通信,本领域技术人员可以理解,图中示出的服务器的结构并不构成对本申请的限定,它既可以是总线形结构,也可以是星型结构,还可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
其中,所述通信单元1203,用于建立通信信道,从而使所述存储设备可以与其它设备进行通信。接收其他设备发是的用户数据或者向其他设备发送用户数据。
所述处理器1201,为存储设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器1202内的软件程序和/或模块,以及调用存储在存储器内的数据,以执行电子设备的各种功能和/或处理数据。所述处理器可以由集成电路(Integrated Circuit,简称IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器1201可以仅包括中央处理器(Central Processing Unit,简称CPU)。在本申请实施方式中,CPU可以是单运算核心,也可以包括多运算核心。
所述存储器1202,用于存储处理器1201的执行指令,存储器1202可以由任何类 型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
当存储器1202中的执行指令由处理器1201执行时,使得第一电子设备1200能够执行以下步骤:响应于用户输入的开启预览窗口指令,在主屏窗口以外的虚拟空间内绘制预览窗口,其中,所述主屏窗口用于播放主视频;在所述预览窗口内播放所述主视频的预览视频。
与本申请申请实施例提供的视频预览方法相对应,本申请还提供了另一种电子设备。
参见图13,为本申请实施例提供的另一种电子设备结构示意图,所述电子设备为第二电子设备1300,所述第二电子设备1300可以包括:处理器1301、存储器1302及通信单元1303。这些组件通过一条或多条总线进行通信,本领域技术人员可以理解,图中示出的服务器的结构并不构成对本申请的限定,它既可以是总线形结构,也可以是星型结构,还可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
其中,所述通信单元1303,用于建立通信信道,从而使所述存储设备可以与其它设备进行通信。接收其他设备发是的用户数据或者向其他设备发送用户数据。
所述处理器1301,为存储设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器1302内的软件程序和/或模块,以及调用存储在存储器内的数据,以执行电子设备的各种功能和/或处理数据。所述处理器可以由集成电路(Integrated Circuit,简称IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的封装IC而组成。举例来说,处理器1301可以仅包括中央处理器(Central Processing Unit,简称CPU)。在本申请实施方式中,CPU可以是单运算核心,也可以包括多运算核心。
所述存储器1302,用于存储处理器1301的执行指令,存储器1302可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
当存储器1302中的执行指令由处理器1301执行时,使得第二电子设备1300能够执行以下步骤:接收VR视频应用发送的开启预览窗口指令,在主屏窗口以外的虚拟空间内绘制预览窗口,其中,所述主屏窗口用于播放主视频;接收所述VR视频应用发送的所述主视频的预览视频,在所述预览窗口内播放所述VR视频应用发送的所述主视频的预览视频。
具体实现中,本申请还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时可包括本申请提供的各实施例中的部分或全部步骤。所述的存储介质可为磁碟、光盘、只读存储记忆体(英文:read-only memory,简称:ROM)或随机存储记忆体(英文:random access memory,简称:RAM)等。
本领域的技术人员可以清楚地了解到本申请实施例中的技术可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本申请实施例中的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例或者实施例的某些部分所述的方法。
本说明书中各个实施例之间相同相似的部分互相参见即可。尤其,对于装置实施例和终端实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例中的说明即可。
以上所述的本申请实施方式并不构成对本申请保护范围的限定。
Claims (35)
- 一种基于虚拟现实VR场景的视频预览方法,其特征在于,包括:响应于用户输入的开启预览窗口指令,在主屏窗口以外的虚拟空间内绘制预览窗口,其中,所述主屏窗口用于播放主视频;在所述预览窗口内播放所述主视频的预览视频。
- 根据权利要求1所述的方法,其特征在于,在所述预览窗口内播放所述主视频的预览视频,包括:在所述预览窗口内、从第一时间戳位置开始播放所述预览视频,所述第一时间戳为所述主视频的当前时间戳。
- 根据权利要求1所述的方法,其特征在于,还包括:控制所述预览窗口获取用户操作焦点,使得所述预览窗口可以响应用户输入的操作指令。
- 根据权利要求3所述的方法,其特征在于,在所述预览窗口内播放所述主视频的预览视频,包括:响应于用户在所述预览窗口内输入的操作指令,在所述预览窗口内播放与所述操作指令相对应的预览视频。
- 根据权利要求4所述的方法,其特征在于,响应于用户在所述预览窗口内输入的操作指令,在所述预览窗口内播放与所述操作指令相对应的预览视频,包括:响应于用户在所述预览窗口内输入的快进或快退指令,在所述预览窗口内、从第二时间戳位置播放所述预览视频,所述第二时间戳为所述快进或快退指令对应的所述预览视频的时间戳。
- 根据权利要求5所述的方法,其特征在于,在所述预览窗口内输入的快进或快退指令,包括:触发所述预览窗口,且左右滑动所述预览窗口,和/或拖动所述预览窗口内的进度条。
- 根据权利要求5所述的方法,其特征在于,响应于用户在所述预览窗口内输入的操作指令,在所述预览窗口内播放与所述操作指令相对应的预览视频,包括:响应于用户在所述预览窗口内输入的结束快进或快退指令,在所述预览窗口内、从第三时间戳位置开始播放所述预览视频,所述第三时间戳为所述结束快进或快退指令时所述预览视频的时间戳。
- 根据权利要求7所述的方法,其特征在于,在所述预览窗口内输入的结束快进或快退指令,包括:停止触发所述预览窗口。
- 根据权利要求4所述的方法,其特征在于,响应于用户在所述预览窗口内输入的操作指令,在所述预览窗口内播放与所述操作指令相对应的预览视频,包括:响应于用户在所述预览窗口内输入的分辨率切换指令,切换所述预览视频的分辨率。
- 根据权利要求9所述的方法,其特征在于,所述预览视频的分辨率低于所述主屏窗口内主视频的分辨率。
- 根据权利要求4所述的方法,其特征在于,响应于用户在所述预览窗口内输入的操作指令,在所述预览窗口内播放与所述操作指令相对应的预览视频,包括:响应于用户在所述预览窗口内输入的播放速度切换指令,切换所述预览视频的播放速度。
- 根据权利要求1所述的方法,其特征在于,还包括:响应于用户输入的预览音频开启指令,开启所述预览视频对应的音频,关闭所述主屏窗口内主视频对应的音频;和/或,响应于用户输入的预览音频关闭指令,关闭所述预览视频对应的音频,开启所述主屏窗口内主视频对应的音频。
- 根据权利要求1所述的方法,其特征在于,还包括:响应于用户输入的开始主屏播放指令,关闭所述预览窗口;关闭所述预览窗口,控制所述主屏窗口内的主视频从第四时间戳位置开始播放,所述第四时间戳为所述预览窗口关闭时所述预览视频的时间戳;控制所述主屏窗口获取用户操作焦点。
- 根据权利要求1所述的方法,其特征在于,还包括:响应于用户输入的取消预览窗口指令,关闭所述预览窗口;控制所述主屏窗口获取用户操作焦点。
- 根据权利要求1-14任一项所述的方法,其特征在于,所述预览窗口与所述主屏窗口在所述虚拟空间内平行设置。
- 一种基于虚拟现实VR场景的视频预览方法,其特征在于,包括:接收VR视频应用发送的开启预览窗口指令,在主屏窗口以外的虚拟空间内绘制预览窗口,其中,所述主屏窗口用于播放主视频;接收所述VR视频应用发送的所述主视频的预览视频,在所述预览窗口内播放所述VR视频应用发送的所述主视频的预览视频。
- 根据权利要求16所述的方法,其特征在于,在接收所述VR视频应用发送的所述主视频的预览视频之前,还包括:向所述VR视频应用发送预览视频请求指令,所述预览视频请求指令用于指示所述VR视频应用发送所述主视频的预览视频。
- 根据权利要求17所述的方法,其特征在于,所述预览视频请求指令用于指示所述VR视频应用发送所述主视频的预览视频,具体为:所述预览视频请求指令用于指示所述VR视频应用从第五时间戳开始发送所述主视频的预览视频,所述第五时间戳为所述主视频的当前时间戳。
- 根据权利要求17所述的方法,其特征在于,所述方法还包括:控制所述预览窗口获取用户操作焦点,使得所述预览窗口可以响应用户输入的操作指令。
- 根据权利要求19所述的方法,其特征在于,向所述VR视频应用发送预览视频请求指令,包括:响应于用户在所述预览窗口内输入的操作指令,向所述VR视频应用发送与所述操作指令相对应的预览视频请求指令。
- 根据权利要求20所述的方法,其特征在于,所述响应于用户在所述预览窗口 内输入的操作指令,向所述VR视频应用发送与所述操作指令相对应的预览视频请求指令,包括:响应于用户在所述预览窗口内输入的快进或快退指令,向所述VR视频应用发送第一预览视频请求指令,所述第一预览视频请求指令用于指示所述VR视频应用发送第六时间戳对应的所述预览视频,所述第六时间戳为所述快进或快退指令对应的所述预览视频的时间戳。
- 根据权利要求21所述的方法,其特征在于,在所述预览窗口内输入的快进或快退指令,包括:触发所述预览窗口,且左右滑动所述预览窗口,和/或拖动所述预览窗口内的进度条。
- 根据权利要求22所述的方法,其特征在于,所述响应于用户在所述预览窗口内输入的操作指令,向所述VR视频应用发送与所述操作指令相对应的预览视频请求指令,包括:响应于用户在所述预览窗口内输入的结束快进或快退指令,向所述VR视频应用发送第二预览视频请求指令,所述第二预览视频请求指令用于指示所述VR视频应用从第七时间戳开始发送所述预览视频,所述第七时间戳为所述结束快进或快退指令时对应的所述预览视频的时间戳。
- 根据权利要求23所述的方法,其特征在于,在所述预览窗口内输入的结束快进或快退指令,包括:停止触发所述预览窗口。
- 根据权利要求20所述的方法,其特征在于,响应于用户在所述预览窗口内输入的操作指令,向所述VR视频应用发送与所述操作指令相对应的预览视频请求指令,包括:响应于用户在所述预览窗口内输入的分辨率切换指令,向所述VR视频应用发送第三预览视频请求指令,所述第三预览视频请求指令中包含请求切换的目标分辨率,所述第三预览视频请求指令用于指示所述VR视频应用发送与所述目标分辨率相对应的预览视频。
- 根据权利要求25所述的方法,其特征在于,所述目标分辨率低于所述主屏窗口内主视频的分辨率。
- 根据权利要求20所述的方法,其特征在于,响应于用户在所述预览窗口内输入的操作指令,向所述VR视频应用发送与所述操作指令相对应的预览视频请求指令,包括:响应于用户在所述预览窗口内输入的播放速度切换指令,向所述VR视频应用发送第四预览视频请求指令,所述第四预览视频请求指令中包含请求切换的目标播放速度,所述第四预览视频请求指令用于指示所述VR视频应用发送与所述目标播放速度相对应的预览视频。
- 根据权利要求16所述的方法,其特征在于,还包括:响应于用户输入的预览音频开启指令,开启所述预览视频对应的音频,关闭所述主屏窗口内主视频对应的音频;和/或,响应于用户输入的预览音频关闭指令,关闭所述预览视频对应的音频,开启所述主屏窗口内主视频对应的音频。
- 根据权利要求16所述的方法,其特征在于,还包括:响应于用户输入的开始主屏播放指令,关闭所述预览窗口;控制所述主屏窗口内的主视频从第八时间戳开始播放,所述第八时间戳为所述预览窗口关闭时所述预览视频的时间戳;控制所述主屏窗口获取用户操作焦点。
- 根据权利要求16所述的方法,其特征在于,还包括:响应于用户输入的取消预览窗口指令,关闭所述预览窗口;控制所述主屏窗口获取用户操作焦点。
- 根据权利要求16-30任一项所述的方法,其特征在于,所述预览窗口与所述主屏窗口在所述虚拟空间内平行设置。
- 一种电子设备,其特征在于,所述电子设备包括:一个或多个处理器;存储器;以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述电子设备执行时,使得所述电子设备执行权利要求1至15中任意一项所述的视频预览方法。
- 一种电子设备,其特征在于,所述电子设备包括:一个或多个处理器;存储器;以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述电子设备执行时,使得所述电子设备执行权利要求16至31中任意一项所述的视频预览方法。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括存储的程序,其中,在所述程序运行时控制所述计算机可读存储介质所在设备执行权利要求1至15中任意一项所述的视频预览方法。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括存储的程序,其中,在所述程序运行时控制所述计算机可读存储介质所在设备执行权利要求16至31中任意一项所述的视频预览方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011024993.8 | 2020-09-25 | ||
CN202011024993.8A CN114257852A (zh) | 2020-09-25 | 2020-09-25 | 基于vr场景的视频预览方法、电子设备和存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022062899A1 true WO2022062899A1 (zh) | 2022-03-31 |
Family
ID=80789182
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/117157 WO2022062899A1 (zh) | 2020-09-25 | 2021-09-08 | 基于vr场景的视频预览方法、电子设备和存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114257852A (zh) |
WO (1) | WO2022062899A1 (zh) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103325396A (zh) * | 2012-03-23 | 2013-09-25 | 深圳市快播科技有限公司 | 一种用于播放器的播放预览方法和*** |
US20170263033A1 (en) * | 2016-03-10 | 2017-09-14 | FlyInside, Inc. | Contextual Virtual Reality Interaction |
CN107438813A (zh) * | 2015-05-27 | 2017-12-05 | 谷歌公司 | 包括用于虚拟现实考察的领导方设备和参与方设备的*** |
CN108235138A (zh) * | 2016-12-15 | 2018-06-29 | 宏达国际电子股份有限公司 | 预览视频的方法、处理装置及其计算机*** |
CN108924538A (zh) * | 2018-05-30 | 2018-11-30 | 太若科技(北京)有限公司 | Ar设备的屏幕拓展方法 |
CN109257611A (zh) * | 2017-07-12 | 2019-01-22 | 阿里巴巴集团控股有限公司 | 一种视频播放方法、装置、终端设备和服务器 |
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 (zh) * | 2018-03-28 | 2019-10-03 | 华为技术有限公司 | 视频的预览方法及电子设备 |
CN110507992A (zh) * | 2019-08-28 | 2019-11-29 | 腾讯科技(深圳)有限公司 | 一种虚拟场景中的技术支持方法、装置、设备及存储介质 |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092467B (zh) * | 2013-01-29 | 2016-08-03 | 华为终端有限公司 | 一种视频预览的方法及装置 |
US11032535B2 (en) * | 2016-09-19 | 2021-06-08 | Verizon Patent And Licensing Inc. | Generating a three-dimensional preview of a three-dimensional video |
CN110114746A (zh) * | 2017-01-04 | 2019-08-09 | 武汉六为科技有限公司 | 显示虚拟现实画面的方法和虚拟现实设备 |
CN109561337A (zh) * | 2018-11-19 | 2019-04-02 | 青岛海信传媒网络技术有限公司 | 预览视频的播放方法和装置 |
CN109600659B (zh) * | 2018-12-17 | 2021-08-31 | 北京小米移动软件有限公司 | 播放视频时的操作方法、装置、设备及存储介质 |
CN110347305A (zh) * | 2019-05-30 | 2019-10-18 | 华为技术有限公司 | 一种vr多屏显示方法及电子设备 |
-
2020
- 2020-09-25 CN CN202011024993.8A patent/CN114257852A/zh active Pending
-
2021
- 2021-09-08 WO PCT/CN2021/117157 patent/WO2022062899A1/zh active Application Filing
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103325396A (zh) * | 2012-03-23 | 2013-09-25 | 深圳市快播科技有限公司 | 一种用于播放器的播放预览方法和*** |
CN107438813A (zh) * | 2015-05-27 | 2017-12-05 | 谷歌公司 | 包括用于虚拟现实考察的领导方设备和参与方设备的*** |
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 (zh) * | 2016-12-15 | 2018-06-29 | 宏达国际电子股份有限公司 | 预览视频的方法、处理装置及其计算机*** |
CN109257611A (zh) * | 2017-07-12 | 2019-01-22 | 阿里巴巴集团控股有限公司 | 一种视频播放方法、装置、终端设备和服务器 |
WO2019183997A1 (zh) * | 2018-03-28 | 2019-10-03 | 华为技术有限公司 | 视频的预览方法及电子设备 |
CN108924538A (zh) * | 2018-05-30 | 2018-11-30 | 太若科技(北京)有限公司 | Ar设备的屏幕拓展方法 |
CN110507992A (zh) * | 2019-08-28 | 2019-11-29 | 腾讯科技(深圳)有限公司 | 一种虚拟场景中的技术支持方法、装置、设备及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN114257852A (zh) | 2022-03-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102350329B1 (ko) | 전화 통화 동안의 실시간 공유 기법 | |
JP7053869B2 (ja) | ビデオ生成の方法、装置、電子機器及びコンピュータ読み取り可能記憶媒体 | |
JP7157177B2 (ja) | ビデオ取得方法、装置、端末および媒体 | |
WO2020029526A1 (zh) | 视频特效添加方法、装置、终端设备及存储介质 | |
JP7195426B2 (ja) | ディスプレイページのインタラクション制御方法及び装置 | |
CN111651116A (zh) | 分屏交互方法、电子设备及计算机存储介质 | |
JP6995425B2 (ja) | 仮想シーン表示方法、装置、及びコンピュータプログラム | |
JP7490830B2 (ja) | 表示制御方法及びプログラム | |
JP7217357B2 (ja) | ミニプログラムのデータバインディング方法、装置、デバイス及びコンピュータプログラム | |
TW202007142A (zh) | 視頻檔案的生成方法、裝置及儲存媒體 | |
TW201218060A (en) | Data processing apparatus and method | |
CN112653920B (zh) | 视频处理方法、装置、设备及存储介质 | |
KR101850302B1 (ko) | 사용자 단말 장치 및 그 렌더링 장치 제어 방법 | |
EP4171006A1 (en) | Previewing method and apparatus for effect application, and device and storage medium | |
CN109542430B (zh) | 用于实现界面交互效果的方法、装置及电子设备 | |
KR101700786B1 (ko) | 동영상 파일의 블록 조합을 위한 사용자 인터페이스 방법 | |
WO2022062899A1 (zh) | 基于vr场景的视频预览方法、电子设备和存储介质 | |
WO2022194070A1 (zh) | 应用程序的视频处理方法和电子设备 | |
CN116112617A (zh) | 演播画面的处理方法、装置、电子设备及存储介质 | |
CN115460448A (zh) | 一种媒体资源编辑方法、装置、电子设备以及存储介质 | |
CA3224322A1 (en) | Video playing method and apparatus, and storage medium | |
CN111324255B (zh) | 一种基于双屏终端的应用处理方法及通信终端 | |
JP2017192071A (ja) | 情報処理方法、情報処理装置、及びプログラム | |
WO2023165363A1 (zh) | 短视频的播放方法、装置及电子设备 | |
JP2017192072A (ja) | 情報処理方法、プログラム、及び端末 |
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 |