WO2022052653A1 - 视频播放方法、装置、计算机设备和存储介质 - Google Patents

视频播放方法、装置、计算机设备和存储介质 Download PDF

Info

Publication number
WO2022052653A1
WO2022052653A1 PCT/CN2021/108308 CN2021108308W WO2022052653A1 WO 2022052653 A1 WO2022052653 A1 WO 2022052653A1 CN 2021108308 W CN2021108308 W CN 2021108308W WO 2022052653 A1 WO2022052653 A1 WO 2022052653A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
playback
target
interface
clip
Prior art date
Application number
PCT/CN2021/108308
Other languages
English (en)
French (fr)
Inventor
朱孔康
骆大峰
李瑶池
马晓萌
李一阳
张璐
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2022052653A1 publication Critical patent/WO2022052653A1/zh
Priority to US17/963,863 priority Critical patent/US20230045363A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • H04N21/4316Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window
    • 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/47202End-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 requesting content on demand, e.g. video on demand
    • 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
    • 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/482End-user interface for program selection
    • H04N21/4825End-user interface for program selection using a list of items to be played back in a given order, e.g. playlists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Definitions

  • the present application relates to the field of computer technology, and in particular, to a video playback method, apparatus, computer device, and storage medium.
  • a video playback method comprising:
  • the target video is played from the start playback time of the target video.
  • a video playback device includes:
  • a display unit for displaying a video playback interface
  • a playback unit used to play the current video in the video playback interface
  • Switching and playing unit used for if the current video is a video clip in the target video and satisfies the video playing switching condition, in the video playing interface, start playing the target video from the start playing time of the target video video.
  • a computer device comprising a memory, computer-readable instructions stored in the processor, and when the computer-readable instructions are executed by the processor, cause the processor to perform the following steps:
  • the target video is played from the start playback time of the target video.
  • a computer-readable storage medium having computer-readable instructions stored thereon that, when executed by one or more processors, cause the one or more processors to perform the following steps:
  • the target video is played from the start playback time of the target video.
  • a computer program product or computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium; the processor of the computer device reading from the computer-readable storage medium Taking the computer instructions, the processor implements the following steps when executing the computer instructions:
  • the target video is played from the start playback time of the target video.
  • FIG. 1 is a schematic structural diagram of a video playback system provided by an embodiment of the present application.
  • FIG. 2 is an application scenario diagram of the video playback method provided by the embodiment of the present application.
  • FIG. 3 is a flowchart of a video playback method provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of switching and playing a video to which a video clip belongs on a video playing interface provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of switching and playing video clips on a video playing interface provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of switching to a video clip of a next video in a video playback interface provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of implementing video content switching through controls in a video playback interface provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of implementing video content switching through controls in a video playback interface provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of switching a video playback mode in a video playback interface provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of controlling the playback of video clips based on a video playback control list provided by an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a video playback device provided by an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
  • Embodiments of the present application provide a video playback method, apparatus, computer device, and storage medium.
  • This embodiment provides a video playback system, including a terminal, and a server that provides required services (eg, video) for the terminal.
  • required services eg, video
  • the terminal may be a mobile terminal such as a mobile phone, a tablet computer, and a notebook computer, or a fixed terminal such as a smart TV and a desktop computer.
  • the server can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud service, cloud database, cloud computing, cloud function, cloud storage, network service, cloud communication, Cloud servers for basic cloud computing services such as middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms, but not limited to this.
  • the video playback system provided in this embodiment includes a terminal 102, a server 104, and the like; the terminal 102 and the server 104 are connected through a network, for example, through a wired or wireless network connection.
  • the terminal 102 can display a video playback interface, and play the current video on the video playback interface; if the current video is a video clip of the target video, determine the initial playback time of the target video; when the video playback switching conditions are met, display the current video on the video playback interface , the target video is played from the start playback time of the target video.
  • the terminal 102 may send an acquisition request for the target video to the server 104 when the video playback switching condition is satisfied, receive the target video sent by the server 104 in response to the acquisition request, and switch the playback target video through the video playback interface.
  • the server 104 may be configured to acquire the data of the target video after receiving the acquisition request for the target video, and send the data of the target video to the terminal.
  • the video playback method provided by the present application can be applied to the application environment diagram shown in FIG. .
  • the terminal 202 communicates with the server 204 through the network. Specifically, the terminal 202 may send a video acquisition request to the server 204 , and the server 204 acquires a video corresponding to the video acquisition request in response to the video acquisition request, and feeds it back to the terminal 202 . After the terminal 202 receives the video fed back by the server 104, the terminal 202 displays the video playing interface, and plays the received current video in the video playing interface. If the current video is a video clip in the target video and the video playback switching condition is satisfied, the terminal 202 starts playing the target video from the start playback time of the target video in the video playback interface.
  • a video playback method provided in an embodiment of the present application may be executed by a terminal, or may be executed jointly by a terminal and a server.
  • the embodiment of the present application uses the method applied to a terminal as an example for description. As shown in FIG. 3 , the The flow of the video playback method can be as follows:
  • Step S302 displaying a video playing interface.
  • the terminal in this embodiment may be a video client.
  • the video client can be any client that can provide video playback function.
  • the video playing interface refers to the interface displayed on the screen of the video client and used for playing the video.
  • the terminal can display the video playback interface by running the application program deployed in the terminal.
  • the terminal can also access the corresponding video website through the browser deployed in the terminal to display the video playing interface, for example, the video playing page in the video website can be displayed, and the video can be played on the video playing page.
  • Step S304 playing the current video in the video playing interface.
  • the current video may be the video selected by the user in the video playback interface.
  • the video playing interface includes at least one candidate video, and the user can select one video from the at least one candidate video through the corresponding video client and play it on the video playing interface.
  • the video currently selected by the user is the current video.
  • the terminal may first display a video playback interface, and the user may select a video with playback on the video playback interface, so that the terminal plays the selected current video in the video playback interface.
  • Step S306 If the current video is a video clip in the target video and the video playback switching condition is satisfied, in the video playback interface, start playing the target video from the start playback time of the target video.
  • a video refers to including a series of continuous picture images, and a video segment may refer to a part of the video, for example, it may be a continuous picture image.
  • Each video can include multiple video clips.
  • Each video clip can also be a separate video.
  • Plural means at least two.
  • the video playback switching condition may refer to the condition for switching and playing the current video, for example, the video playback switching condition may include the end of the current video playback, or the user performs a video switching operation in the playback interface, etc.
  • the start playing time of the target video may refer to the time when the target video starts playing in the video playing interface.
  • the terminal In the process of playing the current video, if the terminal detects that the current video is a video clip in the target video and satisfies the video playback switching conditions, the terminal starts playing the target video from the starting playback time of the target video in the video playback interface. .
  • the target video in this embodiment can be understood as a complete video.
  • the target video can include multiple video clips.
  • the target video can be a video in a certain video work, and the video work in this embodiment can be any type of work that includes a video, such as a TV series, a movie, an animation, a variety show, etc., for example, the video work is a TV series "Three”. Ten XX", the movie “Transformation XX", the variety show "Let's Run" and so on.
  • a video work can include multiple videos, and the number of videos is determined by the video output of the producer of the video work.
  • the target video and the video segment can be regarded as long video and short video respectively.
  • the video under the video work in this embodiment is generally long video, and the concept of long video is compared with short video.
  • Short video is a short video, which is a method of Internet content dissemination. Generally, it is a video with a duration of less than 5 minutes disseminated on new Internet media.
  • the length of the long video is not limited, it can be 20 minutes, 30 minutes, 40 minutes and so on.
  • the videos under the video work may be divided by the producer of the video work.
  • an episode of a TV drama of a TV drama is one video
  • a video work of a variety show an episode of a variety show is one video.
  • the video of the program is one video.
  • an episode of the documentary is one video.
  • a movie is one video. All movies constitute a video work, and each movie is a video of a video work, for example, each movie in the series "Harry XX" is a video of a video work.
  • each video includes at least one video clip, each video clip is a part of the video, and the durations of different video clips may be the same or different, which is not limited in this embodiment.
  • the number of clips is unlimited.
  • the current video in the process of playing the current video in the video playback interface, if it is detected that the current video is a video clip in the target video and the video playback switching conditions are met, the current video is directly switched to the corresponding target video, And in the video playback interface, the target video is played from the start playback time of the target video, so that the video can be switched and played conveniently, so that the user can easily switch from the current video to get more video content.
  • the target video can effectively save the user operation cost, thereby effectively improving the operation convenience during the video playback process.
  • step S302 of "displaying the video playback interface” may include: displaying a video selection interface of the video client; the video selection interface includes candidate videos; in response to a video playback operation for the target video in the candidate videos, displaying the video Playing interface, and playing the video content of the target video in the video playing interface.
  • "responding to” is used to indicate a condition or state on which the executed operation depends.
  • one or more operations to be executed may be real-time, or may have a set of A certain delay; unless otherwise specified, there is no restriction on the order of execution of multiple operations performed.
  • the video content may be a video segment in a video derived from the target video work, or the video content may be a video derived from the target video work, which is not limited in this embodiment.
  • the terminal plays the first video clip of the first video of the target video work through the video playback interface; or plays the first video of the target video work through the video playback interface; or, determines the user based on the current user's video history playback information
  • the most recently viewed historical video content in the target video work if the historical video content is from a video clip, the video clip is played, and if the historical video content is from a video, the video is played.
  • the current video may be played in a vertical screen.
  • step S306 "if the current video is a video clip in the target video and the video playback switching conditions are met, in the video playback interface, the target video is played from the initial playback time of the target video", you can Including: if the current video is a video clip in the target video, determining the initial playback time of the target video; when the video playback switching condition is satisfied, in the video playback interface, the target video is played from the initial playback time.
  • the start playing time of the target video is the time point when the target video starts playing this time in the playing time period of the target video.
  • the playback time period of the target video represents the time period from the start time point of the target video at 00:00 to the end time point of the target video, such as 45:20.
  • the start playing time of the target video may be fixed.
  • the step of "if the current video is a video clip in the target video, determine the start playing time of the target video” may include: if the current video is a video clip in the target video, determining that the current video is in the target video The playback end time point in the target video is determined as the start playback time of the target video at the playback end time point of the current video in the target video.
  • the step "when the video playback switching conditions are met, in the video playback interface, start playing the target video from the starting playback time” may include: when the video playback switching conditions are met, in the video playback interface, start playing from the starting playback time. target video.
  • the terminal can determine The time point 20:01 in the target video is the current playback start time point of the target video, or it is determined that the time point 21:40 in the target video is the current playback start time point of the target video.
  • the start playing time of the target video may be determined according to the playing progress of the current video.
  • the actual playback time point of the current video may refer to the playback time point of the current video when the video playback switching condition is satisfied.
  • the time point corresponding to the actual playback time point of the current video in the target video may refer to the video content corresponding to the actual playback time point of the current video, which is the same as the video content at the corresponding time point in the target video.
  • the start time point of the target video is 00:00
  • the end time point is 45:20
  • the duration of the current video is 1 minute and 39 seconds
  • the playback start time point in the target video is 20:01
  • the playback end time point is 20:01.
  • the point is 21:40.
  • the current video is played to the 20th second, and the terminal uses time conversion.
  • the actual playback time point of the current video corresponds to 20:21 in the target video, then you can It is determined that the time point 20:21 in the target video is the start time point of the current playback of the target video.
  • step S306 "if the current video is a video clip in the target video and the video playback switching conditions are met, in the video playback interface, the target video is played from the initial playback time of the target video", you can Including: if the current video is a video clip in the target video and meets the video playback switching conditions, displaying the video switching control corresponding to the target video in the video playback interface; in response to the video switching control for the video playback interface, the complete video playback operation , in the video playback interface, start playing the target video from the start playing time of the target video.
  • the video playing interface includes a video switching control.
  • the video switching control may refer to a control used to instruct the terminal to perform a playback operation of a complete video, or may be a control to instruct the terminal to perform a switching operation on the current video.
  • the terminal in response to a complete video playback operation corresponding to the target video, the terminal may, in the video playback interface, start playing the target video from the start playback time of the target video.
  • the target video is played from the start playback time of the target video.
  • the video playing interface 41 in FIG. 4 includes a video display area 41a, a video switch control 41b and a video list display control 41c.
  • the video playback interface 41 plays the target video in a vertical screen playback mode.
  • the video playing interface 41 includes identification information of the video work, such as the name of the video work.
  • the video playing interface 41 is playing the first video clip of the first episode of the TV series A, and the video playing interface 41 displays the location information of the video to which the first video clip belongs in the video work, that is, "the first episode” , and the story development sequence information of the first video clip in the video, such as "01", and the plot description information of the first video clip, such as "XX is treated equally, and the three views are very positive.” And the content of the played video clip is displayed in the video display area 41a.
  • the terminal switches to play the first episode of the TV series A on the video playing interface, and it is assumed that the last second of the first video clip of the first episode of the TV series A If the first episode is 20 minutes and 19 seconds, as shown in the video playback interface 43, when switching to play the first episode of TV series A on the video playback interface, the video starts to be played from the 20th minute and 20 seconds of the first episode.
  • the video playback interface 41 displays a video switching control 41a, such as a control named "full version", when the terminal detects a trigger operation for the "full version” control, it determines that the video playback switching is satisfied condition, the terminal starts playing the target video in the video playing interface from the start playing time of the target video.
  • a video switching control 41a such as a control named "full version”
  • the terminal before playing the video, can also inform the user that the video is about to be played by means of prompt information, so as to avoid the user not knowing that the video is switched and played.
  • the step "if the current video playback ends, in the video playback interface, start playing the target video from the initial playback time of the target video" may include: if the current video playback ends, displaying through the video playback interface Preset video playback prompt information, the preset video playback prompt information is used to prompt that the target video to which the current video belongs is about to be played; when the display duration of the preset video playback prompt information reaches the preset display duration threshold, in the video playback interface, from Start playing the target video at the start time of the target video.
  • the preset video playback prompt information may be displayed in the form of a pop-up frame, a sub-interface, etc., which is not limited in this embodiment.
  • the preset display duration threshold can be set by the server, for example, it is set to 3 seconds.
  • a preview is displayed in the video display area.
  • the video playback prompt information is "about to enter the feature film”
  • the display duration of the preset video playback prompt information reaches 3 seconds, as shown in the video playback interface 43, the first episode of the TV series A is switched and played in the video playback interface.
  • a related video of the video may also be played. This embodiment does not limit this.
  • the above video playback method may further include: when a video playback switching condition is satisfied, switching the association of playing the target video in the video playback interface A video segment of a video; where the associated video is associated with the target video.
  • the associated video of the target video is associated with the target video in attribute, for example, it may be the work of the same producer, or belong to the same video work, for example, different episodes of the same TV series.
  • the video clips of the associated video after the plot of the target video can be switched.
  • the target video is the video of the first episode of the video work
  • the video playback switching conditions for example, the playback of the target video ends
  • the video segment of the second video of the video work (such as the first video clip).
  • the above-mentioned video playback method further includes: in response to a video list display operation in the video playback interface, displaying a video list corresponding to the target video; In response to the playback operation on the target video clip, the target video clip is switched and played through the video playback interface.
  • the video list includes at least one video clip of the target video and the associated video of the target video, wherein the at least one video clip is arranged in the order of the development of the plot in the video to which it belongs.
  • the video list refers to a list including multiple videos. For example, it may be a list including multiple video files or a list including link addresses of multiple videos.
  • the video list display operation in this embodiment is an operation for displaying a video list.
  • the video list display operation may be a touch operation, a gesture operation, or an operation triggered by a control, which is not limited in this embodiment.
  • the sequence of plot development in this embodiment can also be understood as the sequence of positions of the video clips in the video, the sequence of time, and the like.
  • the video clips in the same video may be video clips that do not overlap in time.
  • the video list can be displayed by means of a floating layer, a pop-up frame, a sub-page, or a new page.
  • the step of "displaying the video list corresponding to the target video in response to the video list display operation for the video playback interface" may include: in response to the preset sliding operation for the video playback interface, in the video playback interface Show episode selection overlay.
  • the preset sliding operation is a predefined specific sliding operation, and the sliding direction and sliding starting point of the preset sliding operation are also predefined.
  • the sliding direction is from right to left, and the distance from the sliding starting point to the right border of the terminal display screen is within the preset distance threshold.
  • the display mode of the episode selection floating layer is not limited, and may be displayed by being pulled out from a certain fixed position on the display screen, or by being directly popped up.
  • the fixed position may be an interface boundary near the sliding start point on the video playback interface.
  • the episode selection floating layer in response to a preset sliding operation on the video playback interface, may be pulled out from an interface boundary on the video playback interface that is perpendicular to the sliding direction of the preset sliding operation.
  • the video playback interface 41 in FIG. 5 includes a video display area 41a, a video switching control 41b and a video list display control 41c, and the video playback interface in FIG. 5 plays the target video in a vertical screen playback mode.
  • the video playing interface 41 includes identification information of the video work, such as the name of the video work.
  • the video playback interface 41 is playing the first video clip of the first episode of the TV series A, and the video playback interface 41 displays the location information of the video to which the first video clip belongs in the video work, that is, "the first episode” , and the story development sequence information of the first video clip in the video, such as "01”, and the plot description information of the first video clip, such as "XX is treated equally, and the three views are very positive.”
  • the terminal when the terminal detects a right-to-left sliding operation triggered by the user from a place close to the right border of the interface, the terminal pulls out the episode selection floating layer 51a from the right border of the video playback interface 41, and the video playback interface 41 becomes the video playback interface 51 .
  • a video list of TV series A is displayed on the episode selection floating layer 51a, and the list includes video clips from the first to last episodes of TV series A, because the display area of the episode selection floating layer is limited.
  • the content of the list displayed on the episode selection overlay is the video clips under the video to which the video clip being played belongs and nearby video clips.
  • the list in the middle shows the video clips under the first episode.
  • the user can slide down on the floating layer of the episode selection to display the video clips in the videos after the first episode.
  • the episode selection floating layer if the user clicks on a certain video clip, a certain video clip will be played.
  • the video clip "03: The women's pants in the XX store are missing, and the clerk needs to spread it out", then as shown in the video playing interface 52, the video playing interface switches to play the third video clip of the first episode.
  • episode selection floating layer in this embodiment may be replaced by an episode selection popup box, an episode selection sub-page, and the like.
  • a specific control may also be set to control the display of the video list.
  • the video playback interface includes a video list display control
  • the step of "displaying a video list corresponding to the target video in response to a video list display operation for the video playback interface" may include: in response to a video list display control for the video list display control. Trigger the operation to display the episode selection overlay on the video playback interface.
  • the video list display control refers to the control used to display the video list. Specifically, after the terminal detects that the user operates the video list display control, the terminal displays the video list corresponding to the target video.
  • a video list display control 41c is displayed in the video playback interface 41, such as a control named "Aspect", and a video work such as TV series A is also displayed in the display area of the video list display control 41c.
  • the total number of video clips is eg 187 (ref. 201).
  • FIG. 51 shows the episode selection overlay 51a.
  • a triggering operation for the "Aspect" control in the video playback interface 41 such as a touch operation such as clicking, double-clicking, etc.
  • FIG. 51 shows the episode selection overlay 51a.
  • a video list of the TV series A is displayed on the episode selection floating layer 51a, wherein the episode selection floating layer displays a video list corresponding to the target video.
  • the description in the preceding example for the specific display scheme of the floating layer of the episode selection, which will not be repeated here.
  • the above-mentioned video list in response to the playback operation for the target video clip, before switching the playback target video clip through the video playback interface, the above-mentioned video list will be hidden.
  • the video to which the target video clip belongs is not played. You can also play the next video clip of the target video clip in the video list.
  • the video clips of each video are regarded as a whole in the video list, and the video clips of different videos in the list are arranged in the order of the development of the video. For example, for a TV series, the first episode to the last episode For variety shows, they are arranged in the order of broadcast time.
  • the first episode of TV series A is being played in the video playback interface 41 shown in FIG. 6 .
  • the first episode is played, as shown in the video playback interface 61 in FIG. 6 , in the video playback interface 61 Switch to play the first video clip of the second episode of video.
  • the user may also set whether to play the video or play the next video clip after the current video clip is played.
  • the step further includes: if the playback of the current video ends, displaying a playback mode selection control on the video playback interface, the playback mode
  • the selection control includes a video clip continuous playback sub-control and a video playback sub-control; when a selection operation for the video playback sub-control is detected, in the video playback interface, the target video is played from the start playback time of the target video.
  • the method further includes: when a selection operation for the sub-control for continuous playback of the video clip is detected, playing the video clip of the target video and the associated video of the target video through the video playback interface, which is located in the video clip.
  • the video clip after the current video.
  • the video clips located after the current video are video clips arranged after the current video according to the sequence of plot development.
  • the play mode selection control may further include a maintain play mode sub-control.
  • the terminal detects the selection operation of the sub-control for continuously playing the video clip, if the sub-control of the playing mode is maintained in the selected state, the first play rule is also added to the play rule of the video client.
  • the first playing rule includes: when a video clip of a video ends, automatically switching to play the next video clip on the video playing interface.
  • a second playback rule is also added to the playback rules of the video client.
  • the second playing rule includes: when a video clip of a certain video of the video work ends, automatically switching and playing the video to which the video clip belongs on the video playing interface.
  • the first video segment of the first episode of TV drama A is being played.
  • the playback of the segment ends, for example, in the video playback interface 41, in the video display area, there are displayed sub-controls for continuous playback of video segments, such as a control named "after a point of view, continue to the next point of view", and a sub-control for video playback such as For example, the control named "After watching the point, enter the feature film” and the sub-control for maintaining the playback mode, such as the control of "The follow-up playback of the point of view according to the selection, no more reminders" is displayed.
  • the maintain playback mode sub-control in the box before the message "Follow the selection to play the highlights, no more reminders", the selected prompt information such as a tick pattern will be displayed.
  • the sub-control for continuous playback of the video clips as shown in the video playback interface 72, the second video clip of the first episode of the TV series A is switched and played in the video playback interface 72, and will also be played on the video client.
  • the above-mentioned first play rule is added to the rule, so that when the user uses the video client subsequently, the video is played based on the first play rule.
  • FIG. 8 if in the video playback interface 72 in FIG. 7, after the user clicks on the maintain playback mode sub-control, triggering operations such as clicking, double-clicking and other touch operations for the video playback sub-control are initiated, then the video playback in FIG. 8 is shown. As shown in the interface 81, the video of the first episode of the TV series A will be switched and played through the video playback interface 81, and the playback will start from the video content connected to the first video clip of the first episode.
  • the terminal in this embodiment further provides a play mode switching function, and the user can switch the horizontal screen and vertical screen play modes.
  • the above video playback method may further include: in response to a display operation of a playback control control for the video playback interface, displaying a playback control control on the video playback interface, wherein the playback control control includes a playback mode switching control; If the current playback mode of the video playback interface is the vertical screen playback mode, the playback mode of the video playback interface is switched to the horizontal screen playback mode in response to the trigger operation for the playback mode switching control; if the current playback mode of the video playback interface is the horizontal screen Play mode, in response to a trigger operation of the play mode switch control, switch the play mode of the video play interface to the vertical screen play mode.
  • the playback control control in this embodiment may include a plurality of sub-controls 91a0 with possible video playback functions, such as the playback mode switching control described above, that is, the icon in the video playback interface 91 of FIG. 9 . the indicated control.
  • the icons of the playback mode switching controls may be different in the horizontal and vertical screen playback modes.
  • the video playback interface 92 is entered, and the first video clip of the first episode of the TV series A is played in a full-screen playback mode.
  • the video list corresponding to the target video can be displayed through the video list display operation.
  • the play is pulled out from the right border of the video playback interface 92.
  • the episode selection floating layer is displayed, the video playback interface 93 is displayed, and the episode selection floating layer 93 a is displayed in the video playback interface 93 .
  • the step of "displaying the video list corresponding to the target video in response to the video list display operation for the video playback interface" includes: in response to the video list display operation for the video playback interface, sending the list data to the server to obtain The request, the list data acquisition request includes the video identifier of the target video; the video list data sent by the server in response to the list data acquisition request, the video list data includes the target video and the target video and the associated video of the target video.
  • Description information and plot development of at least one video segment sequence information the video list data is generated by the server based on the attribute information of the candidate video clip, the attribute information includes the video to which the candidate video clip belongs and the position information in the video; the video list corresponding to the target video is displayed based on the video list data.
  • the server may obtain candidate video clips of each video of the video work, the candidate video clips carry attribute information, and the attribute information may include the video to which the candidate video clip belongs, the video work and the position in the video to which it belongs, and The description information of the candidate video segment, such as plot description information, etc.
  • the position of the candidate video segment in the video may be represented by the time start and time end of the candidate video segment in the video, such as the position of the video segment from 26:14 to 27:15 of the first episode of TV series A.
  • the plot development sequence information in this embodiment may be used to determine the sequence of video segments of the video.
  • the plot development sequence information may be the position sequence of the video clips in the video.
  • a certain number such as 5) of candidate video clips may be selected from the candidate video clips based on the position of the candidate video clips in the video, or the total duration does not exceed the predetermined number of video clips.
  • Video clips with a total duration threshold eg, 5 minutes are set, and then based on the video clips corresponding to each video, video list data is generated, and the description information in the video list data can be obtained from attribute information.
  • a video playback control list can be used to control the problem that the terminal repeatedly plays video clips.
  • the video playback control list can also be generated based on the above-mentioned video list data.
  • the relevant information of the candidate video clips of the two lists is generated from the same network interface, and the same data management center is used to process the above-mentioned videos.
  • List data is distributed to two list generation modules (of the server) to generate a video play control list and a video list respectively.
  • the video play control list in this embodiment also includes at least one video segment of the target video and the associated video of the target video, and the video play control list may be requested by the terminal from the server.
  • a play identifier field is set for each video clip, and the field can be used to set the play state of the video clip. If the field is set with a played flag, such as a value of 1, it indicates that the video clip has been played; if the field is set with a non-played flag, such as a value of 0, it indicates that the video clip has not been played.
  • the above video playback method further includes: when the video playback interface needs to switch to play a new video clip, acquiring a video playback control list of the video playback interface; determining the video clip to be played and the video currently played on the video playback interface The sequence relationship of the content in the development sequence of the plot; based on the sequence relationship and the video playback control list, select the video segment to be played from the video segments that have never been set to play; In the video playback control list, a played flag is set for the video clip to be played.
  • the video playback control list includes at least one video clip of the target video and the associated video of the target video, the at least one video clip is arranged in the order of the development of the story of the video to which it belongs, and the video playback control list is set for the played video clips There is a played mark.
  • the video playback interface needs to switch to play a new video clip, which can be triggered automatically by the terminal or triggered by the user.
  • the terminal determines that the video playback interface needs to switch to play a new video segment; or, if the playback rules of the video client include the first playback rule, when the video playback interface plays the video
  • the clip playback is completed, it is determined that the video playback interface needs to switch to play a new video clip; or, when a slide-to-switch video clip operation for the video playback interface (such as a slide-up operation or a slide-down operation) is detected, it is determined that the video playback interface needs to switch to play a new video clip. video clips.
  • the terminal acquires the video playback control list of the video playback interface in response to the operation of sliding switching video clips on the video playback interface, the terminal can determine the video clip and video to be played based on the video switching direction of the sliding switching video clip operation.
  • the terminal determines that the video clip to be played is the video clip before the video content currently being played on the video playback interface, and can be based on the video playback control list, and can be based on the video clip that has not been set to play the flag. , and select the video clip before the currently playing video content as the to-be-played video clip.
  • the terminal determines that the video clips to be played are the video clips after the video content currently being played on the video playback interface. Based on the video playback control list, from the video clips with the unplayed flag set, the video clip after the currently playing video content can be selected as the to-be-played video clip.
  • the dynamic change of the video playback control list may be in seconds, that is, the playback ID field in the video playback control list is updated once every second.
  • the terminal can set a played identifier for the video clip; if the video playback interface plays the video, it can be based on the played time period of the video and the position of the video clip under the video. , determine the played video clip in the video, and set the played flag for the played video clip in the video play control list.
  • the left side of FIG. 10 is the video playback control list 10a, and the video playback control list 10a includes video clips of each episode of the TV series A.
  • the right side is the currently playing video in the video playback interface 10b of the video client.
  • the video content which originates from the video of the first episode of TV series A, is currently played to the 37th minute and 20th second of the first episode, and the first two video clips of the first episode of TV series A "Episode 1 01:XX Equal treatment, three views are very positive" and "Episode 1 02:
  • the harmony in a family has a lot to do with the male owner" belong to the content before the 37th minute and 20th second, so these two video clips in the video playback control list (dotted line box in Fig. 3)
  • the played flag is set.
  • the played identifier can also be removed, so as to avoid that the video clip desired by the user cannot be switched during the upward sliding operation or the downward sliding operation.
  • the step of "switching and playing the video clip to be played on the video playback interface” it may further include: if the video clip to be played does not belong to the same video as the previous video content played on the video playback interface, in the video playback control The played identifier of the video clip of the video to which the previous video content belongs is removed from the list.
  • the terminal switches and plays the second episode through the video playback interface.
  • the played identifier of the video clip in the first episode is removed.
  • the terminal changes the ID value in the playback ID field of the video clip of the first episode from 1 to 0. Therefore, when the user triggers the sliding operation on the video playing interface again, the fourth video clip of the first episode can be switched and displayed on the video playing interface.
  • a video preloading scheme is also adopted, which can load video content adjacent to the video content in advance when the video content is played on the video playback interface.
  • the step "in response to the playback operation for the target video clip, switch the playback target video clip through the video playback interface" it may further include: determining a preset number adjacent to the target video clip in the sequence of plot development The video clip to be loaded is the video clip to be loaded; it is determined that the video to which the target video clip belongs is the video to be loaded; the video clip to be loaded and the video to be loaded are pre-downloaded, wherein the pre-downloaded video clip to be loaded and the video to be loaded are used for video playback interface for video playback.
  • the above preset number can be set according to actual needs, for example, it is set to 2, and the video clips adjacent to the target video clip can be the video clips located before and/or after the target video clip in the sequence of plot development.
  • the viewing habit is from front to back, and the video clips adjacent to the target video clip may be a preset number (eg, 2) of video clips located after the target video clip in the sequence of plot development.
  • the terminal After the terminal determines the to-be-loaded video clip and the to-be-loaded video, it may base on any one of the two lists in this embodiment.
  • the terminal obtains the video clip to be loaded and the identification information of the video to be loaded, such as a download link, etc., and then downloads the identification information of the video clip to be loaded and the video to be loaded from the server based on the identification information.
  • the terminal when downloading the video to be loaded, the terminal may start downloading from the video content connected to the target video segment.
  • the video playback interface is based on the pre-downloaded video clip to be loaded or the video to be loaded. Switch and play the video to be loaded.
  • the current video can be played through the video playback interface of the terminal; if the current video is a video clip of the target video, the initial playback time of the target video is determined; when the video playback switching condition is satisfied, the video playback interface is , the target video is played from the start playback time of the target video.
  • the video can be switched and played conveniently, which effectively improves the operation convenience during the video playing process.
  • Users watch by jumping from a short video to a long video to which the short video belongs in the video client, which helps guide users to consume from short video clips to long videos, and increases user stickiness and usage of the video client. duration.
  • the switching speed of the video playback interface can be improved, bringing users a visual experience of seamless replacement, and the setting of the video playback control list can help the user to skip the video clips that have been watched, which is beneficial to the user. Solve the problem of repeated viewing and bring users a better video viewing experience.
  • the present application also provides an application scenario, where the above-mentioned video playback method is applied to perform playback processing on various video contents.
  • the user can acquire the video content through the corresponding terminal, and play the corresponding video in the video playing interface of the terminal.
  • applications capable of playing videos such as video applications, instant messaging applications, video sharing programs, etc.
  • video playback may also be performed through subprograms in the parent application.
  • the parent application may be The instant messaging application, the subprogram in the parent application, can be a video sharing subprogram in the instant messaging application.
  • the terminal can display the video playback interface by running the application program deployed in the terminal.
  • the terminal can also access a corresponding video website through a browser deployed in the terminal to display a video playing interface.
  • the user can display a video playing interface through a corresponding terminal, and the user can select a video with playback on the video playing interface, so that the terminal plays the selected current video on the video playing interface.
  • the terminal detects that the current video is a video clip in the target video and satisfies the video playback switching conditions, the terminal starts playing the target video from the starting playback time of the target video in the video playback interface. .
  • a video switching control corresponding to the target video is displayed on the video playback interface, and the video switching control is used to instruct to play the target video.
  • the user can trigger a click operation on the video switching control, so that the terminal switches the current video to the target video, and starts playing the target video from the start playing time of the target video in the video playback interface. In this way, the video can be switched and played conveniently, which effectively improves the operation convenience during the video playing process, and effectively saves the user operation cost.
  • an embodiment of the present application further provides a video playback apparatus 1100 .
  • the video playback device includes: a display unit 1101 , a playback unit 1102 and a switch playback unit 1103 .
  • the display unit 11401 is used to display the video playback interface.
  • the playing unit 1102 is configured to play the current video in the video playing interface.
  • the switching and playing unit 1103 is configured to start playing the target video from the start playing time of the target video in the video playing interface if the current video is a video clip of the target video and the video playing switching condition is satisfied.
  • the above-mentioned video playback device further includes a determination unit for determining the start playback time of the target video if the current video is a video clip in the target video; when the video playback switching condition is satisfied, the video playback In the playback interface, the target video is played from the start playback time.
  • the determining unit is further configured to, if the current video is a video clip in the target video, determine the playback start time point of the current video in the target video, and determine the playback start time of the current video in the target video The time point is the start playback time of the target video; if the video playback switching conditions are met, when the current video playback ends, the target video will be played from the start playback time of the target video in the video playback interface.
  • the determining unit is further configured to, if the current video is a video clip in the target video and satisfy the video playback switching condition, determine the actual playback time point of the current video at the corresponding time point in the target video, to determine is the start playing time of the target video.
  • the switching playback unit is further configured to display a video switching control corresponding to the target video in the video playback interface if the current video is a video clip in the target video and satisfies the video playback switching condition; in response to For the trigger operation of the video switching control, in the video playback interface, the target video is played from the start playback time of the target video.
  • the above-mentioned video playback device further includes a video switching unit, configured to switch and play the video clip of the associated video of the target video in the video playback interface when the video playback switching condition is satisfied, wherein the associated video and the target video are Video association.
  • a video switching unit configured to switch and play the video clip of the associated video of the target video in the video playback interface when the video playback switching condition is satisfied, wherein the associated video and the target video are Video association.
  • the above video playback device further includes a list switching video unit, configured to display a video list corresponding to the target video in response to a video list display operation in the video playback interface; wherein the video list includes the target video and At least one video clip of the associated video of the target video; wherein, at least one video clip is arranged according to the sequence of plot development in the video to which it belongs; in response to the playback operation for the target video clip in the video list, the target video is switched and played through the video playback interface Fragment.
  • a list switching video unit configured to display a video list corresponding to the target video in response to a video list display operation in the video playback interface
  • the video list includes the target video and At least one video clip of the associated video of the target video
  • at least one video clip is arranged according to the sequence of plot development in the video to which it belongs
  • the list switching video unit is further configured to display an episode selection floating layer in the video playing interface in response to a preset sliding operation on the video playing interface; wherein, the episode selection floating layer is displayed with The video list of the target video.
  • the video playback interface includes a video list display control; the list switches the video unit, and is further configured to display an episode selection floating layer in the video playback interface in response to a trigger operation for the video list display control; wherein, The video list corresponding to the target video is displayed on the episode selection floating layer.
  • the list switching video unit is configured to send a list data acquisition request to the server in response to a video list display operation on the video playback interface, where the list data acquisition request includes the video identifier of the target video; the receiving server responds to The list data obtains the video list data sent by the request, the video list data includes the description information and the plot development sequence information of at least one video clip in the target video and the associated video of the target video, and the video list data is generated by the server based on the attribute information of the candidate video clips, The attribute information includes the video to which the candidate video segment belongs and the position information in the video; the video list corresponding to the target video is displayed based on the video list data.
  • switching the playback unit is also used to display a playback mode selection control on the video playback interface when the current video playback ends, and the playback mode selection control includes a video clip continuous playback sub-control and a video playback sub-control; when detecting When the selection operation of the sub-control for continuous playback of the video clip is reached, the video clip of the target video and the associated video of the target video is played through the video playback interface, and the video clip located after the target video; when the selection operation for the video playback sub-control is detected , in the video playback interface, start playing the target video from the start playing time of the target video.
  • switching the playback unit is further configured to display preset video playback prompt information through the video playback interface if the current video playback ends, and the preset video playback prompt information is used to prompt that the target video to which the current video belongs is about to be played. ;
  • the display duration of the preset video playback prompt information reaches the preset display duration threshold, in the video playback interface, the target video is played from the start playback time of the target video.
  • the above video playback device further includes a playback mode control unit for displaying playback control controls on the video playback interface in response to a playback control display operation for the video playback interface; wherein the playback control controls include playback Mode switching control; if the current playback mode of the video playback interface is the vertical screen playback mode, in response to the trigger operation for the playback mode switching control, the playback mode of the video playback interface is switched to the horizontal screen playback mode; if the current playback mode of the video playback interface The mode is the horizontal screen playback mode, and in response to the trigger operation of the playback mode switching control, the playback mode of the video playback interface is switched to the vertical screen playback mode.
  • the playback control controls include playback Mode switching control; if the current playback mode of the video playback interface is the vertical screen playback mode, in response to the trigger operation for the playback mode switching control, the playback mode of the video playback interface is switched to the horizontal screen playback mode;
  • the video playback device further includes a playback control list unit, configured to acquire a video playback control list of the video playback interface in response to a slide switching operation of the video segment on the video playback interface, where the video playback control list includes the target video At least one video clip of the associated video with the target video, the at least one video clip is arranged in the order of the development of the plot in the video to which it belongs, and the video playback control list is provided with a played mark for the played video clip; based on the sliding switching video clip operation The video switching direction, determine the sequence relationship between the video clip to be played and the video content currently playing on the video playback interface in the development sequence of the plot; The video clip to be played; switch to play the video clip to be played on the video playback interface, and set a played flag for the video clip to be played in the video play control list.
  • a playback control list unit configured to acquire a video playback control list of the video playback interface in response to a slide switching operation of the video segment on the video playback interface, where
  • the video playback device further includes a playback identifier removal unit, configured to switch the playback of the video clip to be played on the video playback interface, if the video clip to be played does not belong to the previous video content played on the video playback interface For the same video, remove the played identifier of the video clip of the video to which the previous video content belongs in the video playback control list.
  • a playback identifier removal unit configured to switch the playback of the video clip to be played on the video playback interface, if the video clip to be played does not belong to the previous video content played on the video playback interface For the same video, remove the played identifier of the video clip of the video to which the previous video content belongs in the video playback control list.
  • the video playback device further includes a preloading unit, configured to determine the target video and the target video segment after switching the playback target video segment through the video playback interface in response to the playback operation for the target video segment in the list switching video unit.
  • a preloading unit configured to determine the target video and the target video segment after switching the playback target video segment through the video playback interface in response to the playback operation for the target video segment in the list switching video unit.
  • the preset number of video clips adjacent to the target video clip in the sequence of plot development are the video clips to be loaded; the video to which the target video clip belongs is determined to be the video to be loaded; the video clip to be loaded and the video clip to be loaded are determined.
  • the video is loaded for pre-downloading, wherein the pre-downloaded video clips to be loaded and the video to be loaded are used for video playback on the video playback interface.
  • a video playback interface can be displayed through the video client, and the current video is played in the video playback interface; when the current video is a video clip of the target video, the initial playback time of the target video is determined; when When the video playback switching conditions are met, in the video playback interface, the target video is played from the start playback time of the target video. Therefore, users can watch by jumping from a short video to a long video to which the short video belongs in the video client, which is beneficial to guide the user to consume from a short video clip to a long video, and increase the number of users of the video client. Stickiness and duration of use.
  • a computer device is provided, and the computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 12 .
  • the computer equipment includes a processor, memory, a communication interface, a display screen, and an input device connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium, an internal memory.
  • the nonvolatile storage medium stores an operating system and a computer program.
  • the internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium.
  • the communication interface of the computer device is used for wired or wireless communication with an external terminal, and the wireless communication can be realized by WIFI, operator network, NFC (Near Field Communication) or other technologies.
  • the computer program implements a video playback method when executed by the processor.
  • the display screen of the computer equipment may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment may be a touch layer covered on the display screen, or a button, a trackball or a touchpad set on the shell of the computer equipment , or an external keyboard, trackpad, or mouse.
  • FIG. 12 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
  • a computer device including a memory and a processor, where a computer program is stored in the memory, and the processor implements the steps in the foregoing method embodiments when the processor executes the computer program.
  • a computer-readable storage medium which stores a computer program, and when the computer program is executed by a processor, implements the steps in the foregoing method embodiments.
  • a computer program product or computer program comprising computer instructions stored in a computer readable storage medium.
  • the processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the steps in the foregoing method embodiments.
  • the storage medium may include: a read-only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

