Search

US-12619393-B2 - Video playing method and device

US12619393B2US 12619393 B2US12619393 B2US 12619393B2US-12619393-B2

Abstract

The technical solutions of this application provide a video playing method and a device, so that in a multi-view mode, during video playback, audio corresponding to an image in a plurality of views may be selected and played based on an operation performed on a play control. In response to a user input, a video playing interface is displayed on the electronic device. The video playing interface includes a first video, a second video, a first play control, and a second play control. In response to an operation performed on the second play control, the first video and the second video are played. Audio of a video corresponding to a location of the first play control is played. The video corresponding to the location of the first play control is the first video.

Inventors

  • Xiao Yang
  • Bo Han
  • Chunjian Li
  • Junqing LUO

Assignees

  • HUAWEI TECHNOLOGIES CO., LTD.

Dates

Publication Date
20260505
Application Date
20210526
Priority Date
20200530

Claims (14)

  1. 1 . A video playing method, comprising: displaying, by an electronic device comprising a first camera and a second camera in response to a user input, a video playing interface, wherein the video playing interface comprises a first video, a second video, and a first play control, the first video and the second video are taken by the first camera and the second camera by using a multi-view mode; playing, by the electronic device, the first video and the second video; and playing, by the electronic device in response to a first user operation on the first play control that is located in the first video and the second video, a mixing audio of a first audio corresponding to the first video and a second audio corresponding to the second video, wherein the first audio and the second audio are taken by a plurality of microphones of the electronic device, and the mixing audio is obtained by performing an audio mixing process on the first audio and the second audio.
  2. 2 . The method according to claim 1 , wherein the video playing interface further comprises a second play control, and the playing the first video and the second video comprises: in response to an operation performed on the second play control, playing, by the electronic device, the first video and the second video.
  3. 3 . The method according to claim 1 , wherein the audio corresponding to the first video is stored in a first audio track, and the audio corresponding to the second video is stored in a second audio track.
  4. 4 . The method according to claim 1 , wherein the audio corresponding to the first video is stored in a first sound channel, and the audio corresponding to the second video is stored in a second sound channel.
  5. 5 . The method according to claim 1 , wherein the first video and the first audio corresponding to the first video are one video file, and the second video and the second audio corresponding to the second video are another video file; the first video, the first audio corresponding to the first video, the second video, and the second audio corresponding to the second video are one video file; the first video, the second video, and the first audio corresponding to the first video are one video file; or the first video, the second video, and the second audio corresponding to the second video are one video file.
  6. 6 . The method according to claim 5 , wherein when the first video, the second video, and the first audio corresponding to the first video are one video file, the second audio corresponding to the second video is another audio file; or when the first video, the second video, and the second audio corresponding to the second video are one video file, the first audio corresponding to the first video is another audio file.
  7. 7 . The method according to claim 1 , wherein the videos corresponding to the location of the first play control are the first video and the second video.
  8. 8 . The method according to claim 1 , wherein a fixed beamforming and adaptive beamforming are jointly used to process an audio signal corresponding to at least one of the plurality of cameras.
  9. 9 . An electronic device, comprising a plurality of microphones, a speaker, a display, a plurality of cameras, and a processor, wherein the processor is coupled to the microphone, the speaker, the display, and the plurality of cameras, wherein the plurality of microphones are configured to collect audio data; the plurality of cameras are configured to collect a plurality of channels of videos, wherein each of the plurality of channels of videos is collected by a different camera; the display is configured to display a video playing interface, wherein the video playing interface comprises a first video, a second video, and a first play control, the first video and the second video are taken by a first camera and a second camera of the plurality of cameras by using a multi-view mode; the processor is configured to play the first video and the second video; and the speaker is configured to play an audio of a video corresponding to a location of the first play control, wherein the processor is configured to: in response to a user operation on the first play control that is located in the first video and the second video, control the speaker to play a mixing audio of a first audio corresponding to the first video and a second audio corresponding to the second video, the first audio and the second audio are taken by the plurality of microphones, and the mixing audio is obtained by performing an audio mixing process on the first audio and the second audio.
  10. 10 . The electronic device according to claim 9 , wherein the videos corresponding to the location of the first play control is the first video and the second video.
  11. 11 . The electronic device according to claim 9 , wherein the video playing interface further comprises a second play control, wherein the first play control is an audio play control, and the second play control is a play control or a play/pause control.
  12. 12 . The electronic device according to claim 9 , wherein a fixed beamforming and adaptive beamforming are jointly used to process an audio signal corresponding to at least one of the plurality of cameras.
  13. 13 . A non-transitory computer-readable storage medium having a computer program code for execution by a processor of an electronic device, the computer program code comprising instructions for: displaying, in response to a user input, a video playing interface that comprises a first video, a second video, and a first play control, wherein the first video and the second video are taken by a first camera and a second camera of the electronic device by using a multi-view mode; playing the first video and the second video; and playing, in response to a first user operation on the first play control that is located in the first video and the second video, a mixing audio of a first audio corresponding to the first video and a second audio corresponding to the second video, wherein the first audio and the second audio are taken by a plurality of microphones of the electronic device, and the mixing audio is obtained by performing an audio mixing process on the first audio and the second audio.
  14. 14 . The non-transitory computer-readable storage medium according to claim 13 , wherein a fixed beamforming and adaptive beamforming are jointly used to process an audio signal corresponding to at least one of the plurality of cameras.

