WO2022143525A1 - 视频播放方法、装置及电子设备 - Google Patents

视频播放方法、装置及电子设备 Download PDF

Info

Publication number
WO2022143525A1
WO2022143525A1 PCT/CN2021/141631 CN2021141631W WO2022143525A1 WO 2022143525 A1 WO2022143525 A1 WO 2022143525A1 CN 2021141631 W CN2021141631 W CN 2021141631W WO 2022143525 A1 WO2022143525 A1 WO 2022143525A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
window
picture
target
playback
Prior art date
Application number
PCT/CN2021/141631
Other languages
English (en)
French (fr)
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 WO2022143525A1 publication Critical patent/WO2022143525A1/zh

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/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
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • 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/485End-user interface for client configuration
    • H04N21/4858End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows

Definitions

  • the present application belongs to the field of electronic technology, and in particular relates to a video playback method, device and electronic equipment.
  • the user in the process of playing a certain video, if the user wants to carefully view the partial picture of the video, the user needs to input a specific video zooming gesture on the screen, for example, perform multi-finger swipe on the screen to Trigger the electronic device to zoom in on the video image displayed on the screen, and then view the part of the image of interest in the entire zoomed-in video image.
  • a specific video zooming gesture on the screen for example, perform multi-finger swipe on the screen to Trigger the electronic device to zoom in on the video image displayed on the screen, and then view the part of the image of interest in the entire zoomed-in video image.
  • the video image will exceed the display area of the screen, the video image displayed on the screen is a part of the entire video image, and part of the video image will not be displayed on the screen. , for example, after zooming in the video, the video image of a part of the video image that is closer to the edge of the screen will not be displayed on the screen.
  • the purpose of the embodiments of the present application is to provide a video playback method, which can solve the problem of poor video playback effect after the video screen is enlarged.
  • an embodiment of the present application provides a video playback method, the method includes: in the case where a first video picture of a target video is displayed in a first video playback window, in a second video playback window, displaying the above-mentioned first video playback window.
  • a second video picture in a target area in a video picture receiving a first input from the user; in response to the first input, updating the video picture displayed in the second video playing window according to the target zoom factor.
  • an embodiment of the present application provides a video playback device, the device includes: a display module, a receiving module, and a processing module, wherein:
  • the above-mentioned display module is configured to display the second video picture in the target area in the above-mentioned first video picture in the second video playing window when the first video picture of the target video is displayed in the first video playing window;
  • the above-mentioned The receiving module is used for receiving the first input of the user;
  • the above-mentioned processing module is used for updating the video picture displayed in the above-mentioned second video playing window according to the target zoom factor in response to the first input received by the above-mentioned receiving module.
  • embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
  • an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.
  • an embodiment of the present application provides a computer program product, where the program product is stored in a non-volatile storage medium, and the program product is executed by at least one processor to implement the method described in the first aspect.
  • the electronic device when the electronic device plays the first video picture of the target video in the first video playing window, the electronic device may display the second video picture in the target area in the first video picture in the second video playing window , in this way, after the electronic device receives the user's first input to the second video playback window, it can update the video picture displayed in the second video window according to the target zoom factor.
  • the electronic device can display the partial picture (that is, the second video picture) in the target video that the user pays attention to in the new video playing window (that is, the second video playing window).
  • the partial picture displayed in the window is reduced according to the zoom factor or method, so that the user can intuitively view the concerned partial picture in the second video playback window, and zoom in and out the concerned partial picture according to actual needs to improve the performance. video playback effect.
  • FIG. 1 is a flowchart of a video playback method provided by an embodiment of the present application.
  • FIG. 2 is one of the schematic diagrams of the interfaces to which a video playback method provided by an embodiment of the present application is applied;
  • FIG. 3 is one of the schematic diagrams of the interfaces to which a video playback method provided by an embodiment of the present application is applied;
  • FIG. 4 is a schematic structural diagram of a video playback device provided by an embodiment of the present application.
  • FIG. 6 is a second schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
  • first, second and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between “first”, “second”, etc.
  • the objects are usually of one type, and the number of objects is not limited.
  • the first object may be one or more than one.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the associated objects are in an "or” relationship.
  • the video playback method provided by the embodiment of the present application can be applied to a scene of playing a video.
  • the video picture in the lower left corner of the video picture can be displayed in the new video. It is displayed in the playback window (that is, the second video playback window), and the video picture in the lower left corner can be enlarged in the video playback window, and the original video picture of the video will not be enlarged, thus improving the quality of the video. Play effect.
  • An embodiment of the present application provides a video playback method.
  • the video playback method provided by the embodiment of the present application may include the following steps 101 to 103 .
  • the method is exemplarily described below by taking the execution subject as a video playback device as an example.
  • Step 101 In the case that the first video picture of the target video is displayed in the first video playing window, display the second video picture in the target area in the first video picture in the second video playing window.
  • the above-mentioned second video playback window and the first video playback window may be displayed in a stacked manner, displayed side by side, or displayed in a split screen, which is not limited in this embodiment of the present application.
  • the first video playback window and the second video playback window may be picture-in-picture video playback windows.
  • step 101 in the second video playing window, displaying the second video picture in the target area in the above-mentioned first video picture, including the following step A1:
  • Step A1 Display the second video playback window on the first video playback window.
  • the second video playing window displays a second video picture in the target area of the first video picture; the window size of the second video playing window is smaller than the window size of the first video playing window.
  • a video screen 21 is displayed in the video playback window 20.
  • the zoom factor corresponding to the user's sliding input is 1.5 times.
  • the video screen 22 enlarged by 1.5 times is displayed in the video playback window 20, as shown in (b) of FIG. 2 .
  • the video playback device may enable the picture-in-picture playback function, enter the picture-in-picture playback mode, and display the above-mentioned second video playback window on the first video playback window when entering the picture-in-picture playback mode.
  • the user can trigger the electronic device to enable the picture-in-picture playback function by clicking on the "picture-in-picture" function control of the video playback interface.
  • the window size and display position of the second video playback window may be the default size and position of the system.
  • the window size and display position of the above-mentioned second video playback window may be flexibly adjusted by the video playback device according to actual application scenarios or user requirements. Extend operation to adjust the position and size of the second video playback window.
  • the video playback device may be the above-mentioned second video playback window or the second video playback window through the user's editing operation on the second video playback window or the video screen in the second video playback window.
  • the above-mentioned special effects include at least one of the following: a border, an appearance time of a video picture, an appearance special effect and an exit special effect of the video picture, and a filter style of the video picture.
  • the user may click the "Edit" button on the first video playback window to enter the "Edit menu” and select a suitable frame from the edit menu.
  • the video playing device may
  • the edited video pictures in the second video playback window are synthesized to generate a new picture-in-picture video picture, and the new picture-in-picture video is saved, thereby obtaining a personal creative video with a picture-in-picture playback function.
  • the above-mentioned target area is any area in the first video picture.
  • the size of the target area may be a preset fixed value (for example, the size of the target area may be set to 120 ⁇ 100), or the video playback device may adjust the size of the target area according to target parameters .
  • the above target parameter includes at least one of the following: the size of the second video playback window, and the target zoom factor. That is, the size of the target area may vary with the size of the second video playback window and/or the target zoom factor.
  • the video playback device can adjust the size of the target area according to the size of the second video playback window and the zoom factor, so that after zooming in on the video screen in the second video window, the content of the partial screen is prevented from exceeding the display range of the second video window, After the video picture in the second video window is zoomed out, blank areas in the second video window are avoided, so that the second video window can be effectively used.
  • the target area is: a specific area in the first video playback window, or an area where the target video content in the first video screen is located.
  • the above target video content includes any one of the following: video content that meets the first predetermined condition, and video content selected by the user from the first target video.
  • the above-mentioned first predetermined condition includes at least one of the following: a predetermined video object in the first video picture, and a predetermined part of the video object in the first video picture.
  • the above-mentioned predetermined video objects may include at least one of the following: characters, animals, buildings, flowers, trees, and the like.
  • the predetermined part in the above-mentioned video object may be the face or limbs
  • the predetermined part in the above-mentioned video object may be the following At least one item: roof, doors and windows, exterior wall patterns, etc.
  • the video playback device can intelligently identify the video picture content in the first video picture, and determine the target area.
  • the region where the target video content meets the first predetermined condition in the first video picture is used as the target region.
  • the video playback device enables the second video playback window to continuously display the same video content, thereby improving the user's video viewing experience.
  • the above-mentioned target area is a specific area in the first video playback window, during the playback of the target video, with the change of the first video picture, the video content in the above-mentioned characteristic area will also change with changes occur.
  • the above-mentioned target area may be: an area where the focus of the user's sight on the first video image is located, or an area manually selected by the user on the first video image.
  • the video playback apparatus may obtain the focus of the user's sight on the first video picture, and take the area where the focus of the user's sight on the first video picture is as the target area.
  • the video playback device can track the focus of the user's line of sight through the pupil-corneal reflection technology.
  • the pupil-corneal reflection technology For the specific implementation of the pupil-corneal reflection technology, reference may be made to the related art, which will not be repeated in this application.
  • the video playback device after receiving the user's selection input on the first video picture, the video playback device will display a selection box on the first video picture, and use the region selected by the selection box as the target region.
  • Step 102 Receive a first input from the user.
  • the above-mentioned first input may be the user's input on the first video playback window or the second video playback window.
  • the above-mentioned first input includes any one of the following: touch input (eg, click input, sliding input, pressing input), text input, voice input, and the like.
  • the above-mentioned first input may be a double-click input by the user in the second video playback window, a single-finger sliding input, a double-pointing sliding input in the opposite direction, and a dragging input on the slider of the control bar in the second video window. , enter the input of characters in the second video playback window.
  • Step 103 In response to the first input, update the video picture displayed in the second video playback window according to the target zoom factor.
  • the video playback device when updating the video screen displayed in the second video playback window according to the target zoom factor, the video playback device will update the above-mentioned target area according to the target zoom factor, and then, according to the target zoom factor, the second video playback The window displays the updated video content in the target area.
  • the following algorithms can be used, such as the nearest neighbor difference method, bilinear interpolation method, and bilinear cubic interpolation method. For details, please refer to the related art, which will not be repeated in this application.
  • the target zoom factor may be a preset zoom factor, or a zoom factor corresponding to the first input.
  • the above-mentioned target zoom factor is used to represent the zoom degree of the video picture in the second video playback window.
  • the size of the zoom factor can be determined according to the change amount of the displacement between the initial position and the current position of the sliding input.
  • the video playback apparatus may determine the zoom factor according to the position of the slider on the control bar.
  • the video picture displayed in the second video playback window may include any one of the following: a real-time video picture in the above-mentioned target area, a video picture delayed by a predetermined time in the above-mentioned target area,
  • the above-mentioned target area includes a video picture of predetermined video content, a video picture selected by the user in the target area.
  • the predetermined video content may be an object in the video.
  • the video picture in the second video playback window is played synchronously with the first video picture in the first video playback window, that is, the video picture in the second video playback window has the same playback progress as the first video picture.
  • the second video playback window also displays the video frame in the target area of the video frame.
  • the electronic device when the electronic device plays the first video picture of the target video in the first video playback window, the electronic device may display the target area in the first video picture in the second video playback window. In this way, when the electronic device receives the user's first input to the second video playback window, it can update the video image displayed in the second video window according to the target zoom factor.
  • the electronic device can display the partial picture (that is, the second video picture) in the target video that the user pays attention to in the new video playing window (that is, the second video playing window).
  • the partial picture displayed in the window is reduced according to the zoom factor or method, so that the user can intuitively view the concerned partial picture in the second video playback window, and zoom in and out the concerned partial picture according to actual needs to improve the performance. video playback effect.
  • the video playback device may perform image synthesis between the video picture in the first video playback window and the video picture in the second video playback window to generate a video picture.
  • New picture-in-picture video footage may be performed in the picture-in-picture playback mode.
  • the video playback apparatus may acquire the picture-in-picture video images in the entire playback process, and encode them to generate a new picture-in-picture video.
  • the video playback device may perform editing operations on the above-mentioned new picture-in-picture video, such as adding subtitles, adding soundtracks, adding scene special effects, and the like.
  • the user may select the target area in the first video picture by himself/herself in the first video playback window.
  • the video playing method provided by the embodiment of the present application may further include the following step B1:
  • Step B1 Receive a second input from the user when the first video screen is displayed in the first video playback window.
  • the above-mentioned second input is an input of the user selecting the target area in the above-mentioned first video picture.
  • the above-mentioned second input may be any feasible input of the user on the first video picture.
  • the target area is: on the first video screen, a predetermined screen range centered on the touch point of the click input (the predetermined screen range is based on the second video image) The area within the window size of the playback window.
  • the video playback apparatus may display the user's touch track on the first video screen to prompt the user for the current input position.
  • step A2 In combination with the above-mentioned step B1, in the above-mentioned step 101, the second video picture in the target area in the above-mentioned first video picture is displayed in the second video playback window, including the following step A2:
  • Step A2 In response to the second input, in the second video playing window, display the second video picture in the target area.
  • the video playback device takes the position where the user clicked on the first video screen as the center point of the target area, and selects the box 31
  • the frame-selected area is used as the target area, and the video picture in the target area is displayed in the second video playback window 32 .
  • the video playback apparatus may pause to play the target video. Further, after the user selects the target area, in other words, when the user determines that the video content in the target area selected by the user is the partial video content that the user wants to view further, the user can trigger the third input by executing the third input.
  • the video playback device continues to play the target video, and at this time, the real-time video content in the target area is displayed in the second video playback window.
  • the video playback device may switch and display the above N target areas in the second video playback window according to the video playback process. video pictures in the target area, so that different partial video pictures of the target video are displayed in the second video playback window in different playback periods of the target video.
  • the above-mentioned second input is used to select N target areas on the above-mentioned first video screen, and one target area corresponds to a playback period of the target video, in the above-mentioned step 101, display in the second video playback window.
  • the process of the second video picture in the target area may include the following steps C1:
  • Step C1 In the second video playing window, according to the playing period of the target video, the video images in each target area are displayed in sequence.
  • the video playback apparatus may sequentially display the video pictures in each target area according to the playback period of the target video corresponding to each target area in the above N target areas.
  • the above-mentioned N target areas may be N areas in the first video playback window.
  • the above-mentioned N target regions correspond to N kinds of target video contents, and one target region corresponds to one kind of target video contents.
  • the N playback periods corresponding to the above N target areas may be automatically divided by the video playback device according to the total playback duration of the target video, or automatically divided by the video playback device according to the current remaining playback duration of the target video, or It may be set by the user according to actual needs, which is not limited in this embodiment of the present application. For example, if the remaining playback time of the target video is 30 minutes, the video playback device may equally divide the remaining playback time into three time periods (ie, 1-10 minutes, 11-20 minutes, and 21-30 minutes).
  • the video playback device may, based on the current real-time playback time of the target video, determine the playback period to which the current real-time playback time belongs, and then display the playback period in the second video playback window.
  • the real-time video picture in the corresponding target area may be displayed.
  • the play period corresponding to area C is 31-35 minutes.
  • the real-time video picture in the area A is displayed in the second video playback window, and within the 20th-30th minute playback period of the target video, the second video playback window displays
  • the real-time video picture in the area B is displayed in the second video playback window.
  • the video playback device can switch and display video images in multiple target areas in the second video playback window, which is more in line with the actual needs of the user.
  • the execution body may be a video playback device, or a control module in the video playback device for executing the video playback method.
  • the video playing device provided by the embodiment of the present application is described by taking a video playing device executing a video playing method as an example.
  • the display device 600 includes: a display module 601 , a receiving module 602 and a processing module 603 , wherein:
  • the above-mentioned display module 601 is configured to display the second video picture in the target area in the above-mentioned first video picture in the second video playing window when the first video picture of the target video is displayed in the first video playing window;
  • the receiving module 602 is configured to receive the first input;
  • the processing module 603 is configured to update the video image displayed in the second video playback window according to the target zoom factor in response to the first input received by the receiving module 602 .
  • the video picture displayed in the above-mentioned second video playback window is: a real-time video picture in the above-mentioned target area.
  • the electronic device when the electronic device plays the first video picture of the target video in the first video playback window, the electronic device can display the target area in the first video picture in the second video playback window. In this way, when the electronic device receives the user's first input to the second video playback window, it can update the video image displayed in the second video window according to the target zoom factor.
  • the electronic device can display the partial picture (that is, the second video picture) in the target video that the user pays attention to in the new video playing window (that is, the second video playing window).
  • the partial picture displayed in the window is reduced according to the zoom factor or method, so that the user can intuitively view the concerned partial picture in the second video playback window, and zoom in and out the concerned partial picture according to actual needs to improve the performance. video playback effect.
  • the above-mentioned display module 601 is further configured to display the above-mentioned second video playing window on the above-mentioned first video playing window; wherein, the above-mentioned second video playing window displays the above-mentioned first video picture.
  • the second video picture in the target area; the window size of the second video playback window is smaller than the window size of the first video playback window.
  • the above receiving module 602 is further configured to receive the user's selection of the target area in the above first video screen when the above first video playback window displays the above first video screen.
  • the second input; the above-mentioned display module 601 is specifically configured to display the second video picture in the target area in the second video playback window in response to the first input received by the above-mentioned receiving module 602 .
  • the above-mentioned second input is used to select N target areas on the above-mentioned first video screen; one target area corresponds to one playback period of the above-mentioned target video; the above-mentioned display module 601 is specifically used for In the second video playback window, according to the playback period of the target video corresponding to each of the N target regions, the video images in each of the target regions are sequentially displayed.
  • the above-mentioned target area is an area where the target video content in the above-mentioned first video picture is located.
  • the video playback device in this embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • netbook or a personal digital assistant
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the video playback device in the embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the video playback device provided in the embodiment of the present application can implement each process implemented by the method embodiments of FIG. 1 to FIG. 3 , and to avoid repetition, details are not described here.
  • an embodiment of the present application further provides an electronic device 700, including a processor 701, a memory 702, a program or instruction stored in the memory 702 and executable on the processor 701,
  • an electronic device 700 including a processor 701, a memory 702, a program or instruction stored in the memory 702 and executable on the processor 701,
  • the program or instruction is executed by the processor 701
  • each process of the above-mentioned video playback method embodiments can be realized, and the same technical effect can be achieved. To avoid repetition, details are not described here.
  • the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110, etc. part.
  • the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions.
  • a power source such as a battery
  • the structure of the electronic device shown in FIG. 6 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than those shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .
  • the above-mentioned display unit 106 is configured to display the second video in the target area in the above-mentioned first video picture in the second video playing window when the first video picture of the target video is displayed in the first video playing window screen; the above-mentioned user input unit 107 is used to receive the first input; the above-mentioned processor 110 is used to respond to the first input received by the above-mentioned user input unit 107, according to the target zoom factor, update the above-mentioned second video playback window displayed in the window video screen.
  • the video picture displayed in the second video playback window is: a real-time video picture in the target area.
  • the electronic device when the electronic device plays the first video picture of the target video in the first video playback window, the electronic device can display the above-mentioned first video picture in the target area in the second video playback window.
  • the second video picture in this way, after the electronic device receives the user's first input to the second video playback window, it can update the video picture displayed in the second video window according to the target zoom factor.
  • the electronic device can display the partial picture (that is, the second video picture) in the target video that the user pays attention to in the new video playing window (that is, the second video playing window).
  • the partial picture displayed in the window is reduced according to the zoom factor or method, so that the user can intuitively view the concerned partial picture in the second video playback window, and zoom in and out the concerned partial picture according to actual needs to improve the performance. video playback effect.
  • the above-mentioned display unit 106 is further configured to display the above-mentioned second video playing window on the above-mentioned first video playing window; wherein, the above-mentioned second video playing window displays the above-mentioned first video picture.
  • the second video picture in the target area; the window size of the second video playback window is smaller than the window size of the first video playback window.
  • the above-mentioned user input unit 107 is further configured to receive the user's selection of a target area in the above-mentioned first video picture when the above-mentioned first video playback window displays the above-mentioned first video picture.
  • the display unit 106 is specifically configured to display the second video image in the target area in the second video playback window in response to the second input received by the user input unit 107 .
  • the above-mentioned second input is used to select N target areas on the above-mentioned first video screen; one target area corresponds to one playback period of the above-mentioned target video; the above-mentioned display unit 106 is specifically used for In the second video playback window, according to the playback period of the target video corresponding to each of the N target regions, the video images in each of the target regions are sequentially displayed.
  • the above-mentioned target area is an area where the target video content in the above-mentioned first video picture is located.
  • the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042. Such as camera) to obtain still pictures or video image data for processing.
  • the display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 107 includes a touch panel 1071 and other input devices 1072 .
  • the touch panel 1071 is also called a touch screen.
  • the touch panel 1071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which are not described herein again.
  • Memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems.
  • the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and an application program, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 110 .
  • Embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium.
  • a program or an instruction is stored on the readable storage medium.
  • the processor is the processor in the electronic device described in the foregoing embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each of the foregoing xxx method embodiments process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
  • An embodiment of the present application provides a computer program product, where the program product is stored in a non-volatile storage medium, and the program product is executed by at least one processor to implement the method according to the first aspect.
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
  • the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
  • a storage medium such as ROM/RAM, magnetic disk, CD-ROM

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请公开了一种视频播放方法、装置及电子设备。上述方法包括:在第一视频播放窗口显示有目标视频的第一视频画面的情况下,在第二视频播放窗口中,显示上述第一视频画面中目标区域中的第二视频画面;接收第一输入;响应于上述第一输入,按照目标缩放倍数,更新上述第二视频播放窗口中显示的视频画面。

