Video recommendation method and device, storage medium and electronic device
By responding to video recommendation requests in the video playback interface, obtaining relevant information, and determining the start time, the system solves the problem of users having a tedious process of finding content of interest in a vast amount of video resources, and achieves the convenience of automatically jumping to video clips of interest.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN TCL NEW-TECH CO LTD
- Filing Date
- 2021-12-29
- Publication Date
- 2026-05-12
AI Technical Summary
Users need to spend a lot of time and effort to find videos of interest from a vast amount of video resources, resulting in a cumbersome process.
After playing the first video on the video playback interface, respond to the video recommendation request, obtain the association information of the second video, determine its playback start time, and automatically jump to the start time of the second video when the first video ends.
It improves the convenience for users to access video content of interest by automatically jumping to the video clips that users are interested in, thus reducing search time.
Smart Images

Figure CN116415033B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, specifically to a video recommendation method, apparatus, storage medium, and electronic device. Background Technology
[0002] With the popularization of the Internet and the development of online video platforms, multimedia content is constantly being enriched and the number of videos is constantly expanding. This makes it very tedious for users to spend a lot of energy and time searching for video content of interest from a huge amount of video resources. Summary of the Invention
[0003] This application provides a video recommendation method, apparatus, storage medium, and electronic device, which can improve the convenience for users to obtain video content of interest.
[0004] In a first aspect, embodiments of this application provide a video recommendation method, including:
[0005] Play the first video in the video playback interface;
[0006] In response to a video recommendation request for the first video, obtain the association information of the second video indicated by the video recommendation request;
[0007] The start time of playback of the second video is determined based on the associated information;
[0008] When the first video finishes playing, the second video is played on the video playback interface according to the playback start time.
[0009] Secondly, embodiments of this application also provide a video recommendation device, comprising:
[0010] The first playback module is used to play the first video in the video playback interface;
[0011] The corresponding module is used to obtain the association information of the second video indicated by the video recommendation request in response to the video recommendation request for the first video;
[0012] The determining module is used to determine the start time point of playback of the second video based on the associated information;
[0013] The second playback module is used to play the second video on the video playback interface according to the playback start time point when the playback of the first video ends.
[0014] Thirdly, embodiments of this application also provide a computer-readable storage medium having a computer program stored thereon, which, when run on a processor, causes the computer to perform the video recommendation method as provided in any embodiment of this application.
[0015] Fourthly, embodiments of this application also provide an electronic device, including a processor and a memory, the memory having a computer program, the processor executing a video recommendation method as provided in any embodiment of this application by invoking the computer program.
[0016] The technical solution provided in this application embodiment can play a first video in a video playback interface. In response to a video recommendation request for the first video, it obtains association information of a second video indicated by the video recommendation request, determines the playback start time point of the second video based on the association information, and plays the second video in the video playback interface according to the playback start time point when the playback of the first video ends. Thus, this application determines the playback start time point of the second video based on the association information of the second video indicated by the video recommendation request, so that when the playback of the current video ends (i.e., the playback of the first video ends), it can directly jump to the playback start time point of the second video to play the second video, that is, automatically jump to video content of interest to the user, thereby improving the convenience for the user to obtain video content of interest. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a schematic diagram of a first flowchart of a video recommendation method provided in an embodiment of this application.
[0019] Figure 2 This is a second flowchart illustrating the video recommendation method provided in an embodiment of this application.
[0020] Figure 3 This is a schematic diagram illustrating an application scenario of the video recommendation method provided in this application embodiment.
[0021] Figure 4 This is a schematic diagram of the video recommendation device provided in an embodiment of this application.
[0022] Figure 5 This is a schematic diagram of a first structure of an electronic device provided in an embodiment of this application.
[0023] Figure 6 This is a schematic diagram of a second structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0024] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the protection scope of this application.
[0025] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0026] This application provides a video recommendation method. The execution entity of this video recommendation method can be the video recommendation device provided in this application, or an electronic device integrating the video recommendation device. The video recommendation device can be implemented in hardware or software. The electronic device can be a device with a display screen, such as a smartphone, television, tablet computer, PDA, laptop computer, or desktop computer.
[0027] Please see Figure 1 , Figure 1 This is a schematic diagram of a first flowchart of the video recommendation method provided in this application embodiment. The specific flow of the video recommendation method provided in this application embodiment can be as follows:
[0028] 101. Play the first video in the video playback interface.
[0029] With the popularization of the Internet and the development of online video platforms, multimedia content is constantly being enriched and the number of videos is constantly expanding. This makes it very tedious for users to spend a lot of energy and time searching for videos of interest from a huge amount of video resources.
[0030] This application provides a video recommendation method to solve the above-mentioned technical problems.
[0031] The video playback interface refers to the interface on which the video is played. For example, when a user plays a movie through a client-side video playback software, the display area occupied by the movie is called the video playback interface. The first video is the video played within this video playback interface.
[0032] It is understandable that there can be multiple video playback interfaces in the display area of an electronic device, and correspondingly, there can also be multiple first videos.
[0033] 102. In response to the video recommendation request for the first video, obtain the association information of the second video indicated by the video recommendation request.
[0034] For example, when a user triggers a video recommendation request for the first video, the electronic device responds to the video recommendation request for the first video, obtains the second video according to the relevant video recommendation algorithm, and then obtains the associated information of the second video.
[0035] The video recommendation algorithm can employ existing algorithms. For example, it can recommend related videos as second videos based on the title, description, content, and type of the first video. For instance, if the first video is the first episode of a TV series, then the second video could be the second episode of that series. Similarly, if the first video is a comedy video, then the second video could also be a comedy video, and so on. Further details will not be elaborated here.
[0036] In one implementation, there are multiple ways to trigger a video recommendation request, such as a virtual trigger button, a physical trigger button, or a specific gesture operation; no specific limitation is made here.
[0037] The associated information may include at least one of the following: the dialogue of the second video, the background music, the number of times it has been played, and its popularity.
[0038] 103. Determine the start time of the second video playback based on the associated information.
[0039] For example, when the associated information is dialogue, the start time of the second video's playback can be determined based on the dialogue. Specifically, Natural Language Processing (NLP) technology can be used to perform sentiment analysis on the dialogue and categorize the results. For instance, the analysis results could be categorized into sentiment types such as suspense, tension, comfort, and humor, thus obtaining video content information of different emotions in the second video. It's understandable that most videos, such as movies or TV series, have relatively calm plots without much emotional depth. When strong emotions appear, they are often the key plot points. Therefore, by acquiring the dialogue and judging the emotions expressed in the dialogue, the key plot points of a video can be identified, and the time points within the time periods of these key plot points can be selected as the video's playback start time.
[0040] For example, when the associated information is background music, the start time of the second video playback can be determined based on the background music. Specifically, the song category can be identified through music recognition technology, such as love, relaxation, excitement, dynamic, and environmental categories. It is understandable that, generally speaking, background music will be added to the more exciting and important parts of the video to enhance the atmosphere. Thus, the key parts of the second video can be obtained based on the background music, and the time point in the time period when the key parts appear can be selected as the start time of the video playback.
[0041] For example, the number of times a video starts playing can be obtained, and the starting time of the second video can be determined based on this number. For instance, the starting time of the second video can be obtained by finding the time when other users selected the highest number of times while watching it, and that highest-selected starting time can be used as the starting time of the second video.
[0042] For example, the popularity of a second video can be obtained. If certain video clips from a second video trend on major search platforms, the start time of playback can be determined within the time periods when these clips appear. Furthermore, when obtaining the popularity of a second video, the number of bullet comments (danmaku) at different times within the video can be used to identify the most popular video clips. It's understood that the more bullet comments there are, the higher the popularity of the video clip at the time the bullet comments appear. Therefore, the number of bullet comments can also be used to determine the start time of playback.
[0043] It is understandable that the key plot points in a video may include one or more, and correspondingly, the playback start time points may also be one or more. Therefore, one or more time points can be selected as playback start time points from one or more time periods in which the key plot points appear.
[0044] In one implementation, two or more types of related information can be combined to determine the start time of the second video playback.
[0045] For example, when multiple playback start times are determined based on dialogue or background music, the popularity of these multiple playback start times can be obtained, and the playback start time with the highest popularity can be used as the final playback start time of the second video.
[0046] For example, when multiple playback start times are determined based on dialogue or background music, the number of times each playback start time is started can be obtained, and the playback start time with the highest number of starts can be used as the final playback start time of the second video.
[0047] For example, when multiple playback start times are determined based on dialogue or background music, the popularity and number of times these multiple playback start times are obtained. The popularity and number of times these playback start times are normalized and weighted summation is performed. Based on the weighted summation result, the final playback start time of the second video is determined from these multiple playback start times.
[0048] 104. When the first video finishes playing, play the second video on the video playback interface according to the playback start time.
[0049] In this embodiment of the application, when the playback of the first video ends, the second video can be played on the video playback interface according to the playback start time of the second video.
[0050] In practice, this application is not limited by the execution order of the described steps. Without causing conflicts, some steps may be performed in other orders or simultaneously.
[0051] As can be seen from the above, the video recommendation method provided in this application embodiment can play a first video on a video playback interface, and in response to a video recommendation request for the first video, obtain the association information of a second video indicated by the video recommendation request, determine the playback start time point of the second video based on the association information, and play the second video on the video playback interface according to the playback start time point when the playback of the first video ends. Thus, this application determines the playback start time point of the second video based on the association information of the second video indicated by the video recommendation request, so that when the playback of the current video ends, i.e., the playback of the first video ends, the user can directly jump to the playback start time point of the second video to play the second video, i.e., automatically jump to video content of interest to the user, thereby improving the convenience for the user to obtain video content of interest.
[0052] Based on the methods described in the preceding embodiments, the following examples will provide further detailed explanations.
[0053] Please see Figure 2 , Figure 2 This is a second flowchart illustrating the video recommendation method provided in an embodiment of this application. The method includes:
[0054] 201. Play the first video in the video playback interface.
[0055] The video playback interface refers to the interface on which the video is played. For example, when a user plays a movie through a client-side video playback software, the display area occupied by the movie is called the video playback interface. The first video is the video played within this video playback interface.
[0056] It is understandable that there can be multiple video playback interfaces in the display area of an electronic device, and correspondingly, there can also be multiple first videos.
[0057] 202. In response to the video recommendation request for the first video, obtain the association information of the second video indicated in the video recommendation request.
[0058] For example, when a user triggers a video recommendation request for the first video, the electronic device responds to the video recommendation request for the first video, obtains the second video according to the relevant video recommendation algorithm, and then obtains the associated information of the second video.
[0059] The video recommendation algorithm can be any existing video recommendation algorithm, which will not be elaborated here.
[0060] In one implementation, there are multiple ways to trigger a video recommendation request, such as a virtual trigger button, a physical trigger button, or a specific gesture operation; no specific limitation is made here.
[0061] The associated information may include at least one of the following: the dialogue of the second video, the background music, the number of times it has been played, and its popularity.
[0062] 203. Determine the start time of the second video playback based on the associated information.
[0063] For example, when the associated information is dialogue, the start time of the second video's playback can be determined based on the dialogue. Specifically, natural language processing technology can be used to perform sentiment analysis on the dialogue and categorize the results. For instance, the analysis results could be categorized into emotional categories such as suspense, tension, comfort, and humor, thus obtaining video content information of different emotions in the second video. It's understandable that most videos, such as movies or TV series, have relatively calm plots without much emotional depth. When strong emotions appear, they are often the key plot points of these videos. Therefore, by acquiring the dialogue and judging the emotions expressed in the dialogue, the key plot points of a video can be identified, and the time points within the time periods of these key plot points can be selected as the video's playback start time.
[0064] For example, when the associated information is background music, the start time of the second video playback can be determined based on the background music. Specifically, the song category can be identified through music recognition technology, such as love, relaxation, excitement, dynamic, and environmental categories. It is understandable that, generally speaking, background music will be added to the more exciting and important parts of the video to enhance the atmosphere. Thus, the key parts of the second video can be obtained based on the background music, and the time point in the time period when the key parts appear can be selected as the start time of the video playback.
[0065] For example, the number of times a video starts playing can be obtained, and the starting time of the second video can be determined based on this number. For instance, the starting time of the second video can be obtained by finding the time when other users selected the highest number of times while watching it, and that highest-selected starting time can be used as the starting time of the second video.
[0066] For example, the popularity of a second video can be obtained. If certain video clips from a second video trend on major search platforms, the start time of playback can be determined within the time periods when these clips appear. Furthermore, when obtaining the popularity of a second video, the number of bullet comments (danmaku) at different times within the video can be used to identify the most popular video clips. It's understood that the more bullet comments there are, the higher the popularity of the video clip at the time the bullet comments appear. Therefore, the number of bullet comments can also be used to determine the start time of playback.
[0067] It is understandable that the key plot points in a video may include one or more, and correspondingly, the playback start time points may also be one or more. Therefore, one or more time points can be selected as playback start time points from one or more time periods in which the key plot points appear.
[0068] In one implementation, two or more types of related information can be combined to determine the start time of the second video playback.
[0069] For example, when multiple playback start times are determined based on dialogue or background music, the popularity of these multiple playback start times can be obtained, and the playback start time with the highest popularity can be used as the final playback start time of the second video.
[0070] For example, when multiple playback start times are determined based on dialogue or background music, the number of times each playback start time is started can be obtained, and the playback start time with the highest number of starts can be used as the final playback start time of the second video.
[0071] For example, when multiple playback start times are determined based on dialogue or background music, the popularity and number of times these multiple playback start times are obtained. The popularity and number of times these playback start times are normalized and weighted summation is performed. Based on the weighted summation result, the final playback start time of the second video is determined from these multiple playback start times.
[0072] 204. Receive the user's update command for the playback start time.
[0073] For example, in this embodiment of the application, after automatically determining the playback start time of the second video based on the associated information, the user can also make adjustments based on the recommended playback start time to update the playback start time.
[0074] In one implementation, the process of "receiving the user's update instruction for the playback start time point" may include the following process:
[0075] (1) Display the playback timeline corresponding to the second video in the video recommendation interface;
[0076] For example, please refer to Figure 3 Taking a television as an example, the third episode of a TV series is currently playing, which is the first video playing on the video playback interface. Based on a video recommendation algorithm, other episodes of the same series are recommended and displayed on the video recommendation interface. It's understandable that if only one video is recommended, it becomes the second video. If multiple videos are recommended, the second video can be determined based on the user's selection. For example, if the user selects episode 10, then episode 10 becomes the second video. When the second video is selected, its corresponding playback timeline is displayed on the television's screen area. It's understandable that the size of the video playback interface can be reduced accordingly to display the video recommendation interface and the playback timeline of the second video.
[0077] (2) Display the playback start time point through the playback timeline;
[0078] For example, when determining the start time of a second video's playback based on its popularity, a popularity trend chart can be visualized on the playback timeline, and the starting playback point can be selected based on this trend. When displaying this start time, it can be done as follows: Figure 3 As shown, the playback timeline is displayed using vertical lines combined with a popularity trend chart.
[0079] (3) Receive update instructions for the start time of playback via the playback timeline.
[0080] For example, please refer to Figure 3 For example, if a user wants to update the first playback start time point on the left, they can drag the vertical line corresponding to that playback start time point to change the corresponding time position of that playback start time point on the playback timeline.
[0081] In one implementation, after the process "displaying the playback start time point via the playback timeline", the following process may also be included:
[0082] (1) Receive the user's preview command for the second video via the playback timeline;
[0083] For example, when a user wants to preview a video frame corresponding to a certain point in time within a second video, they can click on that point in time on the playback timeline to trigger the preview command for the second video.
[0084] (2) Obtain the target time point of the video frame to be previewed as indicated by the preview command, and obtain the video frame to be previewed corresponding to the target time point;
[0085] For example, please refer to Figure 3 When a user wants to preview a video frame corresponding to a specific time point within the second video, they can click on that time point on the playback timeline. This time point is the target time point, and the corresponding video frame is the video frame to be previewed. Specifically, the target time point could be 45:35, representing the time position at 45 minutes and 35 seconds.
[0086] (3) Display the video frames to be previewed in the video playback interface.
[0087] For example, the current system load and / or current network quality, as well as the source quality of the second video, can be obtained, and the video frames to be previewed can be displayed in the video playback interface based on the current system load and / or current network quality, and the source quality.
[0088] For example, the source image quality of the second video can include smooth, standard definition, high definition, and lossless image quality.
[0089] For example, when the system load is heavy, a lower resolution video frame to be previewed can be loaded and displayed in the video playback interface. This would allow for loading a smooth-looking video frame to avoid further increasing the system load.
[0090] For example, when the network quality is poor, a lower resolution video frame to be previewed can be loaded and displayed in the video playback interface. Loading a smooth-viewing video frame can avoid the loading time of the previewed video frame being too long, reduce the user's waiting time, and avoid competing for resources with the currently playing video.
[0091] For example, when the system load is heavy and the network quality is poor, a lower resolution video frame to be previewed can be loaded and displayed in the video playback interface. For instance, loading a smooth-viewing video frame can avoid the loading time of the video frame being too long, reduce the user's waiting time, and avoid competing for resources with the currently playing video.
[0092] 205. Update the playback start time point according to the update command to obtain the updated playback start time point.
[0093] For example, the playback start time can be marked on the playback timeline, and users can update the playback start time by dragging the playback start time on the playback timeline.
[0094] For example, please refer to Figure 3 For example, if a user wants to update the first playback start time point on the left, they can drag the vertical line corresponding to that playback start time point to change the time position of that playback start time point on the playback timeline. When the user stops dragging the vertical line, the new time point corresponding to that vertical line is the updated playback start time point.
[0095] 206. When the first video finishes playing, play the second video on the video playback interface according to the updated playback start time.
[0096] For example, please refer to Figure 3 If the second playback start time from the left is used as the updated playback start time from the first playback start time from the left, then after the third episode is played, the video content of the tenth episode will start playing from the second playback start time from the left in the video playback interface.
[0097] In one implementation, the user can also set the timing of the jump from the first video to the second video. For example, the user can set the video to jump after a first duration. Then, when the first video continues to play for the first duration, the user will jump to play the second video. In other words, the user can set the timing of the second video playback.
[0098] In one implementation, before playing the second video on the video playback interface according to the playback start time, the second video can also be captured and cached from the playback start time.
[0099] For example, if the second video starts playing at 10:10 (10 minutes and 10 seconds) and its duration is 20:10 (20 minutes and 20 seconds), then a video segment from 10 minutes and 10 seconds to 20 minutes and 20 seconds can be extracted and cached. This reduces the waiting time for caching the second video during playback when the first video finishes playing and the player jumps to play it, resulting in smoother video playback.
[0100] As can be seen from the above, the video recommendation method proposed in this application can play a first video on the video playback interface, and in response to a video recommendation request for the first video, obtain the association information of the second video indicated by the video recommendation request, determine the playback start time point of the second video based on the association information, and play the second video on the video playback interface according to the playback start time point when the playback of the first video ends. Thus, this application determines the playback start time point of the second video based on the association information of the second video indicated by the video recommendation request, so that when the playback of the current video ends, i.e., the playback of the first video ends, the user can directly jump to the playback start time point of the second video to play the second video, that is, automatically jump to the video content that the user is interested in, thereby improving the convenience for the user to obtain video content of interest.
[0101] In one embodiment, a video recommendation device is also provided. Please refer to [link / reference]. Figure 4 , Figure 4 This is a schematic diagram of the structure of a video recommendation device 300 provided in an embodiment of this application. The video recommendation device 300 is applied to an electronic device and includes a first playback module 301, a corresponding module 302, a determining module 303, and a second playback module 304, as follows:
[0102] The first playback module 301 is used to play the first video in the video playback interface;
[0103] The corresponding module 302 is used to obtain the association information of the second video indicated by the video recommendation request in response to the video recommendation request for the first video;
[0104] The determination module 303 is used to determine the start time point of the second video playback based on the associated information;
[0105] The second playback module 304 is used to play the second video on the video playback interface according to the playback start time when the first video finishes playing.
[0106] In one implementation, the determining module 303 can also be used to receive an update instruction from the user for the playback start time point; update the playback start time point according to the update instruction to obtain the updated playback start time point.
[0107] In one implementation, the second playback module 304 can also be used to play a second video on the video playback interface according to the updated playback start time.
[0108] In one implementation, the determining module 303 can also be used to display the playback timeline corresponding to the second video in the video recommendation interface; display the playback start time point through the playback timeline; and receive update instructions for the playback start time point through the playback timeline.
[0109] In one embodiment, the determining module 303 can also be used to receive a preview instruction from a user for a second video via a playback timeline; obtain the target time point of the video frame to be previewed indicated by the preview instruction and obtain the video frame to be previewed corresponding to the target time point; and display the video frame to be previewed in the video playback interface.
[0110] In one implementation, the determining module 303 can also be used to obtain the current system load and / or the current network quality, as well as the source image quality of the second video; and display the video frames to be previewed in the video playback interface according to the current system load and / or the current network quality, and the source image quality.
[0111] In one implementation, the second playback module 304 is further configured to capture and cache the second video from the playback start time point.
[0112] It should be noted that the video recommendation device provided in this application embodiment and the video recommendation method in the above embodiment belong to the same concept. The video recommendation device can implement any of the methods provided in the video recommendation method embodiment. For details of its implementation process, please refer to the video recommendation method embodiment, which will not be repeated here.
[0113] This application also provides an electronic device. The electronic device can be a smartphone, tablet computer, or similar device. Please refer to... Figure 5 , Figure 5 This is a schematic diagram of a first structure of an electronic device provided in an embodiment of this application. The electronic device 400 includes a processor 401 and a memory 402. The processor 401 and the memory 402 are electrically connected.
[0114] The processor 401 is the control center of the electronic device 400. It connects various parts of the electronic device through various interfaces and lines. By running or calling computer programs stored in the memory 402 and calling data stored in the memory 402, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole.
[0115] Memory 402 can be used to store computer programs and data. The computer programs stored in memory 402 contain instructions that can be executed in the processor. The computer programs can be composed of various functional modules. The processor 401 executes various functional applications and data processing by calling the computer programs stored in memory 402.
[0116] In this embodiment, the processor 401 in the electronic device 400 loads the instructions corresponding to the processes of one or more computer programs into the memory 402 according to the following steps, and the processor 401 runs the computer programs stored in the memory 402 to realize various functions:
[0117] Play the first video in the video playback interface;
[0118] In response to a video recommendation request for the first video, obtain the association information of the second video indicated in the video recommendation request;
[0119] The start and end times of the second video playback are determined based on the associated information;
[0120] When the first video finishes playing, the second video will start playing on the video playback interface according to the playback start time.
[0121] In one implementation, please refer to Figure 6 , Figure 6 This is a second structural schematic diagram of the electronic device provided in an embodiment of this application. The electronic device 400 further includes: a radio frequency circuit 403, a display screen 404, a control circuit 405, an input unit 406, an audio circuit 407, a sensor 408, and a power supply 409. The processor 401 is electrically connected to the radio frequency circuit 403, the display screen 404, the control circuit 405, the input unit 406, the audio circuit 407, the sensor 408, and the power supply 409.
[0122] The radio frequency circuit 403 is used to transmit and receive radio frequency signals to communicate with network devices or other electronic devices via wireless communication.
[0123] The display screen 404 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of electronic devices, which can be composed of images, text, icons, videos, and any combination thereof.
[0124] The control circuit 405 is electrically connected to the display screen 404 and is used to control the display screen 404 to display information.
[0125] The input unit 406 can be used to receive input numeric or character information or user characteristic information (such as fingerprints), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. The input unit 406 may include a fingerprint recognition module.
[0126] The audio circuit 407 provides an audio interface between the user and the electronic device via a speaker and a microphone. The audio circuit 407 includes a microphone, which is electrically connected to the processor 401. The microphone is used to receive voice information input by the user.
[0127] Sensor 408 is used to collect information about the external environment. Sensor 408 may include one or more sensors such as an ambient light sensor, an accelerometer, and a gyroscope.
[0128] The power supply 409 is used to supply power to the various components of the electronic device 400. In one embodiment, the power supply 409 can be logically connected to the processor 401 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system.
[0129] Although not shown in the figure, electronic device 400 may also include a camera, Bluetooth module, etc., which will not be described in detail here.
[0130] In this embodiment, the processor 401 in the electronic device 400 loads the instructions corresponding to the processes of one or more computer programs into the memory 402 according to the following steps, and the processor 401 runs the computer programs stored in the memory 402 to realize various functions:
[0131] Play the first video in the video playback interface;
[0132] In response to a video recommendation request for the first video, obtain the association information of the second video indicated in the video recommendation request;
[0133] The start and end times of the second video playback are determined based on the associated information;
[0134] When the first video finishes playing, the second video will start playing on the video playback interface according to the playback start time.
[0135] In one implementation, before playing the second video on the video playback interface according to the playback start time point after the first video playback has ended, the processor 401 may also perform the following:
[0136] Receive the user's update command for the playback start time; update the playback start time according to the update command to obtain the updated playback start time.
[0137] In one implementation, when the processor 401 executes the command to play the second video on the video playback interface according to the playback start time, it may execute: play the second video on the video playback interface according to the updated playback start time.
[0138] In one embodiment, when the processor 401 executes the update instruction received from the user for the playback start time point, it may perform the following actions: displaying the playback timeline corresponding to the second video in the video recommendation interface; displaying the playback start time point through the playback timeline; and receiving the update instruction for the playback start time point through the playback timeline.
[0139] In one embodiment, after the processor 401 executes the function of displaying the playback start time point via the playback timeline, it can also execute the following: receiving a preview instruction from the user for the second video via the playback timeline; obtaining the target time point of the video frame to be previewed indicated by the preview instruction and obtaining the video frame to be previewed corresponding to the target time point; and displaying the video frame to be previewed in the video playback interface.
[0140] In one embodiment, when the processor 401 displays a video frame to be previewed in the video playback interface, it may perform the following: obtain the current system load and / or the current network quality, as well as the source image quality of the second video; and display the video frame to be previewed in the video playback interface according to the current system load and / or the current network quality, and the source image quality.
[0141] In one implementation, before executing the playback of the second video on the video playback interface according to the playback start time, the processor 401 may also execute: extracting and caching the second video from the playback start time.
[0142] This application also provides a computer-readable storage medium storing a computer program. When the computer program is run on a processor, the computer executes the video recommendation method described in any of the above embodiments.
[0143] It should be noted that those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, which may include, but is not limited to, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.
[0144] Furthermore, the terms "first," "second," and "third," etc., used in this application are used to distinguish different objects, not to describe a specific order. Additionally, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or modules is not limited to the listed steps or modules, but some embodiments may also include steps or modules not listed, or some embodiments may include other steps or modules inherent to these processes, methods, products, or devices.
[0145] The video recommendation method, apparatus, storage medium, and electronic device provided in the embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only for the purpose of helping to understand the method and its core ideas. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A video recommendation method, characterized in that, include: Play the first video in the video playback interface; In response to a video recommendation request for the first video, obtain the association information of the second video indicated by the video recommendation request; The start time of playback of the second video is determined based on the associated information; When the playback of the first video ends, the second video is played on the video playback interface according to the playback start time point; Specifically, within one or more time periods during which key scenes of the second video appear, one or more time points are selected as the playback start time points.
2. The video recommendation method as described in claim 1, characterized in that, Before playing the second video on the video playback interface according to the playback start time point when ending the playback of the first video, the method further includes: Receive the user's update instruction for the playback start time point; The playback start time point is updated according to the update instruction to obtain the updated playback start time point; Playing the second video on the video playback interface according to the playback start time point includes: Play the second video on the video playback interface according to the updated playback start time.
3. The video recommendation method as described in claim 2, characterized in that, The step of receiving the user's update instruction for the playback start time includes: The playback timeline corresponding to the second video is displayed on the video recommendation interface; The playback start time point is displayed through the playback timeline; The playback timeline receives update instructions for the playback start time point.
4. The video recommendation method as described in claim 3, characterized in that, After displaying the playback start time point via the playback timeline, the method further includes: The playback timeline is used to receive the user's preview command for the second video; Obtain the target time point of the video frame to be previewed as indicated by the preview instruction, and obtain the video frame to be previewed corresponding to the target time point; The video frame to be previewed is displayed in the video playback interface.
5. The video recommendation method as described in claim 4, characterized in that, Displaying the video frame to be previewed in the video playback interface includes: Obtain the current system load and / or current network quality, as well as the source image quality of the second video; Based on the current system load and / or the current network quality, and the source image quality, the video frame to be previewed is displayed in the video playback interface.
6. The video recommendation method as described in claim 1, characterized in that, Before playing the second video on the video playback interface according to the stated playback start time, the method further includes: The second video is captured and cached from the playback start time point.
7. The video recommendation method according to any one of claims 1 to 6, characterized in that, The associated information includes at least one of the following: the dialogue of the second video, the background music, the number of times it was started, and its popularity.
8. A video recommendation device, characterized in that, include: The first playback module is used to play the first video in the video playback interface; The corresponding module is used to obtain the association information of the second video indicated by the video recommendation request in response to the video recommendation request for the first video; The determining module is used to determine the start time point of playback of the second video based on the associated information; The second playback module is used to play the second video on the video playback interface according to the playback start time point when the playback of the first video ends. The device is further configured to: select one or more time points as the playback start time points during one or more time periods in which the key plot points of the second video appear.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is run on the processor, it causes the computer to perform the video recommendation method as described in any one of claims 1 to 7.
10. An electronic device comprising a processor and a memory, the memory storing a computer program, characterized in that, The processor invokes the computer program to execute the video recommendation method as described in any one of claims 1 to 7.