Video switching method, device, equipment and storage medium
By displaying the progress control control on the video playback page, users can quickly switch videos by triggering operations, which solves the problem of low human-computer interaction efficiency in the existing technology and enables quick switching and efficient interaction of multiple videos in the video collection.
Patent Information
- Application Number
- CN202410534203.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-29
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2044-04-29
AI Technical Summary
The existing video switching methods are low in human-computer interaction efficiency on video platforms and lack fast video switching methods.
By displaying the progress control control on the video playback page, users can quickly switch videos by triggering operations. Progress control controls include multiple playback progress bars or identification points. Users can drag or slide these controls to switch videos.
It realizes quick switching of multiple videos in the video collection, enriches the human-computer interaction method of video switching, and improves the efficiency of human-computer interaction.
Smart Images

Figure CN118381975B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of multimedia technology, and in particular to a video switching method, device, equipment and storage medium. Background Art
[0002] With the development of multimedia technology, watching videos on video platforms has gradually become a form of leisure and entertainment for users. Taking the video platform as a short video application as an example, after the user starts the short video application through the terminal, the terminal receives the video stream pushed by the background server and plays any video in the video stream. During the video playback process of the terminal, the user can switch between different videos in the video stream by sliding up and down. However, the above video switching method is relatively simple and the human-computer interaction efficiency is low. Summary of the invention
[0003] The present disclosure provides a video switching method, device, equipment and storage medium, which can provide a quick switching method for multiple videos in a video set through a progress control control, enrich the human-computer interaction method of video switching, and improve the human-computer interaction efficiency. The technical solution of the present disclosure is as follows:
[0004] According to one aspect of an embodiment of the present disclosure, a video switching method is provided, including:
[0005] Play the first video;
[0006] In the case where the first video belongs to a video set, displaying a progress control control, the video set includes a plurality of videos, the progress control control is used to control the playback progress of the first video or to indicate progress information of the first video, the progress information being used to indicate a position of the first video in the video set;
[0007] In response to the triggering operation on the progress control widget satisfying a video switching condition, the playback of the first video is switched to the playback of a second video, where the second video is a video determined from the video set based on the video switching condition satisfied by the triggering operation.
[0008] In some embodiments, when the first video belongs to a video set, displaying a progress control control comprises:
[0009] Based on the progress information of the first video, the progress control widget is displayed.
[0010] In some embodiments, the progress control widget includes a plurality of play progress bars, and the play progress bars are used to indicate the play progress of the video;
[0011] The displaying the progress control widget based on the progress information of the first video includes:
[0012] Based on the progress information of the first video, determining a playback progress bar of the first video from the multiple playback progress bars;
[0013] Based on the playback progress information of the first video, the playback progress bar of the first video is displayed in a first form, and other playback progress bars are displayed in a second form, and the length of the playback progress bar in the first form is greater than the length of the playback progress bar in the second form.
[0014] In some embodiments, the method further comprises:
[0015] Highlight the playback progress bar of the first video; or,
[0016] Based on the progress information of the first video, the play progress bar of the first video and the play progress bar of at least one third video are highlighted, and the third video is a video in the video set that is located before the first video.
[0017] In some embodiments, the progress control control includes a plurality of identification points, and the identification points are used to represent videos in the video set;
[0018] The displaying the progress control widget based on the progress information of the first video includes:
[0019] Based on the progress information of the first video, determining a mark point of the first video from the multiple mark points;
[0020] The identification points of the first video are displayed in a third form, and the other identification points are displayed in a fourth form, wherein the display area of the identification points in the third form is larger than the display area of the identification points in the fourth form.
[0021] In some embodiments, the progress control widget includes a plurality of playback progress bars or a plurality of identification points;
[0022] The displaying the progress control widget based on the progress information of the first video includes:
[0023] Obtain the number of videos included in the video set;
[0024] When the number is not greater than the number threshold, display the number of play progress bars or display the number of identification points;
[0025] When the number is greater than the number threshold, playback progress bars of the number threshold are displayed, or identification points of the number threshold are displayed.
[0026] In some embodiments, the progress control widget includes a plurality of play progress bars, and the play progress bars are used to indicate the play progress of the video;
[0027] In response to the triggering operation on the progress control control satisfying a video switching condition, switching from playing the first video to playing the second video includes:
[0028] When the playback progress bar of the first video is dragged to a target area and stays in the target area for N seconds, in response to the end of the dragging operation, the playback of the first video is switched to the playback of the second video, where N is a positive integer.
[0029] In some embodiments, the method further comprises:
[0030] When the play progress bar of the first video is dragged in a first direction, determining that the second video is a previous video of the first video in the video set;
[0031] When the play progress bar of the first video is dragged in a second direction, the second video is determined to be the next video of the first video in the video set.
[0032] In some embodiments, the method further comprises:
[0033] In the process of dragging the play progress bar of the first video, updating the play progress information of the first video along with the dragging operation;
[0034] Based on the playback progress information of the first video, play the first video in real time; or,
[0035] Based on the playback progress information of the first video, a video thumbnail associated with the playback progress information is displayed in real time on an upper layer of the first video.
[0036] In some embodiments, the method further comprises:
[0037] When the play progress bar of the first video is dragged in the first direction to the target area and stays in the target area for M seconds, in response to the end of the dragging operation, the play of the first video is switched to the play of the first video in the video set, where M is greater than N;
[0038] When the playback progress bar of the first video is dragged toward the second direction to the target area and stays in the target area for M seconds, in response to the end of the dragging operation, the playback of the first video is switched to the playback of the last video in the video collection.
[0039] In some embodiments, the method further comprises:
[0040] When the dwell time reaches M seconds, a first prompt message is displayed, wherein the first prompt message is used to prompt that a corresponding second video is played when the dragging operation ends.
[0041] In some embodiments, the method further comprises:
[0042] When the play progress bar of the first video is dragged in the first direction to the target area and stays in the target area for M seconds, as the stay time increases, second prompt information is displayed in real time, the second prompt information is used to prompt to play a third video when the dragging operation ends, the third video is a video before the first video in the video set, the sequence number of the third video is negatively correlated with the stay time, and M is greater than N;
[0043] In response to the end of the dragging operation, the playback of the first video is switched to the playback of the target video, and the target video is the third video prompted by the second prompt information displayed when the dragging operation ends.
[0044] In some embodiments, the method further comprises:
[0045] When the play progress bar of the first video is dragged in the second direction to the target area and stays in the target area for M seconds, as the stay time increases, a third prompt message is displayed in real time, the third prompt message is used to prompt to play a fourth video when the dragging operation ends, the fourth video is a video after the first video in the video set, the sequence number of the fourth video is positively correlated with the stay time, and M is greater than N;
[0046] In response to the end of the dragging operation, the playback of the first video is switched to the playback of the target video, and the target video is the fourth video prompted by the third prompt information displayed when the dragging operation ends.
[0047] In some embodiments, the progress control widget includes a plurality of identification points;
[0048] In response to the triggering operation on the progress control control satisfying a video switching condition, switching from playing the first video to playing the second video includes:
[0049] In response to a sliding operation of sliding the progress control control in a third direction, determining that the second video is a previous video of the first video in the video set;
[0050] In response to a sliding operation of sliding the progress control control in a fourth direction, determining that the second video is a next video of the first video in the video set;
[0051] Switch from playing the first video to playing the second video.
[0052] In some embodiments, the method further comprises:
[0053] In response to sliding in the third direction to a target area of the progress control control, determining that the second video is the first video in the video set;
[0054] In response to sliding in the fourth direction to a target area of the progress control control, determining that the second video is the last video in the video set;
[0055] Switch from playing the first video to playing the second video.
[0056] In some embodiments, the method further comprises:
[0057] During the sliding of the progress control control, continue playing the first video; or,
[0058] During the sliding of the progress control control, determining a sliding speed of the sliding operation;
[0059] When the sliding speed is greater than a speed threshold, switching from playing the first video to displaying any video frame in the second video;
[0060] When the sliding speed is not greater than the speed threshold, the first video continues to be played.
[0061] In some embodiments, the method further comprises:
[0062] In the process of sliding the progress control control in the third direction, multiple third videos are played in sequence from back to front along with the sliding operation, wherein the third videos are videos that are located before the first video in the video set;
[0063] In the process of sliding the progress control control in the fourth direction, multiple fourth videos are played in sequence from front to back along with the sliding operation, and the fourth videos are videos that are located after the first video in the video set.
[0064] According to another aspect of an embodiment of the present disclosure, there is provided a video switching device, including:
[0065] A playback unit, configured to play a first video;
[0066] a display unit configured to display a progress control control when the first video belongs to a video set, the video set including a plurality of videos, the progress control control being used to control the playback progress of the first video or being used to indicate progress information of the first video, the progress information being used to indicate a position of the first video in the video set;
[0067] The switching unit is configured to switch from playing the first video to playing the second video in response to the trigger operation on the progress control control satisfying the video switching condition, where the second video is a video determined from the video set based on the video switching condition satisfied by the trigger operation.
[0068] In some embodiments, the display unit is configured to display the progress control widget based on the progress information of the first video.
[0069] In some embodiments, the progress control widget includes a plurality of play progress bars, and the play progress bars are used to indicate the play progress of the video;
[0070] The display unit is configured to determine the playback progress bar of the first video from the multiple playback progress bars based on the progress information of the first video; based on the playback progress information of the first video, display the playback progress bar of the first video in a first form, and display other playback progress bars in a second form, and the length of the playback progress bar in the first form is greater than the length of the playback progress bar in the second form.
[0071] In some embodiments, the display unit is further configured to highlight the playback progress bar of the first video; or, based on the progress information of the first video, highlight the playback progress bar of the first video and the playback progress bar of at least one third video, wherein the third video is a video in the video collection that is located before the first video.
[0072] In some embodiments, the progress control control includes a plurality of identification points, and the identification points are used to represent videos in the video set;
[0073] The display unit is configured to determine the identification points of the first video from the multiple identification points based on the progress information of the first video; display the identification points of the first video in a third form, and display other identification points in a fourth form, and the display area of the identification points in the third form is larger than the display area of the identification points in the fourth form.
[0074] In some embodiments, the progress control widget includes a plurality of play progress bars or a plurality of identification points;
[0075] The display unit is configured to obtain the number of videos included in the video set; when the number is not greater than a quantity threshold, display the number of playback progress bars, or display the number of identification points; when the number is greater than the quantity threshold, display the number of playback progress bars, or display the number of identification points.
[0076] In some embodiments, the progress control widget includes a plurality of play progress bars, and the play progress bars are used to indicate the play progress of the video;
[0077] The switching unit is configured to switch from playing the first video to playing the second video in response to the end of the dragging operation when the playback progress bar of the first video is dragged to the target area and stays in the target area for N seconds, where N is a positive integer.
[0078] In some embodiments, the apparatus further comprises:
[0079] The determination unit is configured to determine that the second video is the previous video of the first video in the video set when the playback progress bar of the first video is dragged in a first direction; and to determine that the second video is the next video of the first video in the video set when the playback progress bar of the first video is dragged in a second direction.
[0080] In some embodiments, the apparatus further comprises:
[0081] an updating unit, configured to update the playback progress information of the first video along with the dragging operation during the process of dragging the playback progress bar of the first video;
[0082] The playback unit is further configured to play the first video in real time based on the playback progress information of the first video; or, based on the playback progress information of the first video, display a video thumbnail associated with the playback progress information in real time on an upper layer of the first video.
[0083] In some embodiments, the switching unit is further configured to, when the playback progress bar of the first video is dragged in the first direction to the target area and stays in the target area for M seconds, in response to the end of the dragging operation, switch from playing the first video to playing the first video in the video collection, where M is greater than N; and when the playback progress bar of the first video is dragged in the second direction to the target area and stays in the target area for M seconds, in response to the end of the dragging operation, switch from playing the first video to playing the last video in the video collection.
[0084] In some embodiments, the display unit is further configured to display a first prompt message when the dwell time reaches M seconds, wherein the first prompt message is used to prompt to play the corresponding second video when the dragging operation ends.
[0085] In some embodiments, the display unit is further configured to, when the playback progress bar of the first video is dragged in the first direction to the target area and the duration of stay in the target area reaches M seconds, display a second prompt message in real time as the stay time increases, the second prompt message being used to prompt to play a third video when the dragging operation ends, the third video being a video before the first video in the video set, the sequence number of the third video being negatively correlated with the stay time, and M being greater than N;
[0086] The switching unit is further configured to switch from playing the first video to playing a target video in response to the end of the dragging operation, wherein the target video is a third video prompted by the second prompt information displayed when the dragging operation ends.
[0087] In some embodiments, the display unit is further configured to, when the playback progress bar of the first video is dragged in the second direction to the target area and stays in the target area for M seconds, display a third prompt message in real time as the stay time increases, the third prompt message being used to prompt the playback of a fourth video when the dragging operation ends, the fourth video being a video after the first video in the video set, the sequence number of the fourth video being positively correlated with the stay time, and M being greater than N;
[0088] The switching unit is further configured to switch from playing the first video to playing a target video in response to the end of the dragging operation, where the target video is a fourth video prompted by the third prompt information displayed when the dragging operation ends.
[0089] In some embodiments, the progress control widget includes a plurality of identification points;
[0090] The switching unit is configured to, in response to a sliding operation of sliding the progress control control in a third direction, determine that the second video is the previous video of the first video in the video set; in response to a sliding operation of sliding the progress control control in a fourth direction, determine that the second video is the next video of the first video in the video set; and switch from playing the first video to playing the second video.
[0091] In some embodiments, the switching unit is further configured to, in response to sliding in the third direction to the target area of the progress control control, determine that the second video is the first video in the video collection; in response to sliding in the fourth direction to the target area of the progress control control, determine that the second video is the last video in the video collection; and switch from playing the first video to playing the second video.
[0092] In some embodiments, the playback unit is further configured to continue playing the first video during the sliding of the progress control control; or, to determine the sliding speed of the sliding operation during the sliding of the progress control; to switch from playing the first video to displaying any video frame in the second video when the sliding speed is greater than a speed threshold; and to continue playing the first video when the sliding speed is not greater than the speed threshold.
[0093] In some embodiments, the playback unit is further configured to play multiple third videos in sequence from back to front in the process of sliding the progress control control to the third direction along with the sliding operation, and the third videos are videos in the video set that are located before the first video; and to play multiple fourth videos in sequence from front to back in the process of sliding the progress control control to the fourth direction along with the sliding operation, and the fourth videos are videos in the video set that are located after the first video.
[0094] According to another aspect of an embodiment of the present disclosure, an electronic device is provided, the electronic device comprising:
[0095] one or more processors;
[0096] A memory for storing program codes executable by the processor;
[0097] The processor is configured to execute the program code to implement the above-mentioned video switching method.
[0098] According to another aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When a program code in the computer-readable storage medium is executed by a processor of an electronic device, the electronic device is enabled to perform the above-mentioned video switching method.
[0099] According to another aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the video switching method is implemented.
[0100] The disclosed embodiment provides a video switching method, which can display a progress control control when a terminal plays any video in a video set, so that the user can switch the currently played video by triggering a trigger operation on the video control. The terminal can determine another video to be switched from the video set according to the video switching condition satisfied by the trigger operation. Therefore, the above method provides a quick switching method for multiple videos in a video set, enriches the human-computer interaction method of video switching, and improves the human-computer interaction efficiency.
[0101] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0102] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0103] Figure 1 The figure is a schematic diagram of an implementation environment of a video switching method according to an exemplary embodiment.
[0104] Figure 2 The figure is a flow chart showing a video switching method according to an exemplary embodiment.
[0105] Figure 3 The figure is a flow chart showing another video switching method according to an exemplary embodiment.
[0106] Figure 4 The figure is a schematic diagram of a play progress bar according to an exemplary embodiment.
[0107] Figure 5 The figure is a schematic diagram showing a marking point according to an exemplary embodiment.
[0108] Figure 6 The figure is a schematic diagram of another playback progress bar according to an exemplary embodiment.
[0109] Figure 7 is a schematic diagram of another playback progress bar according to an exemplary embodiment.
[0110] Figure 8 is a schematic diagram showing a target area according to an exemplary embodiment.
[0111] Fig. 9 The figure is a schematic diagram of a video playback page according to an exemplary embodiment.
[0112] Fig.10The figure is a schematic diagram showing a first prompt information according to an exemplary embodiment.
[0113] Fig.11 is a schematic diagram showing another target area according to an exemplary embodiment.
[0114] Fig.12 The figure is a block diagram of a video switching device according to an exemplary embodiment.
[0115] Fig.13 is a block diagram showing another video switching device according to an exemplary embodiment.
[0116] Fig.14 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0117] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0118] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0119] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this disclosure are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions. For example, the videos in the video collection involved in this disclosure are obtained with full authorization.
[0120] Figure 1 FIG. 1 is a schematic diagram of an implementation environment of a video switching method according to an exemplary embodiment. Figure 1 The implementation environment specifically includes: a terminal 101 and a server 102. The terminal 101 is directly or indirectly connected to the server 102 via a wired or wireless communication, which is not limited in the embodiment of the present disclosure.
[0121] The terminal 101 may be at least one of a smart phone, a smart watch, a desktop computer, a laptop, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), and a laptop computer. An application supporting video playback is installed or running on the terminal 101, and the application includes but is not limited to at least one of a short video application, an audio and video application, a shopping application, a food delivery application, a travel application, a game application, or a social application. A user can log in to the application through the terminal 101 and watch the video through the application.
[0122] For example, after the user starts the application, the terminal 101 displays a video play page of the application, and plays any video in the video stream pushed by the server 102 on the video play page. The user can switch between different videos in the video stream by sliding up and down. Alternatively, the terminal 101 can also play any video in the video set pushed by the server 102 on the video play page. The user can switch between different videos in the video set by sliding left and right.
[0123] The terminal 101 may generally refer to one of a plurality of terminals. This embodiment is described by taking the terminal 101 as an example. Those skilled in the art may know that the number of the above terminals may be more or less. For example, the above terminals may be several, or the above terminals may be dozens or hundreds, or a greater number. The embodiment of the present disclosure does not limit the number and device type of the terminals.
[0124] The server 102 is used to provide background services to the application running on the terminal 101. The server 102 is at least one of a server, multiple servers, a cloud computing platform, and a virtualization center. Optionally, the number of the above servers can be more or less, and the embodiment of the present disclosure is not limited to this. Of course, the server 102 can also include other functional servers to provide more comprehensive and diversified services.
[0125] In some embodiments, the server 102 undertakes the main computing work, and the terminal 101 undertakes the secondary computing work; or, the server 102 undertakes the secondary computing work, and the terminal 101 undertakes the main computing work; or, the server 102 and the terminal 101 use a distributed computing architecture to perform collaborative computing. The server 102 can be connected to the terminal 101 and other terminals through a wireless network or a wired network. Optionally, the number of the above servers can be more or less, and the embodiments of the present disclosure are not limited to this.
[0126] Figure 2 is a flow chart of a video switching method according to an exemplary embodiment. Figure 2 As shown, the method is performed by an electronic device and includes the following steps:
[0127] In step S201, the first video is played.
[0128] In an embodiment of the present disclosure, an electronic device is installed or runs an application that supports playing videos. The application includes, but is not limited to, at least one of a short video application, an audio and video application, a shopping application, or a social application. In response to an operation of playing a video in the application, the terminal plays a first video. The first video is any video played in the application, such as a short video, a long video, or a live video.
[0129] For example, in response to a user starting a short video application through an electronic device, the terminal displays a video playback page of the short video application, and plays any video in the video stream pushed by the background server on the video playback page.
[0130] In step S202, when the first video belongs to a video set, a progress control widget is displayed, and the video set includes multiple videos.
[0131] In the embodiments of the present disclosure, a video set refers to a set consisting of a group of videos that are associated with each other and arranged in a certain order. The video set includes two or more videos that are associated with each other and arranged in order. Among them, the multiple videos in the video set are associated with each other means that the multiple videos belong to the same publisher account, or the multiple videos carry the same topic tag, or the multiple videos are videos edited from the same original video, etc. Among them, the publisher account refers to the author account that publishes the video, such as an up master, anchor, video submission blogger, etc.
[0132] In the case where the first video belongs to a video set, the video set includes the first video and one or more videos associated with the first video. Therefore, the electronic device displays a progress control control in the video playback page playing the first video to prompt the user that the user can quickly switch to other videos in the same video set by triggering the progress control control. The progress control control is used to control the playback progress of the first video or to indicate the progress information of the first video. The progress information is used to indicate the position of the first video in the video set.
[0133] In step S203, in response to the triggering operation on the progress control widget satisfying the video switching condition, the playback of the first video is switched to the playback of the second video, where the second video is a video determined from a video set based on the video switching condition satisfied by the triggering operation.
[0134] In an embodiment of the present disclosure, in response to a user's triggering operation on a progress control control, the electronic device determines whether the triggering operation satisfies a video switching condition. In the case where the triggering operation satisfies the video switching condition, the electronic device determines any second video from a video set according to the video switching condition. Then, the electronic device plays the second video on the video playback page, thereby quickly switching the currently playing video from the first video to the second video. Compared to the traditional left and right sliding to switch videos in a video set, different triggering operations on the progress control control can more quickly and conveniently switch between different videos in a video set, thereby improving the efficiency of human-computer interaction during video switching.
[0135] For example, the video switching conditions include: (1) sliding the progress control control to the left and staying for 2 seconds. (2) sliding the progress control control to the right and staying for 2 seconds. When the user's triggering operation on the progress control control meets the video switching condition (1), that is, when the user slides the progress control control to the left and stays for 2 seconds, the electronic device switches the video on the video playback page to the first video in the video collection. When the user's triggering operation on the progress control control meets the video switching condition (2), that is, when the user slides the progress control control to the right and stays for 2 seconds, the electronic device switches the video on the video playback page to the last video in the video collection. The video collection includes 9 videos, and the first video is the 6th video in the video collection. If the user uses the traditional sliding operation to switch videos, the user needs to slide left 5 times to switch to the first video. However, using the video switching method provided by the embodiment of the present disclosure, the user only needs to slide the progress control control to the left and stay for 2 seconds, without having to perform multiple left sliding operations, thereby improving the human-computer interaction efficiency during the video switching process.
[0136] The disclosed embodiment provides a video switching method, which can display a progress control control when a terminal plays any video in a video set, so that the user can switch the currently played video by triggering a trigger operation on the video control. The terminal can determine another video to be switched from the video set according to the video switching condition satisfied by the trigger operation. Therefore, the above method provides a quick switching method for multiple videos in a video set, enriches the human-computer interaction method of video switching, and improves the human-computer interaction efficiency.
[0137] In some embodiments, when the first video belongs to a video collection, displaying a progress control control includes:
[0138] Based on the progress information of the first video, a progress control widget is displayed.
[0139] In the disclosed embodiment, the progress control is displayed through progress information, so that the user can know the approximate position of the first video in the video collection by viewing the progress control, for example, the first video is the first video, the last video, or any video in the middle of the video collection. Therefore, displaying the progress control through progress information not only increases the amount of information obtained by the user in the progress control, but also facilitates the user to decide how to switch to the video he wants to watch in the video collection.
[0140] In some embodiments, the progress control widget includes a plurality of play progress bars, and the play progress bars are used to indicate the play progress of the video;
[0141] Based on the progress information of the first video, a progress control widget is displayed, including:
[0142] Based on the progress information of the first video, determining a playback progress bar of the first video from a plurality of playback progress bars;
[0143] Based on the playback progress information of the first video, the playback progress bar of the first video is displayed in a first form, and other playback progress bars are displayed in a second form, and the length of the playback progress bar in the first form is greater than the length of the playback progress bar in the second form.
[0144] In the disclosed embodiment, by displaying the playback progress bar according to the playback progress information, the playback progress of the first video can be updated in real time on the playback progress bar, thereby improving the user's efficiency in obtaining information about the playback progress information of the first video. In addition, compared with displaying multiple playback progress bars in the same form, using two different display forms to distinguish the currently playing video from other videos can increase the length of the playback progress bar of the currently playing video, so that the user can perform progress adjustment operations on a longer progress bar, thereby improving the convenience of adjusting the video playback progress and improving the efficiency of human-computer interaction.
[0145] In some embodiments, the method further comprises:
[0146] Highlight the playback progress bar of the first video; or,
[0147] Based on the progress information of the first video, the play progress bar of the first video and the play progress bar of at least one third video are highlighted, and the third video is a video that is located before the first video in the video set.
[0148] In the disclosed embodiment, by highlighting the playback progress bar of the first video, the user's perception of the playback progress of the first video can be further improved, thereby further improving the efficiency of the user in obtaining the playback progress information of the first video. By highlighting the playback progress bars of the first video and the third video, the video before the first video and the video after the first video in the video collection can be distinguished by the display style of the playback progress bar, thereby facilitating the user to intuitively perceive the approximate position of the first video in the video collection, thereby improving the efficiency of the user in obtaining the progress information of the first video.
[0149] In some embodiments, the progress control includes a plurality of identification points, and the identification points are used to represent videos in the video set;
[0150] Based on the progress information of the first video, a progress control widget is displayed, including:
[0151] Based on the progress information of the first video, determining a marking point of the first video from a plurality of marking points;
[0152] The identification points of the first video are displayed in a third form, and the other identification points are displayed in a fourth form, and the display area of the identification points in the third form is larger than the display area of the identification points in the fourth form.
[0153] In the embodiment of the present disclosure, compared with displaying multiple identification points in the same form, two different display forms are used to distinguish the currently playing video from other videos. This can increase the conspicuity of the identification points of the currently playing video, facilitate users to intuitively know the progress information of the first video based on the identification points, and improve the efficiency of human-computer interaction.
[0154] In some embodiments, the progress control widget includes a plurality of play progress bars or a plurality of identification points;
[0155] Based on the progress information of the first video, a progress control widget is displayed, including:
[0156] Get the number of videos included in the video collection;
[0157] When the number is not greater than the number threshold, display the number of playback progress bars or the number of identification points;
[0158] When the number is greater than the number threshold, a number threshold number of playback progress bars are displayed, or a number threshold number of identification points are displayed.
[0159] In the disclosed embodiment, by displaying the playback progress bar (or identification point) of each video in the progress control control when the number of videos included in the video set is small, it is possible to facilitate the user to adjust the playback progress of each video through the progress control control, or to quickly obtain the progress information of the first video through the progress control control, thereby improving the efficiency of human-computer interaction. By displaying a threshold number of playback progress bars (or identification points) in the progress control control when the number of videos included in the video set is large, the displayed playback progress bars (or identification points) can be reused, avoiding the inclusion of a large number of playback progress bars (or identification points) in the progress control control, thereby reasonably controlling the display area of the progress control control and avoiding the progress control control from blocking the video screen.
[0160] In some embodiments, the progress control widget includes a plurality of play progress bars, and the play progress bars are used to indicate the play progress of the video;
[0161] In response to a triggering operation on a progress control control satisfying a video switching condition, switching from playing a first video to playing a second video, including:
[0162] When the playback progress bar of the first video is dragged to the target area and stays in the target area for N seconds, in response to the end of the dragging operation, the playback of the first video is switched to the playback of the second video, where N is a positive integer.
[0163] In the disclosed embodiment, by using the playback progress bar as a progress control control, the user can not only view the playback progress information of the video through the playback progress bar, but also switch videos by dragging the progress bar, thereby enriching the function of the playback progress bar and improving the efficiency of human-computer interaction.
[0164] In some embodiments, the method further comprises:
[0165] When the playback progress bar of the first video is dragged in the first direction, determining that the second video is a previous video of the first video in the video set;
[0166] When the play progress bar of the first video is dragged in the second direction, the second video is determined to be the next video of the first video in the video set.
[0167] In the disclosed embodiment, by determining the switched video according to the user's dragging direction, the video switching logic can be consistent with the user's trigger logic, so that the switched video is the video the user wants to browse, thereby improving the efficiency of the user's video switching.
[0168] In some embodiments, the method further comprises:
[0169] During the process of dragging the playback progress bar of the first video, the playback progress information of the first video is updated along with the dragging operation;
[0170] Based on the playback progress information of the first video, play the first video in real time; or,
[0171] Based on the playback progress information of the first video, a video thumbnail associated with the playback progress information is displayed in real time on an upper layer of the first video.
[0172] In the disclosed embodiment, by updating the playback progress information of the first video in real time, and playing the first video in real time or displaying the video thumbnail in real time according to the playback progress information, the playback progress of the first video can be promptly fed back to the user when the user drags the progress bar, thereby improving the efficiency of human-computer interaction.
[0173] In some embodiments, the method further comprises:
[0174] When the play progress bar of the first video is dragged in the first direction to the target area and stays in the target area for M seconds, in response to the end of the dragging operation, the play of the first video is switched to the play of the first video in the video set, where M is greater than N;
[0175] When the playback progress bar of the first video is dragged in the second direction to the target area and stays in the target area for M seconds, in response to the end of the dragging operation, the playback of the first video is switched to the playback of the last video in the video set.
[0176] In the embodiments of the present disclosure, compared with the traditional left-right swiping to switch videos in a video collection, quickly switching videos by sliding the playback progress bar can reduce the number of sliding operations performed by the user, thereby facilitating the user to switch videos in a video collection more quickly and conveniently, thereby improving the efficiency of human-computer interaction during the video switching process.
[0177] In some embodiments, the method further comprises:
[0178] When the dwell time reaches M seconds, a first prompt message is displayed, and the first prompt message is used to prompt that the corresponding second video should be played when the dragging operation ends.
[0179] In the embodiment of the present disclosure, by displaying prompt information when the user's dragging operation meets the video switching conditions, the user can be informed of the execution result of the dragging operation, avoiding the user switching videos due to misoperation, thereby improving the human-computer interaction efficiency and the user's video switching experience.
[0180] In some embodiments, the method further comprises:
[0181] When the play progress bar of the first video is dragged in the first direction to the target area and stays in the target area for M seconds, as the stay time increases, a second prompt message is displayed in real time, and the second prompt message is used to prompt to play a third video when the dragging operation ends. The third video is a video that is located before the first video in the video set, and the sequence number of the third video is negatively correlated with the stay time, and M is greater than N;
[0182] In response to the end of the dragging operation, the playback of the first video is switched to the playback of the target video, and the target video is the third video prompted by the second prompt information displayed when the dragging operation ends.
[0183] In the disclosed embodiment, by displaying dynamic prompt information when the user's dragging operation meets the video switching conditions, the user can terminate the dragging operation in time according to actual needs, and the currently playing video can be switched to the target video, thereby realizing rapid switching of any video in the video collection and improving the efficiency of human-computer interaction.
[0184] In some embodiments, the method further comprises:
[0185] When the play progress bar of the first video is dragged in the second direction to the target area and stays in the target area for M seconds, as the stay time increases, a third prompt message is displayed in real time, and the third prompt message is used to prompt to play a fourth video when the dragging operation ends, the fourth video is a video after the first video in the video set, and the sequence number of the fourth video is positively correlated with the stay time, and M is greater than N;
[0186] In response to the end of the dragging operation, the playback of the first video is switched to the playback of the target video, and the target video is the fourth video prompted by the third prompt information displayed when the dragging operation ends.
[0187] In the disclosed embodiment, by displaying dynamic prompt information when the user's dragging operation meets the video switching conditions, the user can terminate the dragging operation in time according to actual needs, and the currently playing video can be switched to the target video, thereby realizing rapid switching of any video in the video collection and improving the efficiency of human-computer interaction.
[0188] In some embodiments, the progress control widget includes a plurality of identification points;
[0189] In response to a triggering operation on a progress control control satisfying a video switching condition, switching from playing a first video to playing a second video, including:
[0190] In response to a sliding operation of the sliding progress control control in a third direction, determining that the second video is a previous video of the first video in the video set;
[0191] In response to a sliding operation of sliding the progress control control in a fourth direction, determining that the second video is a next video of the first video in the video set;
[0192] Switch from playing the first video to playing the second video.
[0193] In the embodiment of the present disclosure, when the progress control control includes multiple identification points, sliding the progress control control left and right to switch to the previous video or the next video in the video collection can enrich the user's video switching operations and improve the efficiency of human-computer interaction.
[0194] In some embodiments, the method further comprises:
[0195] In response to sliding in a third direction to a target area of the progress control control, determining that the second video is the first video in the video set;
[0196] In response to sliding in a fourth direction to a target area of the progress control control, determining that the second video is the last video in the video collection;
[0197] Switch from playing the first video to playing the second video.
[0198] In the disclosed embodiment, by sliding the progress control left and right to quickly switch to the first video or the last video in a video collection, the user's operation of quickly switching videos can be enriched, thereby improving the efficiency of human-computer interaction.
[0199] In some embodiments, the method further comprises:
[0200] During the sliding progress control, continue playing the first video; or,
[0201] During the sliding progress control, determine the sliding speed of the sliding operation;
[0202] When the sliding speed is greater than the speed threshold, switching from playing the first video to displaying any video frame in the second video;
[0203] When the sliding speed is not greater than the speed threshold, the first video continues to be played.
[0204] In the disclosed embodiment, by continuing to play the first video while the user slides the progress control, the user can avoid missing the content of the first video. By pre-displaying the video screen of the second video to be switched to the user when the user slides at a fast speed, the user can preview the second video, thereby improving the human-computer interaction efficiency and the user's video switching experience.
[0205] In some embodiments, the method further comprises:
[0206] In the process of sliding the progress control control in the third direction, multiple third videos are played in sequence from back to front along with the sliding operation, and the third videos are videos that are located before the first video in the video set;
[0207] In the process of sliding the progress control control in the fourth direction, multiple fourth videos are played in sequence from front to back along with the sliding operation, and the fourth video is a video located after the first video in the video set.
[0208] In the disclosed embodiment, by playing other videos in the video set in sequence as the user slides, the user's perception of video switching can be further enhanced, thereby improving the user's video switching experience and human-computer interaction efficiency.
[0209] Above Figure 2 FIG. 1 is a flow chart of a video switching method disclosed in the present invention. The video switching solution provided by the present invention is further described below. Figure 3 is a flowchart of another video switching method according to an exemplary embodiment, the method is executed by a terminal, see Figure 3 , the method comprising:
[0210] In step S301, the first video is played.
[0211] In the disclosed embodiment, the terminal has a target application installed or running. The target application is an application with a video playback function, such as a short video application, an audio and video application, a shopping application, a social application, or any other type of application. The disclosed embodiment does not limit this. The terminal can play the first video on the video playback page of the target application. Among them, the first video can be a short video, a long video, a live video, etc. The disclosed embodiment does not limit the type of the first video.
[0212] Optionally, the target application is a short video application. In response to the user's operation of starting the short video application, the terminal receives the video stream pushed by the server through the short video application, and plays the first video in the video stream on the video playback page of the short video application. Alternatively, in the process of searching for a certain term in the short video application, in response to the user clicking on the first video on the search results page, the terminal plays the first video on the video playback page. Alternatively, in response to the user clicking on a video sharing link in other applications, the terminal jumps to the short video application and automatically plays the first video. The disclosed embodiment does not limit the way to open the first video.
[0213] In step S302, when the first video belongs to a video set, a progress control control is displayed based on the progress information of the first video, and the progress control control includes multiple playback progress bars or multiple identification points.
[0214] In the embodiments of the present disclosure, a video set refers to a set consisting of a group of videos that are associated with each other and arranged in a certain order. In other words, the video set includes two or more videos that are associated with each other and arranged in an orderly manner. For example, the multiple videos in the video set are: videos published by the same publisher account, videos with the same topic tag, videos with the same video theme, videos belonging to the same hot list, or videos belonging to the same hot event, etc.
[0215] In the case where the first video belongs to a video set, the video set includes the first video and one or more videos associated with the first video. The user can switch between different videos in the video set by sliding operations such as swiping left or right on the video playback page. However, the interaction efficiency of switching videos through the above sliding operations is low. For example, the video set includes 9 videos. In the case where the first video is the 6th video in the video set, if the traditional sliding operation is used to switch videos, the user has to swipe left 5 times to switch to the 1st video, and the user has to swipe right 3 times to switch to the 9th video. In addition, when the traditional sliding operation is used to switch videos, the user cannot adjust the playback progress of the video by sliding left or right.
[0216] Therefore, in order to improve the efficiency of video switching, when the first video belongs to a video set, the terminal displays a progress control control on the video playback page according to the progress information of the first video, so that the user can quickly switch the currently played video by triggering the progress control control. The progress information is used to indicate the position of the first video in the video set. Optionally, the progress information includes the sequence number of the first video and the number of videos in the video set. For example, the video set includes 9 videos. When the first video is the 6th video in the video set, the progress information of the first video can be 6 / 9.
[0217] The progress control is used to control the playback progress of the first video or to indicate the progress information of the first video. The progress information is used to indicate the position of the first video in the video set. For example, the progress control includes a plurality of playback progress bars. The playback progress bars are used to indicate the playback progress of the video. Alternatively, the progress control includes a plurality of identification points. The identification points are used to indicate the video in the video set.
[0218] By displaying the progress control control through progress information, the user can know the approximate position of the first video in the video collection by viewing the progress control control, for example, the first video is the first video, the last video, or any video in the middle of the video collection. Therefore, by displaying the progress control control through progress information, not only the amount of information obtained by the user in the progress control control is increased, but also it is convenient for the user to decide how to switch to the video that he wants to watch in the video collection.
[0219] In some embodiments, the terminal can automatically display a progress control widget when the first video starts playing to prompt the user that the first video has other associated videos in the video collection, thereby increasing the amount of information carried by the video playback page and improving the user's information acquisition efficiency.
[0220] It should be noted that, in order to appropriately limit the display area of the progress control control, the number of playback progress bars or identification points displayed by the terminal is not greater than the number of videos in the video set. Exemplarily, when the number of identification points is equal to the number of videos in the video set, multiple identification points correspond to multiple videos in the video set one by one. When the number of identification points is less than the number of videos in the video set, the video corresponding to the identification point will change with the change of the currently playing video.
[0221] The following steps A1-A2 illustrate a process in which the terminal displays multiple playback progress bars according to the progress information of the first video.
[0222] A1. The terminal determines a playback progress bar of the first video from multiple playback progress bars according to the progress information of the first video.
[0223] In some embodiments, when the number of play progress bars is equal to the number of videos in the video set, the terminal determines a target progress bar from the plurality of play progress bars according to the progress information of the first video. The target progress bar is also the play progress bar of the first video. The sequence number of the target progress bar is the same as the sequence number of the first video. For example, if the video set includes 3 videos and the progress information of the first video is 2 / 3, the terminal determines that the second play progress bar in the progress control control is the play progress bar of the first video.
[0224] In some embodiments, when the number of play progress bars is less than the number of videos in the video set, the terminal determines the play progress bar with a preset sequence number as the play progress bar of the first video. For example, the video set includes 9 videos, and the first video is the 6th video in the video set. When 3 play progress bars are displayed in the progress control control, the terminal determines the 2nd progress bar as the play progress bar of the first video. Alternatively, when 5 play progress bars are displayed in the progress control control, the terminal determines the 3rd progress bar as the play progress bar of the first video to ensure that the play progress bar of the currently playing video is located in the middle area of the progress control. Alternatively, when the first video is the 1st video in the video set, the terminal determines the 1st play progress bar in the progress control control as the play progress bar of the first video. Alternatively, when 3 play progress bars are displayed in the progress control control, if the first video is the last video in the video set, the terminal determines the 3rd play progress bar in the progress control control as the play progress bar of the first video.
[0225] A2. The terminal displays the playback progress bar of the first video in a first form and displays other playback progress bars in a second form according to the playback progress information of the first video, wherein the length of the playback progress bar in the first form is greater than the length of the playback progress bar in the second form.
[0226] By displaying the playback progress bar according to the playback progress information, the playback progress of the first video can be updated in real time on the playback progress bar, thereby improving the user's efficiency in obtaining information about the playback progress information of the first video. In addition, compared with displaying multiple playback progress bars in the same form, using two different display forms to distinguish the currently playing video from other videos can increase the length of the playback progress bar of the currently playing video, so that the user can perform progress adjustment operations on a longer progress bar, thereby improving the convenience of adjusting the video playback progress and improving the efficiency of human-computer interaction.
[0227] In some embodiments, the terminal can highlight the playback progress bar of the first video. Alternatively, the terminal determines at least one third video from the video set based on the progress information of the first video. The third video is a video that is located before the first video in the video set. The terminal highlights the playback progress bar of the first video and the playback progress bar of at least one third video. By highlighting the playback progress bar of the first video, the user's perception of the playback progress of the first video can be further improved, thereby further improving the user's efficiency in obtaining the playback progress information of the first video. By highlighting the playback progress bars of the first video and the third video, the video that is located before the first video and the video that is located after the first video in the video set can be distinguished through the display style of the playback progress bar, thereby facilitating the user to intuitively perceive the approximate position of the first video in the video set, thereby improving the user's efficiency in obtaining the progress information of the first video.
[0228] Figure 4 FIG. 1 is a schematic diagram of a playback progress bar according to an exemplary embodiment. Figure 4 As shown, the terminal displays a progress control control 401 at the bottom of the video playback page while playing the first video on the video playback page. The progress control control includes three playback progress bars. The longer playback progress bar in the middle is the playback progress bar of the first video. When the first video is the sixth video in the video set, the shorter playback progress bar on the left is the playback progress bar of the fifth video in the video set; the shorter playback progress bar on the right is the playback progress bar of the seventh video in the video set.
[0229] Optionally, when the first video is the first video in the video set, the terminal can display Figure 4 The progress control control 402 is shown on the right. In other words, when the first video is the first video in the video collection, the terminal determines that the first play progress bar on the left is the play progress bar of the first video, and then the terminal displays the play progress bar of the first video in the first form according to the play progress information of the first video. The length of the play progress bar in the first form is longer. When the first video is the last video in the video collection, the terminal can display the play progress bar at the bottom of the video playback page. Figure 4 The progress control widget 403 is shown on the right. In other words, when the first video is the last video in the video set, the terminal determines that the first play progress bar on the right is the play progress bar of the first video, and the terminal displays the play progress bar of the first video in the first form according to the play progress information of the first video.
[0230] In some embodiments, the terminal can also display multiple identification points in the video playback control. The following steps B1-B2 are used to describe the process of the terminal displaying multiple identification points according to the progress information of the first video.
[0231] B1. The terminal determines a mark point of the first video from multiple mark points according to the progress information of the first video.
[0232] The identification point is used to represent the video in the video set. The identification point can be a circular point, an elliptical point, a rectangular point, etc. The embodiment of the present disclosure does not limit the shape of the identification point.
[0233] In some embodiments, when the number of identification points is equal to the number of videos in the video set, the terminal determines the target identification point from the plurality of identification points according to the progress information of the first video. The target identification point is also the identification point of the first video. The sequence number of the target identification point is the same as the sequence number of the first video. For example, the video set includes 3 videos, and 3 identification points are displayed in the progress control control. When the progress information of the first video is 2 / 3, the terminal determines that the second identification point in the progress control control is the identification point of the first video.
[0234] In some embodiments, when the number of identification points is less than the number of videos in the video set, the terminal determines the identification point with a preset number as the identification point of the first video. For example, the video set includes 9 videos, and the first video is the 6th video in the video set. When 3 identification points are displayed in the progress control control, the terminal determines the 2nd identification point as the identification point of the first video. Alternatively, when 5 identification points are displayed in the progress control control, the terminal determines the 3rd identification point as the identification point of the first video to ensure that the identification point of the currently playing video is located in the middle area of the progress control. Alternatively, when the first video is the 1st video in the video set, the terminal determines the 1st identification point in the progress control control as the identification point of the first video. Alternatively, when 3 identification points are displayed in the progress control control, if the first video is the last video in the video set, the terminal determines the 3rd identification point in the progress control control as the identification point of the first video.
[0235] B2. The terminal displays the identification points of the first video in the third form and displays other identification points in the fourth form, wherein the display area of the identification points in the third form is larger than the display area of the identification points in the fourth form.
[0236] Compared with displaying multiple identification points in the same form, using two different display forms to distinguish the currently playing video from other videos can increase the obviousness of the identification points of the currently playing video, making it easier for users to intuitively know the progress information of the first video based on the identification points, thereby improving the efficiency of human-computer interaction.
[0237] Figure 5 FIG. 1 is a schematic diagram showing a marking point according to an exemplary embodiment. Figure 5As shown in (a), the terminal displays a progress control control 501 at the bottom of the video playback page while playing the first video on the video playback page. The progress control control 501 includes 5 identification points. The elliptical identification point with the largest display area is the identification point of the first video. When the first video is the 6th video in the video set, the two circular identification points on the left are the identification points of the 4th and 5th videos in the video set, respectively; the two circular identification points on the right are the identification points of the 7th and 8th videos in the video set, respectively.
[0238] Alternatively, if Figure 5 As shown in (b) in FIG. 1 , the terminal can also display a progress control control 501 at the top of the video playback page. The embodiment of the present disclosure does not limit the display position of the progress control control. Figure 5 As shown in (b) in FIG. 1 , the terminal can also highlight the identification points of the first video, thereby further enhancing the user's perception of the identification points of the first video.
[0239] Optionally, when the first video is the first video in the video set, the terminal can display the video in any area of the video playback page. Figure 5 (b) The progress control 502 shown on the right. In other words, when the first video is the first video in the video set, the terminal determines that the first mark point on the left is the mark point of the first video, and then the terminal displays the mark point of the first video in the third form, that is, displays the elliptical mark point. When the first video is the last video in the video set, the terminal displays the mark point in any area of the video playback page. Figure 5 (b) Progress control widget 503 shown on the right. In other words, when the first video is the last video in the video set, the terminal determines that the first mark point on the right is the mark point of the first video, and the terminal displays the mark point of the first video in the third form.
[0240] In some embodiments, the terminal can determine the number of play progress bars (or identification points) displayed in the video playback control according to the number of videos in the video set. Accordingly, the terminal can obtain the number of videos included in the video set when the first video belongs to the video set. For ease of description, the number of videos included in the video set is referred to as the first number below. When the first number is not greater than the number threshold, the terminal displays the first number of play progress bars in the progress control control, or displays the first number of identification points in the progress control control. When the first number is greater than the number threshold, the terminal displays the number threshold number of play progress bars in the progress control control, or displays the number threshold number of identification points in the progress control control. Among them, the number threshold can be a preset threshold, such as 3, 4 or 5, which is not limited in the embodiment of the present disclosure. By displaying the play progress bar (or identification point) of each video in the progress control control when the number of videos included in the video set is small, it is convenient for the user to adjust the play progress of each video through the progress control control, or quickly obtain the progress information of the first video through the progress control control, thereby improving the efficiency of human-computer interaction. By displaying a threshold number of playback progress bars (or identification points) in the progress control control when the number of videos included in the video collection is large, the displayed playback progress bars (or identification points) can be reused, avoiding the progress control control from including a large number of playback progress bars (or identification points), thereby reasonably controlling the display area of the progress control control and avoiding the progress control control from blocking the video screen.
[0241] Figure 6 FIG. 1 is a schematic diagram of another playback progress bar according to an exemplary embodiment. Figure 6 As shown, the quantity threshold is 5. When the first quantity L is 3 and 4 respectively, the terminal displays 3 and 4 playback progress bars in the progress control control. One playback progress bar corresponds to one video. The display form of the playback progress bar changes with the change of the currently playing video. When the first quantity L is greater than or equal to 5, the terminal displays 5 playback progress bars in the progress control control. When the first video is the 1st to 4th video in a video set, the display form of the playback progress bar changes with the change of the currently playing video. When the first video is the 5th to Lth video in a video set, the 5th playback progress bar always corresponds to the currently playing video, then the terminal displays the 5th playback progress bar in the first form, and displays the first 4 playback progress bars in the second form.
[0242] It should be noted that in Figure 6In the play progress bar shown, the terminal highlights the play progress bar of the first video and the third video. The third video is a video before the first video in the video set. In some embodiments, the terminal may also only highlight the play progress bar of the first video, which is not limited in the embodiments of the present disclosure.
[0243] Figure 7 FIG. 1 is a schematic diagram of another playback progress bar according to an exemplary embodiment. Figure 7 As shown, compared to Figure 6 The progress bar of the first video is always in the center. In other words, no matter which video in the video collection the first video currently being played is, the display position of the progress bar of the first video is the same. The display positions of the progress bars of other videos change with the change of the currently playing video. Figure 7 In the playback progress bar shown, the terminal highlights the playback progress bar of the first video and the playback progress bar of the third video. The third video is a video that is located before the first video in the video set. In some embodiments, Figure 7 In the playback progress bar shown, the terminal may also highlight only the playback progress bar of the first video, that is, the terminal only highlights the longer playback progress bar in the middle.
[0244] In addition, it should be noted that Figure 7 What is shown is a schematic diagram of an exemplary play progress bar. In some embodiments, the terminal can also display multiple play progress bars in other forms, or the terminal can also change the display position of multiple play progress bars. The embodiment of the present disclosure does not limit the display position and display style of the play progress bar.
[0245] The above steps introduce the process of displaying a progress control control on a video playback page according to the progress information of the first video when the terminal is playing the first video. When the video playback page displays the progress control control, the user can switch different videos in the video set by performing different trigger operations on the progress control control. Accordingly, the terminal can determine the second video to be played after switching according to the video switching condition satisfied by the trigger operation.
[0246] Optionally, when the progress control widget includes multiple playback progress bars, the video switching conditions include the following four conditions.
[0247] (1) Triggering operation on any second form of playback progress bar.
[0248] In the embodiment of the present disclosure, the second form of the playback progress bar is the playback progress bar of any video in the video set except the first video. Accordingly, in response to the user's triggering operation on any second form of the playback progress bar, the terminal switches to the video corresponding to the playback progress bar. For example, as described above Figure 6 As shown, when L is 4 and the first video is the third video in the video set, in response to the user triggering the first play progress bar on the left, the terminal switches from playing the first video to playing the first video in the video set. In response to the user triggering the second play progress bar on the left, the terminal switches from playing the first video to playing the second video in the video set.
[0249] (2) Drag the playback progress bar of the first video to the target area and keep it in the target area for N seconds, where N is a positive integer.
[0250] In an embodiment of the present disclosure, a user can adjust the playback progress of a video by dragging the playback progress bar of the currently playing video. In addition, in the process of the user dragging the playback progress bar, in response to the user's dragging operation staying in the target area and staying for N seconds, the terminal switches the currently playing video. The switched video is related to the user's dragging direction. N is a preset value, such as 1, 1.5 or 2, and the embodiment of the present disclosure does not limit this.
[0251] Optionally, the target area may be any area in the play progress bar, or may be any area in the video play page, which is not limited in the embodiment of the present disclosure.
[0252] (3) The playback progress bar of the first video is dragged in the first direction to the target area and stays in the target area for M seconds, where M is greater than N.
[0253] In an embodiment of the present disclosure, when the user drags the playback progress bar, in response to the user's dragging operation in the first direction staying in the target area and staying for M seconds, the terminal switches the currently played video. The switched video is related to the first direction. M can also be a preset value, such as 2.5, 3 or 3.5, which is not limited in the embodiment of the present disclosure.
[0254] (4) Drag the playback progress bar of the first video in the second direction to the target area and keep it in the target area for M seconds.
[0255] In the disclosed embodiment, when the user drags the playback progress bar, in response to the user's dragging operation in the second direction staying in the target area for M seconds, the terminal switches the currently played video, wherein the switched video is related to the second direction.
[0256] The following steps S303-S305 respectively describe in detail the process of switching the video at the terminal when the trigger operation satisfies the above-mentioned video switching conditions (2)-(4).
[0257] In step S303, when the play progress bar of the first video is dragged to the target area and stays in the target area for N seconds, in response to the end of the dragging operation, the play of the first video is switched to the play of the second video.
[0258] In the embodiment of the present disclosure, when the user drags the play progress bar of the first video, the target area includes the leftmost area and the rightmost area in the play progress bar. The target area may also include the area on the left side of the play progress bar and the area on the right side of the play progress bar in the video playback page.
[0259] Figure 8 FIG. 1 is a schematic diagram showing a target area according to an exemplary embodiment. Figure 8 As shown, the target area includes at least one of a first area 801 and a second area 802. The first area 801 includes the leftmost area and the rightmost area in the play progress bar. The second area 802 includes the left end area and the right end area of the play progress bar. In addition, when the user drags the play progress bar, a circular drag control is displayed in the play progress bar. The drag control slides left and right in the play progress bar as the user drags.
[0260] In the case where the target area includes the first area, if the user drags the drag control to the first area and stays in the first area for N seconds, in response to the end of the drag operation, the terminal switches from playing the first video to playing the second video in the video set. In the case where the target area includes the second area, if the user's drag operation on the drag control stays in the second area for N seconds, in response to the end of the drag operation, the terminal switches from playing the first video to playing the second video in the video set. Optionally, the end of the drag operation can be when the user interrupts or stops the drag operation, such as when the user's finger leaves the touch screen of the terminal.
[0261] By using the playback progress bar as a progress control control, users can not only view the playback progress information of the video through the playback progress bar, but also switch videos by dragging the progress bar, which enriches the function of the playback progress bar and improves the efficiency of human-computer interaction.
[0262] In some embodiments, the terminal can determine the second video from the video set according to the dragging direction of the drag operation. When the user drags the playback progress bar of the first video in the first direction, the terminal determines that the second video is the previous video of the first video in the video set. In other words, when the user's dragging operation in the first direction meets the above-mentioned video switching condition (2), the terminal switches from playing the first video to playing the previous video of the first video in the video set. Among them, the first direction can be the left direction, the upper left direction or the lower left direction, and the embodiment of the present disclosure is not limited to this. When the user drags the playback progress bar of the first video in the second direction, the terminal determines that the second video is the next video of the first video in the video set. In other words, when the user's dragging operation in the second direction meets the above-mentioned video switching condition (2), the terminal switches from playing the first video to playing the next video of the first video in the video set. Among them, the second direction can be the right direction, the upper right direction or the lower right direction, and the embodiment of the present disclosure is not limited to this. By determining the switched video according to the user's dragging direction, the video switching logic can be consistent with the user's triggering logic, so that the switched video is the video that the user wants to browse, thereby improving the efficiency of the user's video switching.
[0263] In some embodiments, the terminal can update the play progress of the first video in real time while the user is dragging the progress bar. During the process of the user dragging the play progress bar of the first video, the terminal updates the play progress information of the first video as the user drags. The terminal can play the first video in real time according to the play progress information of the first video, so that the user can adjust the play progress of the first video by dragging the play progress bar. Alternatively, the terminal can also display the video thumbnail associated with the play progress information in real time on the upper layer of the first video according to the play progress information of the first video during the process of the user dragging the progress bar. Among them, the video thumbnail can be the video screen of the play time indicated by the play progress information. For example, when the video play information is 00:09 / 00:19, it indicates that the duration of the first video is 19 seconds, and the video screen of the 9th second is currently played. During the process of the user dragging the progress bar, in response to the video play information being updated to 00:09 / 00:19, the terminal displays the video screen of the 9th second on the upper layer of the video play page. By updating the playback progress information of the first video in real time and playing the first video in real time or displaying the video thumbnail in real time according to the playback progress information, the playback progress of the first video can be fed back to the user in a timely manner when the user drags the progress bar, thereby improving the efficiency of human-computer interaction.
[0264] Fig. 9 FIG. 1 is a schematic diagram of a video playback page according to an exemplary embodiment. Fig. 9As shown in (a) of FIG. 1 , when the user drags the playback progress bar of the first video, the terminal displays the playback progress information of the first video and a video thumbnail matching the playback progress information in real time on the upper layer of the video playback page. Optionally, when the above information is displayed in real time on the upper layer of the video playback page, the terminal pauses the playback of the first video on the video playback page. In addition, Fig. 9 As shown in (a), when the user drags the playback progress bar of the first video, the terminal enters the "clear screen mode", that is, the terminal shields the video copy, video author and interactive controls in the video playback page to prevent the user from accidentally touching the video when adjusting the video playback progress. Among them, the interactive controls include like controls, comment controls, share controls, favorite controls and follow controls.
[0265] In addition, if Fig. 9 As shown in (b) in the figure, when the first video belongs to a video set, the terminal can also display a bottom bar 901 at the bottom of the video playback page. The bottom bar 901 is used to prompt that the first video belongs to a video set. The bottom bar 901 is also used to prompt the number of videos included in the video set. Among them, the video set can also be called a video collection, or simply a collection. When the video playback page displays a bottom bar, when the user drags the playback progress bar of the first video, the terminal displays the playback progress bar above the bottom bar, that is, the terminal can display Fig. 9 The video playback page shown in (c) in Figure 1. Fig. 9 The video playback page shown in (a) in Fig. 9 In the video playback page shown in (c), the display position of the playback progress bar of the first video is slightly above, so that when the terminal exits the "clear screen mode", the terminal can display the bottom bar below the playback progress bar.
[0266] In step S304, when the play progress bar of the first video is dragged in the first direction to the target area and stays in the target area for M seconds, in response to the end of the dragging operation, the play of the first video is switched to the play of the first video in the video set.
[0267] In an embodiment of the present disclosure, when a user drags the playback progress bar in a first direction, if the user's drag operation stays in the target area and the stay time reaches M seconds, in response to the end of the drag operation, the terminal switches from playing the first video to playing the first video in the video set. In other words, if the above-mentioned drag operation stays in the target area for a short time, after the user lets go, the terminal plays the previous video in the video set. If the above-mentioned drag operation stays in the target area for a long time, after the user lets go, the terminal plays the first video in the video set, thereby achieving a quick switch to the first video.
[0268] In step S305, when the playback progress bar of the first video is dragged in the second direction to the target area and stays in the target area for M seconds, in response to the end of the dragging operation, the playback of the first video is switched to the playback of the last video in the video set.
[0269] In the disclosed embodiment, when the user drags the playback progress bar in the second direction, if the user's dragging operation stays in the target area and the duration reaches M seconds, in response to the end of the dragging operation, the terminal switches from playing the first video to playing the last video in the video set, thereby realizing fast switching to the last video. Compared with the traditional left-right sliding to switch videos in the video set, the sliding operation of the playback progress bar to quickly switch videos can reduce the number of sliding operations performed by the user, thereby facilitating the user to switch videos in the video set more quickly and conveniently, and improving the human-computer interaction efficiency during the video switching process.
[0270] In some embodiments, when the drag operation stays in the target area for M seconds, the terminal can also display a first prompt message to prompt the user that the terminal will play the corresponding second video when the drag operation ends. By displaying the prompt message when the user's drag operation meets the video switching condition, it is easy for the user to know the operation result of the drag operation, avoid the user switching videos due to misoperation, and improve the human-computer interaction efficiency and the user's video switching experience.
[0271] Fig.10 FIG. 1 is a schematic diagram showing a first prompt message according to an exemplary embodiment. Fig.10 As shown, in the process of the user dragging the playback progress bar in the first direction, in response to the user's dragging operation staying in the target area and staying for M seconds, the terminal displays the first prompt information 1001 on the upper layer of the video playback page. The first prompt information 1001 includes a thumbnail of the second video, progress information of the second video, and a prompt text for prompting the user's operation result.
[0272] In some embodiments, when the user's dragging operation in the first direction satisfies the above-mentioned video switching condition (3), as the dwell time increases, the terminal displays the second prompt information in real time. The second prompt information is used to prompt to play the third video when the dragging operation ends. The third video is a video located before the first video in the video set. The second prompt information is a dynamic prompt information. The sequence number of the third video prompted by the second prompt information is negatively correlated with the dwell time. In other words, as the dwell time increases, the sequence number of the third video prompted by the second prompt information gradually decreases. In response to the end of the user's dragging operation, the terminal switches from playing the first video to playing the target video. The target video is the third video prompted by the second prompt information displayed at the end of the dragging operation. By displaying the dynamic prompt information when the user's dragging operation meets the video switching condition, the user can end the dragging operation in time according to actual needs, and the currently played video can be switched to the target video, thereby realizing the rapid switching of any video in the video set and improving the efficiency of human-computer interaction.
[0273] For example, the first video is the sixth video in the video set. When the drag operation in the first direction satisfies the above-mentioned video switching condition (3), as the dwell time increases, the second prompt information displayed by the terminal changes as follows: release to play 5 / 9, release to play 4 / 9, release to play 3 / 9, release to play 2 / 9, release to play 1 / 9. When the second prompt information is "release to play 3 / 9", in response to the end of the drag operation, the terminal switches from playing the first video to playing the third video in the video set. Optionally, the second prompt information also includes a video thumbnail that matches the progress information.
[0274] In some embodiments, when the user's dragging operation in the second direction satisfies the above-mentioned video switching condition (4), as the dwell time increases, the terminal displays a third prompt message in real time. The third prompt message is used to prompt that the fourth video should be played when the dragging operation ends. The fourth video is a video located after the first video in the video set. The third prompt message is also a dynamic prompt message. The sequence number of the fourth video prompted by the third prompt message is positively correlated with the dwell time. In other words, as the dwell time increases, the sequence number of the fourth video prompted by the third prompt message gradually increases. In response to the end of the user's dragging operation, the terminal switches from playing the first video to playing the target video. The target video is the fourth video prompted by the third prompt message displayed at the end of the dragging operation. By displaying a dynamic prompt message when the user's dragging operation meets the video switching condition, the user can end the dragging operation in time according to actual needs, and the currently played video can be switched to the target video, thereby realizing rapid switching of any video in the video set and improving the efficiency of human-computer interaction.
[0275] For example, the first video is the sixth video in the video set. When the drag operation in the second direction satisfies the above-mentioned video switching condition (4), as the dwell time increases, the third prompt information displayed by the terminal changes as follows: release to play 7 / 9, release to play 8 / 9, release to play 9 / 9. When the third prompt information is "release to play 8 / 9", in response to the end of the drag operation, the terminal switches from playing the first video to playing the eighth video in the video set. Optionally, the third prompt information also includes a video thumbnail that matches the progress information.
[0276] Optionally, when the progress control widget includes multiple identification points, the video switching conditions include the following four conditions.
[0277] (5) Slide the progress control in a third direction.
[0278] (6) Slide the progress control control in the fourth direction.
[0279] Optionally, the sliding operation on the progress control control may be a sliding operation on a marking point within the progress control control.
[0280] (7) Slide in the third direction to the target area of the progress control control.
[0281] (8) Slide in the fourth direction to the target area of the progress control control.
[0282] Optionally, the target area includes a left area and a right area in the progress control control. The embodiment of the present disclosure does not limit the size of the target area. Fig.11 FIG. 1 is a schematic diagram showing another target area according to an exemplary embodiment. Fig.11 As shown, the target area includes the leftmost area 1101 and the rightmost area 1102 in the progress control control.
[0283] The following step S306 will describe the process of the terminal switching the video when the trigger operation satisfies the above-mentioned video switching condition (5) and the above-mentioned video switching condition (6).
[0284] In step S306, in response to a sliding operation of the sliding progress control control in a third direction, the second video is determined to be the previous video of the first video in the video collection; in response to a sliding operation of the sliding progress control control in a fourth direction, the second video is determined to be the next video of the first video in the video collection; and the playback of the first video is switched to the playback of the second video.
[0285] In an embodiment of the present disclosure, in response to a user sliding a progress control control in a third direction, the terminal switches the currently playing video from the first video to the previous video in the video set. The third direction may be the left direction, the upper left direction, or the lower left direction, and the embodiment of the present disclosure is not limited thereto. In response to a user sliding a progress control control in a fourth direction, the terminal switches the currently playing video from the first video to the next video in the video set. The fourth direction may be the right direction, the upper right direction, or the lower right direction, and the embodiment of the present disclosure is not limited thereto. In the case where the progress control control includes multiple identification points, switching to the previous video or the next video in the video set by sliding the progress control left and right can enrich the user's video switching operations and improve the efficiency of human-computer interaction.
[0286] The following step S307 will be used to explain the process of the terminal switching the video when the trigger operation satisfies the above-mentioned video switching condition (7) and the above-mentioned video switching condition (8).
[0287] In step S307, in response to sliding in the third direction to the target area of the progress control control, the second video is determined to be the first video in the video collection; in response to sliding in the fourth direction to the target area of the progress control control, the second video is determined to be the last video in the video collection; and the playback of the first video is switched to the playback of the second video.
[0288] In the disclosed embodiment, when the user slides the progress control control in the third direction, in response to sliding to the target area, the terminal switches the currently played video from the first video to the first video in the video set. When the user slides the progress control control in the fourth direction, in response to sliding to the target area, the terminal switches the currently played video from the first video to the last video in the video set. By sliding the progress control control left and right to quickly switch to the first video or the last video in the video set, the user's operation of quickly switching videos can be enriched, and the efficiency of human-computer interaction is improved.
[0289] In some embodiments, while the user is sliding the progress control, the terminal continues to play the first video. Alternatively, while the user is sliding the progress control, the terminal determines the sliding speed of the sliding operation. When the sliding speed is greater than the speed threshold, it indicates that the user is more likely to slide to the target area, and the terminal switches from playing the first video to displaying any video frame in the second video, such as displaying the cover of the second video or the first frame of the second video. When the sliding speed is not greater than the speed threshold, it indicates that the user is less likely to slide to the target area, and the terminal continues to play the first video. Among them, the speed threshold can be a preset value set based on experience, and the embodiment of the present disclosure does not limit this. By continuing to play the first video while the user is sliding the progress control, the user can avoid missing the content of the first video. By displaying the video screen of the second video to be switched to the user in advance when the user's sliding speed is fast, it is convenient for the user to preview the second video, thereby improving the efficiency of human-computer interaction and the user's video switching experience.
[0290] In some embodiments, when the user slides the progress control control in the third direction, as the user slides, the terminal plays multiple third videos in sequence from back to front. The third video is a video before the first video in the video set. For example, when the first video is the sixth video in the video set, as the user slides left, the terminal plays the fifth video to the first video in the video set in sequence. When the user slides the progress control control in the fourth direction, as the user slides, the terminal plays multiple fourth videos in sequence from front to back. The fourth video is a video after the first video in the video set. For example, when the first video is the sixth video in the video set, as the user slides right, the terminal plays the seventh video to the ninth video in the video set in sequence. By playing other videos in the video set in sequence as the user slides, the user's perception of video switching can be further enhanced, and the user's video switching experience and human-computer interaction efficiency are improved.
[0291] It should be noted that when the video playback page displays multiple identification points, the user can also quickly switch videos in the video collection by triggering the playback progress bar. Fig.11As shown, the video playback page is displayed with multiple identification points. The bottom of the video playback page also displays the playback progress bar of the first video. In the process of the user dragging the playback progress bar of the first video to the left, if the user's dragging operation stays at the leftmost end of the playback progress bar and the stay time reaches N seconds, in response to the end of the dragging operation, the terminal switches from playing the first video to playing the previous video of the first video in the video set. If the user's dragging operation stays at the leftmost end of the playback progress bar and the stay time reaches M seconds, in response to the end of the dragging operation, the terminal switches from playing the first video to playing the first video in the video set. In the process of the user dragging the playback progress bar of the first video to the right, if the user's dragging operation stays at the rightmost end of the playback progress bar and the stay time reaches N seconds, in response to the end of the dragging operation, the terminal switches from playing the first video to playing the next video of the first video in the video set. If the user's dragging operation stays at the rightmost end of the progress bar and the stay time reaches M seconds, in response to the end of the dragging operation, the terminal switches from playing the first video to playing the last video in the video set.
[0292] The disclosed embodiment provides a video switching method, which can display a progress control control when a terminal plays any video in a video set, so that the user can switch the currently played video by triggering a trigger operation on the video control. The terminal can determine another video to be switched from the video set according to the video switching condition satisfied by the trigger operation. Therefore, the above method provides a quick switching method for multiple videos in a video set, enriches the human-computer interaction method of video switching, and improves the human-computer interaction efficiency.
[0293] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present disclosure, and will not be described in detail here.
[0294] Fig.12 FIG. 1 is a block diagram of a video switching device according to an exemplary embodiment. Fig.12 As shown, the device includes: a playing unit 1201, a display unit 1202 and a switching unit 1203.
[0295] The playing unit 1201 is configured to play the first video;
[0296] The display unit 1202 is configured to display a progress control control when the first video belongs to a video set, the video set includes multiple videos, and the progress control control is used to control the playback progress of the first video or to indicate progress information of the first video, where the progress information is used to indicate the position of the first video in the video set;
[0297] The switching unit 1203 is configured to switch from playing the first video to playing the second video in response to the trigger operation on the progress control control satisfying the video switching condition, where the second video is a video determined from the video set based on the video switching condition satisfied by the trigger operation.
[0298] In some embodiments, the display unit 1202 is configured to display a progress control widget based on the progress information of the first video.
[0299] In some embodiments, the progress control widget includes a plurality of play progress bars, and the play progress bars are used to indicate the play progress of the video;
[0300] The display unit 1202 is configured to determine the playback progress bar of the first video from multiple playback progress bars based on the progress information of the first video; based on the playback progress information of the first video, display the playback progress bar of the first video in a first form, and display other playback progress bars in a second form, and the length of the playback progress bar in the first form is greater than the length of the playback progress bar in the second form.
[0301] In some embodiments, the display unit 1202 is also configured to highlight the playback progress bar of the first video; or, based on the progress information of the first video, highlight the playback progress bar of the first video and the playback progress bar of at least one third video, where the third video is a video in the video collection that is located before the first video.
[0302] In some embodiments, the progress control includes a plurality of identification points, and the identification points are used to represent videos in the video set;
[0303] The display unit 1202 is configured to determine the identification points of the first video from multiple identification points based on the progress information of the first video; display the identification points of the first video in a third form, and display other identification points in a fourth form, and the display area of the identification points in the third form is larger than the display area of the identification points in the fourth form.
[0304] In some embodiments, the progress control widget includes a plurality of play progress bars or a plurality of identification points;
[0305] The display unit 1202 is configured to obtain the number of videos included in the video set; when the number is not greater than a threshold number, display the number of playback progress bars or the number of identification points; when the number is greater than a threshold number, display the number of playback progress bars or the number of identification points of the threshold number.
[0306] In some embodiments, the progress control widget includes a plurality of play progress bars, and the play progress bars are used to indicate the play progress of the video;
[0307] The switching unit 1203 is configured to switch from playing the first video to playing the second video in response to the end of the dragging operation when the playback progress bar of the first video is dragged to the target area and stays in the target area for N seconds, where N is a positive integer.
[0308] In some embodiments, Fig.13 FIG. 1 is a block diagram of another video switching device according to an exemplary embodiment. Fig.13 As shown, the device also includes:
[0309] Determination unit 1204 is configured to determine that the second video is the previous video of the first video in the video set when the playback progress bar of the first video is dragged in the first direction; and to determine that the second video is the next video of the first video in the video set when the playback progress bar of the first video is dragged in the second direction.
[0310] In some embodiments, the apparatus further comprises:
[0311] The updating unit 1205 is configured to update the playback progress information of the first video along with the dragging operation during the process of dragging the playback progress bar of the first video;
[0312] The playback unit 1201 is further configured to play the first video in real time based on the playback progress information of the first video; or, based on the playback progress information of the first video, display a video thumbnail associated with the playback progress information in real time on an upper layer of the first video.
[0313] In some embodiments, the switching unit 1203 is further configured to, in response to the end of the dragging operation, switch from playing the first video to playing the first video in the video set when the playback progress bar of the first video is dragged in the first direction to the target area and stays in the target area for M seconds, where M is greater than N; and in response to the end of the dragging operation, switch from playing the first video to playing the last video in the video set when the playback progress bar of the first video is dragged in the second direction to the target area and stays in the target area for M seconds.
[0314] In some embodiments, the display unit 1202 is further configured to display a first prompt message when the dwell time reaches M seconds, and the first prompt message is used to prompt to play the corresponding second video when the dragging operation ends.
[0315] In some embodiments, the display unit 1202 is further configured to display a second prompt message in real time as the stay time increases when the play progress bar of the first video is dragged in the first direction to the target area and the stay time in the target area reaches M seconds, the second prompt message is used to prompt to play a third video when the dragging operation ends, the third video is a video before the first video in the video set, the sequence number of the third video is negatively correlated with the stay time, and M is greater than N;
[0316] The switching unit 1203 is further configured to switch from playing the first video to playing the target video in response to the end of the dragging operation, where the target video is the third video prompted by the second prompt information displayed when the dragging operation ends.
[0317] In some embodiments, the display unit 1202 is further configured to display a third prompt message in real time as the stay time increases when the play progress bar of the first video is dragged in the second direction to the target area and the stay time in the target area reaches M seconds, the third prompt message is used to prompt to play a fourth video when the dragging operation ends, the fourth video is a video after the first video in the video set, the sequence number of the fourth video is positively correlated with the stay time, and M is greater than N;
[0318] The switching unit 1203 is further configured to switch from playing the first video to playing the target video in response to the end of the dragging operation, where the target video is the fourth video prompted by the third prompt information displayed when the dragging operation ends.
[0319] In some embodiments, the progress control widget includes a plurality of identification points;
[0320] The switching unit 1203 is configured to determine that the second video is the previous video of the first video in the video set in response to a sliding operation of the sliding progress control control in a third direction; determine that the second video is the next video of the first video in the video set in response to a sliding operation of the sliding progress control control in a fourth direction; and switch from playing the first video to playing the second video.
[0321] In some embodiments, the switching unit 1203 is also configured to, in response to sliding in a third direction to a target area of the progress control control, determine that the second video is the first video in the video collection; in response to sliding in a fourth direction to a target area of the progress control control, determine that the second video is the last video in the video collection; and switch from playing the first video to playing the second video.
[0322] In some embodiments, the playback unit 1201 is further configured to continue playing the first video during the sliding progress control control; or, to determine the sliding speed of the sliding operation during the sliding progress control control; when the sliding speed is greater than a speed threshold, switch from playing the first video to displaying any video frame in the second video; when the sliding speed is not greater than the speed threshold, continue playing the first video.
[0323] In some embodiments, the playback unit 1201 is further configured to play multiple third videos in sequence from back to front as the progress control control is sliding in a third direction, where the third video is a video that is located before the first video in the video collection; and to play multiple fourth videos in sequence from front to back as the progress control control is sliding in a fourth direction, where the fourth video is a video that is located after the first video in the video collection.
[0324] The disclosed embodiment provides a video switching device, which can display a progress control control when a terminal plays any video in a video set, so that the user can switch the currently played video by triggering a trigger operation on the video control. The terminal can determine another video to be switched from the video set according to the video switching condition satisfied by the trigger operation. Therefore, the above device provides a quick switching method for multiple videos in a video set, enriches the human-computer interaction method of video switching, and improves the human-computer interaction efficiency.
[0325] It should be noted that the video switching device provided in the above embodiment is only illustrated by the division of the above functional units. In actual applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the electronic device is divided into different functional units to complete all or part of the functions described above. In addition, the video switching device provided in the above embodiment and the video switching method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0326] Regarding the video switching device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0327] Fig.14 14 is a block diagram of an electronic device according to an exemplary embodiment. Generally, the electronic device 1400 includes: a processor 1401 and a memory 1402 .
[0328] The processor 1401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1401 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1401 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1401 may be integrated with a GPU (Graphics Processing Unit, video switcher), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1401 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0329] The memory 1402 may include one or more computer-readable storage media, which may be non-transitory. The memory 1402 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1402 is used to store at least one program code, which is used to be executed by the processor 1401 to implement the video switching method provided by the method embodiment of the present disclosure.
[0330] In some embodiments, the electronic device 1400 may further optionally include: a peripheral device interface 1403 and at least one peripheral device. The processor 1401, the memory 1402 and the peripheral device interface 1403 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1403 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1404, a display screen 1405, a camera assembly 1406, an audio circuit 1407 and a power supply 1408.
[0331] The peripheral device interface 1403 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1401 and the memory 1402. In some embodiments, the processor 1401, the memory 1402, and the peripheral device interface 1403 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1401, the memory 1402, and the peripheral device interface 1403 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0332] The radio frequency circuit 1404 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1404 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1404 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1404 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 1404 can communicate with other electronic devices through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1404 may also include circuits related to NFC (Near Field Communication), which is not limited in the present disclosure.
[0333] The display screen 1405 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1405 is a touch display screen, the display screen 1405 also has the ability to collect touch signals on the surface or above the surface of the display screen 1405. The touch signal can be input to the processor 1401 as a control signal for processing. At this time, the display screen 1405 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1405 can be one, and the front panel of the electronic device 1400 is set; in other embodiments, the display screen 1405 can be at least two, which are respectively set on different surfaces of the electronic device 1400 or are folded; in some other embodiments, the display screen 1405 can be a flexible display screen, which is set on the curved surface or folded surface of the electronic device 1400. Even, the display screen 1405 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1405 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0334] The camera assembly 1406 is used to capture images or videos. Optionally, the camera assembly 1406 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the electronic device, and the rear camera is arranged on the back of the electronic device. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1406 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0335] The audio circuit 1407 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1401 for processing, or input them into the radio frequency circuit 1404 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the electronic device 1400. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1401 or the radio frequency circuit 1404 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1407 may also include a headphone jack.
[0336] The power supply 1408 is used to power various components in the electronic device 1400. The power supply 1408 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1408 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.
[0337] Those skilled in the art will understand that Fig.14 The structure shown in the figure does not constitute a limitation on the electronic device 1400, and may include more or less components than those shown in the figure, or combine certain components, or adopt a different component arrangement.
[0338] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 1402 including instructions, and the instructions can be executed by a processor 1401 of a terminal 1400 to complete the above-mentioned video switching method. Optionally, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0339] A computer program product comprises a computer program, and when the computer program is executed by a processor, the video switching method is implemented.
[0340] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0341] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A video switching method, characterized in that: The method comprises: Play the first video; In the case where the first video belongs to a video set, displaying a progress control control, the video set includes a plurality of videos, the progress control control is used to control the playback progress of the first video or to indicate progress information of the first video, the progress information is used to indicate the position of the first video in the video set, and the progress control control includes a plurality of playback progress bars, the playback progress bars are used to indicate the playback progress of the video; When the play progress bar of the first video is dragged to a target area and stays in the target area for N seconds, in response to the end of the dragging operation, the play of the first video is switched to the play of the second video, where N is a positive integer; Wherein, when the playback progress bar of the first video is dragged in a first direction, the second video is a video located before the first video in the video set, and when the dwell time reaches M seconds, the sequence number of the second video is negatively correlated with the dwell time, and M is greater than N; When the playback progress bar of the first video is dragged in the second direction, the second video is a video that follows the first video in the video set, and when the dwell time reaches M seconds, the sequence number of the second video is positively correlated with the dwell time.
2. The video switching method according to claim 1, characterized in that: The step of displaying a progress control control when the first video belongs to a video set includes: Based on the progress information of the first video, the progress control widget is displayed.
3. The video switching method according to claim 2, characterized in that: The displaying the progress control widget based on the progress information of the first video includes: Based on the progress information of the first video, determining a playback progress bar of the first video from the multiple playback progress bars; Based on the playback progress information of the first video, the playback progress bar of the first video is displayed in a first form, and other playback progress bars are displayed in a second form, and the length of the playback progress bar in the first form is greater than the length of the playback progress bar in the second form.
4. The video switching method according to claim 3, characterized in that: The method further comprises: Highlight the playback progress bar of the first video; or, Based on the progress information of the first video, the play progress bar of the first video and the play progress bar of at least one third video are highlighted, and the third video is a video in the video set that is located before the first video.
5. The video switching method according to claim 2, characterized in that: The progress control control further includes a plurality of identification points, and the identification points are used to represent the videos in the video set; The displaying the progress control widget based on the progress information of the first video includes: Based on the progress information of the first video, determining a mark point of the first video from the multiple mark points; The identification points of the first video are displayed in a third form, and the other identification points are displayed in a fourth form, wherein the display area of the identification points in the third form is larger than the display area of the identification points in the fourth form.
6. The video switching method according to claim 3 or 5, characterized in that: The progress control control also includes a plurality of identification points; The displaying the progress control widget based on the progress information of the first video includes: Obtain the number of videos included in the video set; When the number is not greater than the number threshold, display the number of play progress bars or display the number of identification points; When the number is greater than the number threshold, playback progress bars of the number threshold are displayed, or identification points of the number threshold are displayed.
7. The video switching method according to claim 1, characterized in that: In the case where the play progress bar of the first video is dragged in a first direction, the second video is a video located before the first video in the video set, including: When the play progress bar of the first video is dragged in a first direction, the second video is a previous video of the first video in the video set; In the case where the play progress bar of the first video is dragged in a second direction, the second video is a video in the video set that is located after the first video, including: When the playback progress bar of the first video is dragged in a second direction, the second video is the next video of the first video in the video set.
8. The video switching method according to claim 1, characterized in that: The method further comprises: In the process of dragging the play progress bar of the first video, updating the play progress information of the first video along with the dragging operation; Based on the playback progress information of the first video, play the first video in real time; or, Based on the playback progress information of the first video, a video thumbnail associated with the playback progress information is displayed in real time on an upper layer of the first video.
9. The video switching method according to claim 1, characterized in that: When the dwell time reaches M seconds, the sequence number of the second video is negatively correlated with the dwell time, and can be replaced by: When the dwell time reaches M seconds, the second video is the first video in the video set; When the dwell time reaches M seconds, the sequence number of the second video is positively correlated with the dwell time, and can be replaced by: When the dwell time reaches M seconds, the second video is the last video in the video set.
10. The video switching method according to claim 9, characterized in that: The method further comprises: When the dwell time reaches M seconds, a first prompt message is displayed, wherein the first prompt message is used to prompt that a corresponding second video is played when the dragging operation ends.
11. The video switching method according to claim 1, characterized in that: The method further comprises: When the play progress bar of the first video is dragged in the first direction to the target area and stays in the target area for M seconds, as the stay time increases, a second prompt message is displayed in real time, the second prompt message is used to prompt to play a third video when the dragging operation ends, the third video is a video before the first video in the video set, and the sequence number of the third video is negatively correlated with the stay time; In response to the end of the dragging operation, the playback of the first video is switched to the playback of the target video, and the target video is the third video prompted by the second prompt information displayed when the dragging operation ends.
12. The video switching method according to claim 1, characterized in that: The method further comprises: When the play progress bar of the first video is dragged in the second direction to the target area and stays in the target area for M seconds, as the stay time increases, a third prompt message is displayed in real time, the third prompt message is used to prompt to play a fourth video when the dragging operation ends, the fourth video is a video after the first video in the video set, and the sequence number of the fourth video is positively correlated with the stay time; In response to the end of the dragging operation, the playback of the first video is switched to the playback of the target video, and the target video is the fourth video prompted by the third prompt information displayed when the dragging operation ends.
13. The video switching method according to claim 1, characterized in that: The progress control control also includes a plurality of identification points; The method further comprises: In response to a sliding operation of sliding the progress control control in a third direction, determining that the second video is a previous video of the first video in the video set; In response to a sliding operation of sliding the progress control control in a fourth direction, determining that the second video is a next video of the first video in the video set; Switch from playing the first video to playing the second video.
14. The video switching method according to claim 13, characterized in that: The method further comprises: In response to sliding in the third direction to a target area of the progress control control, determining that the second video is the first video in the video set; In response to sliding in the fourth direction to a target area of the progress control control, determining that the second video is the last video in the video set; Switch from playing the first video to playing the second video.
15. The video switching method according to claim 14, characterized in that: The method further comprises: During the sliding of the progress control control, continue playing the first video; or, During the sliding of the progress control control, determining a sliding speed of the sliding operation; When the sliding speed is greater than a speed threshold, switching from playing the first video to displaying any video frame in the second video; When the sliding speed is not greater than the speed threshold, the first video continues to be played.
16. The video switching method according to claim 14, characterized in that: The method further comprises: In the process of sliding the progress control control in the third direction, multiple third videos are played in sequence from back to front along with the sliding operation, wherein the third videos are videos that are located before the first video in the video set; In the process of sliding the progress control control in the fourth direction, multiple fourth videos are played in sequence from front to back along with the sliding operation, and the fourth videos are videos that are located after the first video in the video set.
17. A video switching device, characterized in that: The device comprises: A playback unit, configured to play a first video; a display unit configured to display a progress control control when the first video belongs to a video set, the video set including a plurality of videos, the progress control control being used to control the playback progress of the first video or being used to indicate progress information of the first video, the progress information being used to indicate a position of the first video in the video set, the progress control control including a plurality of playback progress bars, the playback progress bars being used to indicate playback progress of the video; a switching unit, configured to switch from playing the first video to playing the second video in response to the end of the dragging operation when the play progress bar of the first video is dragged to a target area and stays in the target area for N seconds, where N is a positive integer; Wherein, when the playback progress bar of the first video is dragged in a first direction, the second video is a video located before the first video in the video set, and when the dwell time reaches M seconds, the sequence number of the second video is negatively correlated with the dwell time, and M is greater than N; When the playback progress bar of the first video is dragged in the second direction, the second video is a video that follows the first video in the video set, and when the dwell time reaches M seconds, the sequence number of the second video is negatively correlated with the dwell time.
18. An electronic device, characterized in that: The electronic device comprises: one or more processors; a memory for storing program code executable by the processor; The processor is configured to execute the program code to implement the video switching method according to any one of claims 1 to 16.
19. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the video switching method as described in any one of claims 1 to 16.
20. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the video switching method according to any one of claims 1 to 16 is implemented.
Citation Information
Patent Citations
Media resource playing method and device, equipment and storage medium
CN114173175A
Media information carousel display method and device, electronic equipment and storage medium
CN114594890A
Application card display method and device, storage medium and electronic equipment
CN117234381A
Video switching method and device, electronic equipment and storage medium
CN117896579A