CN112995764B - Video playing method and device, electronic equipment and computer readable storage medium - Google Patents

Video playing method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN112995764B
CN112995764B CN201911308506.8A CN201911308506A CN112995764B CN 112995764 B CN112995764 B CN 112995764B CN 201911308506 A CN201911308506 A CN 201911308506A CN 112995764 B CN112995764 B CN 112995764B
Authority
CN
China
Prior art keywords
video
time
playing
target
clip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911308506.8A
Other languages
Chinese (zh)
Other versions
CN112995764A (en
Inventor
刘晓丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201911308506.8A priority Critical patent/CN112995764B/en
Publication of CN112995764A publication Critical patent/CN112995764A/en
Application granted granted Critical
Publication of CN112995764B publication Critical patent/CN112995764B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44204Monitoring of content usage, e.g. the number of times a movie has been viewed, copied or the amount which has been watched
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44222Analytics of user selections, e.g. selection of programs or purchase activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks

Abstract

The invention provides a video playing method, a video playing device, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: acquiring the playing time of a video; under the condition that the playing time is determined to meet the preset condition, displaying target fragment information matched with the playing time; the target clip information is used for representing the information of the video clip which can be jumped to play; receiving an interactive instruction; responding to the interactive instruction, and jumping the playing time of the video to a target time based on the target segment information associated with the interactive instruction; and the target moment is any playing moment in a playing time range corresponding to the target fragment information. The embodiment of the invention can realize the accurate positioning of the video clip capable of jumping to play.

Description

Video playing method and device, electronic equipment and computer readable storage medium
Technical Field
The present invention relates to the field of multimedia technologies, and in particular, to a video playing method and apparatus, an electronic device, and a computer-readable storage medium.
Background
With the rapid development of terminal technology, terminal equipment has become an essential tool in people's life, and brings great convenience to various aspects of user's life. The user can watch favorite videos by using the terminal equipment, such as some comprehensive videos, sports videos or game videos and the like.
In the online video playing process, a plurality of wonderful video clips often exist to make a user want to watch the wonderful video clips repeatedly, and in the prior art, when the user needs to watch the wonderful video clips, the wonderful video clips are usually played in a manner that the user manually drags the progress bar to the start time of the wonderful video clips. Therefore, a user is required to perform the dragging operation of the progress bar, and the dragged and positioned video clip is often inaccurate due to the small screen of the terminal device.
Disclosure of Invention
The embodiment of the invention provides a video playing method and device, electronic equipment and a computer readable storage medium, and aims to solve the problem that when a user needs to watch a wonderful video clip again, the video clip positioned by adopting the dragging operation of a progress bar is possibly inaccurate.
In a first aspect, an embodiment of the present invention provides a video playing method, where the method is executed in an electronic device, and the method includes:
acquiring the playing time of a video;
acquiring the playing time of a video;
under the condition that the playing time is determined to meet the preset condition, displaying target fragment information matched with the playing time; the target clip information is used for representing the information of the video clip which can be jumped to play;
receiving an interactive instruction;
responding to the interactive instruction, and jumping the playing time of the video to a target time based on the target segment information associated with the interactive instruction; and the target moment is any playing moment in a playing time range corresponding to the target clip information.
In a second aspect, an embodiment of the present invention further provides a video playing apparatus, where the apparatus is executed in an electronic device, and the apparatus includes:
the first acquisition module is used for acquiring the playing time of the video;
the display module is used for displaying the target fragment information matched with the playing time under the condition that the playing time is determined to meet the preset condition; the target clip information is used for representing the information of the video clip which can be jumped to play;
the first receiving module is used for receiving an interactive instruction;
the skip playing module is used for responding to the interactive instruction and skipping the playing time of the video to a target time based on the target segment information associated with the interactive instruction; and the target moment is any playing moment in a playing time range corresponding to the target clip information.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements the steps of the video playing method.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the video playing method are implemented.
In the embodiment of the invention, under the condition that the playing time is determined to meet the preset condition, the target segment information matched with the playing time of the video is displayed, so that the video segment which can be jumped to play can be positioned. And under the condition that the interactive instruction associated with the target clip information is received, skipping from the playing time of the video to any playing time in the playing time range corresponding to the target clip information in a skipping-to-playing mode, so that the positioned video clip can be played.
Compared with the prior art, a user does not need to drag a progress bar, and only needs to display target segment information matched with the playing time of a video under the condition that the playing time is determined to meet a preset condition, so that the video segment corresponding to the target segment information can be automatically positioned. On one hand, the operation of a user is more convenient, and on the other hand, the situation that the positioning of the video clip is inaccurate due to the dragging operation can be avoided, so that the accurate positioning of the video clip is realized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a video playing method according to an embodiment of the present invention;
fig. 2 is a second flowchart of a video playing method according to an embodiment of the present invention;
fig. 3 is a block diagram of a video playback device according to an embodiment of the present invention;
fig. 4 is a second structural diagram of a video playing apparatus according to an embodiment of the present invention;
fig. 5 is a third structural diagram of a video playing apparatus according to an embodiment of the present invention;
FIG. 6 is a fourth block diagram of a video player according to an embodiment of the present invention;
fig. 7 is a detailed structural diagram of a first obtaining module in the video playing apparatus according to the embodiment of the present invention;
fig. 8 is a block diagram of an electronic device provided in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following describes a video playing method provided in an embodiment of the present invention.
It should be noted that the video playing method provided by the embodiment of the present invention may be applied to an electronic device. Optionally, the electronic device may be an interactive control terminal device, and is configured to position and play the video segment that can be played in a skipping manner, so as to achieve an object of accurately positioning the video segment that can be played in a skipping manner.
In the following embodiments, the electronic device will be described in detail by taking an example of an interactive control terminal device. The terminal device capable of interactive control may include a mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal digital assistant (PDA for short), and the like.
Referring to fig. 1, fig. 1 is a flowchart of a video playing method according to an embodiment of the present invention, as shown in fig. 1, including the following steps:
step 101, acquiring the playing time of a video;
102, displaying target fragment information matched with the playing time under the condition that the playing time is determined to meet a preset condition; the target clip information is used for representing the information of the video clip which can be jumped to play;
step 103, receiving an interactive instruction;
104, responding to the interactive instruction, and jumping the playing time of the video to a target time based on the target segment information associated with the interactive instruction; and the target moment is any playing moment in a playing time range corresponding to the target clip information.
In step 101, the playing time of the video may be the current playing time of the video, which may be understood as the currently displayed playing time on the playing progress bar, for example, the currently displayed playing time on the playing progress bar is 1:01:23, the current playing time of the video is one hour, zero one minute, twenty-three seconds.
The playing time of the video can be acquired in two modes, namely a first mode for acquiring the playing time of the video in real time and a second mode for acquiring the playing time of the video by conditional triggering.
In the second manner, the triggering condition may be that the playing progress is refreshed every preset time period from the zero time of the playing progress of the video when the preset time period reaches, that is, from the zero time of the playing progress of the video, so as to obtain the current playing time of the video.
If a positioning instruction for the progress bar of the video is received, the triggering condition may also be that the playing progress is refreshed every preset time period from the time when the positioning instruction is received, and when the preset time period is reached, that is, from the time when the positioning instruction is received, the current playing time of the video is obtained.
Wherein, the preset time period may be generally 0.5 second or 1 second.
In step 102, the preset condition may be a matching condition determined based on the starting time of the video segment and the relationship between the ending time of the video segment and the playing time, or may be only a matching condition determined based on the relationship between the ending time of the video segment and the playing time, or the like.
When the preset condition is only a matching condition determined based on a relationship between the ending time of the video segment and the playing time, for example, the preset condition may be set to be that the ending time of the video segment is the same as the playing time of the video, and correspondingly, if the ending time of the video segment matched in the target segment information is the same as the playing time of the video, it is determined that the playing time meets the preset condition. For another example, the preset condition may be that a time difference between the end time of the video segment and the playing time of the video is less than or equal to a first preset time, and correspondingly, if the time difference between the end time of the video segment matched to the target segment information and the playing time of the video is less than or equal to the first preset time, it is determined that the playing time meets the preset condition.
Of course, the preset conditions described above are only examples, and besides, the preset conditions may also be set as other matching rules, which does not specifically limit the embodiment of the present invention.
Further, under the condition that the playing time is determined to meet the preset condition, the target fragment information matched with the playing time is determined and displayed.
Specifically, first, the interactive control-type terminal device may obtain a clip information list of the video in advance, where the clip information list may include at least one piece of clip information, and each piece of clip information is used to represent information of a video clip that can be played by skipping in the video. For example, a piece of segment information may represent information of a video segment in the video, which has a playing time ranging from 5 minutes to 10 minutes. The video clips which can be skipped to play in the video can be preset, and the setting can be performed according to the video clips which are more wonderful in the video.
Then, in a case where it is determined that the playing time meets a preset condition, clip information matching the playing time may be determined from a clip information list of the video. And the segment information matched with the playing time is different according to different preset conditions.
For example, if the preset condition is that the end time of the video clip is the same as the playing time of the video, the clip information matched with the playing time is the clip information of the video clip corresponding to the end time that is the same as the playing time.
For another example, if the preset condition is that the time difference between the end time of the video segment and the playing time of the video is less than or equal to a first preset duration, the segment information matched with the playing time is the segment information of the video segment corresponding to the end time of which the time difference between the end time of the video segment and the playing time is less than or equal to the first preset duration.
And finally, displaying the target fragment information matched with the playing time. The segment information matched with the playing time includes the target segment information, that is, all information included in the segment information matched with the playing time may be displayed completely, for example, a start time, an end time, an identifier, description information, and a feature image of displaying the video segment in a display area, or a part of information may be extracted from the segment information matched with the playing time to be displayed, for example, only the description information and the feature image of the video segment are displayed in the display area.
In step 103, the interactive instruction is a trigger instruction for video skip playing, that is, if the interactive instruction is received, the interactively controllable terminal device triggers a function of executing video skip playing. Whether an interactive instruction aiming at an interactive area is received or not can be determined in a real-time monitoring mode, and if a user executes interactive operation aiming at the interactive area, the interactive instruction corresponding to the interactive operation is received by the interactive control terminal equipment correspondingly.
The interactive area can be an area specially set for the triggering function of the video jump playing by the interactive control type terminal equipment. Of course, the video jump playing trigger function may also share one interactive region with other trigger functions, and different trigger functions are implemented through different interactive instructions.
The interactive operation executed by the user for the interactive area may be a voice input operation, a motion sensing input operation, or a touch input operation, where the motion sensing input operation may include a gesture operation, a face recognition operation, and the like, and the touch input operation may include: click operation, double-click operation, multi-click operation, long-press operation, slide operation, and the like.
The touch input operation may be a touch input operation using a finger, for example, for a mobile phone and a tablet computer, the touch input operation using the finger may be used to realize interaction with the mobile phone and the tablet computer. The touch input operation may also be a control input operation using a mouse or a keyboard, for example, for a laptop, the control input operation using the mouse or the keyboard may be used to interact with the laptop.
In step 104, in response to the interactive instruction, a function of performing video jump playing is triggered. Specifically, target segment information associated with the interactive instruction is obtained, and the playing time of the video is jumped to any playing time in a playing time range corresponding to the target segment information.
In this embodiment, under the condition that it is determined that the playing time meets the preset condition, the target segment information matched with the playing time of the video is displayed, so that the video segment capable of skipping to be played can be positioned. And when the interactive instruction associated with the target segment information is received, skipping from the playing time of the video to any playing time within the playing time range corresponding to the target segment information in a skipping-to-playing mode, so that the positioned video segment can be played.
Compared with the prior art, the user does not need to drag the progress bar, and only needs to display the target clip information matched with the playing time of the video under the condition that the playing time is determined to meet the preset condition, so that the video clip corresponding to the target clip information can be automatically positioned. On the one hand, the operation of the user can be simplified, the operation of the user is more convenient and faster, and on the other hand, the situation that the positioning of the video clip is inaccurate due to the dragging operation can be avoided, so that the accurate positioning of the video clip is realized.
In addition, through realizing the accurate location to the video clip to can bring better use experience for the user, promote user's viscidity. Furthermore, behavior statistics can be carried out on the interaction operation of the user, so that the behavior statistics can be used as a basis for advertisement putting, short video selection and the like of the user.
Optionally, skipping to play the video at any play time in the play time range corresponding to the target segment information may be understood as a replay process of the video segment corresponding to the target segment information; correspondingly, the preset condition may be that a time difference between the end time of the video segment and the playing time of the video is less than or equal to a first preset time length. Further, referring to fig. 2, fig. 2 is a second flowchart of a video playing method according to an embodiment of the present invention, as shown in fig. 2, including the following steps:
step 201, acquiring a fragment information list; the clip information list comprises at least one piece of clip information, and each piece of clip information comprises the end time of a video clip;
step 202, acquiring the playing time of a video;
step 203, determining the time difference between the playing time and the ending time of the video clip in each piece of clip information;
step 204, determining that the playing time meets a preset condition under the condition that the time difference is less than or equal to a first preset time length;
step 205, displaying the target segment information matched with the playing time under the condition that the playing time is determined to meet the preset condition; the target clip information is used for representing the information of the video clip which can be jumped to play;
step 206, receiving an interactive instruction;
step 207, responding to the interactive instruction, and jumping the playing time of the video to a target time based on the target segment information associated with the interactive instruction; and the target moment is any playing moment in a playing time range corresponding to the target clip information.
In step 201, the clip information list may be a clip information list corresponding to the video, that is, the clip information list includes clip information of video clips that can be jumped to play in the video.
The method for acquiring the fragment information list may be various, for example, the fragment information list may be pre-stored in the local of the interactive control terminal device, and correspondingly, the interactive control terminal device may acquire the fragment information list from the local. The clip information list may also be pre-stored in the server, and correspondingly, the interactive control terminal device receives the clip information list of the video sent by the server. In addition, the timing of acquiring the clip information list may be when the video starts to be played.
Furthermore, after receiving the clip information list sent by the server, the user can also actively add some clip information which is felt good by the user in the clip information list to enrich the clip information list and make the clip information list more in line with the viewing interest requirement of the user.
The clip information list comprises at least one piece of clip information, and each piece of clip information at least comprises the end time of a video clip which can be jumped to play. In addition, each piece of clip information can also include the starting time of the video clip which can be jumped to play; the mark of the video clip which can be jumped to play; description information of video clips capable of being played in a skipping mode; the characteristic image of the played video clip can be jumped.
Step 202 is similar to step 101 of the first embodiment, and therefore, the explanation thereof can refer to step 101 of the first embodiment, which will not be described again here.
In steps 203 and 204, the time difference may be understood as an absolute value of a difference obtained by subtracting the end time of the video clip in each clip information from the playing time. And under the condition that the absolute value is less than or equal to a first preset time length, determining that the playing time accords with a preset condition. That is to say, the condition that the playing time meets the preset condition may include two conditions, where the first condition is that, if the playing time is greater than the ending time of the video segment, a difference obtained by subtracting the ending time of the video segment from the playing time is less than or equal to a first preset time length, and the second condition is that, if the playing time is less than the ending time of the video segment, a difference obtained by subtracting the playing time from the ending time of the video segment is less than or equal to a first preset time length.
Specifically, there may be two implementations.
In a first implementation, the comparison is performed while determining, that is, while determining a time difference between the playing time and the ending time of the video segment in each of the segment information, whether the time difference is less than or equal to a first preset time length is compared. For example, the clip information list includes clip information 1 and clip information 2, first, a time difference 1 between the playing time and the ending time of the video clip in the clip information 1 is determined, and whether the time difference 1 is less than or equal to a first preset time length is compared; then, the time difference 2 between the playing time and the ending time of the video clip in the clip information 2 is determined, and whether the time difference 2 is smaller than or equal to a first preset time length is compared.
It should be noted that, in this implementation manner, the interactively controllable terminal device may further perform ascending order arrangement on the clip information list by using the end time of the video clip as a sorting basis, so as to reduce the number of comparison times, thereby improving the search speed of the target clip information.
In a second implementation manner, after determining and then comparing, that is, after determining the time difference between the playing time and the ending time of the video segment in each piece of segment information, respectively comparing whether the determined time difference is less than or equal to a first preset time length. For example, the clip information list includes clip information 1 and clip information 2, and first, a time difference 1 between the playing time and the ending time of the video clip in the clip information 1 and a time difference 2 between the playing time and the ending time of the video clip in the clip information 2 are determined; then, whether the time difference 1 is smaller than or equal to a first preset time length or not is compared, and whether the time difference 2 is smaller than or equal to the first preset time length or not is compared.
In addition, under the condition that the time difference is larger than a first preset time length, the fact that the playing time does not accord with a preset condition is determined.
It should be noted that the first preset time period may be set according to actual conditions, and may be set to be within 3 seconds in order to ensure the positioning accuracy of the video segment.
Step 205 is similar to step 102, step 206 is similar to step 103, and step 207 is similar to step 104, so that the explanation thereof may refer to step 102, step 103, and step 104 of the first embodiment, respectively, and will not be repeated here.
In this embodiment, the time difference between the playing time and the ending time of the video clip in each piece of clip information is determined; and displaying the target fragment information matched with the playing time under the condition that the time difference is less than or equal to a first preset time length. And under the condition of receiving the interactive instruction associated with the target clip information, skipping the playing time of the video to any playing time in the playing time range corresponding to the target clip information in a skipping-to-playing mode, so that repeated playing of the wonderful video clip can be conveniently realized.
Optionally, based on the embodiment shown in fig. 1, before the step 104, the method further includes:
acquiring an interaction area of the interaction instruction in an interface;
judging whether the interaction area is overlapped with a display area of the target fragment information;
and if so, triggering the step of responding to the interactive instruction and skipping from the playing moment of the video to the target moment based on the target fragment information associated with the interactive instruction.
In this embodiment, the target segment information may be displayed through a preset control, and correspondingly, the display area of the target segment information is an area displayed by the preset control. The preset control can be displayed in a video playing interface in a floating manner, or can also be displayed in a display area outside the video playing interface. Of course, the preset control may have other display manners, which is not limited herein.
Specifically, the interactively controllable terminal device may display the preset control when it is determined that the play time meets a preset condition; and the preset control is used for displaying the target fragment information.
The interaction instruction is a control instruction for the preset control.
Taking an instruction corresponding to a click operation as an example, if a click operation of the user on the preset control is received, it indicates that the interaction region (i.e., the region targeted by the click operation) coincides with the display region of the target segment information (i.e., the region displayed by the preset control), and the interactively controllable terminal device may correspondingly trigger the execution step 104.
In this embodiment, the step of jumping from the playing time of the video to the target time based on the target clip information associated with the interactive instruction is triggered to respond to the interactive instruction only when the interactive area of the interactive instruction in the interface coincides with the display area of the target clip information, so that the wonderful video clip can be more conveniently jumped to.
Optionally, based on the embodiment shown in fig. 1, step 102 specifically includes:
displaying target fragment information matched with the playing time within a second preset time length;
after the target segment information matched with the playing time is displayed within a second preset time, the method further comprises the following steps:
and under the condition that the interactive instruction is not received within the second preset time, stopping displaying the target fragment information matched with the playing time.
It should be noted that the second preset time duration may be set according to an actual situation, for example, if the interval time between two adjacent video clips that can be skipped to play in the video list is short, the second preset time duration may not be set to be long, and meanwhile, in order to ensure the sufficiency of displaying the target clip information and ensure the corresponding interactive operation time for the user, the second preset time duration may be set to be about 5 seconds.
In this embodiment, the target segment information matched with the playing time is displayed within a second preset time period, and the display of the target segment information matched with the playing time is stopped under the condition that the interactive instruction is not received within the second preset time period, so that the target segment information matched with the playing time can be sequentially displayed based on the current playing time of the video without affecting the normal playing of the video segment.
In the embodiment, more selectivity can be provided for the user by displaying the target segment information in the second preset time length in the mode of presetting the control. Since some video clips may belong to highlights but may not be of great interest to the user currently in use, there is no need for a replay. At this time, no interactive operation may be performed on the preset control, and the video segment corresponding to the target segment information may not be replayed, so that the video may be played normally. When the user needs to watch, the user can directly click the preset control, so that the corresponding video clip is played. In the process, the personalized requirements of the user are met.
It should be noted that, in the following description,
optionally, based on the embodiment shown in fig. 1, the step 101 specifically includes:
receiving a positioning instruction of a progress bar for the video;
and responding to the positioning instruction, and determining the playing time associated with the positioning instruction as the playing time of the video.
Specifically, the positioning instruction may be an instruction corresponding to a dragging operation of the progress bar of the video by the user, the dragging operation may be dragging the progress bar of the video from back to front or dragging the progress bar of the video from front to back, and the interactively controllable terminal device may acquire the play time associated with the positioning instruction and determine the play time associated with the positioning instruction as the play time of the video in response to the positioning instruction when the user releases the dragging operation.
Therefore, after the user drags the progress bar of the video, the user does not need to finely adjust the progress bar, the user only needs to remember an approximate time, and the interactive control type terminal equipment can match the wonderful video clip based on the playing time determined by the playing time associated with the positioning instruction, so that a proper video clip can be found. Therefore, the process that the user needs to fine tune for finding a certain accurate playing moment can be simplified, and the user operation is more convenient.
Preferably, based on the embodiment shown in fig. 1, the target time is a start time in a playing time range corresponding to the target segment information, that is, in step 104, based on the target segment information associated with the interactive instruction, the playing time of the video is jumped to the start time of the video segment corresponding to the target segment information. Therefore, the progress bar is not required to be manually dragged to the starting position of the video clip by a user to be played by jumping to the starting moment of the video clip, and the positioning playing accuracy and convenience of the video clip can be further improved.
Optionally, based on the embodiment shown in fig. 1, the target segment information includes at least one of the following:
the starting time of the video clip which can be played can be jumped;
skipping the end time of the played video clip;
the identification of the video clip which can be jumped to play;
description information of video clips capable of being played in a skipping mode;
the characteristic image of the played video clip can be jumped.
Preferably, the target segment information may include description information of the skip-playable video segment and/or a feature image of the skip-playable video segment, so that the information of the video segment can be more compactly displayed.
It should be noted that, various optional implementations described in the embodiments of the present invention may be implemented in combination with each other or implemented separately, and the embodiments of the present invention are not limited thereto.
The following is an example to describe the video playing method provided by the embodiment of the present invention in detail.
Application scenarios: the video playing method is executed on the mobile phone.
First, a video starts to be played in a playing interface, and a highlight clip information list ListA is received from a server at the start time of video playing.
The clip information list ListA includes clip information of a plurality of highlight video clips, and each clip information includes the following information: the video clip ID, the video clip start time TB, the video clip end time TE, the video clip description text Title, and the video clip cover picture Image.
Then, the clip information list ListA is sorted in an ascending order by using the end time TE of the video clip as a sorting criterion, so as to increase the search speed of the clip information matched with the playing time.
Then, in the video playing process, the video progress is refreshed every T0 seconds (T0 can be set to 0.5 seconds or 1 second), and the current playing time TN of the video is obtained.
Then, the current playing time is matched with the end time of the video clip. Specifically, all the segment information in the segment information list ListA is traversed, and the segment information meeting the preset condition is searched: the playing time TN-the first preset duration offset < = the ending time TE of the video segment < = the playing time TN + the first preset duration offset.
Wherein the first preset time duration offset is normally set within 3 seconds.
And then, if the searched section information EA meets the preset condition, suspending the searching process, and displaying a replay floating layer in a video playing interface, wherein the replay floating layer comprises description characters Title of the video section in the section information EA and cover picture Image of the video section. And prompts the user to click on the replay float.
Then, the second preset time period for replaying the floating layer display is set to be 5 seconds. And starting to count down while the replay floating layer is displayed, and canceling the display of the replay floating layer if the user clicks the replay floating layer. Meanwhile, the starting time TB of the video clip is obtained from the clip information EA, and a seek method is called to play the video from the starting time TB. And if the user does not click the replay floating layer within the second preset time length, canceling the display of the replay floating layer after the countdown is finished, and then refreshing the video progress to acquire the current playing time TN of the video.
The following describes a video playback device according to an embodiment of the present invention.
Referring to fig. 3, fig. 3 is a structural diagram of a video playing apparatus according to an embodiment of the present invention, where the apparatus is implemented in an electronic device, and can implement details of a video playing method in the foregoing embodiment to achieve the same effect. As shown in fig. 3, the video playback device 300 includes:
a first obtaining module 301, configured to obtain a playing time of a video;
a display module 302, configured to display the target segment information matched with the playing time when it is determined that the playing time meets a preset condition; the target clip information is used for representing the information of the video clip which can be jumped to play;
a first receiving module 303, configured to receive an interaction instruction;
a skip playing module 304, configured to, in response to the interactive instruction, skip a playing time of the video to a target time based on the target segment information associated with the interactive instruction; and the target moment is any playing moment in a playing time range corresponding to the target clip information.
Optionally, referring to fig. 4, fig. 4 is a second structural diagram of the video playing apparatus according to the embodiment of the present invention, as shown in fig. 4, based on the embodiment of the apparatus shown in fig. 3, the video playing apparatus 300 further includes:
a second obtaining module 305, configured to obtain a fragment information list; the clip information list comprises at least one piece of clip information, and each piece of clip information comprises the end time of a video clip;
a first determining module 306, configured to determine a time difference between the playing time and an ending time of a video segment in each of the segment information;
a second determining module 307, configured to determine that the playing time meets a preset condition when the time difference is smaller than or equal to a first preset time length.
Optionally, referring to fig. 5, fig. 5 is a third structural diagram of a video playing apparatus according to an embodiment of the present invention, and as shown in fig. 5, based on the embodiment of the apparatus shown in fig. 3, the video playing apparatus 300 further includes:
a third obtaining module 308, configured to obtain an interaction area of the interaction instruction in the interface;
a judging module 309, configured to judge whether the interaction area coincides with a display area of the target segment information;
the triggering module 310 is configured to trigger the skip playing module 304 if the interaction area coincides with the display area of the target segment information.
Optionally, the displaying module 302 is specifically configured to display the target segment information matched with the playing time within a second preset time period;
referring to fig. 6, fig. 6 is a fourth of the structure diagram of the video playback device according to the embodiment of the present invention, and as shown in fig. 6, based on the embodiment of the device shown in fig. 3, the video playback device 300 further includes:
and a display stopping module 311, configured to stop displaying the target segment information matched with the playing time when the interactive instruction is not received within the second preset time.
Optionally, referring to fig. 7, fig. 7 is a detailed structure diagram of a first obtaining module in the video playing apparatus according to the embodiment of the present invention, as shown in fig. 7, the first obtaining module 301 includes:
a receiving unit 3011, configured to receive a positioning instruction for a progress bar of the video;
a determining unit 3012, configured to determine, in response to the positioning instruction, a playing time associated with the positioning instruction as a playing time of the video.
Optionally, the target time is a start time in a playing time range corresponding to the target segment information.
Optionally, the target segment information includes at least one of:
the starting time of the video clip which can be played can be jumped;
skipping the end time of the played video clip;
the identification of the video clip which can be jumped to play;
description information of video clips capable of being played in a skipping mode;
the characteristic image of the played video clip can be jumped.
The video playing apparatus 300 can implement each process implemented by the electronic device in the video playing method embodiment, and can achieve the same technical effect, and for avoiding repetition, the details are not repeated here.
Referring to fig. 8, fig. 8 is a structural diagram of an electronic device provided in the implementation of the present invention, where the electronic device shown in fig. 8 includes: a processor 801, a memory 802 and a computer program stored on the memory 802 and executable on the processor, the various components of the electronic device being coupled together by a bus interface 803, the computer program when executed by the processor 801 implementing the steps of:
acquiring the playing time of a video;
under the condition that the playing time is determined to meet the preset condition, displaying target fragment information matched with the playing time; the target clip information is used for representing the information of the video clip which can be jumped to play;
receiving an interactive instruction;
responding to the interactive instruction, and jumping the playing time of the video to a target time based on the target segment information associated with the interactive instruction; and the target moment is any playing moment in a playing time range corresponding to the target clip information.
Optionally, the processor 801 is further configured to:
acquiring a fragment information list; the clip information list comprises at least one piece of clip information, and each piece of clip information comprises the ending time of a video clip;
determining the time difference between the playing time and the ending time of the video clip in each clip information;
and under the condition that the time difference is less than or equal to a first preset time length, determining that the playing time meets a preset condition.
Optionally, the processor 801 is further configured to:
acquiring an interaction area of the interaction instruction in an interface;
judging whether the interaction area is overlapped with a display area of the target fragment information or not;
and if so, triggering the step of responding to the interactive instruction and jumping the playing time of the video to the target time based on the target fragment information associated with the interactive instruction.
Optionally, the processor 801 is specifically configured to:
displaying target fragment information matched with the playing time within a second preset time length;
the processor 801 is further configured to:
and under the condition that the interactive instruction is not received within the second preset time, stopping displaying the target fragment information matched with the playing time.
The processor 801 is specifically configured to:
receiving a positioning instruction of a progress bar for the video;
and responding to the positioning instruction, and determining the playing time associated with the positioning instruction as the playing time of the video.
Optionally, the target time is a start time in a playing time range corresponding to the target segment information.
Optionally, the target segment information includes at least one of:
the starting time of the video clip which can be played can be jumped;
skipping the end time of the played video clip;
the mark of the video clip which can be jumped to play;
description information of video clips capable of being played in a skipping mode;
the characteristic image of the played video clip can be jumped.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the computer program implements each process of the video playing method according to any one of the above method embodiments, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the video playing method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A video playing method, executed on an electronic device, includes:
acquiring the playing time of a video;
under the condition that the playing time is determined to meet the preset condition, displaying target fragment information matched with the playing time; the target clip information is used for representing the information of the video clip which can be jumped to play;
receiving an interactive instruction;
responding to the interactive instruction, and jumping the playing time of the video to a target time based on the target segment information associated with the interactive instruction; the target moment is the starting moment of the video clip corresponding to the target clip information;
before displaying the target clip information matched with the playing time under the condition that the playing time is determined to meet the preset condition, the method comprises the following steps:
acquiring a fragment information list; the clip information list comprises at least one piece of clip information, and each piece of clip information comprises the ending time of a video clip;
determining the time difference between the playing time and the ending time of the video clip in each clip information;
determining that the playing time meets a preset condition under the condition that the time difference is less than or equal to a first preset time length;
the responding to the interactive instruction, jumping the playing time of the video to the front of the target time based on the target segment information associated with the interactive instruction, and the method further comprises:
acquiring an interaction area of the interaction instruction in an interface;
judging whether the interaction area is overlapped with a display area of the target fragment information;
and if so, triggering the step of responding to the interactive instruction and jumping the playing time of the video to the target time based on the target fragment information associated with the interactive instruction.
2. The method of claim 1, wherein the presenting the target clip information matching the playing time comprises:
displaying target fragment information matched with the playing time within a second preset time length;
after the target segment information matched with the playing time is displayed within a second preset time, the method further comprises the following steps:
and under the condition that the interactive instruction is not received within the second preset time, stopping displaying the target fragment information matched with the playing time.
3. The method of claim 1, wherein obtaining the playing time of the video comprises:
receiving a positioning instruction of a progress bar for the video;
and responding to the positioning instruction, and determining the playing time associated with the positioning instruction as the playing time of the video.
4. The method according to claim 1, wherein the target time is a starting time in a playing time range corresponding to the target segment information.
5. The method of claim 1, wherein the target segment information comprises at least one of:
the starting time of the video clip which can be played can be jumped;
skipping the end time of the played video clip;
the mark of the video clip which can be jumped to play;
description information of video clips capable of being played in a skipping mode;
the characteristic image of the played video clip can be jumped.
6. A video playing device, implemented in an electronic device, includes:
the first acquisition module is used for acquiring the playing time of the video;
the display module is used for displaying the target fragment information matched with the playing time under the condition that the playing time is determined to accord with the preset condition; the target clip information is used for representing the information of the video clip which can be jumped to play;
the first receiving module is used for receiving the interactive instruction;
the skip playing module is used for responding to the interactive instruction and skipping the playing time of the video to a target time based on the target segment information associated with the interactive instruction; the target moment is the starting moment of the video clip corresponding to the target clip information;
the video playback apparatus further includes:
the second acquisition module is used for acquiring the fragment information list; the clip information list comprises at least one piece of clip information, and each piece of clip information comprises the end time of a video clip;
the first determining module is used for determining the time difference between the playing time and the ending time of the video clip in each piece of clip information;
the second determining module is used for determining that the playing time meets a preset condition under the condition that the time difference is smaller than or equal to a first preset time length;
the video playback apparatus further includes:
the third acquisition module is used for acquiring an interaction area of the interaction instruction in an interface;
the judging module is used for judging whether the interaction area is superposed with the display area of the target fragment information;
and the triggering module is used for triggering the skip playing module if the interaction area is superposed with the display area of the target clip information.
7. An electronic device, comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the video playback method as claimed in any one of claims 1 to 5.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of a video playback method as claimed in any one of claims 1 to 5.
CN201911308506.8A 2019-12-18 2019-12-18 Video playing method and device, electronic equipment and computer readable storage medium Active CN112995764B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911308506.8A CN112995764B (en) 2019-12-18 2019-12-18 Video playing method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911308506.8A CN112995764B (en) 2019-12-18 2019-12-18 Video playing method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112995764A CN112995764A (en) 2021-06-18
CN112995764B true CN112995764B (en) 2023-03-31

Family

ID=76343832

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911308506.8A Active CN112995764B (en) 2019-12-18 2019-12-18 Video playing method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112995764B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113436478A (en) * 2021-06-22 2021-09-24 读书郎教育科技有限公司 System and method for assisting in word-back in combination with textbook content
CN113613082A (en) * 2021-06-30 2021-11-05 北京达佳互联信息技术有限公司 Video playing method and device, electronic equipment and storage medium
CN113468375A (en) * 2021-07-01 2021-10-01 北京百度网讯科技有限公司 Video playing method and device, electronic equipment and medium
CN114780194B (en) * 2022-04-27 2024-04-30 北京达佳互联信息技术有限公司 Activity display method, activity display device, terminal and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110087117A (en) * 2019-04-26 2019-08-02 维沃移动通信有限公司 A kind of video broadcasting method and terminal
CN110446080A (en) * 2019-05-10 2019-11-12 咪咕文化科技有限公司 Video broadcasting method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130311575A1 (en) * 2012-05-16 2013-11-21 United Video Properties, Inc. Systems and methods for receiving multiple user messages that identify a media asset segment position
US9804668B2 (en) * 2012-07-18 2017-10-31 Verimatrix, Inc. Systems and methods for rapid content switching to provide a linear TV experience using streaming content distribution
CN106998486B (en) * 2016-01-22 2020-03-10 北京小熊博望科技有限公司 Video playing method and device
CN108966016B (en) * 2018-08-29 2021-10-26 北京奇艺世纪科技有限公司 Video clip rebroadcasting method and device and terminal equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110087117A (en) * 2019-04-26 2019-08-02 维沃移动通信有限公司 A kind of video broadcasting method and terminal
CN110446080A (en) * 2019-05-10 2019-11-12 咪咕文化科技有限公司 Video broadcasting method and device

Also Published As

Publication number Publication date
CN112995764A (en) 2021-06-18

Similar Documents

Publication Publication Date Title
CN112995764B (en) Video playing method and device, electronic equipment and computer readable storage medium
US9504923B2 (en) System and method for managing game-playing experiences
CN110225369B (en) Video selective playing method, device, equipment and readable storage medium
US8386935B2 (en) Content summary and segment creation
US10860345B2 (en) System for user sentiment tracking
CN109246464A (en) Method for displaying user interface, device, terminal and storage medium
WO2017181598A1 (en) Method and device for playing video
EP3193509B1 (en) Video advertisement filtering method, device and equipment
US9946438B2 (en) Maximum value displayed content feature
CN111131875A (en) Information display method, device and system, electronic equipment and storage medium
JP2018530277A (en) Method, system and apparatus for media content control based on attention detection
CN110740373B (en) Method and related device for buffering audio/video file
CN110545475B (en) Video playing method and device and electronic equipment
CN111698565A (en) Video playing method and device and electronic equipment
CN113099304A (en) Video processing method and device, server and computer readable storage medium
JP6031096B2 (en) Video navigation through object position
CN110302535B (en) Game thread recording method, device, equipment and readable storage medium
CN113852767B (en) Video editing method, device, equipment and medium
CN111343508B (en) Information display control method and device, electronic equipment and storage medium
US20170139933A1 (en) Electronic Device, And Computer-Readable Storage Medium For Quickly Searching Video Segments
US20230054388A1 (en) Method and apparatus for presenting audiovisual work, device, and medium
CN109660875B (en) Bullet screen display time determining method, terminal and computer readable storage medium
CN103853463A (en) Voice controlling method and device
CN109542297B (en) Method and device for providing operation guide information and electronic equipment
CN112019936A (en) Method, device, storage medium and computer equipment for controlling video playing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant