WO2023197679A1 - Video playing method and apparatus, electronic device and storage medium - Google Patents

Video playing method and apparatus, electronic device and storage medium Download PDF

Info

Publication number
WO2023197679A1
WO2023197679A1 PCT/CN2022/141931 CN2022141931W WO2023197679A1 WO 2023197679 A1 WO2023197679 A1 WO 2023197679A1 CN 2022141931 W CN2022141931 W CN 2022141931W WO 2023197679 A1 WO2023197679 A1 WO 2023197679A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
picture
playback
screen
playback mode
Prior art date
Application number
PCT/CN2022/141931
Other languages
French (fr)
Chinese (zh)
Inventor
陈启
张添玉
黎瀚
谷穗子
池卓哲
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2023197679A1 publication Critical patent/WO2023197679A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/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/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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • 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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Definitions

  • the present application relates to the technical field of electronic equipment, and more specifically, to a video playback method, device, electronic equipment and storage medium.
  • electronic devices can support diverse video playback methods. For example, in addition to playing videos in the original full-screen mode, you can also play videos in picture-in-picture or split-screen mode. However, there is still a problem of inconvenience in the process of switching related video playback methods.
  • this application proposes a video playback method, device, electronic device and storage medium to improve the above problems.
  • the present application provides a video playback method, which is applied to electronic devices.
  • the method includes: in the process of playing a video, in response to a first operation acting on the video picture of the video, the floating display and A video preview screen corresponding to the video; based on a second operation corresponding to the video preview screen, obtaining a video playback mode corresponding to the second operation; and playing the video based on the video playback mode.
  • the present application provides a video playback device, which runs on electronic equipment.
  • the device includes: a video preview screen display unit, configured to respond to the video screen acting on the video during the video playback process.
  • the first operation is to suspend and display the video preview screen corresponding to the video;
  • the playback mode determination unit is used to obtain the video playback mode corresponding to the second operation based on the second operation corresponding to the video preview screen;
  • a playback control unit is used to play the video based on the video playback method.
  • the present application provides an electronic device, including one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, The one or more programs are configured to perform the above method.
  • the present application provides a computer-readable storage medium storing a program code executable by a processor.
  • the computer-readable storage medium includes the stored program code, wherein the above-mentioned steps are executed when the program code is run. Methods.
  • Figure 1 shows a schematic diagram of an application scenario of a video playback method proposed by an embodiment of the present application
  • Figure 2 shows a schematic diagram of another application scenario of a video playback method proposed by an embodiment of the present application
  • Figure 3 shows a flow chart of a video playback method proposed by an embodiment of the present application
  • Figure 4 shows a schematic diagram of a video playback method provided in the embodiment of the present application
  • Figure 5 shows a schematic diagram of suspended video playback on the chat interface according to the embodiment of the present application
  • Figure 6 shows a schematic diagram of video playback in split-screen mode according to an embodiment of the present application
  • Figure 7 shows a schematic diagram of multiple consecutive video frames in an embodiment of the present application.
  • Figure 8 shows a flow chart of a video playback method proposed by yet another embodiment of the present application.
  • Figure 9 shows a schematic diagram of a video preview screen according to an embodiment of the present application.
  • Figure 10 shows a schematic diagram of dragging the video preview screen toward the edge of the screen according to an embodiment of the present application
  • Figure 11 shows a schematic diagram of dragging a video preview image to the middle area of the screen according to an embodiment of the present application
  • Figure 12 shows a schematic diagram of video playback in a picture-in-picture manner according to an embodiment of the present application
  • Figure 13 shows a flow chart of a video playback method proposed by yet another embodiment of the present application.
  • Figure 14 shows a flow chart of a video playback method proposed by another embodiment of the present application.
  • Figure 15 shows a schematic diagram of canceling the original video playing area for video playback according to the embodiment of the present application
  • Figure 16 shows a flow chart of a video playback method proposed by yet another embodiment of the present application.
  • Figure 17 shows a schematic diagram of the first operating area in the embodiment of the present application.
  • Figure 18 shows a schematic diagram of the second operating area in the embodiment of the present application.
  • Figure 19 shows a structural block diagram of a video playback device proposed by an embodiment of the present application.
  • Figure 20 shows a structural block diagram of a video playback device according to another embodiment of the present application.
  • Figure 21 shows a structural block diagram of an electronic device of the present application for executing a video playback method according to an embodiment of the present application
  • Figure 22 is a storage unit used to save or carry the program code for implementing the video playback method according to the embodiment of the present application.
  • electronic devices can support more diverse video playback methods. For example, in addition to playing videos in the original full-screen mode, you can also play videos in picture-in-picture playback or split-screen mode.
  • the user may expect to switch the current video playback method due to the current demand for using electronic devices. For example, if the user wants to watch the video while chatting while playing the video in full-screen mode, the user needs to operate the electronic device to switch the video playback mode from full-screen mode to split-screen mode.
  • the inventor proposes a video playback method, device, electronic device and storage medium in the present application, which can display a floating display in response to the first operation acting on the video screen during the video playback process.
  • the video preview screen corresponding to the video and then based on the second operation corresponding to the video preview screen, obtain the video playback mode corresponding to the second operation, so as to play the video based on the video playback mode . Therefore, through the above method, during the playback of the video, after triggering the display of the video preview screen corresponding to the played video through the first operation, and then performing the second operation on the video preview screen, the video can be triggered based on the second operation. Operate the corresponding video playback mode to play, so that the user can switch the video playback mode more conveniently.
  • the video playback method provided can be executed by an electronic device including a display area (for example, a screen), or by an electronic device including a folding screen. In addition, it can also be executed by other forms of electronic devices. implement. As shown in Figure 1, it is an electronic device including a display area.
  • the electronic device shown in FIG. 2 may include a display area 20 and a display area 30 (the display area 20 and the display area 30 are separated by a dotted line in FIG. 2 ), and the display area 20 and The display area 30 can be relatively folded.
  • the application interface 21 can be displayed in the display area 20 and the application interface 31 can be displayed in the display area 30 .
  • the application interface 21 may be an interface for playing videos, and the application interface 31 may be a chat interface.
  • This application provides a video playback method applied to electronic devices.
  • the method includes:
  • the video can be played by a dedicated video playing program, or the video can be played by other programs with a video playing function.
  • the dedicated video playback program may include a program for playing videos such as TV series, movies, variety shows, documentaries, etc.
  • the other programs with video playback functions may include instant messaging programs or browsers.
  • the video can be played in full screen mode, or the video can be played in a partial area of the interface of the program used to play the video.
  • the interface of a program for playing videos includes an area 41 and an area 42.
  • the area 41 can be used to play the video to be played, and the area 42 can be used to display the video.
  • Controls for control include selection controls, follow controls, comment controls, etc.
  • the video can also be played in other programs with video playback functions through the floating window of the other program itself.
  • another program with a video playback function shown in Figure 5 is an instant messaging program, and a window 51 is displayed suspended in the chat interface 50 of the instant messaging program, and the window 51 can be used to play videos.
  • the video picture can be understood as the content displayed during the playback of the video.
  • the first operation is an operation for triggering the display of a video preview picture corresponding to the video being played during the playback process of the video, and the triggered display of the video preview picture is suspended. display.
  • the first operation may be a long press operation, a large area press operation, or a multi-finger sliding operation.
  • the first operation may be pre-configured by the developer, or may be configured by the user of the electronic device according to his or her own habits.
  • the video preview picture can be understood as a picture of a certain video frame obtained from the video content included in the video. Moreover, in this embodiment of the present application, there are multiple ways to determine which video frame in the video the suspended-displayed video preview picture is.
  • the picture of the video frame played when the first operation on the video picture is detected can be used as the video preview picture.
  • the video frame played before the video frame played when the first operation on the video screen is detected can be used as the video preview screen.
  • the video frames played before the video frame played during the first operation on the video screen may include: the Nth video frame before the played video frame, where N is an integer greater than 0.
  • the second operation is an operation for determining a video playback mode corresponding to the video.
  • the second operation corresponding to the video preview screen can be understood as the operation object or operation position of the second operation is the video preview screen.
  • the configured second operation may include specified operation A, specified operation B, and specified operation C, wherein specified operation A corresponds to video playback mode A, specified operation B corresponds to video playback mode B, and specified operation C corresponds to video Play mode C.
  • the obtained second operation is specified operation A
  • the obtained video playback mode is video playback mode A.
  • the obtained second operation is specified operation C
  • the mode is video playback mode C.
  • the video playback mode corresponding to the video can also be determined in combination with the display position of the video preview screen after the second operation is performed.
  • the second operation and the corresponding relationship between the video preview screen and the corresponding video playback mode can be pre-stored in the electronic device, so that the electronic device detects the second operation that can change the display position of the video preview screen.
  • the corresponding video playback method can be determined based on the corresponding relationship.
  • the corresponding relationship can be as shown in the following table:
  • Second operation show location Play method 1 Specify operation A Location A Play mode A 2 Specify operation A Location B Play mode B 3 Specify operation B Location A Play mode C
  • the second operation acting on the video preview screen is the specified operation A, and the display position after the specified operation A is applied to the video preview screen is position A, then it is determined that the corresponding playback mode of the video is the playback mode.
  • A If it is detected that the second operation applied to the video preview screen is designated operation A, and the display position after designated operation B is applied to the video preview screen is position B, then it is determined that the playback mode corresponding to the video is playback mode B. If it is detected that the second operation on the video preview screen is designated operation B, and the display position after the designated operation B on the video preview screen is position A, then it is determined that the playback mode corresponding to the video is playback mode C.
  • the second operation stored in the electronic device and the corresponding relationship between the video preview screen and the corresponding video playback method can be pre-configured by the developer, or can be configured by the user of the electronic device according to his or her own habits. configuration.
  • the video can be played based on the determined video playback mode.
  • the determined video playback mode may include split-screen playback mode, picture-in-picture playback mode, full-screen mode, etc.
  • the electronic device when the electronic device originally plays the video based on the full-screen mode, and the video playback mode determined based on the second operation is the split-screen playback mode, the electronic device can use the video originally displayed in full screen for The display area of the video playing interface is reduced, and an application interface is added for playing videos.
  • an application interface 52 and an application interface 53 may be displayed on the electronic device.
  • the application interface 52 may be used to play videos
  • the application interface 53 may be a chat interface.
  • the video preview screen after performing the first operation on the video screen, the video preview screen can be triggered to be displayed in a suspended manner, and the video preview screen displayed in a suspended manner is a video frame of a certain video frame in the video.
  • the video preview screen displayed in suspension can be used as the starting screen for subsequent continued playback, so that after the video playback method corresponding to the video is determined based on the second operation, the video can be continued to be played starting from the video preview screen, so that Therefore, during the video playback process, the continuity of the video playback will not be affected because the first operation and the second operation trigger the switching of the video playback mode.
  • the video playback mode may be switched to the determined video playback mode, and playback may be continued starting from video frame 63 . That is, the video frame 63, the video frame 64, and the subsequent video frames are played in sequence.
  • the N-th video frame before video frame 63 may also be used as the video preview picture.
  • the picture of video frame 61 can be used as the video preview picture.
  • the video playback mode can be switched from video frame 61 to the determined video playback mode. Playback begins.
  • the picture of video frame 60 can be used as the video preview picture.
  • the video playback mode can be switched from the video frame to the determined video playback mode. 60 to continue playing.
  • the currently received real-time screen can also be used as the starting screen for continuing to play the video.
  • some played videos are pre-produced and stored in the server.
  • the video playing application can download the video to be played locally from the server in advance, and then start playing the video.
  • the video playing application can also download the video from the server and play the downloaded part at the same time. In this way, because the video has been pre-produced and stored in the server, there is no need to Higher real-time broadcasting. Therefore, when the video playback is interrupted due to switching of video playback modes, in order to facilitate the user's viewing more coherently, the first operation that affects the video screen can be detected.
  • the Nth frame before the played video frame is used as the video preview screen. Moreover, after the new video playback mode (that is, the video playback mode determined based on the second operation) is determined, the video preview screen can be used as a starting screen for continued playback.
  • the content of the played video is shared by other electronic devices in real time.
  • the video played by the electronic device is content shared in real time by the video capture terminal.
  • the video preview picture is determined based on which method, after the new video playback method is determined, the video picture received by the electronic device in real time can be used as the starting picture.
  • playing the video based on the video playback mode may include: detecting the video type of the played video (the video acted upon by the first operation); if the type of the played video is a pre-generated video (Videos that have been pre-produced and uploaded to the server), after switching to the video playback mode determined based on the second operation, the video preview screen can be used as the starting screen for continuing to play the video to continue the video playback. If the type of video being played is real-time video (for example, live video or conference video), after switching to the video playback mode determined based on the second operation, the video content received in real time can be used as the starting screen for continuing to play the video. to continue video playback.
  • real-time video for example, live video or conference video
  • the electronic device can detect the video type of the played video in a variety of ways.
  • the electronic device may determine the type of video being played by detecting the type of a program that performs video playback.
  • a correspondence table of program types can be stored in the electronic device, so that the electronic device can obtain the type of the program that is playing the video by querying the correspondence table, and then determine the type of the video being played according to the type of the program. type.
  • This embodiment provides a video playback method that can, during the process of playing the video, respond to the first operation acting on the video picture of the video, suspend and display the video preview picture corresponding to the video, and then based on the
  • the second operation corresponding to the video preview screen is to obtain the video playback mode corresponding to the second operation, so as to play the video based on the video playback mode. Therefore, through the above method, during the playback of the video, after triggering the display of the video preview screen corresponding to the played video through the first operation, and then performing the second operation on the video preview screen, the video can be triggered based on the second operation. Operate the corresponding video playback mode to play, so that the user can switch the video playback mode more conveniently.
  • This application provides a video playback method, which is applied to electronic devices.
  • the method includes:
  • the first operation may be implemented in various ways.
  • the first operation may be a long press operation.
  • the electronic device can respond to the long press operation on the video screen and display a video preview screen corresponding to the video in a floating manner.
  • the first operation may be a multi-finger sliding operation, for example, it may be a three-finger sliding operation. In this case, if the electronic device detects a three-finger sliding operation on the video screen, it can trigger the floating display of the video preview screen corresponding to the video.
  • the setting interface of the electronic device may be configured with an interface for triggering a first operation of suspending and displaying a video preview screen corresponding to the video.
  • the user can configure the first operation according to his or her own operating habits. .
  • the user can configure a long press operation as the first operation, or configure a three-finger sliding operation as the first operation.
  • the user when the first specified operation is a gesture operation, the user usually performs the first operation on the video screen by touching the object.
  • the touch object may be a user's finger or a stylus.
  • the video preview screen when the video preview screen is displayed in a floating manner, the video preview screen corresponding to the video can be displayed in a floating manner at the position where the first operation is performed, and the touch object remains in contact with the screen when the first operation is performed.
  • the video preview screen can move following the dragging of the touch object.
  • the suspended video preview screen 71 can be directly displayed at the user's finger, so that the user can directly drag the video preview screen 71 with the finger.
  • the video preview image corresponding to the video when displaying the video preview image in a floating manner, the video preview image corresponding to the video can be displayed in a floating manner at a designated position on the screen.
  • S220 In response to the drag operation on the video preview screen, obtain the display position of the video preview screen after the drag operation is performed.
  • the display position of the video preview screen will change, and when the video preview screen corresponds to different video playback methods in different display positions, after dragging the video preview screen After moving, the display position of the video preview screen will be obtained so that the video playback method can be determined based on the obtained display position.
  • S230 Determine the video playback mode corresponding to the video based on the display position.
  • determining the video playback mode corresponding to the video based on the display position includes: if the display position of the video preview image after performing the drag operation is located at the edge of the screen, determining the corresponding video playback mode For split screen playback mode.
  • the electronic device detects that the edge of the video preview image is at the edge of the screen, it determines that the display position of the video preview image is at the edge of the screen. For example, as shown in Figure 10, if the video preview screen 71 is dragged along the direction indicated by the dotted arrow in Figure 10, and the edge of the dragged video preview screen 71 is at the edge of the screen, the corresponding edge can be The video playback method is determined as the video playback method corresponding to the video.
  • the method further includes: in response to a third specified operation acting on the video screen of the video, suspending and displaying a video preview screen corresponding to the video; Based on the fourth specified operation corresponding to the video preview screen, a video playback mode of the video is obtained; and the video is played based on the video playback mode of the video.
  • the user may also switch the video playback mode. In this case, the user can perform the second operation on the video screen.
  • the third specified operation may be the same as the first operation.
  • the third designated operation may be a long press operation or a three-finger sliding operation.
  • the fourth designated operation includes a drag operation
  • obtaining the video playback mode of the video based on the fourth designated operation corresponding to the video preview screen includes: responding to the video preview Drag and drop the screen to obtain the display position of the video preview screen after performing the drag and drop operation; if the displayed display position is located in the middle area of the screen, determine that the corresponding video playback method is picture-in-picture playback. For example, as shown in Figure 11, if a video is played in a split-screen mode and a third specified operation is detected that acts on the video screen, the video preview screen can be displayed at the position where the third specified operation is applied. 72.
  • the video preview screen can be triggered to be displayed in a floating manner at the position where the finger acts on the screen. Then, it is further detected that the video preview screen 72 is dragged to the middle of the screen. area, it is determined that the corresponding video playback mode is picture-in-picture playback, and then the video is played based on the picture-in-picture playback mode shown in Figure 12.
  • the video screen will be separated from the original application interface (for example, the split-screen interface shown in Figure 11 ), and the video is played through an independent window 73, and the size of the independent window 73 is the same as the size of the video picture.
  • This embodiment provides a video playback method, so that during the video playback process, after the first operation triggers the display of the video preview screen corresponding to the played video, the video preview screen is then dragged and dropped. operation, the video can be triggered to play based on the video playback method corresponding to the position after the drag operation, so that the user can switch the video playback method more conveniently. Moreover, in this embodiment, after triggering the playback of the video based on the split-screen playback mode, the floating display of the video preview screen corresponding to the video can also be triggered again based on the third specified operation, so that the video preview screen corresponding to the video preview screen can be displayed based on the video preview screen. The fourth designated operation is to obtain the corresponding video playback method and play the video.
  • This application provides a video playback method applied to electronic devices.
  • the method includes:
  • S320 In response to the drag operation on the video preview screen, obtain the display position of the video preview screen after the drag operation is performed.
  • This embodiment provides a video playback method, so that during the video playback process, after the first operation triggers the display of the video preview screen corresponding to the played video, the video preview screen is then dragged and dropped. operation, the video can be triggered to play based on the video playback method corresponding to the position after the drag operation, so that the user can switch the video playback method more conveniently. Moreover, when the drag operation position on the video preview screen is located in the middle area of the screen, the video can be played based on the picture-in-picture playback method.
  • This application provides a video playback method, which is applied to electronic devices.
  • the method includes:
  • the display of the video preview screen in the video playback window can be cancelled.
  • canceling the display of the video picture of the video in the video playback window can be understood as not displaying the video picture of the video in the video playback window.
  • FIG. 15 when a video preview screen is displayed, displaying the video screen of the video in the video playback window will be canceled in the area 75 where video playback is originally performed.
  • a video playback window can be triggered to be displayed in response to a touch operation on a video link, and the video playback window is suspended on the interface displaying the video link; in the video playback window Play the video in question.
  • the interface for displaying the video link may be an interface in a browser or a chat interface.
  • S430 Determine the video playback mode corresponding to the video based on the display position.
  • S450 Play the video based on the video playback method.
  • This embodiment provides a video playback method, so that during the video playback process, after the first operation triggers the display of the video preview screen corresponding to the played video, the video preview screen is then dragged and dropped. operation, the video can be triggered to play based on the video playback method corresponding to the position after the drag operation, so that the user can switch the video playback method more conveniently.
  • the first operation can be performed on the video played in the suspended video playback window, so that when the video is played through the floating window, it is convenient for the user to quickly play the video. mode switching.
  • This application provides a video playback method applied to electronic devices.
  • the method includes:
  • S540 During the playback process based on the picture-in-picture playback mode, in response to the touch gesture acting on the video screen of the video, display a parameter control interface in the video screen.
  • the video picture is played in an independent window.
  • the user can trigger the display of the parameter control interface in the video screen through touch gestures acting on the video screen, so that the user can control the parameters through the parameter control interface. Adjust the playback parameters of the video being played.
  • the touch gestures can be of various kinds, for example, they can be two-finger click operations, three-finger click operations, or large-area press operations.
  • touch gestures can be pre-configured by developers, or configured by users of electronic devices according to their own operating habits.
  • the electronic device detects a sliding operation that directly acts on the video screen, it can cause the video screen to move following the sliding operation and change the display of the video screen. Location. If it is detected that a parameter control interface is displayed and the sliding operation is applied to the parameter control interface, the video parameters of the played video will be adjusted.
  • the parameter control interface may display prompt information for adjustable video parameters, and except for the prompt information, the rest of the parameter control interface is in a transparent state, so that the user can be prompted What kind of playback parameters can be adjusted without having too much impact on the user's normal viewing of the video.
  • S560 Adjust the playback parameters of the video based on the direction of the sliding operation and the action area.
  • the parameter control interface may include a first operation area and a second operation area.
  • the first operation area corresponds to the first playback parameter
  • the second operation area corresponds to the second playback parameter. If it is detected that the action area of the sliding operation acting on the parameter control interface is located in the first operation area, the first playback parameter is adjusted based on the direction of the sliding operation. If it is detected that the action area of the sliding operation acting on the parameter control interface is When located in the second operation area, the second playback parameter is adjusted based on the direction of the sliding operation.
  • the first playback parameter may be a brightness parameter
  • the second playback parameter may be a volume parameter. As shown in FIG. 17 and FIG. 18 , the area to the left of the dotted line in FIG. 17 may be the first operation area, and the area to the right of the dotted line in FIG. 18 may be the second operation area.
  • This embodiment provides a video playback method, so that during the video playback process, after the first operation triggers the display of the video preview screen corresponding to the played video, the video preview screen is then dragged and dropped. operation, the video can be triggered to play based on the video playback method corresponding to the position after the drag operation, so that the user can switch the video playback method more conveniently.
  • the playback mode corresponding to the second operation is the picture-in-picture playback mode
  • the user can also use touch gestures on the video played in the picture-in-picture mode to play in the video screen.
  • the parameter control interface is displayed, and the playback parameters of the video can be directly adjusted through the parameter control interface.
  • the playback parameters corresponding to the application that plays the video are directly adjusted through the parameter control interface, there is no need to directly adjust the parameters of the electronic device, thus avoiding the impact on other applications to a greater extent.
  • application A If the video screen played in the picture-in-picture playback mode belongs to application A, and in addition, there is also application B running in the electronic device that can also perform audio output, if the user controls it through the parameters acting in the embodiment of the present application.
  • the interface adjusts the playback parameters (picture-in-picture corresponding to application A). It actually adjusts the playback parameters of application A. It does not need to change the parameters of the electronic device to adjust the playback parameters, thus making the application When B is performing audio output, it can still maintain the original volume for output (because the volume output parameters of the electronic device itself have not changed).
  • the device 600 includes:
  • the video preview screen display unit 610 is configured to suspend and display a video preview screen corresponding to the video in response to a first operation acting on the video screen of the video during the playback of the video.
  • the playback mode determining unit 620 is configured to obtain the video playback mode corresponding to the second operation based on the second operation corresponding to the video preview screen.
  • the playback control unit 630 is used to play the video based on the video playback method.
  • the second operation includes a drag operation.
  • the playback mode determining unit 620 is specifically configured to respond to the drag operation on the video preview screen and obtain the display position of the video preview screen after the drag operation is performed; determine based on the display position The video playback method corresponding to the video.
  • the playback control unit 630 is specifically configured to determine that the corresponding video playback mode is the split-screen playback mode if the display position of the video preview image after performing the drag operation is located at the edge of the screen.
  • the playback control unit 630 is also configured to respond to the third specified operation on the video screen of the video and display a video preview screen corresponding to the video in a floating manner; based on the fourth specified operation corresponding to the video preview screen, obtain The video playback method of the video;
  • the video is played based on the video playback mode corresponding to the video.
  • the fourth specified operation includes a drag operation.
  • the playback control unit 630 is specifically configured to respond to the drag operation on the video preview screen and obtain the display position of the video preview screen after the drag operation is performed; if the displayed display position is located in the middle area of the screen, determine the corresponding The video playback mode is picture-in-picture playback.
  • the playback mode determining unit 620 is specifically configured to determine that the corresponding video playback mode is the picture-in-picture playback mode if the display position of the video preview image after performing the drag operation is located in the middle area of the screen.
  • the video preview screen display unit 610 is specifically configured to, during the process of playing the video through the suspended-displayed video playback window, respond to the first operation acting on the video screen of the video, the suspended display and the video The corresponding video preview screen.
  • the playback control unit 630 is also configured to hide the suspended video playback window based on the drag operation corresponding to the video preview screen.
  • the video preview screen display unit 610 is specifically configured to trigger the display of a video playback window in response to a touch operation acting on the video link, and the video playback window is suspended on the interface displaying the video link; Play the video in the video playback window.
  • the video playback method includes a picture-in-picture playback method.
  • the playback control unit 630 is specifically configured to play the video based on the picture-in-picture playback method.
  • the video playback device 600 may further include a parameter adjustment unit 640, configured to respond to a touch gesture acting on the video screen of the video during the playback process based on the picture-in-picture playback mode.
  • a parameter control interface is displayed in the video screen; if a sliding operation acting on the parameter control interface is detected, the action area of the sliding operation is obtained; based on the direction of the sliding operation and the action area, the playback parameters of the video are adjusted.
  • the video playback device provided in this embodiment can, during the process of playing the video, respond to the first operation acting on the video picture of the video, suspend and display the video preview picture corresponding to the video, and then based on the
  • the second operation corresponding to the video preview screen is to obtain the video playback mode corresponding to the second operation, so as to play the video based on the video playback mode. Therefore, through the above method, during the playback of the video, after triggering the display of the video preview screen corresponding to the played video through the first operation, and then performing the second operation on the video preview screen, the video can be triggered based on the second operation. Operate the corresponding video playback mode to play, so that the user can switch the video playback mode more conveniently.
  • the device embodiments in this application correspond to the foregoing method embodiments.
  • the specific implementation principles of each unit in the device embodiments are similar to the principles in the foregoing method embodiments.
  • the specific contents in the device embodiments are Reference may be made to the method embodiment and no further details will be given in the device embodiment.
  • embodiments of the present application also provide an electronic device 1000 that can perform the aforementioned positioning method of the storage box.
  • the electronic device 1000 includes one or more (only one is shown in the figure) processors 105, a memory 104, an audio playback module 106 and an audio collection device 108 that are coupled to each other.
  • the memory 104 stores programs that can execute the content in the aforementioned embodiments, and the processor 105 can execute the programs stored in the memory 104 .
  • the processor 105 may include one or more processing cores.
  • the processor 105 uses various interfaces and lines to connect various parts of the entire electronic device 1000, and executes by running or executing instructions, programs, code sets or instruction sets stored in the memory 104, and calling data stored in the memory 104.
  • the processor 105 can use at least one of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). implemented in hardware form.
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA programmable logic array
  • the processor 105 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), a modem, etc.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • the CPU mainly handles the operating system, user interface, and applications
  • the GPU is responsible for rendering and drawing the display content
  • the modem is used to handle wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 105 and may be implemented solely through a communication chip.
  • the memory 104 may include random access memory (RAM) or read-only memory (Read-Only Memory). Memory 104 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. For example, the memory 104 may store a data acquisition device. The data acquisition device may be the aforementioned device 600.
  • the memory 104 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing each of the following method embodiments, etc.
  • the electronic device 1000 may also include a network module 110 and a sensor module 112 .
  • the network module 110 is used to realize information interaction between the electronic device 1000 and other devices. For example, it can establish a connection with other audio playback devices or other electronic devices, and perform information interaction based on the established connection.
  • the network module 110 of the electronic device 1000 is a radio frequency module, which is used to receive and send electromagnetic waves, realize mutual conversion of electromagnetic waves and electrical signals, and thereby communicate with the communication network or other devices.
  • the radio frequency module may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, Subscriber Identity Module (SIM) cards, memories, and the like.
  • SIM Subscriber Identity Module
  • the radio frequency module can interact with external devices by sending or receiving electromagnetic waves.
  • Sensor module 112 may include at least one sensor. Specifically, the sensor module 112 may include, but is not limited to: pressure sensors, motion sensors, acceleration sensors, and other sensors.
  • the pressure sensor may be a sensor that detects pressure generated by pressing on the electronic device 1000 . That is, the pressure sensor detects pressure caused by contact or pressing between the user and the electronic device 1000 , for example, pressure caused by contact or pressing between the user's ear and the electronic device 1000 . Therefore, the pressure sensor can be used to determine whether contact or pressure has occurred between the user and the electronic device 1000, as well as the amount of pressure.
  • the acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), can detect the magnitude and direction of gravity when stationary, and can be used to identify applications of the posture of electronic devices 1000 (such as horizontal and vertical screen switching, related games, magnetometers Attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.
  • the electronic device 1000 may also be configured with other sensors such as a gyroscope, barometer, hygrometer, and thermometer, which will not be described again here.
  • Audio collection device 110 is used to collect audio signals.
  • the audio collection device 110 includes multiple audio collection devices, and the audio collection devices may be microphones.
  • Figure 22 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • Program code is stored in the computer-readable medium 1100, and the program code can be called by the processor to execute the method described in the above method embodiment.
  • Computer-readable storage medium 1100 may be electronic memory such as flash memory, EEPROM (electrically erasable programmable read-only memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 1100 includes non-transitory computer-readable storage medium.
  • the computer-readable storage medium 1100 has storage space for the program code 1110 that performs any method steps in the above-mentioned methods. These program codes can be read from or written into one or more computer program products.
  • Program code 1110 may, for example, be compressed in a suitable form.
  • references to the terms “one embodiment,” “some embodiments,” “an example,” “specific examples,” or “some examples” or the like means that specific features are described in connection with the embodiment or example. , structures, materials or features are included in at least one embodiment or example of the present application. In this specification, the schematic expressions of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, those skilled in the art may combine and combine different embodiments or examples and features of different embodiments or examples described in this specification unless they are inconsistent with each other.
  • first and second are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Therefore, features defined as “first” and “second” may explicitly or implicitly include at least one of these features.
  • “plurality” means at least two, such as two, three, etc., unless otherwise expressly and specifically limited.
  • logic and/or steps represented in the flowcharts or otherwise described herein, for example, may be considered a sequenced list of executable instructions for implementing the logical functions, and may be embodied in any computer-readable medium, For use by, or in combination with, instruction execution systems, devices or devices (such as computer-based systems, systems including processors or other systems that can fetch instructions from and execute instructions from the instruction execution system, device or device) or equipment.
  • various parts of the present application can be implemented in hardware, software, firmware, or a combination thereof.
  • various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a logic gate circuit with a logic gate circuit for implementing a logic function on a data signal.
  • Discrete logic circuits application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.
  • the present application provides a video playback method, device, electronic device and storage medium, which can, during the process of playing the video, respond to the first operation acting on the video picture of the video, suspend display and The video preview screen corresponding to the video is then used to obtain the video playback mode corresponding to the second operation based on the second operation corresponding to the video preview screen, so as to play the video based on the video playback mode. Therefore, through the above method, during the playback of the video, after triggering the display of the video preview screen corresponding to the played video through the first operation, and then performing the second operation on the video preview screen, the video can be triggered based on the second operation. Operate the corresponding video playback mode to play, so that the user can switch the video playback mode more conveniently.

Abstract

Disclosed in the embodiments of the present application are a video playing method and apparatus, an electronic device, and a storage medium. The method comprises: in a video playing process, in response to a first operation performed on a video picture of a video, displaying on hover a video preview picture corresponding to the video; obtaining, on the basis of a second operation corresponding to the video preview picture, a video playing mode corresponding to the second operation; and playing the video on the basis of the video playing mode. Therefore, in the video playing process, after the first operation triggers the video preview picture corresponding to the played video to be displayed, the second operation is performed on the video preview picture to trigger the video to be played in the video playing mode corresponding to the second operation, thereby facilitating a user to easily switch the video playing mode.

Description

视频播放方法、装置、电子设备及存储介质Video playback method, device, electronic equipment and storage medium
相关申请的交叉引用Cross-references to related applications
本申请要求于2022年4月12日提交的申请号为202210381867.0的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。This application claims priority from Chinese application No. 202210381867.0 filed on April 12, 2022, the entire content of which is hereby incorporated by reference for all purposes.
技术领域Technical field
本申请涉及电子设备技术领域,更具体地,涉及一种视频播放方法、装置、电子设备及存储介质。The present application relates to the technical field of electronic equipment, and more specifically, to a video playback method, device, electronic equipment and storage medium.
背景技术Background technique
随着界面展示方式的多样化,电子设备可以支持多样化的视频播放方式。例如,除了可以通过原有的全屏方式进行视频播放外,还可以通过画中画的方式或者分屏方式对视频进行播放。但是,在相关的视频播放方式的切换过程中,还存在不够便利的问题。With the diversification of interface display methods, electronic devices can support diverse video playback methods. For example, in addition to playing videos in the original full-screen mode, you can also play videos in picture-in-picture or split-screen mode. However, there is still a problem of inconvenience in the process of switching related video playback methods.
发明内容Contents of the invention
鉴于上述问题,本申请提出了一种视频播放方法、装置、电子设备及存储介质,以改善上述问题。In view of the above problems, this application proposes a video playback method, device, electronic device and storage medium to improve the above problems.
第一方面,本申请提供了一种视频播放方法,应用于电子设备,所述方法包括:在对视频进行播放的过程中,响应作用于所述视频的视频画面的第一操作,悬浮显示与所述视频对应的视频预览画面;基于与所述视频预览画面对应的第二操作,获取与所述第二操作对应的视频播放方式;基于所述视频播放方式对所述视频进行播放。In a first aspect, the present application provides a video playback method, which is applied to electronic devices. The method includes: in the process of playing a video, in response to a first operation acting on the video picture of the video, the floating display and A video preview screen corresponding to the video; based on a second operation corresponding to the video preview screen, obtaining a video playback mode corresponding to the second operation; and playing the video based on the video playback mode.
第二方面,本申请提供了一种视频播放装置,运行于电子设备,所述装置包括:视频预览画面显示单元,用于在对视频进行播放的过程中,响应作用于所述视频的视频画面的第一操作,悬浮显示与所述视频对应的视频预览画面;播放方式确定单元,用于基于与所述视频预览画面对应的第二操作,获取与所述第二操作对应的视频播放方式;播放控制单元,用于基于所述视频播放方式对所述视频进行播放。In a second aspect, the present application provides a video playback device, which runs on electronic equipment. The device includes: a video preview screen display unit, configured to respond to the video screen acting on the video during the video playback process. The first operation is to suspend and display the video preview screen corresponding to the video; the playback mode determination unit is used to obtain the video playback mode corresponding to the second operation based on the second operation corresponding to the video preview screen; A playback control unit is used to play the video based on the video playback method.
第三方面,本申请提供了一种电子设备,包括一个或多个处理器以及存储器;一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述的方法。In a third aspect, the present application provides an electronic device, including one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, The one or more programs are configured to perform the above method.
第四方面,本申请提供的一种存储有处理器可执行的程序代码的计算机可读存储介质,所述计算机可读存储介质包括存储的程序代码,其中,在所述程序代码运行时执行上述的方法。In a fourth aspect, the present application provides a computer-readable storage medium storing a program code executable by a processor. The computer-readable storage medium includes the stored program code, wherein the above-mentioned steps are executed when the program code is run. Methods.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without exerting creative efforts.
图1示出了本申请实施例提出的一种视频播放方法的一种应用场景示意图;Figure 1 shows a schematic diagram of an application scenario of a video playback method proposed by an embodiment of the present application;
图2示出了本申请实施例提出的一种视频播放方法的另一种应用场景示意图;Figure 2 shows a schematic diagram of another application scenario of a video playback method proposed by an embodiment of the present application;
图3示出了本申请实施例提出的一种视频播放方法的流程图;Figure 3 shows a flow chart of a video playback method proposed by an embodiment of the present application;
图4示出了本申请实施例提中一种视频播放方式的示意图;Figure 4 shows a schematic diagram of a video playback method provided in the embodiment of the present application;
图5示出了本申请实施例提中在聊天界面上悬浮播放视频的示意图;Figure 5 shows a schematic diagram of suspended video playback on the chat interface according to the embodiment of the present application;
图6示出了本申请实施例提中分屏方式播放视频的示意图;Figure 6 shows a schematic diagram of video playback in split-screen mode according to an embodiment of the present application;
图7示出了本申请实施例提中多个连续的视频帧的示意图;Figure 7 shows a schematic diagram of multiple consecutive video frames in an embodiment of the present application;
图8示出了本申请再一实施例提出的一种视频播放方法的流程图;Figure 8 shows a flow chart of a video playback method proposed by yet another embodiment of the present application;
图9示出了本申请实施例提中视频预览画面的示意图;Figure 9 shows a schematic diagram of a video preview screen according to an embodiment of the present application;
图10示出了本申请实施例提中向屏幕边缘拖拽视频预览画面的示意图;Figure 10 shows a schematic diagram of dragging the video preview screen toward the edge of the screen according to an embodiment of the present application;
图11示出了本申请实施例提中拖拽视频预览画面到屏幕中间区域的示意图;Figure 11 shows a schematic diagram of dragging a video preview image to the middle area of the screen according to an embodiment of the present application;
图12示出了本申请实施例提中画中画方式播放视频的示意图;Figure 12 shows a schematic diagram of video playback in a picture-in-picture manner according to an embodiment of the present application;
图13示出了本申请又一实施例提出的一种视频播放方法的流程图;Figure 13 shows a flow chart of a video playback method proposed by yet another embodiment of the present application;
图14示出了本申请另一实施例提出的一种视频播放方法的流程图;Figure 14 shows a flow chart of a video playback method proposed by another embodiment of the present application;
图15示出了本申请实施例提中取消原本播放视频的区域进行视频播放的示意图;Figure 15 shows a schematic diagram of canceling the original video playing area for video playback according to the embodiment of the present application;
图16示出了本申请又一实施例提出的一种视频播放方法的流程图;Figure 16 shows a flow chart of a video playback method proposed by yet another embodiment of the present application;
图17示出了本申请实施例提中第一操作区域的示意图;Figure 17 shows a schematic diagram of the first operating area in the embodiment of the present application;
图18示出了本申请实施例提中第二操作区域的示意图;Figure 18 shows a schematic diagram of the second operating area in the embodiment of the present application;
图19示出了本申请一实施例提出的一种视频播放装置的结构框图;Figure 19 shows a structural block diagram of a video playback device proposed by an embodiment of the present application;
图20示出了本申请另一实施例提出的一种视频播放装置的结构框图;Figure 20 shows a structural block diagram of a video playback device according to another embodiment of the present application;
图21示出了本申请的用于执行根据本申请实施例的视频播放方法的电子设备的结构框图;Figure 21 shows a structural block diagram of an electronic device of the present application for executing a video playback method according to an embodiment of the present application;
图22是本申请实施例的用于保存或者携带实现根据本申请实施例的视频播放方法的程序代码的存储单元。Figure 22 is a storage unit used to save or carry the program code for implementing the video playback method according to the embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
随着智能手机、智能平板等电子设备的技术日益进步,电子设备可以实现的功能也更加的丰富。例如,电子设备可以支持更多样化的视频播放方式。例如,除了可以通过原有的全屏方式进行视频播放外,还可以通过画中画播放方式或者分屏方式对视频进行播放。在进行视频播放的过程中,用户可能会因为当前对电子设备的使用需求而期望对当前的视频播放方式进行切换。例如,若在基于全屏方式对视频进行播放的过程中,用户期望一边聊天一边观看视频,那么用户则需要操作电子设备将视频播放方式从全屏方式切换为分屏方式。As the technology of electronic devices such as smartphones and smart tablets advances day by day, the functions that electronic devices can implement are becoming more abundant. For example, electronic devices can support more diverse video playback methods. For example, in addition to playing videos in the original full-screen mode, you can also play videos in picture-in-picture playback or split-screen mode. During the video playback process, the user may expect to switch the current video playback method due to the current demand for using electronic devices. For example, if the user wants to watch the video while chatting while playing the video in full-screen mode, the user needs to operate the electronic device to switch the video playback mode from full-screen mode to split-screen mode.
但是,发明人在研究中发现,在相关的视频播放方式的切换过程中,还存在不够便利的问题。However, the inventor found during research that there is still a problem of inconvenience in the process of switching the relevant video playback modes.
因此,发明人提出了本申请中的一种视频播放方法、装置、电子设备及存储介质,可以在对视频进行播放的过程中,响应作用于所述视频的视频画面的第一操作,悬浮显示与所述视频对应的视频预览画面,再基于与所述视频预览画面对应的第二操作,获取与所述第二操作对应的视频播放方式,以基于所述视频播放方式对所述视频进行播放。从而通过上述方式使得在视频的播放过程中,在通过第一操作触发显示在播放视频对应的视频预览画面后,再通过对该视频预览画面进行第二操作,就可以触发视频基于与该第二操作对应的视频播放方式进行播放,从而使得用户可以较为便利的进行视频播放方式的切换。Therefore, the inventor proposes a video playback method, device, electronic device and storage medium in the present application, which can display a floating display in response to the first operation acting on the video screen during the video playback process. The video preview screen corresponding to the video, and then based on the second operation corresponding to the video preview screen, obtain the video playback mode corresponding to the second operation, so as to play the video based on the video playback mode . Therefore, through the above method, during the playback of the video, after triggering the display of the video preview screen corresponding to the played video through the first operation, and then performing the second operation on the video preview screen, the video can be triggered based on the second operation. Operate the corresponding video playback mode to play, so that the user can switch the video playback mode more conveniently.
下面先对本申请实施例所涉及的应用场景进行介绍。The application scenarios involved in the embodiments of this application are first introduced below.
在本申请实施例中,所提供的视频播放方法可以由包括一个显示区域(例如,一个屏幕)的电子设备执行,也可以由包括折叠屏的电子设备执行,另外还可以由其他形态的电子设备执行。如图1所示,为包括一个显示区域的电子设备。再例如,如图2所示,在图2所示的电子设备中可以包括有显示区域20和显示区域30(显示区域20和显示区域30由图2中的虚线分割),且显示区域20和显示区域30可相对折叠。在显示区域20和显示区域30折叠到如图2所示的状态下,显示区域20可以显示区域30可以处于同一平面。并且,在处于同一平面的情况下,可以在显示区域20中显示应用界面21以及在显示区域30中显示应用界面31。其中,应用界面21可以为用于播放视频的界面,应用界面31可以为聊天界面。In the embodiment of the present application, the video playback method provided can be executed by an electronic device including a display area (for example, a screen), or by an electronic device including a folding screen. In addition, it can also be executed by other forms of electronic devices. implement. As shown in Figure 1, it is an electronic device including a display area. For another example, as shown in FIG. 2 , the electronic device shown in FIG. 2 may include a display area 20 and a display area 30 (the display area 20 and the display area 30 are separated by a dotted line in FIG. 2 ), and the display area 20 and The display area 30 can be relatively folded. When the display area 20 and the display area 30 are folded to the state as shown in FIG. 2 , the display area 20 and the display area 30 may be on the same plane. Furthermore, in the case of being on the same plane, the application interface 21 can be displayed in the display area 20 and the application interface 31 can be displayed in the display area 30 . The application interface 21 may be an interface for playing videos, and the application interface 31 may be a chat interface.
下面将结合附图具体描述本申请的各实施例。Each embodiment of the present application will be described in detail below with reference to the accompanying drawings.
请参阅图3,本申请提供的一种视频播放方法,应用于电子设备,所述方法包括:Please refer to Figure 3. This application provides a video playback method applied to electronic devices. The method includes:
S110:在对视频进行播放的过程中,响应作用于所述视频的视频画面的第一操作,悬浮显示与所述视频对应的视频预览画面。S110: In the process of playing the video, in response to the first operation acting on the video picture of the video, a video preview picture corresponding to the video is displayed in a floating manner.
其中,在对视频进行播放的过程中可以由专用的视频播放程序对视频进行播放,也可以由具有视频播放功能的其他程序对视频进行播放。其中,专用的视频播放程序可以包括用于播放电视剧、电影、综艺节目或者纪录片等视频的程序,该具有视频播放功能的其他程序可以包括即时通信程序或者浏览器等。During the process of playing the video, the video can be played by a dedicated video playing program, or the video can be played by other programs with a video playing function. Among them, the dedicated video playback program may include a program for playing videos such as TV series, movies, variety shows, documentaries, etc. The other programs with video playback functions may include instant messaging programs or browsers.
再者,在对视频进行播放的过程中,可以通过全屏方式对视频进行播放,也可以是通过用于播 放视频的程序的界面中的部分区域来对视频进行播放。例如,如图4所示,用于播放视频的程序的界面包括区域41和区域42,其中,可以使用区域41来对所要播放的视频进行播放,并且,可以在区域42中显示用于进行视频控制的控件。其中,用于进行视频控制的控件包括选集控件、关注控件以及评论控件等。另外,在本申请实施例中,还可以通过在具有视频播放功能的其他程序中,通过该其他程序本身的悬浮窗口来对视频进行播放。例如,如图5所示,图5所示的具有视频播放功能的其他程序为即时通信程序,在该即时通信程序的聊天界面50中悬浮显示有窗口51,该窗口51可以用于播放视频。Furthermore, during the process of playing the video, the video can be played in full screen mode, or the video can be played in a partial area of the interface of the program used to play the video. For example, as shown in Figure 4, the interface of a program for playing videos includes an area 41 and an area 42. The area 41 can be used to play the video to be played, and the area 42 can be used to display the video. Controls for control. Among them, the controls used for video control include selection controls, follow controls, comment controls, etc. In addition, in the embodiment of the present application, the video can also be played in other programs with video playback functions through the floating window of the other program itself. For example, as shown in Figure 5, another program with a video playback function shown in Figure 5 is an instant messaging program, and a window 51 is displayed suspended in the chat interface 50 of the instant messaging program, and the window 51 can be used to play videos.
其中,视频画面可以理解为在对视频进行播放的过程中所展现出来的内容。在本申请实施例中,第一操作为用于在视频的播放过程中,触发显示与正在播放的视频对应的视频预览画面的操作,并且,对于所触发显示的视频预览画面会通过悬浮的方式进行显示。可选的,第一操作可以为长按操作、大面积按压操作或者多指滑动操作等。在本申请实施例中,第一操作可以由开发人员预先配置,也可以由电子设备的用户根据自己的习惯进行配置。Among them, the video picture can be understood as the content displayed during the playback of the video. In the embodiment of the present application, the first operation is an operation for triggering the display of a video preview picture corresponding to the video being played during the playback process of the video, and the triggered display of the video preview picture is suspended. display. Optionally, the first operation may be a long press operation, a large area press operation, or a multi-finger sliding operation. In the embodiment of the present application, the first operation may be pre-configured by the developer, or may be configured by the user of the electronic device according to his or her own habits.
在本申请实施例中,视频预览画面可以理解为从视频所包括的视频内容中所获取的某一视频帧的画面。并且,在本申请实施例中,可以有多种方式来确定悬浮显示的视频预览画面具体为视频中的哪一视频帧的画面。In this embodiment of the present application, the video preview picture can be understood as a picture of a certain video frame obtained from the video content included in the video. Moreover, in this embodiment of the present application, there are multiple ways to determine which video frame in the video the suspended-displayed video preview picture is.
作为一种方式,可以将检测到有作用于视频画面的第一操作时,所播放视频帧的画面作为视频预览画面。作为另外一种方式,可以将检测到有作用于视频画面的第一操作时所播放视频帧之前播放的视频帧的画面作为视频预览画面。其中,作用于视频画面的第一操作时所播放的视频帧之前播放的视频帧可以包括:所播放的视频帧之前的第N个视频帧,其中N为大于0的整数。As a method, the picture of the video frame played when the first operation on the video picture is detected can be used as the video preview picture. As another method, the video frame played before the video frame played when the first operation on the video screen is detected can be used as the video preview screen. Wherein, the video frames played before the video frame played during the first operation on the video screen may include: the Nth video frame before the played video frame, where N is an integer greater than 0.
S120:基于与所述视频预览画面对应的第二操作,获取与所述第二操作对应的视频播放方式。S120: Based on the second operation corresponding to the video preview screen, obtain the video playback mode corresponding to the second operation.
在本申请实施例中,第二操作为用于确定视频对应的视频播放方式的操作。其中,与视频预览画面对应的第二操作可以理解为第二操作的操作对象或者操作位置为视频预览画面。并且,在本申请实施例中,可以有多种的第二操作,且不同的第二操作所对应的视频播放方式可以不同。例如,所配置的第二操作可以包括指定操作A、指定操作B以及指定操作C,其中,指定操作A对应于视频播放方式A,指定操作B对应于视频播放方式B,指定操作C对应于视频播放方式C。在这种情况下,若获取到的第二操作为指定操作A,那么获取到的视频播放方式则为视频播放方式A,若获取到的第二操作为指定操作C,那么获取到的视频播放方式则为视频播放方式C。In this embodiment of the present application, the second operation is an operation for determining a video playback mode corresponding to the video. Wherein, the second operation corresponding to the video preview screen can be understood as the operation object or operation position of the second operation is the video preview screen. Moreover, in the embodiment of the present application, there may be a variety of second operations, and the video playback methods corresponding to different second operations may be different. For example, the configured second operation may include specified operation A, specified operation B, and specified operation C, wherein specified operation A corresponds to video playback mode A, specified operation B corresponds to video playback mode B, and specified operation C corresponds to video Play mode C. In this case, if the obtained second operation is specified operation A, then the obtained video playback mode is video playback mode A. If the obtained second operation is specified operation C, then the obtained video playback mode The mode is video playback mode C.
再者,在第二操作为可以改变视频预览画面的显示位置的操作的情况下,还可以结合对视频预览画面执行第二操作后的显示位置来确定视频对应的视频播放方式。可选的,在电子设备中可以预先存储有第二操作以及视频预览画面与对应的视频播放方式之间的对应关系,从而使得电子设备在检测到可以改变视频预览画面的显示位置的第二操作,以及获取到执行第二操作后视频预览画面的显示位置的情况下,根据该对应关系则可以确定对应的视频播放方式。示例性的,该对应关系可以如下表所示:Furthermore, when the second operation is an operation that can change the display position of the video preview screen, the video playback mode corresponding to the video can also be determined in combination with the display position of the video preview screen after the second operation is performed. Optionally, the second operation and the corresponding relationship between the video preview screen and the corresponding video playback mode can be pre-stored in the electronic device, so that the electronic device detects the second operation that can change the display position of the video preview screen. , and when the display position of the video preview screen after performing the second operation is obtained, the corresponding video playback method can be determined based on the corresponding relationship. For example, the corresponding relationship can be as shown in the following table:
IDID 第二操作Second operation 显示位置show location 播放方式Play method
11 指定操作ASpecify operation A 位置ALocation A 播放方式APlay mode A
22 指定操作ASpecify operation A 位置BLocation B 播放方式BPlay mode B
33 指定操作BSpecify operation B 位置ALocation A 播放方式CPlay mode C
如上表所示,若检测到作用于视频预览画面的第二操作为指定操作A,且在对视频预览画面作用指定操作A之后的显示位置为位置A,则确定视频对应的播放方式为播放方式A。若检测到作用于视频预览画面的第二操作为指定操作A,且在对视频预览画面作用指定操作B之后的显示位置为位置B,则确定视频对应的播放方式为播放方式B。若检测到作用于视频预览画面的第二操作为指定操作B,且在对视频预览画面作用指定操作B之后的显示位置为位置A,则确定视频对应的播放方式为播放方式C。在本申请实施例中,电子设备中所存储的第二操作以及视频预览画面与对应的视频播放方式之间的对应关系可以由开发人员预先配置,也可以由电子设备的用户根据自己的习惯进行配置。As shown in the table above, if it is detected that the second operation acting on the video preview screen is the specified operation A, and the display position after the specified operation A is applied to the video preview screen is position A, then it is determined that the corresponding playback mode of the video is the playback mode. A. If it is detected that the second operation applied to the video preview screen is designated operation A, and the display position after designated operation B is applied to the video preview screen is position B, then it is determined that the playback mode corresponding to the video is playback mode B. If it is detected that the second operation on the video preview screen is designated operation B, and the display position after the designated operation B on the video preview screen is position A, then it is determined that the playback mode corresponding to the video is playback mode C. In the embodiment of the present application, the second operation stored in the electronic device and the corresponding relationship between the video preview screen and the corresponding video playback method can be pre-configured by the developer, or can be configured by the user of the electronic device according to his or her own habits. configuration.
S130:基于所述视频播放方式对所述视频进行播放。S130: Play the video based on the video playback method.
在确定视频对应的视频播放方式之后,则可以基于所确定的视频播放方式对视频进行播放。其中,在本申请实施例中,可用的视频播放方式可以有多种。例如,所确定的视频播放方式可以包括分屏播放方式、画中画播放方式以及全屏方式等。如图6所示,在电子设备原本是在基于全屏方式对视频进行播放,且基于第二操作所确定的视频播放方式为分屏播放方式的情况下,电子设备可以将原本全屏显示的用于播放视频的界面的显示面积进行缩小,并增加一个应用界面用于播放视频。例如,在图6中,在电子设备中可以显示有应用界面52和应用界面53,其中,应用界面52可以用于播放视频,应用界面53则可以为聊天界面。After the video playback mode corresponding to the video is determined, the video can be played based on the determined video playback mode. Among them, in this embodiment of the present application, there may be multiple video playback methods available. For example, the determined video playback mode may include split-screen playback mode, picture-in-picture playback mode, full-screen mode, etc. As shown in Figure 6, when the electronic device originally plays the video based on the full-screen mode, and the video playback mode determined based on the second operation is the split-screen playback mode, the electronic device can use the video originally displayed in full screen for The display area of the video playing interface is reduced, and an application interface is added for playing videos. For example, in FIG. 6 , an application interface 52 and an application interface 53 may be displayed on the electronic device. The application interface 52 may be used to play videos, and the application interface 53 may be a chat interface.
再者,需要说明的是,如前面内容介绍可知,在对视频画面进行第一操作后,可以触发悬浮显示视频预览画面,并且所悬浮显示的视频预览画面为视频中某一视频帧的画面。在这种情况下,悬浮显示的视频预览画面可以作为后续继续进行播放的开始画面,从而在基于第二操作确定视频对应的视频播放方式后,可以从视频预览画面开始继续对视频进行播放,以便使得在进行视频播放的过程中,因为第一操作以及第二操作触发了视频播放方式的切换后,不会影响视频播放的连贯性。示例性的,如图7所示,若在检测到作用于视频的视频画面的第一操作时,正在播放的视频帧为视频帧63,则可以将视频帧63的画面作为悬浮显示的视频预览画面。之后,在根据第二操作确定视频播放方式后,则可以在切换为所确定的视频播放方式后,从视频帧63开始继续进行播放。即,依次播放视频帧63、视频帧64以及排序在后面的视频帧。Furthermore, it should be noted that, as can be seen from the previous introduction, after performing the first operation on the video screen, the video preview screen can be triggered to be displayed in a suspended manner, and the video preview screen displayed in a suspended manner is a video frame of a certain video frame in the video. In this case, the video preview screen displayed in suspension can be used as the starting screen for subsequent continued playback, so that after the video playback method corresponding to the video is determined based on the second operation, the video can be continued to be played starting from the video preview screen, so that Therefore, during the video playback process, the continuity of the video playback will not be affected because the first operation and the second operation trigger the switching of the video playback mode. For example, as shown in Figure 7, if the video frame being played is video frame 63 when the first operation on the video frame is detected, the frame of video frame 63 can be used as a video preview for floating display. picture. Afterwards, after the video playback mode is determined according to the second operation, the video playback mode may be switched to the determined video playback mode, and playback may be continued starting from video frame 63 . That is, the video frame 63, the video frame 64, and the subsequent video frames are played in sequence.
再者,也可以将视频帧63之前的第N帧视频帧的画面作为视频预览画面。例如,若N为2,则可以将视频帧61的画面作为视频预览画面,之后,再根据第二操作确定视频播放方式后,则可以在切换为所确定的视频播放方式后,从视频帧61开始继续进行播放。再例如,若N为3,则可以将视频帧60的画面作为视频预览画面,之后,再根据第二操作确定视频播放方式后,则可以在切换为所确定的视频播放方式后,从视频帧60开始继续进行播放。Furthermore, the N-th video frame before video frame 63 may also be used as the video preview picture. For example, if N is 2, the picture of video frame 61 can be used as the video preview picture. After that, after the video playback mode is determined according to the second operation, the video playback mode can be switched from video frame 61 to the determined video playback mode. Playback begins. For another example, if N is 3, the picture of video frame 60 can be used as the video preview picture. After that, after the video playback mode is determined according to the second operation, the video playback mode can be switched from the video frame to the determined video playback mode. 60 to continue playing.
需要说明的是,除了可以将视频预览画面作为继续播放视频时的开始画面外,还可以基于当前所实时接收到的画面作为继续播放视频的开始画面。例如,一些所播放的视频为预先制作并存储在服务器中的,在这种情况下,播放视频的应用程序可以预先从服务器中下载所要播放的视频到本地后,然后再开始对视频进行播放。此外,播放视频的应用程序也可以边从服务器进行视频的下载且边对已经下载的部分进行播放,在这种方式中,因为视频是已经预先制作完成并存放在服务器中的,所以并不需要较高的播出实时性,因此,在因为进行视频播放方式的切换而造成视频播放中断的情况下,为了便于用户的观看可以更加连贯,可以将检测到有作用于视频画面的第一操作时所播放视频帧之前的第N帧作为视频预览画面。并且,可以在确定新的视频播放方式(即基于第二操作所确定的视频播放方式)后,可以将该视频预览画面作为继续播放的开始画面。It should be noted that in addition to using the video preview screen as the starting screen for continuing to play the video, the currently received real-time screen can also be used as the starting screen for continuing to play the video. For example, some played videos are pre-produced and stored in the server. In this case, the video playing application can download the video to be played locally from the server in advance, and then start playing the video. In addition, the video playing application can also download the video from the server and play the downloaded part at the same time. In this way, because the video has been pre-produced and stored in the server, there is no need to Higher real-time broadcasting. Therefore, when the video playback is interrupted due to switching of video playback modes, in order to facilitate the user's viewing more coherently, the first operation that affects the video screen can be detected. The Nth frame before the played video frame is used as the video preview screen. Moreover, after the new video playback mode (that is, the video playback mode determined based on the second operation) is determined, the video preview screen can be used as a starting screen for continued playback.
再者,在一些情况下,所播放的视频的内容为其他电子设备实时共享的。例如,在会议场景或者直播场景下,电子设备所播放的视频是由视频采集端实时共享的内容。在这种情况下,无论基于何种方式确定的视频预览画面,在确定新的视频播放方式后,都可以将电子设备所实时接收到的视频画面作为开始画面。Furthermore, in some cases, the content of the played video is shared by other electronic devices in real time. For example, in a conference scenario or live broadcast scenario, the video played by the electronic device is content shared in real time by the video capture terminal. In this case, no matter how the video preview picture is determined based on which method, after the new video playback method is determined, the video picture received by the electronic device in real time can be used as the starting picture.
可选的,在本申请实施例中,基于视频播放方式对视频进行播放可以包括:检测所播放视频(第一操作所作用的视频)的视频类型;若所播放视频的类型为预生成的视频(预先制作完成并上传到服务器的视频),则可以在切换到基于第二操作所确定的视频播放方式后,将视频预览画面作为继续播放视频的开始画面以继续进行视频播放。若所播放视频的类型为实时视频(例如,直播视频或者会议视频),则可以在切换到基于第二操作所确定的视频播放方式后,将实时接收到的视频内容作为继续播放视频的开始画面以继续进行视频播放。Optionally, in the embodiment of the present application, playing the video based on the video playback mode may include: detecting the video type of the played video (the video acted upon by the first operation); if the type of the played video is a pre-generated video (Videos that have been pre-produced and uploaded to the server), after switching to the video playback mode determined based on the second operation, the video preview screen can be used as the starting screen for continuing to play the video to continue the video playback. If the type of video being played is real-time video (for example, live video or conference video), after switching to the video playback mode determined based on the second operation, the video content received in real time can be used as the starting screen for continuing to play the video. to continue video playback.
其中,在本申请实施例中,电子设备可以通过多种方式来检测所播放视频的视频类型。作为一种方式,电子设备可以通过对进行视频播放的程序的类型进行检测以确定所播放视频的类型。可选的,在电子设备中可以存储有程序类型的对应表,从而使得电子设备可以通过查询该对应表来获取得到正在播放视频的程序的类型,进而在根据程序的类型来确定所播放视频的类型。In this embodiment of the present application, the electronic device can detect the video type of the played video in a variety of ways. As a way, the electronic device may determine the type of video being played by detecting the type of a program that performs video playback. Optionally, a correspondence table of program types can be stored in the electronic device, so that the electronic device can obtain the type of the program that is playing the video by querying the correspondence table, and then determine the type of the video being played according to the type of the program. type.
本实施例提供的一种视频播放方法,可以在对视频进行播放的过程中,响应作用于所述视频的视频画面的第一操作,悬浮显示与所述视频对应的视频预览画面,再基于与所述视频预览画面对应的第二操作,获取与所述第二操作对应的视频播放方式,以基于所述视频播放方式对所述视频进行播放。从而通过上述方式使得在视频的播放过程中,在通过第一操作触发显示在播放视频对应的视频预览画面后,再通过对该视频预览画面进行第二操作,就可以触发视频基于与该第二操作对应的视频播放方式进行播放,从而使得用户可以较为便利的进行视频播放方式的切换。This embodiment provides a video playback method that can, during the process of playing the video, respond to the first operation acting on the video picture of the video, suspend and display the video preview picture corresponding to the video, and then based on the The second operation corresponding to the video preview screen is to obtain the video playback mode corresponding to the second operation, so as to play the video based on the video playback mode. Therefore, through the above method, during the playback of the video, after triggering the display of the video preview screen corresponding to the played video through the first operation, and then performing the second operation on the video preview screen, the video can be triggered based on the second operation. Operate the corresponding video playback mode to play, so that the user can switch the video playback mode more conveniently.
请参阅图8,本申请提供的一种视频播放方法,应用于电子设备,所述方法包括:Please refer to Figure 8. This application provides a video playback method, which is applied to electronic devices. The method includes:
S210:在对视频进行播放的过程中,响应作用于所述视频的视频画面的第一操作,悬浮显示与所述视频对应的视频预览画面。S210: During the process of playing the video, in response to the first operation acting on the video picture of the video, a video preview picture corresponding to the video is displayed in a floating manner.
在本申请实施例中,第一操作可以有多种实施方式。作为一种方式,第一操作可以为长按操作。在这种方式下,电子设备可以响应作用于视频画面的长按操作,悬浮显示与所述视频对应的视频预览画面。作为另外一种方式,第一操作可以为多指滑动操作,例如,可以为三指滑动操作。在这种情况下,若电子设备检测到有作用于视频画面的三指滑动操作,则可以触发悬浮显示与所述视频对应的视频预览画面。In the embodiment of this application, the first operation may be implemented in various ways. As a way, the first operation may be a long press operation. In this way, the electronic device can respond to the long press operation on the video screen and display a video preview screen corresponding to the video in a floating manner. As another way, the first operation may be a multi-finger sliding operation, for example, it may be a three-finger sliding operation. In this case, if the electronic device detects a three-finger sliding operation on the video screen, it can trigger the floating display of the video preview screen corresponding to the video.
可选的,在电子设备的设置界面中可以配置有用于触发悬浮显示与所述视频对应的视频预览画面的第一操作的界面,在该界面中,用户可以根据自己的操作习惯配置第一操作。例如,用户可以 配置长按操作为第一操作,也可以配置三指滑动操作为第一操作。Optionally, the setting interface of the electronic device may be configured with an interface for triggering a first operation of suspending and displaying a video preview screen corresponding to the video. In this interface, the user can configure the first operation according to his or her own operating habits. . For example, the user can configure a long press operation as the first operation, or configure a three-finger sliding operation as the first operation.
需要说明的是,在第一指定操为手势操作的情况下,用户通常是通过触控物对视频画面进行第一操作。例如,触控物可以为用户手指,也可以为触控笔。可选的,在悬浮显示视频预览画面时,可以在第一操作的作用位置处悬浮显示与所述视频对应的视频预览画面,并且,在触控物作用该第一操作且一直保持与屏幕的接触的情况下,视频预览画面可以跟随触控物的拖拽而移动。示例性的,如图9所示,在图9所示的情况下,悬浮显示的视频预览画面71可以直接显示在用户手指处,从而使得用户可以通过手指直接对视频预览画面71进行拖拽。再者,可选的,在悬浮显示视频预览画面时,可以在屏幕中的指定位置悬浮显示与所述视频对应的视频预览画面。It should be noted that when the first specified operation is a gesture operation, the user usually performs the first operation on the video screen by touching the object. For example, the touch object may be a user's finger or a stylus. Optionally, when the video preview screen is displayed in a floating manner, the video preview screen corresponding to the video can be displayed in a floating manner at the position where the first operation is performed, and the touch object remains in contact with the screen when the first operation is performed. In the case of contact, the video preview screen can move following the dragging of the touch object. For example, as shown in FIG. 9 , in the situation shown in FIG. 9 , the suspended video preview screen 71 can be directly displayed at the user's finger, so that the user can directly drag the video preview screen 71 with the finger. Furthermore, optionally, when displaying the video preview image in a floating manner, the video preview image corresponding to the video can be displayed in a floating manner at a designated position on the screen.
S220:响应于对所述视频预览画面的拖拽操作,获取执行所述拖拽操作后的视频预览画面的显示位置。S220: In response to the drag operation on the video preview screen, obtain the display position of the video preview screen after the drag operation is performed.
其中,在视频预览画面被进行拖拽之后,视频预览画面的显示位置会进行改变,并且,在视频预览画面在不同的显示位置对应不同的视频播放方式的情况下,在对视频预览画面进行拖动之后,则会去获取视频预览画面的显示位置,以便根据所获取的显示位置来确定视频播放方式。Among them, after the video preview screen is dragged, the display position of the video preview screen will change, and when the video preview screen corresponds to different video playback methods in different display positions, after dragging the video preview screen After moving, the display position of the video preview screen will be obtained so that the video playback method can be determined based on the obtained display position.
S230:基于所述显示位置确定所述视频对应的视频播放方式。S230: Determine the video playback mode corresponding to the video based on the display position.
作为一种方式,所述基于所述显示位置确定所述视频对应的视频播放方式,包括:若执行所述拖拽操作后的视频预览画面的显示位置位于屏幕的边缘,确定对应的视频播放方式为分屏播放方式。可选的,若电子设备检测到视频预览画面的边缘处于屏幕的边缘时,确定视频预览画面的显示位置位于屏幕的边缘。例如,如图10所示,若沿图10中虚线箭头所示方向对视频预览画面71进行拖拽,且拖拽后的视频预览画面71的边缘处于屏幕的边缘后,可以将边缘所对应的视频播放方式确定为视频对应的视频播放方式。As one way, determining the video playback mode corresponding to the video based on the display position includes: if the display position of the video preview image after performing the drag operation is located at the edge of the screen, determining the corresponding video playback mode For split screen playback mode. Optionally, if the electronic device detects that the edge of the video preview image is at the edge of the screen, it determines that the display position of the video preview image is at the edge of the screen. For example, as shown in Figure 10, if the video preview screen 71 is dragged along the direction indicated by the dotted arrow in Figure 10, and the edge of the dragged video preview screen 71 is at the edge of the screen, the corresponding edge can be The video playback method is determined as the video playback method corresponding to the video.
S240:基于所述视频播放方式对所述视频进行播放。S240: Play the video based on the video playback method.
作为一种方式,所述基于所述视频播放方式对所述视频进行播放之后还包括:响应作用于所述视频的视频画面的第三指定操作,悬浮显示与所述视频对应的视频预览画面;基于与所述视频预览画面对应的第四指定操作,获取所述视频应的视频播放方式;基于所述视频应的视频播放方式对所述视频进行播放。需要说明的是,在将视频播放方式切换为基于第二操作所确定的播放方式之后,用户可能还会对视频播放方式进行切换,在这种情况下,用户可以通过对视频画面作用第二操作,以触发悬浮显示与所述视频对应的视频预览画面,并进一步的通过对悬浮显示的视频预览画面作用第四指定操作,以进行视频播放方式的切换。其中,第三指定操作可以与第一操作相同。例如,第三指定操作可以为长按操作,也可以为三指滑动操作。As a way, after playing the video based on the video playback method, the method further includes: in response to a third specified operation acting on the video screen of the video, suspending and displaying a video preview screen corresponding to the video; Based on the fourth specified operation corresponding to the video preview screen, a video playback mode of the video is obtained; and the video is played based on the video playback mode of the video. It should be noted that after switching the video playback mode to the playback mode determined based on the second operation, the user may also switch the video playback mode. In this case, the user can perform the second operation on the video screen. , to trigger the suspended display of a video preview screen corresponding to the video, and further perform a fourth specified operation on the suspended displayed video preview screen to switch the video playback mode. The third specified operation may be the same as the first operation. For example, the third designated operation may be a long press operation or a three-finger sliding operation.
可选的,所述第四指定操作包括拖拽操作,所述基于与所述视频预览画面对应的第四指定操作,获取所述视频应的视频播放方式,包括:响应于对所述视频预览画面的拖拽操作,获取执行所述拖拽操作后的视频预览画面的显示位置;若所示显示位置位于屏幕的中间区域,确定对应的视频播放方式为画中画播放。示例性的,如图11所示,若在基于分屏方式进行视频播放的情况下,检测到有作用于视频画面的第三指定操作后,可以在第三指定操作的作用位置显示视频预览画面72。例如,图11中用户通过手指触发对视频预览画面的长按操作,则可以触发在手指作用于屏幕的位置悬浮显示视频预览画面,然后,进一步检测到视频预览画面72被拖动到屏幕的中间区域,则确定对应的视频播放方式为画中画播放,进而基于图12中所示的画中画播放方式对视频进行播放。其中,如图12所示,在本申请实施例中,在基于画中画方式对视频进行播放的过程中,会使得视频画面脱离原本的应用界面(例如,图11中所示的分屏界面),而通过一个独立的窗口73对视频进行播放,并且,该独立的窗口73的尺寸与视频画面的尺寸相同。Optionally, the fourth designated operation includes a drag operation, and obtaining the video playback mode of the video based on the fourth designated operation corresponding to the video preview screen includes: responding to the video preview Drag and drop the screen to obtain the display position of the video preview screen after performing the drag and drop operation; if the displayed display position is located in the middle area of the screen, determine that the corresponding video playback method is picture-in-picture playback. For example, as shown in Figure 11, if a video is played in a split-screen mode and a third specified operation is detected that acts on the video screen, the video preview screen can be displayed at the position where the third specified operation is applied. 72. For example, in Figure 11, if the user triggers a long press operation on the video preview screen with his finger, the video preview screen can be triggered to be displayed in a floating manner at the position where the finger acts on the screen. Then, it is further detected that the video preview screen 72 is dragged to the middle of the screen. area, it is determined that the corresponding video playback mode is picture-in-picture playback, and then the video is played based on the picture-in-picture playback mode shown in Figure 12. Among them, as shown in Figure 12, in the embodiment of the present application, during the process of playing the video based on the picture-in-picture mode, the video screen will be separated from the original application interface (for example, the split-screen interface shown in Figure 11 ), and the video is played through an independent window 73, and the size of the independent window 73 is the same as the size of the video picture.
本实施例提供的一种视频播放方法,从而通过上述方式使得在视频的播放过程中,在通过第一操作触发显示在播放视频对应的视频预览画面后,再通过对该视频预览画面进行拖拽操作,就可以触发视频基于拖拽操作后所处的位置对应的视频播放方式进行播放,从而使得用户可以较为便利的进行视频播放方式的切换。并且,在本实施例中,在触发基于分屏播放方式对视频进行播放之后,还可以基于第三指定操作再次触发悬浮显示与所述视频对应的视频预览画面,以便基于与视频预览画面对应的第四指定操作获取对应的视频播放方式对所述视频进行播放。This embodiment provides a video playback method, so that during the video playback process, after the first operation triggers the display of the video preview screen corresponding to the played video, the video preview screen is then dragged and dropped. operation, the video can be triggered to play based on the video playback method corresponding to the position after the drag operation, so that the user can switch the video playback method more conveniently. Moreover, in this embodiment, after triggering the playback of the video based on the split-screen playback mode, the floating display of the video preview screen corresponding to the video can also be triggered again based on the third specified operation, so that the video preview screen corresponding to the video preview screen can be displayed based on the video preview screen. The fourth designated operation is to obtain the corresponding video playback method and play the video.
请参阅图13,本申请提供的一种视频播放方法,应用于电子设备,所述方法包括:Please refer to Figure 13. This application provides a video playback method applied to electronic devices. The method includes:
S310:在对视频进行播放的过程中,响应作用于所述视频的视频画面的第一操作,悬浮显示与所述视频对应的视频预览画面。S310: In the process of playing the video, in response to the first operation acting on the video picture of the video, a video preview picture corresponding to the video is displayed in a floating manner.
S320:响应于对所述视频预览画面的拖拽操作,获取执行所述拖拽操作后的视频预览画面的显示位置。S320: In response to the drag operation on the video preview screen, obtain the display position of the video preview screen after the drag operation is performed.
S330:若执行所述拖拽操作后的视频预览画面的显示位置位于屏幕的中间区域,确定对应的视频播放方式为画中画播放方式。S330: If the display position of the video preview image after performing the drag operation is located in the middle area of the screen, determine that the corresponding video playback mode is the picture-in-picture playback mode.
S340:基于画中画播放方式对所述视频进行播放。S340: Play the video based on the picture-in-picture playback method.
本实施例提供的一种视频播放方法,从而通过上述方式使得在视频的播放过程中,在通过第一操作触发显示在播放视频对应的视频预览画面后,再通过对该视频预览画面进行拖拽操作,就可以触发视频基于拖拽操作后所处的位置对应的视频播放方式进行播放,从而使得用户可以较为便利的进行视频播放方式的切换。并且,在对视频预览画面进行拖拽操作的位置位于屏幕的中间区域的情况下,可以基于画中画播放方式对视频进行播放。This embodiment provides a video playback method, so that during the video playback process, after the first operation triggers the display of the video preview screen corresponding to the played video, the video preview screen is then dragged and dropped. operation, the video can be triggered to play based on the video playback method corresponding to the position after the drag operation, so that the user can switch the video playback method more conveniently. Moreover, when the drag operation position on the video preview screen is located in the middle area of the screen, the video can be played based on the picture-in-picture playback method.
请参阅图14,本申请提供的一种视频播放方法,应用于电子设备,所述方法包括:Please refer to Figure 14. This application provides a video playback method, which is applied to electronic devices. The method includes:
S410:在通过悬浮显示的视频播放窗口对视频进行播放的过程中,响应作用于所述视频的视频画面的第一操作,悬浮显示与所述视频对应的视频预览画面。S410: During the process of playing the video through the suspended-displayed video playback window, in response to the first operation acting on the video picture of the video, a video preview picture corresponding to the video is suspended and displayed.
可选的,在本申请实施例中,可以在响应作用于所述视频的视频画面的第一操作,悬浮显示与所述视频对应的视频预览画面的情况下,取消在视频播放窗口显示所述视频的视频画面。其中,取消在视频播放窗口显示所述视频的视频画面可以理解为不在视频播放窗口内显示视频的视频画面。例如,如图15所示,在显示有视频预览画面的情况下,在原本进行视频播放的区域75中则会取消在视频播放窗口显示所述视频的视频画面。Optionally, in this embodiment of the present application, when the video preview screen corresponding to the video is suspended and displayed in response to the first operation on the video screen of the video, the display of the video preview screen in the video playback window can be cancelled. Video footage of the video. Wherein, canceling the display of the video picture of the video in the video playback window can be understood as not displaying the video picture of the video in the video playback window. For example, as shown in FIG. 15 , when a video preview screen is displayed, displaying the video screen of the video in the video playback window will be canceled in the area 75 where video playback is originally performed.
可选的,在本申请实施例中,可以响应作用于视频链接的触控操作,触发显示视频播放窗口,所述视频播放窗口悬浮于显示所述视频链接的界面上;在所述视频播放窗口中对所述视频进行播放。其中,显示视频链接的界面可以为浏览器中的界面,也可以为聊天界面。Optionally, in this embodiment of the present application, a video playback window can be triggered to be displayed in response to a touch operation on a video link, and the video playback window is suspended on the interface displaying the video link; in the video playback window Play the video in question. The interface for displaying the video link may be an interface in a browser or a chat interface.
S420:响应于对所述视频预览画面的拖拽操作,获取执行所述拖拽操作后的视频预览画面的显示位置。S420: In response to the drag operation on the video preview screen, obtain the display position of the video preview screen after the drag operation is performed.
S430:基于所述显示位置确定所述视频对应的视频播放方式。S430: Determine the video playback mode corresponding to the video based on the display position.
S440:基于与所述视频预览画面对应的拖拽操作,隐藏所述悬浮显示的视频播放窗口。S440: Hide the suspended video playback window based on the drag operation corresponding to the video preview screen.
S450:基于所述视频播放方式对所述视频进行播放。S450: Play the video based on the video playback method.
本实施例提供的一种视频播放方法,从而通过上述方式使得在视频的播放过程中,在通过第一操作触发显示在播放视频对应的视频预览画面后,再通过对该视频预览画面进行拖拽操作,就可以触发视频基于拖拽操作后所处的位置对应的视频播放方式进行播放,从而使得用户可以较为便利的进行视频播放方式的切换。并且,在本实施例中,可以是通过对悬浮显示的视频播放窗口中所播放视频进行第一操作,从而使得可以在视频通过悬浮窗进行播放的情况下,可以便利于用户快速的进行视频播放方式的切换。This embodiment provides a video playback method, so that during the video playback process, after the first operation triggers the display of the video preview screen corresponding to the played video, the video preview screen is then dragged and dropped. operation, the video can be triggered to play based on the video playback method corresponding to the position after the drag operation, so that the user can switch the video playback method more conveniently. Moreover, in this embodiment, the first operation can be performed on the video played in the suspended video playback window, so that when the video is played through the floating window, it is convenient for the user to quickly play the video. mode switching.
请参阅图16,本申请提供的一种视频播放方法,应用于电子设备,所述方法包括:Please refer to Figure 16. This application provides a video playback method applied to electronic devices. The method includes:
S510:在对视频进行播放的过程中,响应作用于所述视频的视频画面的第一操作,悬浮显示与所述视频对应的视频预览画面。S510: In the process of playing the video, in response to the first operation acting on the video picture of the video, a video preview picture corresponding to the video is displayed in a floating manner.
S520:基于与所述视频预览画面对应的第二操作,获取与所述第二操作对应的视频播放方式。S520: Based on the second operation corresponding to the video preview screen, obtain the video playback mode corresponding to the second operation.
S530:若第二操作的视频播放方式包括画中画播放方式,基于画中画播放方式对所述视频进行播放。S530: If the video playback method of the second operation includes a picture-in-picture playback method, play the video based on the picture-in-picture playback method.
S540:在基于画中画播放方式进行播放的过程中,响应作用于所述视频的视频画面的触控手势,在所述视频画面中显示参数控制界面。S540: During the playback process based on the picture-in-picture playback mode, in response to the touch gesture acting on the video screen of the video, display a parameter control interface in the video screen.
需要说明的是,在视频以画中画播放方式进行播放的情况下,若直接对视频画面进行滑动操作,那么则会触发视频画面也跟随进行移动进而改变视频画面的显示位置,为了使得电子设备可以区别用户是要对视频的播放参数进行调节,还是期望对视频画面的位置进行调节,可以在本申请实施例中引入作用于视频画面的触控手势。It should be noted that when the video is played in picture-in-picture playback mode, if the video screen is directly slid, the video screen will be triggered to move accordingly and the display position of the video screen will be changed. In order to make the electronic device It can be distinguished whether the user wants to adjust the playback parameters of the video or wants to adjust the position of the video picture. In the embodiment of the present application, touch gestures acting on the video picture can be introduced.
其中,在基于画中画播放方式对视频进行播放的过程中,视频画面是在一个独立的窗口中进行播放的。在这种情况下,可以在基于画中画播放方式进行播放的情况下,用户通过作用于视频画面的触控手势,触发在视频画面中显示参数控制界面,以便可以通过该参数控制界面来对所播放视频的播放参数进行调整。其中,触控手势可以有多种,例如,可以为双指点击操作、三指点击操作或者大面积按压操作等。并且,触控手势可以由开发人员预先配置,也可以由电子设备的用户根据自己的操作习惯进行配置。Among them, in the process of playing the video based on the picture-in-picture playback method, the video picture is played in an independent window. In this case, when playing based on the picture-in-picture playback method, the user can trigger the display of the parameter control interface in the video screen through touch gestures acting on the video screen, so that the user can control the parameters through the parameter control interface. Adjust the playback parameters of the video being played. Among them, the touch gestures can be of various kinds, for example, they can be two-finger click operations, three-finger click operations, or large-area press operations. Moreover, touch gestures can be pre-configured by developers, or configured by users of electronic devices according to their own operating habits.
在通过画中画播放方式对视频进行播放的过程中,若电子设备在检测到直接作用于视频画面的滑动操作的情况下,则可以使得视频画面跟随滑动操作进行移动,而改变视频画面的显示位置。若检测到已经显示有参数控制界面,且滑动操作是作用于参数控制界面上,则会对所播放视频的视频参数进行调节。During the video playback through picture-in-picture playback, if the electronic device detects a sliding operation that directly acts on the video screen, it can cause the video screen to move following the sliding operation and change the display of the video screen. Location. If it is detected that a parameter control interface is displayed and the sliding operation is applied to the parameter control interface, the video parameters of the played video will be adjusted.
再者,在本申请实施例中,参数控制界面中可以显示有可调节视频参数的提示信息,并且,在参数控制界面中除了该提示信息外,其余均为透明状态,从而使得既可以提示用户可以对何种播放参数进行调节,又不会对用户正常观看视频造成过多影响。Furthermore, in the embodiment of the present application, the parameter control interface may display prompt information for adjustable video parameters, and except for the prompt information, the rest of the parameter control interface is in a transparent state, so that the user can be prompted What kind of playback parameters can be adjusted without having too much impact on the user's normal viewing of the video.
S550:若检测到作用于所述参数控制界面的滑动操作,获取所述滑动操作的作用区域。S550: If a sliding operation acting on the parameter control interface is detected, obtain the action area of the sliding operation.
S560:基于滑动操作的方向以及所述作用区域,调整所述视频的播放参数。S560: Adjust the playback parameters of the video based on the direction of the sliding operation and the action area.
可选的,参数控制界面可以包括第一操作区域以及第二操作区域。其中第一操作区域对应于第一播放参数,第二操作区域对应于第二播放参数。若检测到作用于参数控制界面的滑动操作的作用区域位于该第一操作区域时,则基于滑动操作的方向对第一播放参数进行调节,若检测到作用于参数控制界面的滑动操作的作用区域位于该第二操作区域时,则基于滑动操作的方向对第二播放参数进行调节。可选的,第一播放参数可以为亮度参数,第二播放参数可以为音量参数。如图17和如图18所示,在图17中虚线的左侧的区域可以为第一操作区域,在18中虚线的右侧的区域可以为第二操作区域。Optionally, the parameter control interface may include a first operation area and a second operation area. The first operation area corresponds to the first playback parameter, and the second operation area corresponds to the second playback parameter. If it is detected that the action area of the sliding operation acting on the parameter control interface is located in the first operation area, the first playback parameter is adjusted based on the direction of the sliding operation. If it is detected that the action area of the sliding operation acting on the parameter control interface is When located in the second operation area, the second playback parameter is adjusted based on the direction of the sliding operation. Optionally, the first playback parameter may be a brightness parameter, and the second playback parameter may be a volume parameter. As shown in FIG. 17 and FIG. 18 , the area to the left of the dotted line in FIG. 17 may be the first operation area, and the area to the right of the dotted line in FIG. 18 may be the second operation area.
本实施例提供的一种视频播放方法,从而通过上述方式使得在视频的播放过程中,在通过第一操作触发显示在播放视频对应的视频预览画面后,再通过对该视频预览画面进行拖拽操作,就可以触发视频基于拖拽操作后所处的位置对应的视频播放方式进行播放,从而使得用户可以较为便利的进行视频播放方式的切换。并且,在本实施例中,在第二操作对应的播放方式为画中画播放方式的情况下,用户还可以通过作用于画中画方式播放的视频触控手势,以便在所述视频画面中显示参数控制界面,进而通过该参数控制界面就可以直接对视频的播放参数进行调整。并且,因为通过参数控制界面是直接对播放视频的应用程序对应的播放参数进行调节,而可以不用直接对电子设备的参数进行调节,从而更大程度的避免了对其他应用程序造成影响。例如,以播放参数为音量为例。若以画中画播放方式进行播放的视频画面是属于应用程序A,另外,在电子设备中还运行有也可以进行音频输出的应用程序B,若用户通过作用于本申请实施例中的参数控制界面对播放参数(应用程序A对应的画中画)进行调节,实际是对应用程序A的播放参数进行调节,而可以不用去通过改变电子设备的的参数来实现调节播放参数,从而使得应用程序B在进行音频输出的时候,依然可以保持原有的音量进行输出(因为电子设备本身的音量输出参数依然没有改变)。This embodiment provides a video playback method, so that during the video playback process, after the first operation triggers the display of the video preview screen corresponding to the played video, the video preview screen is then dragged and dropped. operation, the video can be triggered to play based on the video playback method corresponding to the position after the drag operation, so that the user can switch the video playback method more conveniently. Moreover, in this embodiment, when the playback mode corresponding to the second operation is the picture-in-picture playback mode, the user can also use touch gestures on the video played in the picture-in-picture mode to play in the video screen. The parameter control interface is displayed, and the playback parameters of the video can be directly adjusted through the parameter control interface. Moreover, because the playback parameters corresponding to the application that plays the video are directly adjusted through the parameter control interface, there is no need to directly adjust the parameters of the electronic device, thus avoiding the impact on other applications to a greater extent. For example, take the playback parameter as volume. If the video screen played in the picture-in-picture playback mode belongs to application A, and in addition, there is also application B running in the electronic device that can also perform audio output, if the user controls it through the parameters acting in the embodiment of the present application. The interface adjusts the playback parameters (picture-in-picture corresponding to application A). It actually adjusts the playback parameters of application A. It does not need to change the parameters of the electronic device to adjust the playback parameters, thus making the application When B is performing audio output, it can still maintain the original volume for output (because the volume output parameters of the electronic device itself have not changed).
请参阅图19,本申请提供的一种视频播放装置600,运行于电子设备,所述装置600包括:Please refer to Figure 19. This application provides a video playback device 600 that runs on electronic equipment. The device 600 includes:
视频预览画面显示单元610,用于在对视频进行播放的过程中,响应作用于所述视频的视频画面的第一操作,悬浮显示与所述视频对应的视频预览画面。The video preview screen display unit 610 is configured to suspend and display a video preview screen corresponding to the video in response to a first operation acting on the video screen of the video during the playback of the video.
播放方式确定单元620,用于基于与所述视频预览画面对应的第二操作,获取与所述第二操作对应的视频播放方式。The playback mode determining unit 620 is configured to obtain the video playback mode corresponding to the second operation based on the second operation corresponding to the video preview screen.
播放控制单元630,用于基于所述视频播放方式对所述视频进行播放。The playback control unit 630 is used to play the video based on the video playback method.
作为一种方式,所述第二操作包括拖拽操作。在这种方式中,播放方式确定单元620,具体用于响应于对所述视频预览画面的拖拽操作,获取执行所述拖拽操作后的视频预览画面的显示位置;基于所述显示位置确定所述视频对应的视频播放方式。可选的,播放控制单元630,具体用于若执行所述拖拽操作后的视频预览画面的显示位置位于屏幕的边缘,确定对应的视频播放方式为分屏播放方式。播放控制单元630,还用于响应作用于所述视频的视频画面的第三指定操作,悬浮显示与所述视频对应的视频预览画面;基于与所述视频预览画面对应的第四指定操作,获取所述视频应的视频播放方式;As a way, the second operation includes a drag operation. In this way, the playback mode determining unit 620 is specifically configured to respond to the drag operation on the video preview screen and obtain the display position of the video preview screen after the drag operation is performed; determine based on the display position The video playback method corresponding to the video. Optionally, the playback control unit 630 is specifically configured to determine that the corresponding video playback mode is the split-screen playback mode if the display position of the video preview image after performing the drag operation is located at the edge of the screen. The playback control unit 630 is also configured to respond to the third specified operation on the video screen of the video and display a video preview screen corresponding to the video in a floating manner; based on the fourth specified operation corresponding to the video preview screen, obtain The video playback method of the video;
基于所述视频应的视频播放方式对所述视频进行播放。The video is played based on the video playback mode corresponding to the video.
可选的,所述第四指定操作包括拖拽操作。播放控制单元630,具体用于响应于对所述视频预览画面的拖拽操作,获取执行所述拖拽操作后的视频预览画面的显示位置;若所示显示位置位于屏幕的中间区域,确定对应的视频播放方式为画中画播放。Optionally, the fourth specified operation includes a drag operation. The playback control unit 630 is specifically configured to respond to the drag operation on the video preview screen and obtain the display position of the video preview screen after the drag operation is performed; if the displayed display position is located in the middle area of the screen, determine the corresponding The video playback mode is picture-in-picture playback.
作为一种方式,播放方式确定单元620,具体用于若执行所述拖拽操作后的视频预览画面的显示位置位于屏幕的中间区域,确定对应的视频播放方式为画中画播放方式。As a method, the playback mode determining unit 620 is specifically configured to determine that the corresponding video playback mode is the picture-in-picture playback mode if the display position of the video preview image after performing the drag operation is located in the middle area of the screen.
可选的,视频预览画面显示单元610,具体用于在通过悬浮显示的视频播放窗口对视频进行播放的过程中,响应作用于所述视频的视频画面的第一操作,悬浮显示与所述视频对应的视频预览画面。播放控制单元630,还用于基于与所述视频预览画面对应的拖拽操作,隐藏所述悬浮显示的视频播放窗口。可选的,视频预览画面显示单元610,具体用于响应作用于所述视频链接的触控操作,触发显示视频播放窗口,所述视频播放窗口悬浮于显示所述视频链接的界面上;在所述视频播放窗口中对所述视频进行播放。Optionally, the video preview screen display unit 610 is specifically configured to, during the process of playing the video through the suspended-displayed video playback window, respond to the first operation acting on the video screen of the video, the suspended display and the video The corresponding video preview screen. The playback control unit 630 is also configured to hide the suspended video playback window based on the drag operation corresponding to the video preview screen. Optionally, the video preview screen display unit 610 is specifically configured to trigger the display of a video playback window in response to a touch operation acting on the video link, and the video playback window is suspended on the interface displaying the video link; Play the video in the video playback window.
作为一种方式,所述视频播放方式包括画中画播放方式。播放控制单元630,具体用于基于所述画中画播放方式对所述视频进行播。如图20所示,视频播放装置600还可包括参数调整单元640,用于在基于画中画播放方式进行播放的过程中,响应作用于所述视频的视频画面的触控手势,在所述视频画面中显示参数控制界面;若检测到作用于所述参数控制界面的滑动操作,获取所述滑动操作的作用区域;基于滑动操作的方向以及所述作用区域,调整所述视频的播放参数。As a method, the video playback method includes a picture-in-picture playback method. The playback control unit 630 is specifically configured to play the video based on the picture-in-picture playback method. As shown in Figure 20, the video playback device 600 may further include a parameter adjustment unit 640, configured to respond to a touch gesture acting on the video screen of the video during the playback process based on the picture-in-picture playback mode. A parameter control interface is displayed in the video screen; if a sliding operation acting on the parameter control interface is detected, the action area of the sliding operation is obtained; based on the direction of the sliding operation and the action area, the playback parameters of the video are adjusted.
本实施例提供的一种视频播放装置,可以在对视频进行播放的过程中,响应作用于所述视频的视频画面的第一操作,悬浮显示与所述视频对应的视频预览画面,再基于与所述视频预览画面对应 的第二操作,获取与所述第二操作对应的视频播放方式,以基于所述视频播放方式对所述视频进行播放。从而通过上述方式使得在视频的播放过程中,在通过第一操作触发显示在播放视频对应的视频预览画面后,再通过对该视频预览画面进行第二操作,就可以触发视频基于与该第二操作对应的视频播放方式进行播放,从而使得用户可以较为便利的进行视频播放方式的切换。The video playback device provided in this embodiment can, during the process of playing the video, respond to the first operation acting on the video picture of the video, suspend and display the video preview picture corresponding to the video, and then based on the The second operation corresponding to the video preview screen is to obtain the video playback mode corresponding to the second operation, so as to play the video based on the video playback mode. Therefore, through the above method, during the playback of the video, after triggering the display of the video preview screen corresponding to the played video through the first operation, and then performing the second operation on the video preview screen, the video can be triggered based on the second operation. Operate the corresponding video playback mode to play, so that the user can switch the video playback mode more conveniently.
需要说明的是,本申请中装置实施例与前述方法实施例是相互对应的,装置实施例中各个单元的具体实施原理与前述方法实施例中的原理是相似的,装置实施例中的具体内容可以参见方法实施例,而在装置实施例中不再赘述。It should be noted that the device embodiments in this application correspond to the foregoing method embodiments. The specific implementation principles of each unit in the device embodiments are similar to the principles in the foregoing method embodiments. The specific contents in the device embodiments are Reference may be made to the method embodiment and no further details will be given in the device embodiment.
下面将结合图21对本申请提供的一种电子设备进行说明。An electronic device provided by this application will be described below with reference to FIG. 21 .
请参阅图21,基于上述的收纳盒的定位方法、装置,本申请实施例还提供的一种可以执行前述收纳盒的定位方法的电子设备1000。电子设备1000包括相互耦合的一个或多个(图中仅示出一个)处理器105、存储器104、音频播放模块106以及音频采集装置108。其中,该存储器104中存储有可以执行前述实施例中内容的程序,而处理器105可以执行该存储器104中存储的程序。Please refer to FIG. 21 . Based on the above-mentioned positioning method and device of the storage box, embodiments of the present application also provide an electronic device 1000 that can perform the aforementioned positioning method of the storage box. The electronic device 1000 includes one or more (only one is shown in the figure) processors 105, a memory 104, an audio playback module 106 and an audio collection device 108 that are coupled to each other. The memory 104 stores programs that can execute the content in the aforementioned embodiments, and the processor 105 can execute the programs stored in the memory 104 .
其中,处理器105可以包括一个或者多个处理核。处理器105利用各种接口和线路连接整个电子设备1000内的各个部分,通过运行或执行存储在存储器104内的指令、程序、代码集或指令集,以及调用存储在存储器104内的数据,执行电子设备1000的各种功能和处理数据。可选地,处理器105可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器105可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器105中,单独通过一块通信芯片进行实现。Among them, the processor 105 may include one or more processing cores. The processor 105 uses various interfaces and lines to connect various parts of the entire electronic device 1000, and executes by running or executing instructions, programs, code sets or instruction sets stored in the memory 104, and calling data stored in the memory 104. Various functions and processing data of the electronic device 1000. Optionally, the processor 105 can use at least one of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). implemented in hardware form. The processor 105 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), a modem, etc. Among them, the CPU mainly handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the display content; and the modem is used to handle wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 105 and may be implemented solely through a communication chip.
存储器104可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器104可用于存储指令、程序、代码、代码集或指令集。例如,存储器104中可以存储有数据获取装置。该数据获取装置可以为前述的装置600。存储器104可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。The memory 104 may include random access memory (RAM) or read-only memory (Read-Only Memory). Memory 104 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. For example, the memory 104 may store a data acquisition device. The data acquisition device may be the aforementioned device 600. The memory 104 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing each of the following method embodiments, etc.
再者,电子设备1000除了前述所示的器件外,还可以包括网络模块110以及传感器模块112。Furthermore, in addition to the components shown above, the electronic device 1000 may also include a network module 110 and a sensor module 112 .
所述网络模块110用于实现电子设备1000与其他设备之间的信息交互,例如,可以与其他的音频播放设备或者其他的电子设备建立连接,并基于所建立的连接进行信息交互。作为一种方式,电子设备1000的网络模块110为射频模块,该射频模块用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。所述射频模块可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。例如,该射频模块可以通过发送或者接收的电磁波与外部设备进行交互。The network module 110 is used to realize information interaction between the electronic device 1000 and other devices. For example, it can establish a connection with other audio playback devices or other electronic devices, and perform information interaction based on the established connection. As a method, the network module 110 of the electronic device 1000 is a radio frequency module, which is used to receive and send electromagnetic waves, realize mutual conversion of electromagnetic waves and electrical signals, and thereby communicate with the communication network or other devices. The radio frequency module may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, Subscriber Identity Module (SIM) cards, memories, and the like. For example, the radio frequency module can interact with external devices by sending or receiving electromagnetic waves.
传感器模块112可以包括至少一种传感器。具体地,传感器模块112可包括但并不限于:压力传感器、运动传感器、加速度传感器以及其他传感器。 Sensor module 112 may include at least one sensor. Specifically, the sensor module 112 may include, but is not limited to: pressure sensors, motion sensors, acceleration sensors, and other sensors.
其中,压力传感器可以检测由按压在电子设备1000产生的压力的传感器。即,压力传感器检测由用户和电子设备1000之间的接触或按压产生的压力,例如由用户的耳朵与电子设备1000之间的接触或按压产生的压力。因此,压力传感器可以用来确定在用户与电子设备1000之间是否发生了接触或者按压,以及压力的大小。Among them, the pressure sensor may be a sensor that detects pressure generated by pressing on the electronic device 1000 . That is, the pressure sensor detects pressure caused by contact or pressing between the user and the electronic device 1000 , for example, pressure caused by contact or pressing between the user's ear and the electronic device 1000 . Therefore, the pressure sensor can be used to determine whether contact or pressure has occurred between the user and the electronic device 1000, as well as the amount of pressure.
其中,加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备1000姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等。另外,电子设备1000还可配置陀螺仪、气压计、湿度计、温度计等其他传感器,在此不再赘述。Among them, the acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes), can detect the magnitude and direction of gravity when stationary, and can be used to identify applications of the posture of electronic devices 1000 (such as horizontal and vertical screen switching, related games, magnetometers Attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc. In addition, the electronic device 1000 may also be configured with other sensors such as a gyroscope, barometer, hygrometer, and thermometer, which will not be described again here.
音频采集装置110,用于进行音频信号采集。可选的,音频采集装置110包括有多个音频采集器件,该音频采集器件可以为麦克风。 Audio collection device 110 is used to collect audio signals. Optionally, the audio collection device 110 includes multiple audio collection devices, and the audio collection devices may be microphones.
请参考图22,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质1100中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to Figure 22, which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. Program code is stored in the computer-readable medium 1100, and the program code can be called by the processor to execute the method described in the above method embodiment.
计算机可读存储介质1100可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质1100包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质1100具有执行上述方法中的任何方法步骤的程序代码1110的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码1110可以例如以适当形式进行压缩。Computer-readable storage medium 1100 may be electronic memory such as flash memory, EEPROM (electrically erasable programmable read-only memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 1100 includes non-transitory computer-readable storage medium. The computer-readable storage medium 1100 has storage space for the program code 1110 that performs any method steps in the above-mentioned methods. These program codes can be read from or written into one or more computer program products. Program code 1110 may, for example, be compressed in a suitable form.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一 些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, reference to the terms "one embodiment," "some embodiments," "an example," "specific examples," or "some examples" or the like means that specific features are described in connection with the embodiment or example. , structures, materials or features are included in at least one embodiment or example of the present application. In this specification, the schematic expressions of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, those skilled in the art may combine and combine different embodiments or examples and features of different embodiments or examples described in this specification unless they are inconsistent with each other.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms “first” and “second” are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Therefore, features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In the description of this application, "plurality" means at least two, such as two, three, etc., unless otherwise expressly and specifically limited.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent modules, segments, or portions of code that include one or more executable instructions for implementing the specified logical functions or steps of the process. , and the scope of the preferred embodiments of the present application includes additional implementations in which functions may be performed out of the order shown or discussed, including in a substantially simultaneous manner or in the reverse order, depending on the functionality involved, which shall It should be understood by those skilled in the technical field to which the embodiments of this application belong.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。The logic and/or steps represented in the flowcharts or otherwise described herein, for example, may be considered a sequenced list of executable instructions for implementing the logical functions, and may be embodied in any computer-readable medium, For use by, or in combination with, instruction execution systems, devices or devices (such as computer-based systems, systems including processors or other systems that can fetch instructions from and execute instructions from the instruction execution system, device or device) or equipment.
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the present application can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if it is implemented in hardware, as in another embodiment, it can be implemented by any one or a combination of the following technologies known in the art: a logic gate circuit with a logic gate circuit for implementing a logic function on a data signal. Discrete logic circuits, application specific integrated circuits with suitable combinational logic gates, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.
综上所述,本申请提供的一种视频播放方法、装置、电子设备及存储介质,可以在对视频进行播放的过程中,响应作用于所述视频的视频画面的第一操作,悬浮显示与所述视频对应的视频预览画面,再基于与所述视频预览画面对应的第二操作,获取与所述第二操作对应的视频播放方式,以基于所述视频播放方式对所述视频进行播放。从而通过上述方式使得在视频的播放过程中,在通过第一操作触发显示在播放视频对应的视频预览画面后,再通过对该视频预览画面进行第二操作,就可以触发视频基于与该第二操作对应的视频播放方式进行播放,从而使得用户可以较为便利的进行视频播放方式的切换。To sum up, the present application provides a video playback method, device, electronic device and storage medium, which can, during the process of playing the video, respond to the first operation acting on the video picture of the video, suspend display and The video preview screen corresponding to the video is then used to obtain the video playback mode corresponding to the second operation based on the second operation corresponding to the video preview screen, so as to play the video based on the video playback mode. Therefore, through the above method, during the playback of the video, after triggering the display of the video preview screen corresponding to the played video through the first operation, and then performing the second operation on the video preview screen, the video can be triggered based on the second operation. Operate the corresponding video playback mode to play, so that the user can switch the video playback mode more conveniently.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征图进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application, but not to limit it; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that: it can still Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent substitutions are made to some of the technical feature diagrams; however, these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application. .

Claims (20)

  1. 一种视频播放方法,其特征在于,应用于电子设备,所述方法包括:A video playback method, characterized in that it is applied to electronic devices, and the method includes:
    在对视频进行播放的过程中,响应作用于所述视频的视频画面的第一操作,悬浮显示与所述视频对应的视频预览画面;In the process of playing the video, in response to the first operation acting on the video picture of the video, a video preview picture corresponding to the video is suspended and displayed;
    基于与所述视频预览画面对应的第二操作,获取与所述第二操作对应的视频播放方式;Based on the second operation corresponding to the video preview screen, obtain the video playback mode corresponding to the second operation;
    基于所述视频播放方式对所述视频进行播放。The video is played based on the video playback method.
  2. 根据权利要求1所述的方法,其特征在于,所述第二操作包括拖拽操作,所述基于与所述视频预览画面对应的第二操作,获取与所述第二操作对应的视频播放方式,包括:The method of claim 1, wherein the second operation includes a drag operation, and the video playback mode corresponding to the second operation is obtained based on the second operation corresponding to the video preview screen. ,include:
    响应于对所述视频预览画面的拖拽操作,获取执行所述拖拽操作后的视频预览画面的显示位置;In response to a drag operation on the video preview screen, obtain the display position of the video preview screen after performing the drag operation;
    基于所述显示位置确定所述视频对应的视频播放方式。The video playback mode corresponding to the video is determined based on the display position.
  3. 根据权利要求2所述的方法,其特征在于,所述基于所述显示位置确定所述视频对应的视频播放方式,包括:The method of claim 2, wherein determining the video playback mode corresponding to the video based on the display position includes:
    若执行所述拖拽操作后的视频预览画面的显示位置位于屏幕的边缘,确定对应的视频播放方式为分屏播放方式。If the display position of the video preview image after performing the drag operation is located at the edge of the screen, it is determined that the corresponding video playback mode is a split-screen playback mode.
  4. 根据权利要求3所述的方法,其特征在于,所述基于所述视频播放方式对所述视频进行播放之后还包括:The method according to claim 3, characterized in that after playing the video based on the video playback method, the method further includes:
    响应作用于所述视频的视频画面的第三指定操作,悬浮显示与所述视频对应的视频预览画面;In response to the third specified operation acting on the video picture of the video, suspending and displaying the video preview picture corresponding to the video;
    基于与所述视频预览画面对应的第四指定操作,获取所述视频应的视频播放方式;Based on the fourth specified operation corresponding to the video preview screen, obtain the video playback mode of the video;
    基于所述视频应的视频播放方式对所述视频进行播放。The video is played based on the video playback mode corresponding to the video.
  5. 根据权利要求4所述的方法,其特征在于,所述第四指定操作包括拖拽操作,所述基于与所述视频预览画面对应的第四指定操作,获取所述视频应的视频播放方式,包括:The method according to claim 4, wherein the fourth designated operation includes a drag operation, and the video playback mode corresponding to the video is obtained based on the fourth designated operation corresponding to the video preview screen, include:
    响应于对所述视频预览画面的拖拽操作,获取执行所述拖拽操作后的视频预览画面的显示位置;In response to a drag operation on the video preview screen, obtain the display position of the video preview screen after performing the drag operation;
    若所示显示位置位于屏幕的中间区域,确定对应的视频播放方式为画中画播放。If the displayed display position is located in the middle area of the screen, determine that the corresponding video playback method is picture-in-picture playback.
  6. 根据权利要求2所述的方法,其特征在于,所述基于所述显示位置确定所述视频对应的视频播放方式,包括:The method of claim 2, wherein determining the video playback mode corresponding to the video based on the display position includes:
    若执行所述拖拽操作后的视频预览画面的显示位置位于屏幕的中间区域,确定对应的视频播放方式为画中画播放方式。If the display position of the video preview image after performing the drag operation is located in the middle area of the screen, it is determined that the corresponding video playback mode is the picture-in-picture playback mode.
  7. 根据权利要求2所述的方法,其特征在于,所述在对视频进行播放的过程中,响应作用于所述视频的视频画面的第一操作,悬浮显示与所述视频对应的视频预览画面,包括:The method according to claim 2, characterized in that, in the process of playing the video, in response to the first operation acting on the video picture of the video, a video preview picture corresponding to the video is suspended and displayed, include:
    在通过悬浮显示的视频播放窗口对视频进行播放的过程中,响应作用于所述视频的视频画面的第一操作,悬浮显示与所述视频对应的视频预览画面;In the process of playing the video through the suspended-displayed video playback window, in response to the first operation acting on the video picture of the video, a video preview picture corresponding to the video is suspended and displayed;
    所述基于所述视频播放方式对所述视频进行播放之前还包括:Before playing the video based on the video playback method, the method further includes:
    基于与所述视频预览画面对应的拖拽操作,隐藏所述悬浮显示的视频播放窗口。Based on the drag operation corresponding to the video preview screen, the suspended displayed video playback window is hidden.
  8. 根据权利要求7所述的方法,其特征在于,所述在通过悬浮显示的视频播放窗口对视频进行播放的过程中,响应作用于所述视频的视频画面的第一操作,悬浮显示与所述视频对应的视频预览画面之前还包括:The method according to claim 7, characterized in that, in the process of playing the video through the suspended display video play window, in response to the first operation acting on the video picture of the video, the floating display and the The video preview screen corresponding to the video also includes:
    响应作用于所述视频链接的触控操作,触发显示视频播放窗口,所述视频播放窗口悬浮于显示所述视频链接的界面上;In response to a touch operation on the video link, a video playback window is triggered to be displayed, and the video playback window is suspended on the interface displaying the video link;
    在所述视频播放窗口中对所述视频进行播放。Play the video in the video playback window.
  9. 根据权利要求1所述的方法,其特征在于,所述视频播放方式包括画中画播放方式,基于所述视频播放方式对所述视频进行播放,包括:The method according to claim 1, wherein the video playback method includes a picture-in-picture playback method, and playing the video based on the video playback method includes:
    基于所述画中画播放方式对所述视频进行播;Play the video based on the picture-in-picture playback method;
    在基于画中画播放方式进行播放的过程中,响应作用于所述视频的视频画面的触控手势,在所述视频画面中显示参数控制界面;During the playback process based on the picture-in-picture playback mode, in response to the touch gesture acting on the video screen of the video, a parameter control interface is displayed in the video screen;
    若检测到作用于所述参数控制界面的滑动操作,获取所述滑动操作的作用区域;If a sliding operation acting on the parameter control interface is detected, obtain the action area of the sliding operation;
    基于滑动操作的方向以及所述作用区域,调整所述视频的播放参数。Based on the direction of the sliding operation and the action area, the playback parameters of the video are adjusted.
  10. 根据权利要求9所述的方法,其特征在于,所述方法还包括:The method of claim 9, further comprising:
    若检测到直接作用于视频画面的滑动操作,则使得所述视频画面跟随所述滑动操作进行移动;If a sliding operation that directly acts on the video screen is detected, the video screen is caused to move following the sliding operation;
    若在已经显示有参数控制界面的情况下,检测到有滑动操作且所述滑动操作是作用于参数控制界面上,则对所播放视频的视频参数进行调节。If a sliding operation is detected when the parameter control interface is already displayed and the sliding operation acts on the parameter control interface, the video parameters of the played video are adjusted.
  11. 根据权利要求1所述的方法,其特征在于,所述基于所述显示位置确定所述视频对应的视频播放方式The method of claim 1, wherein the video playback mode corresponding to the video is determined based on the display position.
    检测所播放视频的视频类型;Detect the video type of the video being played;
    若所播放视频的类型为预生成的视频,则在切换到基于第二操作所确定的视频播放方式后,将视频预览画面作为继续播放视频的开始画面以继续进行视频播放。If the type of video being played is a pre-generated video, after switching to the video playback mode determined based on the second operation, the video preview screen is used as a starting screen for continuing to play the video to continue video playback.
  12. 根据权利要求11所述的方法,其特征在于,所述方法还包括:The method according to claim 11, characterized in that, the method further includes:
    通过对进行视频播放的程序的类型进行检测以确定所播放视频的类型。The type of video being played is determined by detecting the type of program that plays the video.
  13. 根据权利要求1-12任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-12, characterized in that the method further includes:
    检测到有作用于视频画面的第一操作时,将所播放视频帧的画面作为视频预览画面。When a first operation on the video picture is detected, the picture of the played video frame is used as the video preview picture.
  14. 根据权利要求1-12任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-12, characterized in that the method further includes:
    将检测到有作用于视频画面的第一操作时,所播放视频帧之前播放的视频帧的画面作为视频预览画面。When the first operation on the video picture is detected, the picture of the video frame played before the played video frame is used as the video preview picture.
  15. 根据权利要求1-14任一所述的方法,其特征在于,所述第二操作有多种,且不同的第二操作所对应的视频播放方式可以不同。The method according to any one of claims 1 to 14, characterized in that there are multiple second operations, and the video playback modes corresponding to different second operations may be different.
  16. 根据权利要求1-15任一所述的方法,其特征在于,所述第一操作包括长按操作、大面积按压操作以及多指滑动操作。The method according to any one of claims 1 to 15, characterized in that the first operation includes a long press operation, a large area press operation and a multi-finger sliding operation.
  17. 根据权利要求1-15任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-15, characterized in that the method further includes:
    响应作用于所述视频的视频画面的第一操作,悬浮显示与所述视频对应的视频预览画面的情况下,取消在视频播放窗口显示所述视频的视频画面。In response to the first operation acting on the video picture of the video, when the video preview picture corresponding to the video is suspended and displayed, displaying the video picture of the video in the video playback window is cancelled.
  18. 一种视频播放装置,其特征在于,运行于电子设备,所述装置包括:A video playback device, characterized in that it runs on electronic equipment, and the device includes:
    视频预览画面显示单元,用于在对视频进行播放的过程中,响应作用于所述视频的视频画面的第一操作,悬浮显示与所述视频对应的视频预览画面;A video preview screen display unit configured to suspend and display a video preview screen corresponding to the video in response to a first operation acting on the video screen of the video during the playback of the video;
    播放方式确定单元,用于基于与所述视频预览画面对应的第二操作,获取与所述第二操作对应的视频播放方式;A playback mode determination unit configured to obtain a video playback mode corresponding to the second operation based on the second operation corresponding to the video preview screen;
    播放控制单元,用于基于所述视频播放方式对所述视频进行播放。A playback control unit is used to play the video based on the video playback method.
  19. 一种电子设备,其特征在于,包括一个或多个处理器以及存储器;An electronic device, characterized by including one or more processors and memory;
    一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行权利要求1-17任一所述的方法。One or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any one of claims 1-17.
  20. 一种存储有处理器可执行的程序代码的计算机可读存储介质,其特征在于,所述计算机可读存储介质包括存储的程序代码,其中,在所述程序代码运行时执行权利要求1-17任一所述的方法。A computer-readable storage medium storing program code executable by a processor, characterized in that the computer-readable storage medium includes stored program code, wherein claims 1-17 are executed when the program code is run any of the methods described.
PCT/CN2022/141931 2022-04-12 2022-12-26 Video playing method and apparatus, electronic device and storage medium WO2023197679A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210381867.0 2022-04-12
CN202210381867.0A CN114827708A (en) 2022-04-12 2022-04-12 Video playing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
WO2023197679A1 true WO2023197679A1 (en) 2023-10-19

Family

ID=82534991

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/141931 WO2023197679A1 (en) 2022-04-12 2022-12-26 Video playing method and apparatus, electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN114827708A (en)
WO (1) WO2023197679A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827708A (en) * 2022-04-12 2022-07-29 Oppo广东移动通信有限公司 Video playing method and device and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120040841A (en) * 2010-10-20 2012-04-30 엘지전자 주식회사 Method for moving pointer in display apparatus and display apparatus thereof
CN107908351A (en) * 2017-11-30 2018-04-13 北京小米移动软件有限公司 Display methods, device and the storage medium of application interface
CN108804004A (en) * 2018-05-03 2018-11-13 珠海格力电器股份有限公司 A kind of split screen control method, device, storage medium and terminal
CN110489043A (en) * 2019-07-31 2019-11-22 华为技术有限公司 A kind of management method and relevant apparatus of suspension windows
CN110709806A (en) * 2017-07-18 2020-01-17 华为技术有限公司 Multitasking operation method and electronic equipment
CN112218113A (en) * 2020-10-16 2021-01-12 广州博冠信息科技有限公司 Video playing method and device, computer readable storage medium and electronic device
CN113342248A (en) * 2021-06-24 2021-09-03 广州博冠信息科技有限公司 Live broadcast display method and device, storage medium and electronic equipment
CN114827708A (en) * 2022-04-12 2022-07-29 Oppo广东移动通信有限公司 Video playing method and device and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106993214A (en) * 2017-03-20 2017-07-28 北京潘达互娱科技有限公司 Live network broadcast method and device
CN108366301B (en) * 2018-04-24 2021-03-09 中国广播电视网络有限公司 Android-based video suspension playing method
CN108924616B (en) * 2018-07-27 2020-11-13 维沃移动通信有限公司 Display control method and terminal
CN112584222A (en) * 2020-11-27 2021-03-30 北京搜狗科技发展有限公司 Video processing method and device for video processing
KR102288519B1 (en) * 2021-01-25 2021-08-10 주식회사 태화이노베이션 Screen control method and Screen control program including commands to do the method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120040841A (en) * 2010-10-20 2012-04-30 엘지전자 주식회사 Method for moving pointer in display apparatus and display apparatus thereof
CN110709806A (en) * 2017-07-18 2020-01-17 华为技术有限公司 Multitasking operation method and electronic equipment
CN107908351A (en) * 2017-11-30 2018-04-13 北京小米移动软件有限公司 Display methods, device and the storage medium of application interface
CN108804004A (en) * 2018-05-03 2018-11-13 珠海格力电器股份有限公司 A kind of split screen control method, device, storage medium and terminal
CN110489043A (en) * 2019-07-31 2019-11-22 华为技术有限公司 A kind of management method and relevant apparatus of suspension windows
CN112218113A (en) * 2020-10-16 2021-01-12 广州博冠信息科技有限公司 Video playing method and device, computer readable storage medium and electronic device
CN113342248A (en) * 2021-06-24 2021-09-03 广州博冠信息科技有限公司 Live broadcast display method and device, storage medium and electronic equipment
CN114827708A (en) * 2022-04-12 2022-07-29 Oppo广东移动通信有限公司 Video playing method and device and electronic equipment

Also Published As

Publication number Publication date
CN114827708A (en) 2022-07-29

Similar Documents

Publication Publication Date Title
US9363571B2 (en) Touch sensing apparatus and method
US10860857B2 (en) Method for generating video thumbnail on electronic device, and electronic device
CN111541930B (en) Live broadcast picture display method and device, terminal and storage medium
CN109157839B (en) Frame rate regulation and control method, device, storage medium and terminal
US20230013753A1 (en) Image shooting method and electronic device
US11785304B2 (en) Video preview method and electronic device
CN113766324B (en) Video playing control method and device, computer equipment and storage medium
WO2022174684A1 (en) Screen recording method and apparatus, electronic device, and storage medium
US20190012129A1 (en) Display apparatus and method for controlling display apparatus
WO2021179803A1 (en) Content sharing method and apparatus, electronic device and storage medium
CN108920069A (en) A kind of touch operation method, device, mobile terminal and storage medium
CN108804628B (en) Picture display method and terminal
CN111127595A (en) Image processing method and electronic device
WO2023197679A1 (en) Video playing method and apparatus, electronic device and storage medium
CN110022445B (en) Content output method and terminal equipment
CN114157889A (en) Display device and touch-control assistance interaction method
WO2024001119A1 (en) Message reply method and apparatus, and electronic device and storage medium
CN109800095B (en) Notification message processing method and mobile terminal
WO2023030292A1 (en) Multimedia file playback method and apparatus
CN108984677B (en) Image splicing method and terminal
CN111399715A (en) Interface display method and electronic equipment
WO2020007010A1 (en) Volume display method and apparatus, terminal device, and storage medium
CN113613053B (en) Video recommendation method and device, electronic equipment and storage medium
CN114721575A (en) Text content processing method and device and electronic equipment
CN111045563A (en) Display control method, electronic equipment and storage medium

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

Country of ref document: EP

Kind code of ref document: A1