Description

视频播放方法、装置及电子设备
相关申请的交叉引用
本申请主张在2020年12月28日在中国提交的中国专利申请号No.202011583922.1的优先权,其全部内容通过引用包含于此。
技术领域
本申请属于电子技术领域,具体涉及一种视频播放方法、装置及电子设备。
背景技术
随着电子设备的智能化程度不断提高,电子设备中的视频播放应用扮演着重要的角色。
在相关技术中,在播放某一视频的过程中,如果用户想要仔细查看该视频的局部画面,则需要用户在屏幕上输入特定的视频放大手势,例如,在屏幕上进行多指滑动,来触发电子设备放大在屏幕上显示的视频画面,然后,在整个放大的视频画面中查看关注的局部画面。
然而,由于屏幕的显示区域有限,采取上述方法放大视频后,视频画面会超出屏幕的显示区域,屏幕中显示的视频画面是整个视频画面的一部分,而部分视频画面将不会被显示在屏幕中,例如,将视频放大后,视频画面距离屏幕边缘较近的一部分区域的视频画面将不会显示在屏幕上。
如此,导致视频播放效果差,降低用户的观看体验。
发明内容
本申请实施例的目的是提供一种视频播放方法,能够解决在将视频画面放大后,视频播放效果差的问题。
为了解决上述技术问题,本申请是这样实现的:
第一方面,本申请实施例提供了一种视频播放方法,该方法包括:在第一视频播 放窗口显示有目标视频的第一视频画面的情况下,在第二视频播放窗口中,显示上述第一视频画面中目标区域中的第二视频画面;接收用户的第一输入;响应于上述第一输入,按照目标缩放倍数,更新上述第二视频播放窗口中显示的视频画面。
第二方面,本申请实施例提供了一种视频播放装置,该装置包括:显示模块、接收模块和处理模块,其中:
上述显示模块,用于在第一视频播放窗口显示有目标视频的第一视频画面的情况下,在第二视频播放窗口中,显示上述第一视频画面中目标区域中的第二视频画面;上述接收模块,用于接收用户的第一输入;上述处理模块,用于响应于上述接收模块接收的第一输入,按照目标缩放倍数,更新上述第二视频播放窗口中显示的视频画面。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。
第六方面,本申请实施例提供了一种计算机程序产品,该程序产品被存储在非易失的存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的方法。
在本申请实施例中,电子设备在第一视频播放窗口播放目标视频的第一视频画面的情况下,可以在第二视频播放窗口中显示上述第一视频画面中目标区域中的第二视频画面,这样,当电子设备接收到用户对第二视频播放窗口的第一输入后,便可按照目标缩放倍数更新第二视频窗口中显示的视频画面。通过上述方法,电子设备可以在新的视频播放窗口(即,第二视频播放窗口)中显示目标视频中用户关注的局部画面(即,第二视频画面),同时,电子设备还可以在第二视频播放窗口中按照缩放倍数缩小或方法该窗口中显示的局部画面,使得用户可以直观地在第二视频播放窗口中查看关注的局部画面,并根据实际需求对关注的局部画面进行缩放操作,提高了视频播 放效果。
附图说明
图1是本申请实施例提供的一种视频播放方法的流程图;
图2是本申请实施例提供的一种视频播放方法所应用的界面的示意图之一;
图3是本申请实施例提供的一种视频播放方法所应用的界面的示意图之一;
图4是本申请实施例提供的一种视频播放装置的结构示意图;
图5是本申请实施例提供的一种电子设备的硬件结构示意图之一;
图6是本申请实施例提供的一种电子设备的硬件结构示意图之二。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的视频播放方法进行详细地说明。
本申请实施例提供的视频播放方法可以应用于播放视频的场景中。
以使用电子设备中的视频播放APP播放视频为例。在使用视频播放APP播放视频的过程中,如果用户想要仔细查看该视频的视频画面的左下角的画面,需要在屏幕上进行多指滑动,来触发电子设备放大整个视频画面,由于放大后的视频画面会超出屏幕的显示区域,因此,屏幕中显示的是整个视频画面中的一部分视频画面,使得在视频画面放大的情 况下,用户不能查看到完整的视频画面,从而导致视频播放效果差。
在本申请实施中,在使用视频播放APP播放视频的过程中,如果用户想要仔细查看该视频的视频画面的左下角的画面,则可以将该视频画面的左下角的视频画面在新的视频播放窗口(即,第二视频播放窗口)中显示,并且可以在该视频播放窗口中对左下角的视频画面进行放大,而该视频原本的视频画面并不会被放大,如此,提高了视频的播放效果。
本申请实施例提供了一种视频播放方法,如图1所示,本申请实施例提供的视频播放方法可以包括下述的步骤101-步骤103。下面以执行主体为视频播放装置为例对该方法进行示例性说明。
步骤101:在第一视频播放窗口显示有目标视频的第一视频画面的情况下,在第二视频播放窗口中,显示第一视频画面中目标区域中的第二视频画面。
在本申请实施例中,上述第二视频播放窗口与第一视频播放窗口间可以堆叠显示,并排显示或者分屏显示,本申请实施例对此不做限定。
可选地,在本申请实施例中,上述第一视频播放窗口和第二视频播放窗口可以为画中画视频播放窗口。
示例性的,上述步骤101中在第二视频播放窗口中,显示上述第一视频画面中目标区域中的第二视频画面,包括如下步骤A1:
步骤A1:在上述第一视频播放窗口上显示上述第二视频播放窗口。
其中,上述第二视频播放窗口显示有上述第一视频画面中目标区域中的第二视频画面;上述第二视频播放窗口的窗口尺寸小于上述第一视频播放窗口的窗口尺寸。
举例说明,如图2中的(a)所示,视频播放窗口20中显示有视频画面21,当用户在视频播放窗口20中向上滑动时,假设用户的滑动输入对应的缩放倍数为1.5倍,则在视频播放窗口20中显示放大1.5倍的视频画面22,如图2中的(b)所示。
示例性的,视频播放装置可以开启画中画播放功能,进入画中画播放模式,并在进入画中画播放模式的情况下,在第一视频播放窗口上显示上述第二视频播放窗口。示例性的,在显示视频播放界面的情况下,用户可以通过点击视频播放界面的“画中画”功能控件,触发电子设备开启画中画播放功能。
可选地,在本申请实施例中,上述第二视频播放窗口的窗口尺寸和显示位置可以是系 统默认的尺寸和位置。或者,上述第二视频播放窗口的窗口尺寸和显示位置可以是视频播放装置按照实际的应用场景或者用户需求灵活的进行调整,例如,视频播放装置根据用户对第二视频播放窗口的拖拽或者拉伸操作来调整第二视频播放窗口的位置和尺寸。
可选地,在本申请实施例中,视频播放装置可以通过用户对第二视频播放窗口或者第二视频播放窗口中的视频画面的编辑操作,为上述第二视频播放窗口或者第二视频播放窗口中的视频画面添加特效,以提高显示视频的趣味性。示例性的,上述特效包括以下至少一种:边框,视频画面的出场时间,视频画面的出场特效和退场特效,视频画面的滤镜风格。例如,用户可以点击第一视频播放窗口上的“编辑”按钮进入“编辑菜单”,并从编辑菜单中选择合适的边框。
可选地,在本申请实施例中,用户在对第二视频播放窗口或者第二视频播放窗口中的视频画面进行个性化编辑后,视频播放装置可以将第一视频播放窗口中的视频画面和编辑后的第二视频播放窗口中的视频画面进行合成,生成一个新的画中画视频画面,并保存该新的画中画视频,从而得到一个具有画中画播放功能的个人创意视频。
在本申请实施例中,上述目标区域为第一视频画面中的任一区域。
在本申请实施例中,上述目标区域的尺寸可以是预设的固定值(例如,可以将目标区域的尺寸设置为120×100),或者,视频播放装置可以根据目标参数调整上述目标区域的大小。
示例性的,上述目标参数包括以下至少一项:第二视频播放窗口的尺寸,目标缩放倍数。即,目标区域的尺寸可以随着第二视频播放窗口的尺寸和/或目标缩放倍数的变化而变化。
如此,视频播放装置可以根据第二视频播放窗口的大小及缩放倍数调整目标区域的大小,使得在对第二视频窗口中的视频画面放大后,避免部分画面内容超出第二视频窗口的显示范围,在对第二视频窗口中的视频画面缩小后,避免第二视频窗口中出现空白区域,从而能够有效利用第二视频窗口。
可选地,在本申请实施例中,上述目标区域为:上述第一视频播放窗口中的特定区域,或者,上述第一视频画面中的目标视频内容所在区域。
示例性的,上述目标视频内容包括以下任意一项:符合第一预定条件的视频内容,用 户从第一目标视频中选择的视频内容。进一步地,上述第一预定条件包括以下至少一项:第一视频画面中的预定视频对象,第一视频画面中的视频对象的预定部位。在一种示例中,上述预定视频对象可以包括以下至少一种:人物,动物,建筑物,花卉、树木等。在一种示例中,在上述视频对象为人物的情况下,上述视频对象中的预定部位可以为面部或四肢,在上述视频对象为建筑物的情况下,上述视频对象中的预定部位可以为以下至少一项:屋顶、门窗、外墙花纹等。
示例性的,以上述目标区域为第一视频画面中的目标视频内容所在区域的为例,视频播放装置在确定目标区域时,可以对第一视频画面中的视频画面内容进行智能识别,确定出第一视频画面中符合第一预定条件的目标视频内容所在区域作为目标区域。
应注意的是,在上述目标区域为第一视频画面中的目标视频内容所在区域的情况下,在目标视频的播放过程中,随着第一视频画面的变化,目标视频内容的位置所随之会发生变化,因此,上述目标区域会随着视频的播放而改变。如此,视频播放装置通过跟踪第一视频画面中的目标视频内容,使得第二视频播放窗口能够持续显示相同视频内容,提高了用户的视频观看体验。
应注意的是,在上述目标区域为第一视频播放窗口中的特定区域的情况下,在目标视频的播放过程中,随着第一视频画面的变化,上述特征区域内的视频内容也会随之发生变化。
可选地,在本申请实施例中,上述目标区域可以为:用户在第一视频画面上的视线焦点所在的区域,或者,用户在第一视频画面上手动选择的区域。
示例性的,视频播放装置在确定上述目标区域时,可以通过获取用户在第一视频画面上的视线焦点,将用户在第一视频画面中的视线焦点所在区域作为目标区域。示例性的,视频播放装置可以通过瞳孔-角膜反射技术追踪用户的视线焦点,上述瞳孔-角膜反射技术的具体实现方式可以参考相关技术,本申请不再赘述。
示例性的,视频播放装置在接收到用户在第一视频画面上的选择输入后,会在该第一视频画面上显示一个选择框,并将该选择框所框选的区域作为目标区域。
步骤102:接收用户的第一输入。
在本申请实施例中,上述第一输入可以为用户在第一视频播放窗口,或者第二视频播 放窗口上的输入。
在本申请实施例中,上述第一输入包括以下任意一项:触控输入(如,点击输入,滑动输入,按压输入),文字输入,语音输入等。
示例性的,上述第一输入可以为用户在第二视频播放窗口中的双击输入,单指滑动输入,双指向相反方向的滑动输入,对第二视频窗口中的控制条的滑标的拖动输入,在第二视频播放窗口中输入字符的输入。
步骤103:响应于第一输入,按照目标缩放倍数,更新第二视频播放窗口中显示的视频画面。
在本申请实施例中,视频播放装置在按照目标缩放倍数更新第二视频播放窗口中显示的视频画面时,会按照目标缩放倍数更新上述目标区域,然后,按照目标缩放倍数,在第二视频播放窗口中显示更新后的目标区域中的视频内容。需要说明的是,视频播放装置在对上述第二视频画面中的视频内容进行缩放时可以通过以下几种算法来实现,如,最临近差值法、双线性插值法以及双线性三次插值法等,具体可以参考相关技术,本申请对此不再赘述。
可选地,在本申请实施例中,上述目标缩放倍数可以预设缩放倍数,或者,上述第一输入对应的缩放倍数。示例性的,上述目标缩放倍数用于表征该第二视频播放窗口中的视频画面的缩放程度。
在一种示例中,当上述第一输入为滑动输入时,可以根据滑动输入的初始位置和当前位置之间位移的变化量,确定缩放倍数的大小。
在另一种示例中,当第一输入为用户对控制条的滑标的拖动输入时,视频播放装置可以根据控制条上的滑标的位置,来确定缩放倍数。
可选地,在本申请实施例中,上述第二视频播放窗口中显示的视频画面可以包括以下任一项:上述目标区域中的实时视频画面,上述目标区域中延时预定时长的视频画面,上述目标区域中包含预定视频内容的视频画面,用户在目标区域中选择的视频画面。示例性的,上述预定视频内容可以为视频中的对象。
可以理解,上述第二视频播放窗口中的视频画面与第一视频播放窗口中的第一视频画面同步播放,即,第二视频播放窗口中的视频画面与上述第一视频画面的播放进度相同。 例如,在用户可以将第一视频画面的快进到目标视频的某一视频画面后,第二视频播放窗口中显示的也是该视频画面中的目标区域中的视频画面。
在本申请实施例提供的视频播放方法中,电子设备在第一视频播放窗口播放目标视频的第一视频画面的情况下,可以在第二视频播放窗口中显示上述第一视频画面中目标区域中的第二视频画面,这样,当电子设备接收到用户对第二视频播放窗口的第一输入后,便可按照目标缩放倍数更新第二视频窗口中显示的视频画面。通过上述方法,电子设备可以在新的视频播放窗口(即,第二视频播放窗口)中显示目标视频中用户关注的局部画面(即,第二视频画面),同时,电子设备还可以在第二视频播放窗口中按照缩放倍数缩小或方法该窗口中显示的局部画面,使得用户可以直观地在第二视频播放窗口中查看关注的局部画面,并根据实际需求对关注的局部画面进行缩放操作,提高了视频播放效果。
可选地,在本申请实施例中,在画中画播放模式下,视频播放装置可以将上述第一视频播放窗口中的视频画面和第二视频播放窗口中的视频画面进行图像合成,生成一个新的画中画视频画面。
可选地,在本申请实施例中,在目标视频的播放过程中,视频播放装置可以获取整个播放过程中的画中画视频画面,并对其进行编码,生成一个新的画中画视频。
示例性的,视频播放装置可以对上述新的画中画视频进行编辑操作,例如,添加字幕、添加配乐、添加场景特效等。
可选地,在本申请实施例中,用户可以在第一视频播放窗口中自行选择第一视频画面中的目标区域。
示例性的,上述步骤101中在第二视频播放窗口中,显示所述第一视频画面中目标区域中的第二视频画面之前,本申请实施例提供的视频播放方法还可以包括如下步骤B1:
步骤B1:在上述第一视频播放窗口显示有第一视频画面的情况下,接收用户的第二输入。
其中,上述第二输入为用户在上述第一视频画面中选择目标区域的输入。示例性的,上述第二输入可以是用户在第一视频画面上的任一可行性输入。
示例性的,以上述第二输入为点击输入为例,上述目标区域是:第一视频画面上,以该点击输入的触控点为中心的预定画面范围(该预定画面范围是基于第二视频播放窗口的 窗口尺寸确定的)内的区域。
示例性的,视频播放装置在接收用户的第二输入后,可以在第一视频画面上显示用户的触控轨迹,以提示用户当前输入的位置。
结合上述步骤B1,上述步骤101中在第二视频播放窗口中,显示上述第一视频画面中目标区域中的第二视频画面,包括如下步骤A2:
步骤A2:响应于第二输入,在第二视频播放窗口中,显示上述目标区域中的第二视频画面。
举例说明,如图3所示,在用户在第一视频画面中执行点击操作的情况下,视频播放装置以该用户在第一视频画面中点击的位置为目标区域的中心点,将选择框31框选的区域作为目标区域,并在第二视频播放窗口32中显示目标区域中的视频画面。
示例性的,在接收到上述第二输入后,为了在不影响用户观看目标视频的同时方便用户调整或重新选择上述目标区域的位置,视频播放装置可以暂停播放目标视频。进一步的,当用户选定目标区域之后,换句话说,当用户确定其选择的目标区域中的视频内容为该用户想要进一步仔细查看的局部视频内容时,用户可以通过执行第三输入来触发视频播放装置继续播放目标视频,此时,第二视频播放窗口中显示该目标区域中的实时视频内容。
可选地,在本申请实施例中,当用户在第一视频画面中选择出N个目标区域的情况下,视频播放装置可以按照视频播放进程,在第二视频播放窗口中切换显示上述N个目标区域中的视频画面,从而在目标视频的不同播放时段,在第二视频播放窗口中显示目标视频的不同局部视频画面。
示例性的,上述第二输入用于在上述第一视频画面上选择N个目标区域、且一个目标区域对应目标视频的一个播放时段的情况下,上述步骤101中在第二视频播放窗口中显示目标区域中的第二视频画面的过程可以包括如下步骤C1:
步骤C1:在第二视频播放窗口中,按照上述目标视频的播放时段,依次显示每个目标区域中的视频画面。示例性的,视频播放装置可以按照上述N个目标区域中的每个目标区域对应的目标视频的播放时段,依次显示每个目标区域中的视频画面。
示例性的,上述N个目标区域可以为第一视频播放窗口中的N个区域。
示例性的,上述N个目标区域对应N种目标视频内容,一个目标区域对应一种目标视 频内容。
示例性的,上述N个目标区域对应的N个播放时段可以是视频播放装置根据目标视频的总播放时长自动划分的,也可以是视频播放装置根据目标视频当前的剩余播放时长自动划分的,也可以是用户按照实际需求自行设置的,本申请实施例对此不做限定。例如,目标视频的剩余播放时长为30分钟,则视频播放装置可以将上述剩余播放时长平分为3个时段(即,1-10分钟,11-20分钟,21-30分钟)。
示例性的,在目标视频的播放过程中,视频播放装置可以基于该目标视频当前的实时播放时间,确定当前的实时播放时间所属的播放时段,然后,在第二视频播放窗口中显示该播放时段对应的目标区域中的实时视频画面。
举例说明,假设上述N个区域分别为区域A、区域B和区域C、且目标视频的总时长为50分钟,若用户设置区域A对应的播放时段0-15分钟,区域B对应的播放时段20-30分钟,区域C对应的播放时段31-35分钟。则在目标视频的前15分钟播放时段内,在第二视频播放窗口中显示区域A中的实时视频画面,在目标视频的第20分钟-第30分钟播放时段内,在第二视频播放窗口显示区域B中的实时视频画面,在目标视频的第31分钟-第35分钟播放时段内,在第二视频播放窗口中显示区域C中的实时视频画面。
如此,在视频播放过程当中,视频播放装置可以在第二视频播放窗口内切换显示多个目标区域中的视频画面,更加符合用户的实际需求。
需要说明的是,本申请实施例提供的视频播放方法,执行主体可以为视频播放装置,或者该视频播放装置中的用于执行视频播放方法的控制模块。本申请实施例中以视频播放装置执行视频播放方法为例,说明本申请实施例提供的视频播放装置。
本申请实施例提供一种显示装置,如图4所示,该显示装置600包括:显示模块601、接收模块602和处理模块603,其中:
上述显示模块601,用于在第一视频播放窗口显示有目标视频的第一视频画面的情况下,在第二视频播放窗口中,显示上述第一视频画面中目标区域中的第二视频画面;上述接收模块602,用于接收第一输入;上述处理模块603,用于响应于上述接收模块602接收的第一输入,按照目标缩放倍数,更新上述第二视频播放窗口中显示的视频画面。
可选地,在本申请实施例中,上述第二视频播放窗口中显示的视频画面为:上述目标 区域中的实时视频画面。
在本申请实施例提供的视频播放装置中,电子设备在第一视频播放窗口播放目标视频的第一视频画面的情况下,可以在第二视频播放窗口中显示上述第一视频画面中目标区域中的第二视频画面,这样,当电子设备接收到用户对第二视频播放窗口的第一输入后,便可按照目标缩放倍数更新第二视频窗口中显示的视频画面。通过上述方法,电子设备可以在新的视频播放窗口(即,第二视频播放窗口)中显示目标视频中用户关注的局部画面(即,第二视频画面),同时,电子设备还可以在第二视频播放窗口中按照缩放倍数缩小或方法该窗口中显示的局部画面,使得用户可以直观地在第二视频播放窗口中查看关注的局部画面,并根据实际需求对关注的局部画面进行缩放操作,提高了视频播放效果。
可选地,在本申请实施例中,上述显示模块601,还用于在上述第一视频播放窗口上显示上述第二视频播放窗口;其中,上述第二视频播放窗口显示上述第一视频画面中目标区域中的第二视频画面;上述第二视频播放窗口的窗口尺寸小于上述第一视频播放窗口的窗口尺寸。
可选地,在本申请实施例中,上述接收模块602,还用于在上述第一视频播放窗口显示有上述第一视频画面的情况下,接收用户在上述第一视频画面中选择目标区域的第二输入;上述显示模块601,具体用于响应于上述接收模块602接收的第一输入,在第二视频播放窗口中,显示目标区域中的第二视频画面。
可选地,在本申请实施例中,上述第二输入用于在上述第一视频画面上选择N个目标区域;一个目标区域对应上述目标视频的一个播放时段;上述显示模块601,具体用于在第二视频播放窗口中,按照上述N个目标区域中的每个目标区域对应的上述目标视频的播放时段,依次显示每个上述目标区域中的视频画面。
可选地,在本申请实施例中,上述目标区域为上述第一视频画面中的目标视频内容所在区域。
本申请实施例中的视频播放装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal  digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的视频播放装置可以为具有操作***的装置。该操作***可以为安卓(Android)操作***,可以为ios操作***,还可以为其他可能的操作***,本申请实施例不作具体限定。
本申请实施例提供的视频播放装置能够实现图1至图3的方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选的,如图5所示,本申请实施例还提供一种电子设备700,包括处理器701,存储器702,存储在存储器702上并可在所述处理器701上运行的程序或指令,该程序或指令被处理器701执行时实现上述视频播放方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图6为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理***与处理器110逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。图6中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,上述显示单元106,用于在第一视频播放窗口显示有目标视频的第一视频画面的情况下,在第二视频播放窗口中,显示上述第一视频画面中目标区域中的第二视频画面;上述用户输入单元107,用于接收第一输入;上述处理器110,用于响应于上述用户输入单元107接收的第一输入,按照目标缩放倍数,更新上述第二视频播放窗口中显示的视频 画面。
可选地,在本申请实施例中,上述第二视频播放窗口中显示的视频画面为:上述目标区域中的实时视频画面。
在本申请实施例提供的电子设备中,电子设备在第一视频播放窗口播放目标视频的第一视频画面的情况下,可以在第二视频播放窗口中显示上述第一视频画面中目标区域中的第二视频画面,这样,当电子设备接收到用户对第二视频播放窗口的第一输入后,便可按照目标缩放倍数更新第二视频窗口中显示的视频画面。通过上述方法,电子设备可以在新的视频播放窗口(即,第二视频播放窗口)中显示目标视频中用户关注的局部画面(即,第二视频画面),同时,电子设备还可以在第二视频播放窗口中按照缩放倍数缩小或方法该窗口中显示的局部画面,使得用户可以直观地在第二视频播放窗口中查看关注的局部画面,并根据实际需求对关注的局部画面进行缩放操作,提高了视频播放效果。
可选地,在本申请实施例中,上述显示单元106,还用于在上述第一视频播放窗口上显示上述第二视频播放窗口;其中,上述第二视频播放窗口显示上述第一视频画面中目标区域中的第二视频画面;上述第二视频播放窗口的窗口尺寸小于上述第一视频播放窗口的窗口尺寸。
可选地,在本申请实施例中,上述用户输入单元107,还用于在上述第一视频播放窗口显示有上述第一视频画面的情况下,接收用户在上述第一视频画面中选择目标区域的第二输入;上述显示单元106,具体用于响应于上述用户输入单元107接收的第二输入,在第二视频播放窗口中,显示目标区域中的第二视频画面。
可选地,在本申请实施例中,上述第二输入用于在上述第一视频画面上选择N个目标区域;一个目标区域对应上述目标视频的一个播放时段;上述显示单元106,具体用于在第二视频播放窗口中,按照上述N个目标区域中的每个目标区域对应的上述目标视频的播放时段,依次显示每个上述目标区域中的视频画面。
可选地,在本申请实施例中,上述目标区域为上述第一视频画面中的目标视频内容所在区域。
应理解的是,本申请实施例中,输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中 由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器109可用于存储软件程序以及各种数据,包括但不限于应用程序和操作***。处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述视频播放方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述xxx方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本申请实施例提供了一种计算机程序产品,该程序产品被存储在非易失的存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的方法。
应理解,本申请实施例提到的芯片还可以称为***级芯片、***芯片、芯片***或片上***芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的 是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (17)

  1. 一种视频播放方法,所述方法包括:
    在第一视频播放窗口显示有目标视频的第一视频画面的情况下,在第二视频播放窗口中,显示所述第一视频画面中目标区域中的第二视频画面;
    接收第一输入;
    响应于所述第一输入,按照目标缩放倍数,更新所述第二视频播放窗口中显示的视频画面。
  2. 根据权利要求1所述的方法,其中,所述第二视频播放窗口中显示的视频画面为:所述目标区域中的实时视频画面。
  3. 根据权利要求1所述的方法,其中,所述在第二视频播放窗口中,显示所述第一视频画面中目标区域中的第二视频画面,包括:
    在所述第一视频播放窗口上显示所述第二视频播放窗口;
    其中,所述第二视频播放窗口显示有所述第一视频画面中目标区域中的第二视频画面;所述第二视频播放窗口的窗口尺寸小于所述第一视频播放窗口的窗口尺寸。
  4. 根据权利要求1所述的方法,其中,所述在第二视频播放窗口中,显示所述第一视频画面中目标区域中的第二视频画面之前,所述方法还包括:
    在所述第一视频播放窗口显示所述第一视频画面的情况下,接收在所述第一视频画面中选择目标区域的第二输入;
    所述在第二视频播放窗口中,显示所述第一视频画面中目标区域中的第二视频画面,包括:
    响应于所述第二输入,在第二视频播放窗口中,显示所述目标区域中的第二视频画面。
  5. 根据权利要求4所述的方法,其中,所述第二输入用于在所述第一视频画面上选择N个目标区域;一个目标区域对应所述目标视频的一个播放时段;
    所述在第二视频播放窗口中,显示所述目标区域中的第二视频画面,包括:
    在第二视频播放窗口中,按照所述N个目标区域中的每个目标区域对应的所述目标视频的播放时段,依次显示每个所述目标区域中的视频画面。
  6. 根据权利要求4所述的方法,其中,所述目标区域为所述第一视频画面中的目标视频内容所在区域。
  7. 一种视频播放装置,所述装置包括:显示模块、接收模块和处理模块,其中:
    所述显示模块,用于在第一视频播放窗口显示有目标视频的第一视频画面的情况下,在第二视频播放窗口中,显示所述第一视频画面中目标区域中的第二视频画面;
    所述接收模块,用于接收第一输入;
    所述处理模块,用于响应于所述接收模块接收的第一输入,按照目标缩放倍数,更新所述第二视频播放窗口中显示的视频画面。
  8. 根据权利要求7所述的装置,其中,所述第二视频播放窗口中显示的视频画面为:所述目标区域中的实时视频画面。
  9. 根据权利要求7所述的装置,其中,所述显示模块,还用于在所述第一视频播放窗口上显示所述第二视频播放窗口;
    其中,所述第二视频播放窗口显示有所述第一视频画面中目标区域中的第二视频画面;所述第二视频播放窗口的窗口尺寸小于所述第一视频播放窗口的窗口尺寸。
  10. 根据权利要求7所述的装置,其中,
    所述接收模块,还用于在所述第一视频播放窗口显示所述第一视频画面的情况下,接收用户在所述第一视频画面中选择目标区域的第二输入;
    所述显示模块,具体用于响应于所述接收模块接收的所述第二输入,在第二视频播放窗口中,显示所述目标区域中的第二视频画面。
  11. 根据权利要求10所述的装置,其中,所述第二输入用于在所述第一视频画面上选择N个目标区域;一个目标区域对应所述目标视频的一个播放时段;
    所述显示模块,具体用于在第二视频播放窗口中,按照所述N个目标区域中的每个目标区域对应的所述目标视频的播放时段,依次显示每个所述目标区域中的视频画面。
  12. 根据权利要求11所述的装置,其中,所述目标区域为所述第一视频画面中的目标视频内容所在区域。
  13. 一种电子设备,其特征在于,包括处理器,存储器及存储在所述存储器上并可 在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-6任一项所述的视频播放方法的步骤。
  14. 一种计算机可读存储介质,其特征在于,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-6任一项所述的视频播放方法的步骤。
  15. 一种视频播放装置,其特征在于,包括所述装置被配置成用于执行如权利要求1至6中任一项所述的视频播放方法。
  16. 一种计算机程序产品,其特征在于,所述程序产品被至少一个处理器执行以实现如权利要求1至6任一项所述的视频播放方法。
  17. 一种芯片,其特征在于,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至6中任一项所述的视频播放方法。