Description

CROSS-REFERENCE TO RELATED APPLICATIONS This application is a national stage of International Application No. PCT/CN2021/096049, filed on May 26, 2021, which claims priority to Chinese Patent Application No. 202010480576.8 filed on May 30, 2020. Both of the aforementioned applications are hereby incorporated by reference in their entireties. TECHNICAL FIELD This application relates to the field of electronic technologies, and in particular, to a video playing method and a device. BACKGROUND With improvement of a computing capability and a hardware capability of an electronic device such as a mobile phone or a tablet, it is increasingly common to shoot a video and perform live streaming by using the electronic device such as the mobile phone (or another mobile device). When the mobile device such as the mobile phone is used to shoot a video, to increase shooting flexibility and fun, a “dual-view” function is provided, that is, a screen for display is divided into two sub-images for simultaneous shooting. For example, one image is shot at a wide angle, and the other image is used to zoom in and shoot a key figure. How to play audio in a dual-view mode may be a problem to be resolved. SUMMARY The technical solutions of this application provide a video playing method and a device. In a multi-view mode, during video playback, audio corresponding to an image in a plurality of views may be selected and played based on an operation performed on a play control. According to a first aspect, the technical solutions of this application provide a video playing method, applied to an electronic device that includes but is not limited to a mobile phone. The method includes: in response to a user input, displaying a video playing interface on the electronic device, where the video playing interface includes a first video, a second video, and a first play control; playing the first video and the second video; and playing audio of a video corresponding to a location of the first play control. It can be learned from the foregoing that, during multi-view video playing, the audio of the video corresponding to the location of the first play control may be played by performing an operation on the first play control. For example, a user drags the first play control to a location of the first video to play audio corresponding to the first video. For another example, the user may drag the first play control to a location at which the first video and the second video are located. In this case, audio corresponding to the first video and the second video may be played. In an implementation, the video playing interface further includes a second play control, and the playing the first video and the second video includes: in response to an operation performed on the second play control, playing the first video and the second video, where the second play control may alternatively be a play control, and in response to an operation such as user tapping or voice input performed by the user on the play control, the electronic device plays the first video and the second video. In an implementation, the first play control is located in the second video. The electronic device may further play, in response to the operation performed by the user on the first play control, the audio corresponding to the second video and stop playing the audio corresponding to the first video. The first play control may be a horn-shaped control, indicating that audio may be played. It may be understood that the first play control may have another shape, for example, a triangle. The second play control may be a play/pause control. When the user taps the control, a video may be played or paused. It may be understood that the second play control may alternatively be a control having another function, or may be controlled through a voice. For example, the operation performed by the user on the second play control may be a voice operation or a voice instruction. In an implementation, the operation performed by the user on the first play control may also be a voice operation or a voice instruction. In an implementation, the first play control is located in the first video and the second video. The electronic device may further play, in response to the operation performed by the user on the first play control, mixing audio. The mixing audio is mixing audio of the audio corresponding to the first video and the audio corresponding to the second video. The case in which the first play control is located in the first video and the second video may be that the first play control is located in the middle of the first video and the second video, or the first play control crosses the first video and the second video. In an implementation, the audio corresponding to the first video is stored in a first audio track, and the audio corresponding to the second video is stored in a second audio track. In a possible implementation, the audio corresponding to the first video is stored in a