一种视频播放方法,包括: 显示视频播放界面,并在视频播放界面中播放当前视频; 若当前视频为目标视频中的视频片段、且满足视频播放切换条件时,则在视频播放界面中,从目标视频的起始播放时间开始播放目标视频。

Description

视频播放方法、装置、计算机设备和存储介质
本申请要求于2020年09月11日提交中国专利局,申请号为2020109563623,申请名称为“一种视频播放方法、装置、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,具体涉及一种视频播放方法、装置、计算机设备和存储介质。
背景技术
目前,很多视频客户端为用户提供了短视频服务,可以从服务器中获取短视频为用户进行播放。但是这种视频播放方案中,用户只能一直观看短视频。若用户观看短视频片段后,还想进一步观看与短视频片段对应的完整视频,则需要用户重新去搜索查找相关的完整视频,然后再进行播放。这种视频播放方案的操作较为繁琐。
发明内容
一种视频播放方法,所述方法包括:
显示视频播放界面;
在所述视频播放界面中播放当前视频;及
若所述当前视频为目标视频中的视频片段、且满足视频播放切换条件时,在所述视频播放界面中,从所述目标视频的起始播放时间开始播放所述目标视频。
一种视频播放装置,所述装置包括:
显示单元,用于显示视频播放界面;
播放单元,用于在视频播放界面中播放当前视频;
切换播放单元,用于若所述当前视频为目标视频中的视频片段、且满足视频播放切换条件时,在所述视频播放界面中,从所述目标视频的起始播放时间开始播放所述目标视频。
一种计算机设备,所述计算机设备包括存储器,所述处理器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行以下步骤:
显示视频播放界面;
在所述视频播放界面中播放当前视频;及
若所述当前视频为目标视频中的视频片段、且满足视频播放切换条件时,在所述视频播放界面中,从所述目标视频的起始播放时间开始播放所述目标视频。
一种计算机可读存储介质,其上存储有计算机可读指令,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
显示视频播放界面;
在所述视频播放界面中播放当前视频;及
若所述当前视频为目标视频中的视频片段、且满足视频播放切换条件时,在所述视频播放界面中,从所述目标视频的起始播放时间开始播放所述目标视频。
一种计算机程序产品或计算机程序,所述计算机程序产品或计算机程序包括计算机指令,所述计算机指令存储在计算机可读存储介质中;所述计算机设备的处理器从所述计算机可读存储介质读取所述计算机指令,所述处理器执行所述计算机指令时实现以下步骤:
显示视频播放界面;
在所述视频播放界面中播放当前视频;及
若所述当前视频为目标视频中的视频片段、且满足视频播放切换条件时,在所述视频播放界面中,从所述目标视频的起始播放时间开始播放所述目标视频。
本申请中的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其他特征、目的和优点将从说明书、附图以及权利要求书中变得明显。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的视频播放系统的结构示意图。
图2是本申请实施例提供的视频播放方法的应用场景图。
图3是本申请实施例提供的视频播放方法的流程图。
图4是本申请实施例提供的在视频播放界面,切换播放视频片段所属的视频的示意图。
图5是本申请实施例提供的在视频播放界面,切换播放视频片段的示意图。
图6是本申请实施例提供的在视频播放界面中,切换到下一个视频的视频片段的示意图。
图7是本申请实施例提供的在视频播放界面中,通过控件实现视频内容切换的示意图。
图8是本申请实施例提供的在视频播放界面中,通过控件实现视频内容切换的示意图。
图9是本申请实施例提供的在视频播放界面中,切换视频播放模式的示意图。
图10是本申请实施例提供的基于视频播放控制列表控制视频片段播放的示意图。
图11是本申请实施例提供的视频播放装置的结构示意图。
图12是本申请实施例提供的计算机设备的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请实施例提供一种视频播放方法、装置、计算机设备和存储介质。
本实施例提供一种视频播放系统,包括终端,以及为该终端提供所需服务(如视频)的服务器。
其中,终端可以是手机、平板电脑、笔记本电脑等移动终端,也可以为智能电视、台式电脑等固定终端。该服务器可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN、以及大数据和人工智能平台等基础云计算服务的云服务器,但并不局限于此。
参考图1,本实施例提供的视频播放系统,包括终端102和服务器104等;终端102和服务器104之间通过网络连接,比如,通过有线或无线网络连接等。
终端102,可以显示视频播放界面,并在视频播放界面播放当前视频;若当前视频为目标视频的视频片段时,确定目标视频的起始播放时间;当满足视频播放切换条件时,在视频播放界面中,从目标视频的起始播放时间开始播放目标视频。其中,终端102可以在满足视频播放切换条件时,向服务器104发送针对目标视频的获取请求,并接收服务器104响应于获取请求发送的目标视频,通过视频播放界面切换播放目标视频。服务器104,可以用于在接收到针对目标视频的获取请求后,获取目标视频的数据,并向终端发送目标视频的数据。
在一个实施例中,本申请提供的视频播放方法,可以应用于如图2所示的应用环境图中,该应用环境包括终端202和服务器204的系统,并通过终端202和服务器204的交互实现。其中, 终端202通过网络与服务器204进行通信。具体地,终端202可以向服务器204发送视频获取请求,服务器204响应于视频获取请求,获取视频获取请求对应的视频,并反馈至终端202。终端202接收到服务器104反馈的视频后,终端202则显示视频播放界面,并在视频播放界面中播放所接收的当前视频。若当前视频为目标视频中的视频片段、且满足视频播放切换条件时,终端202则在视频播放界面中,从目标视频的起始播放时间开始播放目标视频。
以下分别进行详细说明。需说明的是,以下实施例的描述顺序不作为对实施例优选顺序的限定。
本申请实施例提供的一种视频播放方法,该方法可以由终端执行,也可以由终端和服务器共同执行,本申请实施例以该方法应用于终端为例进行说明,如图3所示,该视频播放方法的流程可以如下:
步骤S302、显示视频播放界面。
本实施例的终端,可以是视频客户端。视频客户端可以是任意可提供视频播放功能的客户端。
可以理解,视频播放界面,是指在视频客户端的屏幕上显示的、用于播放视频的界面。
具体地,终端可以通过运行终端中部署的应用程序,来显示视频播放界面。终端还可以通过终端中部署的浏览器访问相应的视频网站,来显示视频播放界面,例如具体可以展示视频网站中的视频播放页面,并在视频播放页面中播放视频。
步骤S304、在视频播放界面中播放当前视频。
也可理解,当前视频,可以是用户在视频播放界面中所选择的视频。
具体地,视频播放界面中包括至少一个候选视频,用户可以通过对应的视频客户端在至少一个候选视频中选择其中一个视频,并在视频播放界面中进行播放。其中,用户当前所选择的视频,即为当前视频。
终端可以首先展示视频播放界面,用户可以在视频播放界面选择带播放的视频,使得终端在视频播放界面中播放所选择的当前视频。
步骤S306、若当前视频为目标视频中的视频片段、且满足视频播放切换条件时,在视频播放界面中,从目标视频的起始播放时间开始播放目标视频。
视频是指包括一系列连续的画面图像,视频片段可以是指视频中的其中一部分,例如可以是其中一段连续的画面图像。每个视频中可以包括多个视频片段。每个视频片段也可以是单独的一个视频。多个,是指至少两个。
视频播放切换条件,可以是指对当前视频进行切换播放的条件,例如视频播放切换条件,可以包括当前视频播放结束,也可是用户在播放界面中进行了视频切换操作等。目标视频的起始播放时间,可以是指在视频播放界面中开始播放目标视频的时间。
终端在播放当前视频的过程中,若检测到当前视频为目标视频中的视频片段、且满足视频播放切换条件时,终端则在视频播放界面中,从目标视频的起始播放时间开始播放目标视频。
本实施例的目标视频,可以理解为是一个完整的视频。目标视频中可以包括多个视频片段。目标视频可以是某个视频作品中的视频,本实施例的视频作品,可以是任意类型的包含视频的作品,例如可以是电视剧、电影、动画、综艺节目等等,例如视频作品是电视剧“三十XX”,是电影“变形XX”,是综艺节目“奔跑吧···”等等。一个视频作品下可以包括多个视频,视频数量的多少,由视频作品的生产方的视频产出量决定。
本实施例中目标视频和视频片段,可以分别视为长视频和短视频,本实施例中视频作品下的视频一般为长视频,该长视频的概念是相较于短视频而言的。短视频即短片视频,是一种互联网内容传播方式,一般是在互联网新媒体上传播的时长在5分钟以内的视频。长视频的时长不限,可以是20分钟,30分钟,40分钟等等。
其中,视频作品下的视频可以是由视频作品的生产方划分的,例如,对于电视剧的视频作品而言,电视剧的一集电视剧为一个视频,对于综艺节目的视频作品而言,综艺节目的一期节目的视频为一个视频,对于纪录片的视频作品而言,一集纪录片为一个视频,对于电影的视频作品而言,一部电影为一个视频,若某一个电影是系列电影,则系列电影中全部电影构成视频作品,每部电影是视频作品中的一个视频,如系列电影“哈利XX”中每一部电影都是一个视频作品的一个视频。
本实施例中,对于每个视频,都包括至少一个视频片段,每个视频片段都是视频中的一部分,不同视频片段的时长可以相同或不同,本实施例对此没有限制,一个视频的视频片段的数量不限。
本实施例中,通过在视频播放界面中播放当前视频的过程中,若检测当前视频为目标视频中的视频片段、且满足视频播放切换条件时,则直接将当前视频切换为对应的目标视频,并在视频播放界面中,从目标视频的起始播放时间开始播放目标视频,由此能够便捷地对视频进行切换播放,使得用户能够便捷地从当前视频切,换为能够获取到更多视频内容的目标视频,有效节省了用户操作成本,进而有效提高了视频播放过程中的操作便捷性。
在其中一个实施例中,步骤S302“显示视频播放界面”,可以包括:显示视频客户端的视频选择界面;视频选择界面中包括候选视频;响应于针对候选视频中目标视频的视频播放操作, 显示视频播放界面,并在视频播放界面中播放目标视频的视频内容。
本实施例中,“响应于”用于表示所执行的操作所依赖的条件或者状态,当满足所依赖的条件或状态时,所执行的一个或多个操作可以是实时的,也可以具有设定的延迟;在没有特别说明的情况下,所执行的多个操作不存在执行先后顺序的限制。
其中,该视频内容可以是来源于目标视频作品的视频中的一个视频片段,或者该视频内容可以是来源于目标视频作品的视频,本实施例对此没有限制。
例如,终端通过视频播放界面播放目标视频作品的第一个视频的第一个视频片段;或者通过视频播放界面播放目标视频作品的第一个视频;或者,基于当前用户的视频历史播放信息确定用户在目标视频作品中最近观看的历史视频内容,若该历史视频内容来自于视频片段,则播放该视频片段,若该历史视频内容来自于视频,则播放该视频。
本实施例中,可以是以竖屏的方式播放当前视频。
在其中一个实施例中,步骤S306“若当前视频为目标视频中的视频片段、且满足视频播放切换条件时,在视频播放界面中,从目标视频的起始播放时间开始播放目标视频”,可以包括:若当前视频为目标视频中的视频片段时,确定目标视频的起始播放时间;当满足视频播放切换条件时,在视频播放界面中,从起始播放时间开始播放目标视频。
本实施例中,目标视频的起始播放时间为目标视频的播放时间段中本次开始播放的时间点。目标视频的播放时间段表示从目标视频的开始时间点00:00到目标视频的结束时间点如45:20之间的时间段。在其中一个实施例中,目标视频的起始播放时间可以是固定的。
在其中一个实施例中,步骤“若当前视频为目标视频中的视频片段时,确定目标视频的起始播放时间”,可以包括:若当前视频为目标视频中的视频片段时,确定当前视频在目标视频中的播放结束时间点,将当前视频在目标视频中的播放结束时间点,确定为目标视频的起始播放时间。步骤“当满足视频播放切换条件时,在视频播放界面中,从起始播放时间开始播放目标视频”可以包括:当满足视频播放切换条件时,在视频播放界面中,从起始播放时间开始播放目标视频。
例如,目标视频的开始时间点为00:00,结束时间点为45:20,当前视频在目标视频中的播放开始时间点为20:01,播放结束时间点为21:40,终端则可以确定目标视频中的时间点20:01为目标视频本次的播放起始时间点,或者确定目标视频中的时间点21:40为目标视频本次的播放起始时间点。
在另一个示例中,目标视频的起始播放时间可以是根据当前视频的播放进度决定的。
在其中一个实施例中,步骤“若当前视频为目标视频中的视频片段时,确定目标视频的起 始播放时间”,包括:若当前视频为目标视频中的视频片段、且满足视频播放切换条件时,将当前视频的实际播放时间点在目标视频中对应的时间点,确定为目标视频的起始播放时间。
当前视频的实际播放时间点,可以是指当前视频在满足视频播放切换条件时的播放时间点。当前视频的实际播放时间点在目标视频中对应的时间点,可以是指当前视频的实际播放时间点对应的视频内容,与目标视频中对应的时间点的视频内容是相同的。
例如,还是假设目标视频的开始时间点为00:00,结束时间点为45:20,当前视频的时长为1分39秒,在目标视频中的播放开始时间点为20:01,播放结束时间点为21:40,在满足视频播放切换条件时,当前视频播放到第20秒,终端则通过时间换算,当前视频的实际播放时间点在目标视频中对应的时间点为20:21,则可以确定目标视频中的时间点20:21为目标视频本次的播放起始时间点。
在其中一个实施例中,步骤S306“若当前视频为目标视频中的视频片段、且满足视频播放切换条件时,在视频播放界面中,从目标视频的起始播放时间开始播放目标视频”,可以包括:若当前视频为目标视频中的视频片段、且满足视频播放切换条件时,在视频播放界面中展示与目标视频对应的视频切换控件;响应于针对视频播放界面的视频切换控件完整视频播放操作,在视频播放界面中,从目标视频的起始播放时间开始播放目标视频。
本实施例中,视频播放界面包括视频切换控件。视频切换控件,可以是指用于指示终端执行完整视频的播放操作的控件,还可以是指示终端对当前视频进行切换操作的控件。例如,终端可以响应于针对目标视频对应的完整视频播放操作,在视频播放界面中,从目标视频的起始播放时间开始播放目标视频。
具体地,当终端检测到针对视频切换控件的触发操作时,则在视频播放界面中,从目标视频的起始播放时间开始播放目标视频。
例如,参考图4,图4中的视频播放界面41中包括视频显示区域41a、视频切换控件41b和视频列表显示控件41c。图4中该视频播放界面41以竖屏播放模式播放目标视频。该视频播放界面41中包括视频作品的标识信息,如视频作品的名称。该视频播放界面41中正在播放电视剧A的第一集的第一个视频片段,该视频播放界面41上显示有该第一个视频片段所属视频在视频作品中的位置信息即“第一集”,以及第一个视频片段在视频中的剧情发展顺序信息如“01”,以及第一个视频片段的剧情描述信息如“XX一视同仁,三观很正”。并在视频显示区域41a中显示所播放放的视频片段的内容。
在该视频片段播放结束后,从如视频播放界面42所示,终端在视频播放界面切换播放电视 剧A的第一集电视剧,并且假设电视剧A的第一集的第一个视频片段的最后一秒在第一集中是第20分19秒,则如视频播放界面43所示,在视频播放界面切换播放电视剧A的第一集时,从第一集视频的第20分20秒开始播放。
例如,还是参考图4,视频播放界面41中显示有视频切换控件41a,如名为“完整版”的控件,当终端检测到针对“完整版”控件的触发操作时,则确定满足视频播放切换条件,终端则在视频播放界面中,从目标视频的起始播放时间开始播放目标视频。
其中,在播放视频前,终端还可以通过提示信息的方式告知用户即将播放视频,避免用户对是视频的切换播放不了解。
在其中一个实施例中,步骤“若当前视频播放结束时,在视频播放界面中,从目标视频的起始播放时间开始播放目标视频”,可以包括:若当前视频播放结束,通过视频播放界面显示预设视频播放提示信息,预设视频播放提示信息用于提示即将播放当前视频所属的目标视频;当预设视频播放提示信息的显示时长达到预设显示时长阈值时,在视频播放界面中,从目标视频的起始播放时间开始播放目标视频。
其中,预设视频播放提示信息可以以弹框,子界面等形式显示,本实施例对此没有限制。预设显示时长阈值可以由服务器设置,如设置为3秒。
可选的,还是参考图4,在视频播放界面41a中播放视频的过程中,当第一集的第一个视频片段播放结束后,如视频播放界面42所示,在视频显示区域中显示预设视频播放提示信息即“即将进入正片”,在预设视频播放提示信息的显示时长达到3秒后,如视频播放界面43所示,在视频播放界面中切换播放电视剧A的第一集。
本实施例中,当视频播放界面播放的是视频时,若视频播放结束,也可以播放视频的关联视频本实施例对此没有限制。
在一个示例中,在步骤“从目标视频的起始播放时间开始播放目标视频”之后,上述视频播放方法还可以包括:当满足视频播放切换条件时,在视频播放界面中切换播放目标视频的关联视频的视频片段;其中,关联视频与目标视频关联。
本实施例中目标视频的关联视频与目标视频在属性上存在关联,例如可以是同一个生产者的作品,或者属于同一部视频作品,例如是同一部电视剧中的不同集电视剧。
其中,若关联视频的数量为多个,则在视频播放界面中切换播放目标视频的关联视频的视频片段时,可以切换播放目标视频的剧情之后的关联视频的视频片段。
例如,目标视频为视频作品的第一集视频,当满足视频播放切换条件(如目标视频播放结 束)时,在视频播放界面中切换播放视频作品的第二集视频的视频片段(如第一个视频片段)。
可选的,本实施例中,视频播放切换条件可以有多种。
在其中一个实施例中,在从目标视频的起始播放时间开始播放目标视频之后,上述视频播放方法还包括:响应于针对视频播放界面中的视频列表显示操作,显示目标视频对应的视频列表;响应于针对目标视频片段的播放操作,通过视频播放界面切换播放目标视频片段。
视频列表包括目标视频和目标视频的关联视频的至少一个视频片段,其中,至少一个视频片段按照在所属视频中的剧情发展顺序排列。其中,视频列表,是指包括多个视频的列表,例如,具体可以是包括多个视频文件的列表,也可以是包括多个视频的链接地址的列表。
本实施例的视频列表显示操作,是用于显示视频列表的操作,该视频列表显示操作可以是触控操作、手势操作,或者是由控件触发的操作,本实施例对此没有限制。
本实施例中的剧情发展顺序,也可以理解为视频片段在视频中的位置先后顺序,时间先后顺序等等。
可选的,同一视频中的视频片段,可以是在时间上没有重叠的视频片段。
本实施例中,可以通过浮层、弹框、子页面,或者新的页面等方式来显示视频列表。
在其中一个实施例中,步骤“响应于针对视频播放界面的视频列表显示操作,显示目标视频对应的视频列表”,可以包括:响应于针对视频播放界面的预设滑动操作,在视频播放界面中显示剧集选择浮层。
其中,剧集选择浮层上显示有目标视频对应的视频列表。预设滑动操作,是预先定义的特定滑动操作,预设滑动操作的滑动方向和滑动起点也是预先定义好的。例如滑动方向为从右到左,滑动起点到终端显示屏右边框的距离在预设距离阈值内。
可选的,本实施例中,剧集选择浮层的显示方式不限,可以是以从显示屏的某个固定位置拉出,或者直接弹出的方式进行显示。本实施例中,该固定位置可以是视频播放界面上位于滑动起点附近的界面边界。
可选的,本实施例中响应于针对视频播放界面的预设滑动操作,可以从视频播放界面上与预设滑动操作的滑动方向垂直的界面边界拉出剧集选择浮层。
例如,参考附图5,图5中的视频播放界面41中包括视频显示区域41a、视频切换控件41b和视频列表显示控件41c,图5中该视频播放界面以竖屏播放模式播放目标视频。该视频播放界面41中包括视频作品的标识信息,如视频作品的名称。该视频播放界面41中正在播放电视剧A的第一集中的第一个视频片段,该视频播放界面41上显示有该第一个视频片段所属视频在视频 作品中的位置信息即“第一集”,以及第一个视频片段在视频中的剧情发展顺序信息如“01”,以及第一个视频片段的剧情描述信息如“XX一视同仁,三观很正”。
当在视频播放界面41中,终端检测到用户从靠近界面右边界的地方触发的从右到左的滑动操作时,从视频播放界面41的右边界拉出剧集选择浮层51a,视频播放界面41变为视频播放界面51。该视频播放界面51中在剧集选择浮层51a上显示了电视剧A的视频列表,列表中包括电视剧A下第一集到最后一集视频的视频片段,由于剧集选择浮层显示区域有限。剧集选择浮层显示的列表内容为正在播放的视频片段所属视频下的视频片段以及附近的视频片段,如视频播放界面41中正在播放第一集视频的第一个视频片段,视频播放界面51中列表上显示出来的是第一集下的视频片段,用户在该剧集选择浮层上进行下滑操作,可以将第一集之后的视频中的视频片段显示出来。在该剧集选择浮层中,若用户点击某个视频片段,则会播放某个视频片段,如若用户点击视频播放界面51中剧集选择浮层51a的列表中的第一集的第三个视频片段“03:XX店内女裤失踪,需要店员平摊”,则如视频播放界面52所示,视频播放界面切换播放第一集的第三个视频片段。
当然,可以理解的是,本实施例的剧集选择浮层,可以是由剧集选择弹框,剧集选择子页面等形式替代。
可选的,本实施例中还可以设置特定控件,以控制视频列表的显示。
在其中一个实施例中,视频播放界面包括视频列表显示控件,步骤“响应于针对视频播放界面的视频列表显示操作,显示目标视频对应的视频列表”,可以包括:响应于针对视频列表显示控件的触发操作,在视频播放界面显示剧集选择浮层。
其中,剧集选择浮层上显示有目标视频对应的视频列表。视频列表显示控件,是指用于显示视频列表的控件。具体地,终端检测到用户对视频列表显示控件进行操作后,终端则展示与目标视频对应的视频列表。
例如,还是参考图4,视频播放界面41中显示有视频列表显示控件41c,如名为“看点”的控件,在该视频列表显示控件41c的显示区域中还显示有视频作品如电视剧A的视频片段的总数量如187(参考201)。
当检测到针对视频播放界面41中“看点”控件的触发操作,如点击、双击等触控操作时,如图5所示,将视频播放界面41变为视频播放界面51,在视频播放界面51显示剧集选择浮层51a。该视频播放界面51中在剧集选择浮层51a上显示了电视剧A的视频列表,其中,剧集选择浮层上显示有目标视频对应的视频列表。该示例中,剧集选择浮层的具体显示方案可以参考前述示例 中的描述,在此不再赘述。
可选的,本实施例中,响应于针对目标视频片段的播放操作,在通过视频播放界面切换播放目标视频片段前,会隐藏上述的视频列表。
本实施例中,目标视频片段播放完成后,除了播放目标视频片段所属的视频。还可以播放视频列表中,目标视频片段的下一个视频片段。
本实施例中,视频列表中将每一个视频的视频片段都视为整体,则列表中不同视频的视频片段之间按照视频的剧情发展顺序排列,如对于电视剧,按照第一集到最后一集的顺序排列,对于综艺节目,按照播出时间的先后顺序排列。
例如,参考图6,图6中所示的视频播放界面41中正在播放电视剧A的第一集,在第一集播放结束后,如图6中视频播放界面61所示,在视频播放界面61中切换播放第二集视频的第一个视频片段。
可选的,本实施例中,还可以由用户设置当前的视频片段播放结束之后,是播放视频还是播放下一个视频片段。
在一个示例中,步骤“在视频播放界面中,从目标视频的起始播放时间开始播放目标视频”后,还包括:若当前视频播放结束时,在视频播放界面显示播放方式选择控件,播放方式选择控件包括视频片段连续播放子控件和视频播放子控件;当检测到针对视频播放子控件的选择操作时,在视频播放界面中,从目标视频的起始播放时间开始播放目标视频。
其中,在视频播放界面显示播放方式选择控件后,还包括:当检测到针对视频片段连续播放子控件的选择操作时,通过视频播放界面播放目标视频和目标视频的关联视频的视频片段中,位于当前视频之后的视频片段。
其中,位于当前视频之后的视频片段是按照剧情发展顺序排在当前视频之后的视频片段。
其中,播放方式选择控件中还可以包括维持播放方式子控件。
当终端检测到针对视频片段连续播放子控件的选择操作时,若维持播放方式子控件处于选定状态,则还在视频客户端的播放规则中添加第一播放规则。该第一播放规则包括:当某视频的视频片段播放结束时,在视频播放界面自动切换播放下一个视频片段。
当终端检测到针对视频播放子控件的选择操作时,若维持播放方式子控件处于选定状态,则还在视频客户端的播放规则中添加第二播放规则。该第二播放规则包括:当视频作品的某视频的视频片段播放结束时,在视频播放界面自动切换播放该视频片段所属的视频。
例如,参考图7,在图4所示的视频播放界面41中正在播放电视剧A的第一集的第一个 视频片段。当该片段播放结束时,如视频播放界面41中,在视频显示区域中,显示有视频片段连续播放子控件如名为“看点之后,继续下一个看点”的控件、视频播放子控件如名为“看点之后,进入正片”的控件和维持播放方式子控件如显示有“后续按照选择进行看点的播放,不再提醒”的控件。当用户点击维持播放方式子控件时,在信息“后续按照选择进行看点的播放,不再提醒”前的方框中,会显示选定提示信息如勾形图案。之后,若用户点击视频片段连续播放子控件,则如视频播放界面72所示,在视频播放界面72中切换播放电视剧A的第一集的第二个视频片段,并且还会在视频客户端的播放规则中添加上述的第一播放规则,使得用户后续使用视频客户端时,基于第一播放规则进行视频的播放。
参考图8,若图7中的视频播放界面72中,用户点击维持播放方式子控件后,发起针对视频播放子控件的触发操作如点击、双击等触控操作,则如图8中的视频播放界面81所示,会通过视频播放界面81切换播放电视剧A的第一集视频,并从衔接于第一集的第一个视频片段的视频内容开始播放。
本实施例的终端,还提供了播放模式切换功能,可以由用户切换横屏和竖屏播放模式。
可选的,本实施例中,上述视频播放方法还可以包括:响应于针对视频播放界面的播放控制控件显示操作,在视频播放界面显示播放控制控件,其中,播放控制控件包括播放模式切换控件;若视频播放界面当前的播放模式为竖屏播放模式,响应于针对播放模式切换控件的触发操作,将视频播放界面的播放模式切换为横屏播放模式;若视频播放界面当前的播放模式为横屏播放模式,响应于针对播放模式切换控件的触发操作,将视频播放界面的播放模式切换为竖屏播放模式。
例如,参考图9,在图4所示的视频播放界面41中正在播放电视剧A的第一集的第一个视频片段,当终端检测到针对视频播放界面41的播放控制控件显示操作如点击、双击、滑动等触控操作时,如图9中的视频播放界面91所示,在视频播放界面91中会显示播放控制控件91a。本实施例的播放控制控件可以包括多个具有视频播放可能功能的子控件91a0,如上述的播放模式切换控件即图9的视频播放界面91中图标
Figure PCTCN2021108308-appb-000001
指示的控件。其中,在横竖屏播放模式下播放模式切换控件的图标可以不同。当用户在视频播放界面91中点击图标
Figure PCTCN2021108308-appb-000002
进入视频播放界面92,以全屏播放模式来播放电视剧A的第一集的第一个视频片段。
本实施例中,无论视频客户端的播放模式是横屏还是竖屏播放模式,都可以通过视频列表显示操作,显示目标视频对应的视频列表。
例如,还是参考图9,在视频播放界面92中,当检测到滑动起点位于视频播放界面右边界 附近,且滑动方向为从右向左的滑动操作时,从视频播放界面92右边界拉出剧集选择浮层,展示视频播放界面93,并在视频播放界面93中展示剧集选择浮层93a。
在其中一个实施例中,步骤“响应于针对视频播放界面的视频列表显示操作,显示目标视频对应的视频列表”,包括:响应于针对视频播放界面的视频列表显示操作,向服务器发送列表数据获取请求,列表数据获取请求包括目标视频的视频标识;接收服务器响应于列表数据获取请求发送的视频列表数据,视频列表数据包括目标视频和目标视频的关联视频中至少一个视频片段的描述信息和剧情发展顺序信息,视频列表数据由服务器基于候选视频片段的属性信息生成,属性信息包括候选视频片段所属的视频和在视频中的位置信息;基于视频列表数据显示目标视频对应的视频列表。
本实施例中,服务器可以获取视频作品的各视频的候选视频片段,该候选视频片段携带有属性信息,属性信息中可以包括候选视频片段所属的视频以及视频作品和在所属视频中的位置,以及候选视频片段的描述信息如剧情描述信息等。候选视频片段在视频中的位置,可以用候选视频片段在视频中的时间起点和时间终点表示,如视频片段在电视剧A的第一集的26:14到27:15的位置。
本实施例的剧情发展顺序信息可以用于确定视频的视频片段的顺序。剧情发展顺序信息可以是视频片段在视频中的位置顺序。
可选的,服务器获取候选视频片段后,针对相同视频的候选视频片段,可以基于候选视频片段在视频中的位置,从候选视频片段中选择一定数量(如5个),或者总时长不超过预设总时长阈值(如5分钟)的视频片段,然后基于各视频对应的视频片段,生成视频列表数据,该视频列表数据中的描述信息可以是从属性信息中获取的。
考虑到重复观看视频片段带来的视频观看效果差的问题,本实施例中,可以通过视频播放控制列表,来控制终端重复播放视频片段的问题。该视频播放控制列表也可以是基于上述的视频列表数据生成的本实施例中生成两个列表的候选视频片段的相关信息来源于同一个网络接口,使用了同一个数据管理中心处理得到上述的视频列表数据。不同的是处理得到视频列表数据后,将该数据分发给(服务器的)两个列表生成模块分别生成视频播放控制列表和视频列表。
本实施例的视频播放控制列表中也包括目标视频和目标视频的关联视频的至少一个视频片段,该视频播放控制列表可以是终端向服务器请求的。
在相关方案中,很多终端会按照视频播放控制列表中视频片段的顺序来控制视频的播放,但是本实施例中为了解决重复播放的问题,对于视频播放控制列表进行了特殊设置,使得其可 以进行动态调整。该视频播放控制列表中为每个视频片段设置了播放标识字段,该字段可以用于设置视频片段的播放状态。若该字段中设置的是已播放标识如数值1,则表明该视频片段已播放,若该字段中设置的是未播放标识如数值0,则表明该视频片段未播放。
在其中一个实施例中,上述视频播放方法还包括:当视频播放界面需要切换播放新的视频片段时,获取视频播放界面的视频播放控制列表;确定待播放视频片段与视频播放界面当前播放的视频内容在剧情发展顺序上的先后关系;基于先后关系,以及视频播放控制列表,从未设置已播放标识的视频片段中,选择待播放视频片段;在视频播放界面切换播放待播放视频片段,并在视频播放控制列表中为待播放视频片段设置已播放标识。
本实施例中,视频播放控制列表包括目标视频和目标视频的关联视频的至少一个视频片段,至少一个视频片段按照在所属视频的剧情发展顺序排列,并且视频播放控制列表中针对已播放视频片段设置有已播放标识。视频播放界面需要切换播放新的视频片段,可以是由终端自动触发的,也可以是由用户触发的。
例如,当视频播放界面播放的是视频且视频播放结束,终端则确定视频播放界面需要切换播放新的视频片段;或者,若视频客户端的播放规则包括第一播放规则,当视频播放界面播放的视频片段播放完成时,确定视频播放界面需要切换播放新的视频片段;或者,在检测到针对视频播放界面的滑动切换视频片段操作(如上滑操作或下滑操作)时,确定视频播放界面需要切换播放新的视频片段。
若本实施例是终端响应于针对视频播放界面的滑动切换视频片段操作,获取视频播放界面的视频播放控制列表,终端则可以基于滑动切换视频片段操作的视频切换方向,确定待播放视频片段与视频播放界面当前播放的视频内容在剧情发展顺序上的先后关系。
例如,若滑动切换视频片段操作为上滑操作,终端则待播放视频片段为视频播放界面当前播放的视频内容之前的视频片段,可以基于视频播放控制列表,从未设置已播放标识的视频片段中,选择当前播放的视频内容之前的视频片段作为待播放视频片段。
例如,若滑动切换视频片段操作为下滑操作,终端则待播放视频片段为视频播放界面当前播放的视频内容之后的视频片段。可以基于视频播放控制列表,从未设置已播放标识的视频片段中,选择当前播放的视频内容之后的视频片段作为待播放视频片段。
本实施例中,视频播放控制列表的动态变化,如播放标识字段的变化,可以是以秒为单位的,即每一秒对视频播放控制列表中的播放标识字段进行一次更新,本实施例中,若视频播放界面播放的是视频片段本身,终端则可以为该视频片段设置已播放标识,若视频播放界面播放 的是视频,则可以根据视频的已播放时间段,和视频下视频片段的位置,确定视频中的已播放视频片段,并在视频播放控制列表中,为该已播放视频片段设置已播放标识。
例如,参考图10,图10中左侧为视频播放控制列表10a,视频播放控制列表10a中包括电视剧A的各集视频的视频片段.右侧是视频客户端的视频播放界面10b中当前正在播放的视频内容,该视频内容源于电视剧A的第一集视频,当前播放至第一集的第37分第20秒,而电视剧A的第一集的前两个视频片段“第1集01:XX一视同仁,三观很正”和“第1集02:一个家庭中的和睦,跟男主人有很大关系”属于第37分第20秒前的内容,所以视频播放控制列表中这两个视频片段(图3中的虚线框)设置了已播放标识。
本实施例中,还可以对已播放标识进行去除,避免上滑操作或下滑操作时切换不到用户想要的视频片段。
在其中一个实施例中,步骤“在视频播放界面切换播放待播放视频片段”之后,还可以包括:若待播放视频片段与视频播放界面播放的上一视频内容不属于同一视频,在视频播放控制列表中将上一视频内容所属视频的视频片段的已播放标识去除。
例如,还是参考图10,若视频播放界面正在播放电视剧A的第一集的第4个视频片段时,检测到用户针对视频播放界面的下滑操作,终端则通过视频播放界面切换播放第二集中未播放的视频片段第二集的第一个视频片段,将第一集中视频片段的已播放标识去除。例如在视频播放控制列表中,终端将第一集的视频片段的播放标识字段中的标识值从1变更为0。由此,当用户再次在视频播放界面上触发滑操作时,可以在视频播放界面切换显示第一集的第4个视频片段。
本实施例中,为了实现视频播放界面中视频内容的无缝切换,还采用了一种视频预加载方案,可以在视频播放界面播放视频内容时,提前加载该视频内容临近的视频内容。
在其中一个实施例中,步骤“响应于针对目标视频片段的播放操作,通过视频播放界面切换播放目标视频片段”之后,还可以包括:确定在剧情发展顺序上与目标视频片段邻近的预设数量的视频片段为待加载视频片段;确定目标视频片段所属的视频为待加载视频;对待加载视频片段和待加载视频进行预下载,其中,预下载的待加载视频片段和待加载视频用于视频播放界面进行视频播放。
上述预设数量可以根据实际需要设置,例如,设置为2个,与目标视频片段邻近的视频片段,可以是在剧情发展顺序上位于目标视频片段前和/或后的视频片段,考虑到一般用户的观看习惯是从前到后,与目标视频片段邻近的视频片段,可以是在剧情发展顺序上位于目标视频片段后的预设数量(如2个)的视频片段。
终端在确定待加载视频片段和待加载视频后,可以基于本实施例中的两个列表中的任意一个。终端获取待加载视频片段和待加载视频的标识信息如下载链接等等,然后基于该标识信息从服务器中下载待加载视频片段和待加载视频的标识信息。
其中,下载待加载视频时,终端可以从衔接于目标视频片段之后的视频内容开始下载。
本实施例中,若视频播放界面切换播放的视频内容时,下一个播放的视频内容来自于预下载的待加载视频片段或待加载视频,则在视频播放界面基于预下载的待加载视频片段或待加载视频进行视频的切换播放。
采用本实施例的方法,可以通过终端的视频播放界面播放当前视频;若当前视频为目标视频的视频片段时,确定目标视频的起始播放时间;当满足视频播放切换条件时,在视频播放界面中,从目标视频的起始播放时间开始播放目标视频。由此能够便捷地对视频进行切换播放,有效提高了视频播放过程中的操作便捷性。用户通过在视频客户端中从短视频跳转到短视频所属的长视频进行观看,有利于引导用户从时长较短的视频片段到时长较长的视频的消费,增加视频客户端的用户粘性和使用时长。并且,通过预下载的方案,可以提升视频播放界面的切换速度,带给用户一种无缝替换的视觉体验,并且视频播放控制列表的设置,可以帮助用户跳过已观看的视频片段,有利于解决重复观看的问题,为用户带来更好的视频观看体验。
本申请还提供一种应用场景,该应用场景应用上述的视频播放方法,用于对各种视频内容进行播放处理。用户可以通过对应的终端获取视频内容,并在终端的视频播放界面中播放相应的视频。具体地,终端中可以部署有能够播放视频的应用程序,比如视频应用程序、即时通讯应用程序、视频分享程序等等,还可以是通过母应用中的子程序进行视频播放,例如母应用可以为即时通讯应用程序,母应用中的子程序,可以为即时通讯应用程序中的视频分享子程序。
具体地,终端可以通过运行终端中部署的应用程序,来显示视频播放界面。终端还可以通过终端中部署的浏览器访问相应的视频网站,来显示视频播放界面。具体地,用户可以通过对应的终端展示视频播放界面,并且用户可以在视频播放界面选择带播放的视频,使得终端在视频播放界面中播放所选择的当前视频。终端在播放当前视频的过程中,若检测到当前视频为目标视频中的视频片段、且满足视频播放切换条件时,终端则在视频播放界面中,从目标视频的起始播放时间开始播放目标视频。
例如,当终端检测到当前视频为目标视频中的视频片段时,则在视频播放界面展示与目标视频对应的视频切换控件,该视频切换控件用于指示对目标视频进行播放。用户可以触发对该视频切换控件的点击操作,使得终端将当前视频切换为目标视频,并在视频播放界面中,从目 标视频的起始播放时间开始播放目标视频。由此能够便捷地对视频进行切换播放,有效提高了视频播放过程中的操作便捷性,有效节省了用户操作成本。
应该理解的是,虽然上述各实施例的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,上述各实施例中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。
为了更好地实施以上方法,相应的,本申请实施例还提供一种视频播放装置1100。参考图11,该视频播放装置包括:显示单元1101、播放单元1102以及切换播放单元1103。
其中,显示单元11401,用于用于显示视频播放界面。
播放单元1102,用于在视频播放界面中播放当前视频。
切换播放单元1103,用于若当前视频为目标视频的视频片段、且满足视频播放切换条件时,在视频播放界面中,从目标视频的起始播放时间开始播放目标视频。
在一个可选的示例中,上述视频播放装置还包括确定单元,用于若当前视频为目标视频中的视频片段时,确定目标视频的起始播放时间;当满足视频播放切换条件时,在视频播放界面中,从起始播放时间开始播放目标视频。
在一个可选的示例中,确定单元还用于若当前视频为目标视频中的视频片段时,确定当前视频在目标视频中的播放起始时间点,确定当前视频在目标视频中的播放起始时间点为目标视频的起始播放时间;若满足视频播放切换条件,则在当前视频播放结束时,在视频播放界面中,从目标视频的起始播放时间开始播放目标视频。
在一个可选的示例中,确定单元还用于若当前视频为目标视频中的视频片段、且满足视频播放切换条件时,将当前视频的实际播放时间点在目标视频中对应的时间点,确定为目标视频的起始播放时间。
在一个可选的示例中,切换播放单元还用于若当前视频为目标视频中的视频片段、且满足视频播放切换条件时,在视频播放界面中展示与目标视频对应的视频切换控件;响应于针对视频切换控件的触发操作,在视频播放界面中,从目标视频的起始播放时间开始播放目标视频。
在一个可选的示例中,上述视频播放装置还包括视频切换单元,用于当满足视频播放切换条件时,在视频播放界面中切换播放目标视频的关联视频的视频片段,其中,关联视频与目标 视频关联。
在一个可选的示例中,上述视频播放装置还包括列表切换视频单元,用于响应于针对视频播放界面中的视频列表显示操作,显示目标视频对应的视频列表;其中,视频列表包括目标视频和目标视频的关联视频的至少一个视频片段;其中,至少一个视频片段按照在所属视频中的剧情发展顺序排列;响应于针对视频列表中的目标视频片段的播放操作,通过视频播放界面切换播放目标视频片段。
在一个可选的示例中,列表切换视频单元,还用于响应于针对视频播放界面的预设滑动操作,在视频播放界面中显示剧集选择浮层;其中,剧集选择浮层上显示有目标视频的视频列表。
在一个可选的示例中,视频播放界面包括视频列表显示控件;列表切换视频单元,还用于响应于针对视频列表显示控件的触发操作,在视频播放界面中显示剧集选择浮层;其中,剧集选择浮层上显示有目标视频对应的视频列表。
在一个可选的示例中,列表切换视频单元,用于响应于针对视频播放界面的视频列表显示操作,向服务器发送列表数据获取请求,列表数据获取请求包括目标视频的视频标识;接收服务器响应于列表数据获取请求发送的视频列表数据,视频列表数据包括目标视频和目标视频的关联视频中至少一个视频片段的描述信息和剧情发展顺序信息,视频列表数据由服务器基于候选视频片段的属性信息生成,属性信息包括候选视频片段所属的视频和在视频中的位置信息;基于视频列表数据显示目标视频对应的视频列表。
在一个可选的示例中,切换播放单元,还用于当当前视频播放结束,在视频播放界面显示播放方式选择控件,播放方式选择控件包括视频片段连续播放子控件和视频播放子控件;当检测到针对视频片段连续播放子控件的选择操作时,通过视频播放界面播放目标视频和目标视频的关联视频的视频片段中,位于目标视频之后的视频片段;当检测到针对视频播放子控件的选择操作时,在视频播放界面中,从目标视频的起始播放时间开始播放目标视频。
在一个可选的示例中,切换播放单元,还用于若当前视频播放结束,通过视频播放界面显示预设视频播放提示信息,预设视频播放提示信息用于提示即将播放当前视频所属的目标视频;当预设视频播放提示信息的显示时长达到预设显示时长阈值时,在视频播放界面中,从目标视频的起始播放时间开始播放目标视频。
在一个可选的示例中,上述视频播放装置还包括播放模式控制单元,用于响应于针对视频播放界面的播放控制控件显示操作,在视频播放界面显示播放控制控件;其中,播放控制控件包括播放模式切换控件;若视频播放界面当前的播放模式为竖屏播放模式,响应于针对播放模式切换控件的触发操作,将视频播放界面的播放模式切换为横屏播放模式;若视频播放界面当 前的播放模式为横屏播放模式,响应于针对播放模式切换控件的触发操作,将视频播放界面的播放模式切换为竖屏播放模式。
在一个可选的示例中,视频播放装置还包括播放控制列表单元,用于响应于针对视频播放界面的滑动切换视频片段操作,获取视频播放界面的视频播放控制列表,视频播放控制列表包括目标视频和目标视频的关联视频的至少一个视频片段,至少一个视频片段按照在所属视频中的剧情发展顺序排列,并且视频播放控制列表中针对已播放视频片段设置有已播放标识;基于滑动切换视频片段操作的视频切换方向,确定待播放视频片段与视频播放界面当前播放的视频内容在剧情发展顺序上的先后关系;基于先后关系,以及视频播放控制列表,从未设置已播放标识的视频片段中,选择待播放视频片段;在视频播放界面切换播放待播放视频片段,并在视频播放控制列表中为待播放视频片段设置已播放标识。
在一个可选的示例中,视频播放装置还包括已播放标识去除单元,用于在视频播放界面切换播放待播放视频片段后,若待播放视频片段与视频播放界面播放的上一视频内容不属于同一视频,在视频播放控制列表中将上一视频内容所属视频的视频片段的已播放标识去除。
在一个可选的示例中,视频播放装置还包括预加载单元,用于在列表切换视频单元响应于针对目标视频片段的播放操作,通过视频播放界面切换播放目标视频片段后,确定目标视频和目标视频的关联视频的视频片段中,在剧情发展顺序上与目标视频片段邻近的预设数量的视频片段为待加载视频片段;确定目标视频片段所属的视频为待加载视频;对待加载视频片段和待加载视频进行预下载,其中,预下载的待加载视频片段和待加载视频用于视频播放界面进行视频播放。
采用本实施例的视频播放装置,可以通过视频客户端展示视频播放界面,并在视频播放界面中播放当前视频;当当前视频为目标视频的视频片段时,确定目标视频的起始播放时间;当满足视频播放切换条件时,在视频播放界面中,从目标视频的起始播放时间开始播放目标视频。由此,用户通过在视频客户端中从短视频跳转到短视频所属的长视频进行观看,有利于引导用户从时长较短的视频片段到时长较长的视频的消费,增加视频客户端的用户粘性和使用时长。
在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图12所示。该计算机设备包括通过系统总线连接的处理器、存储器、通信接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的通信接口 用于与外部的终端进行有线或无线方式的通信,无线方式可通过WIFI、运营商网络、NFC(近场通信)或其他技术实现。该计算机程序被处理器执行时以实现一种视频播放方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。
本领域技术人员可以理解,图12中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
在一个实施例中,还提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现上述各方法实施例中的步骤。
在一个实施例中,提供了一种计算机可读存储介质,存储有计算机程序,该计算机程序被处理器执行时实现上述各方法实施例中的步骤。
在一个实施例中,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述各方法实施例中的步骤。
本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过计算机可读指令来完成,或通过指令控制相关的硬件来完成,该计算机可读指令可以存储于一计算机可读存储介质中,并由处理器进行加载和执行。该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,该存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。
由于该存储介质中所存储的指令,可以执行本申请实施例所提供的视频播放方法中的步骤,因此,可以实现本申请实施例所提供的视频播放方法所能实现的有益效果,详见前面的实施例。以上对本申请实施例所提供的一种视频播放方法、装置、计算机设备和存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种视频播放方法,由计算机设备执行,所述方法包括:
    显示视频播放界面;
    在所述视频播放界面中播放当前视频;及
    若所述当前视频为目标视频中的视频片段、且满足视频播放切换条件时,在所述视频播放界面中,从所述目标视频的起始播放时间开始播放所述目标视频。
  2. 根据权利要求1所述的视频播放方法,其特征在于,所述若所述当前视频为目标视频中的视频片段、且满足视频播放切换条件时,在所述视频播放界面中,从所述目标视频的起始播放时间开始播放所述目标视频,包括:
    若所述当前视频为目标视频中的视频片段时,确定所述目标视频的起始播放时间;及
    当满足视频播放切换条件时,在所述视频播放界面中,从所述起始播放时间开始播放所述目标视频。
  3. 根据权利要求2所述的视频播放方法,其特征在于,所述若所述当前视频为目标视频中的视频片段时,确定所述目标视频的起始播放时间,包括:
    若所述当前视频为目标视频中的视频片段时,确定所述当前视频在所述目标视频中的播放结束时间点,将所述当前视频在所述目标视频中的播放结束时间点,确定为所述目标视频的起始播放时间;及
    所述当满足视频播放切换条件时,在所述视频播放界面中,从所述起始播放时间开始播放所述目标视频,包括:
    若满足视频播放切换条件,则在所述当前视频播放结束时,在所述视频播放界面中,从所述目标视频的起始播放时间开始播放所述目标视频。
  4. 根据权利要求2所述的视频播放方法,其特征在于,所述若所述当前视频为目标视频中的视频片段时,确定所述目标视频的起始播放时间,包括:
    若所述当前视频为目标视频中的视频片段、且满足所述视频播放切换条件时,将所述当前视频的实际播放时间点在所述目标视频中对应的时间点,确定为目标视频的起始播放时间。
  5. 根据权利要求1所述的视频播放方法,其特征在于,所述若所述当前视频为目标视频中的视频片段、且满足视频播放切换条件时,在所述视频播放界面中,从所述目标视频的起始播放时间开始播放所述目标视频,包括:
    若所述当前视频为目标视频中的视频片段、且满足视频播放切换条件时,在所述视频播放界面中展示与所述目标视频对应的视频切换控件;及
    响应于针对所述视频切换控件的触发操作,在所述视频播放界面中,从所述目标视频的起始播放时间开始播放所述目标视频。
  6. 根据权利要求1所述的视频播放方法,其特征在于,在所述从所述目标视频的起始播放时间开始播放所述目标视频之后,所述方法还还包括:
    当满足视频播放切换条件时,在所述视频播放界面中切换播放所述目标视频的关联视频的视频片段;其中,所述关联视频与所述目标视频关联。
  7. 根据权利要求1所述的视频播放方法,其特征在于,在所述从所述目标视频的起始播放时间开始播放所述目标视频之后,所述方法还还包括:
    响应于针对所述视频播放界面的视频列表显示操作,显示所述目标视频对应的视频列表;其中,所述视频列表包括所述目标视频和所述目标视频的关联视频的至少一个视频片段,其中,所述至少一个视频片段按照在所属视频中的剧情发展顺序排列;及
    响应于针对所述视频列表中的目标视频片段的播放操作,在所述视频播放界面中切换播放所述目标视频片段。
  8. 根据权利要求7所述的视频播放方法,其特征在于,所述响应于针对所述视频播放界面的视频列表显示操作,显示所述目标视频对应的视频列表,包括:
    响应于针对所述视频播放界面的预设滑动操作,在所述视频播放界面中显示剧集选择浮层;其中,所述剧集选择浮层上显示有所述目标视频对应的视频列表。
  9. 根据权利要求7所述的视频播放方法,其特征在于,所述视频播放界面包括视频列表显示控件;所述响应于针对所述视频播放界面的视频列表显示操作,显示所述目标视频对应的视频列表,包括:
    响应于针对所述视频列表显示控件的触发操作,在所述视频播放界面中显示剧集选择浮层;其中,所述剧集选择浮层上显示有所述目标视频对应的视频列表。
  10. 根据权利要求7所述的视频播放方法,其特征在于,所述响应于针对所述视频播放界面的视频列表显示操作,显示所述目标视频对应的视频列表,包括:
    响应于针对所述视频播放界面的视频列表显示操作,向服务器发送列表数据获取请求,所述列表数据获取请求包括所述目标视频的视频标识;
    接收所述服务器响应于所述列表数据获取请求发送的视频列表数据,所述视频列表数据包括所述目标视频和所述目标视频的关联视频中至少一个视频片段的描述信息和剧情发展顺序信息,所述视频列表数据由所述服务器基于候选视频片段的属性信息生成,所述属性信息包括候选视频片段所属的视频和在所述视频中的位置信息;及
    基于所述视频列表数据显示所述目标视频对应的视频列表。
  11. 根据权利要求1所述的视频播放方法,其特征在于,所述方法还包括:
    响应于针对所述视频播放界面的播放控制控件显示操作,在所述视频播放界面显示播放控制控件;其中,所述播放控制控件包括播放模式切换控件;
    若所述视频播放界面当前的播放模式为竖屏播放模式,响应于针对所述播放模式切换控件的触发操作,将所述视频播放界面的播放模式切换为横屏播放模式;及
    若所述视频播放界面当前的播放模式为横屏播放模式,响应于针对所述播放模式切换控件的触发操作,将所述视频播放界面的播放模式切换为竖屏播放模式。
  12. 根据权利要求1所述的视频播放方法,其特征在于,在所述从所述目标视频的起始播放时间开始播放所述目标视频之后,所述方法还还包括:
    响应于针对所述视频播放界面的滑动切换视频片段操作,获取所述视频播放界面的视频播放控制列表;所述视频播放控制列表包括所述目标视频和所述目标视频的关联视频的至少一个视频片段,所述至少一个视频片段按照在所属视频中的剧情发展顺序排列,并且所述视频播放控制列表中针对已播放视频片段设置有已播放标识;
    基于所述滑动切换视频片段操作的视频切换方向,确定待播放视频片段与所述视频播放界面当前播放的视频内容在所述剧情发展顺序上的先后关系;
    基于所述先后关系,以及所述视频播放控制列表,从未设置所述已播放标识的视频片段中选择待播放视频片段;及
    在所述视频播放界面切换播放所述待播放视频片段,并在所述视频播放控制列表中为所述待播放视频片段设置已播放标识。
  13. 根据权利要求12所述的视频播放方法,其特征在于,在所述在所述视频播放界面切换播放所述待播放视频片段之后,所述方法还还包括:
    若所述待播放视频片段与所述视频播放界面播放的上一视频内容不属于同一视频,在所述视频播放控制列表中将所述上一视频内容所属视频的视频片段的所述已播放标识去除。
  14. 一种视频播放装置,其特征在于,包括:
    显示单元,用于显示视频播放界面;
    播放单元,用于在所述视频播放界面中播放当前视频;
    切换播放单元,用于若所述当前视频为目标视频的视频片段、且满足视频播放切换条件时,在所述视频播放界面中,从所述目标视频的起始播放时间开始播放所述目标视频。
  15. 根据权利要求14所述的视频播放装置,其特征在于,所述切换播放单元还用于若所述当前视频为目标视频中的视频片段时,确定所述当前视频在所述目标视频中的播放结束时间点,将所述当前视频在所述目标视频中的播放结束时间点,确定为所述目标视频的起始播放时间;及若满足视频播放切换条件,则在所述当前视频播放结束时,在所述视频播放界面中,从所述目标视频的起始播放时间开始播放所述目标视频。
  16. 根据权利要求14所述的视频播放装置,其特征在于,所述视频播放装置还包括视频切换单元,用于若所述当前视频为目标视频中的视频片段、且满足视频播放切换条件时,在所述视频播放界面中展示与所述目标视频对应的视频切换控件;及响应于针对所述视频切换控件的触发操作,在所述视频播放界面中,从所述目标视频的起始播放时间开始播放所述目标视频。
  17. 根据权利要求14所述的视频播放装置,其特征在于,所述切换播放单元还用于当满足视频播放切换条件时,在所述视频播放界面中切换播放所述目标视频的关联视频的视频片段;其中,所述关联视频与所述目标视频关联。
  18. 根据权利要求14所述的视频播放装置,其特征在于,所述显示单元还用于响应于针对所述视频播放界面中的视频列表显示操作,显示所述目标视频对应的视频列表;其中,所述视频列表包括所述目标视频和所述目标视频的关联视频的至少一个视频片段,其中,所述至少一个视频片段按照在所属视频中的剧情发展顺序排列;及视频切换单元还用于响应于针对所述视频列表中的目标视频片段的播放操作,在所述视频播放界面中切换播放所述目标视频片段。
  19. 一种计算机设备,其特征在于,所述计算机设备包括存储器,所述处理器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行如权利要求1至13中任一项所述的方法的步骤。
  20. 一种计算机可读存储介质,其特征在于,其上存储有计算机可读指令,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如权利要求1至13中任一项所述的方法的步骤。