PCT/CN2021/141631 2020-12-28 2021-12-27 视频播放方法、装置及电子设备 WO2022143525A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011583922.1 2020-12-28
CN202011583922.1A CN113259743A (zh) 2020-12-28 2020-12-28 视频播放方法、装置及电子设备

Publications (1)

Publication Number Publication Date
WO2022143525A1 true WO2022143525A1 (zh) 2022-07-07

Family

ID=77181363

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/141631 WO2022143525A1 (zh) 2020-12-28 2021-12-27 视频播放方法、装置及电子设备

Country Status (2)

Country Link
CN (1) CN113259743A (zh)
WO (1) WO2022143525A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113259743A (zh) * 2020-12-28 2021-08-13 维沃移动通信有限公司 视频播放方法、装置及电子设备
CN113852757B (zh) * 2021-09-03 2023-05-26 维沃移动通信(杭州)有限公司 视频处理方法、装置、设备和存储介质
CN115022683A (zh) * 2022-05-27 2022-09-06 咪咕文化科技有限公司 一种视频处理方法、装置、设备和可读存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002025940A1 (en) * 2000-09-20 2002-03-28 Koninklijke Philips Electronics N.V. Picture-in-picture
CN102106145A (zh) * 2008-07-30 2011-06-22 三星电子株式会社 用于显示再现图像的放大的目标区域的装置和方法
CN105872816A (zh) * 2015-12-18 2016-08-17 乐视网信息技术(北京)股份有限公司 一种放大视频图像的方法及装置
CN109963200A (zh) * 2017-12-25 2019-07-02 上海全土豆文化传播有限公司 视频播放方法及装置
CN111031398A (zh) * 2019-12-10 2020-04-17 维沃移动通信有限公司 一种视频控制方法及电子设备
CN113259743A (zh) * 2020-12-28 2021-08-13 维沃移动通信有限公司 视频播放方法、装置及电子设备

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112135181B (zh) * 2020-09-22 2022-06-03 维沃移动通信有限公司 视频预览方法、装置及电子设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002025940A1 (en) * 2000-09-20 2002-03-28 Koninklijke Philips Electronics N.V. Picture-in-picture
CN102106145A (zh) * 2008-07-30 2011-06-22 三星电子株式会社 用于显示再现图像的放大的目标区域的装置和方法
CN105872816A (zh) * 2015-12-18 2016-08-17 乐视网信息技术(北京)股份有限公司 一种放大视频图像的方法及装置
CN109963200A (zh) * 2017-12-25 2019-07-02 上海全土豆文化传播有限公司 视频播放方法及装置
CN111031398A (zh) * 2019-12-10 2020-04-17 维沃移动通信有限公司 一种视频控制方法及电子设备
CN113259743A (zh) * 2020-12-28 2021-08-13 维沃移动通信有限公司 视频播放方法、装置及电子设备