PCT/CN2021/108308 2020-09-11 2021-07-26 视频播放方法、装置、计算机设备和存储介质 WO2022052653A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/963,863 US20230045363A1 (en) 2020-09-11 2022-10-11 Video playback method and apparatus, computer device, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010956362.3 2020-09-11
CN202010956362.3A CN112153470B (zh) 2020-09-11 2020-09-11 一种视频播放方法、装置、计算机设备和存储介质

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/963,863 Continuation US20230045363A1 (en) 2020-09-11 2022-10-11 Video playback method and apparatus, computer device, and storage medium

Publications (1)

Publication Number Publication Date
WO2022052653A1 true WO2022052653A1 (zh) 2022-03-17

Family

ID=73890960

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/108308 WO2022052653A1 (zh) 2020-09-11 2021-07-26 视频播放方法、装置、计算机设备和存储介质

Country Status (3)

Country Link
US (1) US20230045363A1 (zh)
CN (1) CN112153470B (zh)
WO (1) WO2022052653A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112153470B (zh) * 2020-09-11 2022-04-08 腾讯科技(深圳)有限公司 一种视频播放方法、装置、计算机设备和存储介质
CN113626639A (zh) * 2021-06-21 2021-11-09 武汉理工数字传播工程有限公司 一种教程视频管理的方法、电子设备及存储介质
CN114827646B (zh) * 2022-03-23 2023-12-12 百果园技术(新加坡)有限公司 视频流中预加载直播间方法、装置、设备及存储介质
CN116939269A (zh) * 2022-03-30 2023-10-24 北京字跳网络技术有限公司 显示控件方法、装置、电子设备、存储介质和程序产品
CN117336571A (zh) * 2022-06-24 2024-01-02 华为技术有限公司 视频处理方法及相关设备

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110154405A1 (en) * 2009-12-21 2011-06-23 Cambridge Markets, S.A. Video segment management and distribution system and method
CN103916718A (zh) * 2013-01-05 2014-07-09 腾讯科技(北京)有限公司 基于视频片段进行视频播放的方法和系统
CN108024145A (zh) * 2017-12-07 2018-05-11 北京百度网讯科技有限公司 视频推荐方法、装置、计算机设备和存储介质
CN110225409A (zh) * 2019-07-19 2019-09-10 北京字节跳动网络技术有限公司 音视频播放方法、装置、电子设备及可读介质
CN110691281A (zh) * 2018-07-04 2020-01-14 北京字节跳动网络技术有限公司 视频播放处理方法、终端设备、服务器及存储介质
CN111338537A (zh) * 2020-02-11 2020-06-26 北京字节跳动网络技术有限公司 用于显示视频的方法、装置、电子设备和介质
CN112153470A (zh) * 2020-09-11 2020-12-29 腾讯科技(深圳)有限公司 一种视频播放方法、装置、计算机设备和存储介质

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105163156B (zh) * 2015-10-12 2018-05-08 华勤通讯技术有限公司 视频续播方法、播放设备及系统
CN111263235A (zh) * 2020-02-10 2020-06-09 北京奇艺世纪科技有限公司 一种视频播放方法、装置、电子设备及存储介质
CN111327940B (zh) * 2020-03-23 2022-02-11 广州虎牙科技有限公司 一种视频播放方法、装置及系统

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110154405A1 (en) * 2009-12-21 2011-06-23 Cambridge Markets, S.A. Video segment management and distribution system and method
CN103916718A (zh) * 2013-01-05 2014-07-09 腾讯科技(北京)有限公司 基于视频片段进行视频播放的方法和系统
CN108024145A (zh) * 2017-12-07 2018-05-11 北京百度网讯科技有限公司 视频推荐方法、装置、计算机设备和存储介质
CN110691281A (zh) * 2018-07-04 2020-01-14 北京字节跳动网络技术有限公司 视频播放处理方法、终端设备、服务器及存储介质
CN110225409A (zh) * 2019-07-19 2019-09-10 北京字节跳动网络技术有限公司 音视频播放方法、装置、电子设备及可读介质
CN111338537A (zh) * 2020-02-11 2020-06-26 北京字节跳动网络技术有限公司 用于显示视频的方法、装置、电子设备和介质
CN112153470A (zh) * 2020-09-11 2020-12-29 腾讯科技(深圳)有限公司 一种视频播放方法、装置、计算机设备和存储介质