Also Published As

Publication number Publication date
CN113259743A (zh) 2021-08-13

Similar Documents

Publication Publication Date Title
WO2022143525A1 (zh) 视频播放方法、装置及电子设备
WO2020057327A1 (zh) 信息列表显示方法、装置及存储介质
WO2022012657A1 (zh) 图像编辑方法、装置和电子设备
CN112954199B (zh) 视频录制方法及装置
JP2017536783A (ja) ビデオ特効処理方法、装置、端末機器、プログラム、及び記録媒体
CN112565868B (zh) 视频播放方法、装置及电子设备
WO2022206582A1 (zh) 视频处理方法、装置、电子设备和存储介质
WO2023151611A1 (zh) 视频录制方法、装置和电子设备
WO2023151609A1 (zh) 延时摄影视频录制方法、装置和电子设备
CN113596555B (zh) 视频播放方法、装置及电子设备
WO2023174223A1 (zh) 视频录制方法、装置和电子设备
WO2022068806A1 (zh) 图像处理方法、装置及电子设备
KR20220014278A (ko) 비디오 처리 방법 및 장치, 저장 매체
WO2016008410A1 (zh) 视频播放方法及***
CN111857510B (zh) 参数调节方法、装置及电子设备
CN112269522A (zh) 图像处理方法、装置、电子设备和可读存储介质
WO2023083089A1 (zh) 拍摄控件显示方法, 装置, 电子设备及介质
CN113918522A (zh) 一种文件生成方法、装置及电子设备
CN113014801A (zh) 录像方法、装置、电子设备及介质
WO2022068721A1 (zh) 截屏方法、装置及电子设备
WO2022111458A1 (zh) 图像拍摄方法和装置、电子设备及存储介质
WO2022126664A1 (zh) 视频编辑方法、终端设备及计算机可读存储介质
CN111835972A (zh) 拍摄方法、装置和电子设备
WO2023093669A1 (zh) 视频拍摄方法、装置、电子设备及存储介质
CN114025237B (zh) 视频生成方法、装置和电子设备

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: 21914261

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: 21914261

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 12/02/2024)