Also Published As

Publication number Publication date
US20230045363A1 (en) 2023-02-09
CN112153470B (zh) 2022-04-08
CN112153470A (zh) 2020-12-29

Similar Documents

Publication Publication Date Title
WO2022052653A1 (zh) 视频播放方法、装置、计算机设备和存储介质
WO2021052085A1 (zh) 视频推荐方法、装置、电子设备及计算机可读介质
US10425665B2 (en) System and method for early media buffering using detection of user behavior
CN109905740B (zh) 持久媒体播放器
US10321177B2 (en) Computer system and method for streaming video with dynamic user features
US9721036B2 (en) Cooperative web browsing using multiple devices
US20240004927A1 (en) Providing a video preview of search results
WO2019007227A1 (zh) 一种在页面切换后继续显示视图的方法和装置
CN107660334B (zh) 跨应用内容播放器
KR20090130082A (ko) 네트워크 상에서 미디어를 프리뷰하기 위한 방법 및 시스템
WO2018133725A1 (zh) 媒体文件的输出处理方法、客户端及系统
CN116466865A (zh) 视频重放的触摸手势控制
CN115474085B (zh) 媒体内容播放方法、装置、设备和存储介质
CN110798701B (zh) 视频更新的推送方法及终端
US10341687B1 (en) Assigning videos to single-stream and multi-stream decoders
CN113596561A (zh) 视频流播放方法、装置、电子设备和计算机可读存储介质
CN115499702B (zh) 预览图像的展示方法、装置、电子设备和存储介质
CN117786159A (zh) 文本素材获取方法、装置、设备、介质和程序产品
CN117459777A (zh) 视频应用交互方法和电子设备
CN115826805A (zh) 媒体交互方法、装置、设备和存储介质
WO2024107674A1 (en) System and method for dynamic presentation of graphical and video content
CN117793478A (zh) 讲解信息生成方法、装置、设备、介质和程序产品
CN114915818A (zh) 一种媒资推送方法及智能终端
JP2016092610A (ja) 動画再生装置、動画再生方法、コンピュータプログラム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21865709

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 18/07/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21865709

Country of ref document: EP

Kind code of ref document: A1