CN114979770A - Video playing method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN114979770A
CN114979770A CN202210750086.4A CN202210750086A CN114979770A CN 114979770 A CN114979770 A CN 114979770A CN 202210750086 A CN202210750086 A CN 202210750086A CN 114979770 A CN114979770 A CN 114979770A
Authority
CN
China
Prior art keywords
playing
played
target
target video
switching event
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210750086.4A
Other languages
Chinese (zh)
Other versions
CN114979770B (en
Inventor
刘晓丹
刘希超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing IQIYI Science and Technology Co Ltd
Original Assignee
Beijing IQIYI Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing IQIYI Science and Technology Co Ltd filed Critical Beijing IQIYI Science and Technology Co Ltd
Priority to CN202210750086.4A priority Critical patent/CN114979770B/en
Publication of CN114979770A publication Critical patent/CN114979770A/en
Application granted granted Critical
Publication of CN114979770B publication Critical patent/CN114979770B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • 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/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

Landscapes

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

Abstract

The application provides a video playing method and device, electronic equipment and a storage medium, and belongs to the technical field of video playing. According to the method, when a target video is played, a switching event corresponding to the target video, a plurality of fragments to be played and a time range corresponding to the plurality of fragments to be played are obtained; monitoring whether the switching event occurs or not in the process of playing the target video; when the switching event is monitored to occur, determining time information of the switching event, and determining a target time range in which the time information is located in a plurality of time ranges; and determining the segment to be played corresponding to the target time range as a target playing segment in the plurality of segments to be played. Therefore, the clip to be played is determined according to the time information of the switching event, and the interestingness of video playing is increased.

Description

Video playing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of video playing technologies, and in particular, to a video playing method and apparatus, an electronic device, and a storage medium.
Background
In traditional scenario-like video works, such as movies, television shows, network movies, micro movies, and the like, story contents are often single, and plot contents such as the beginning, the passing, the ending, and the like of a story are all fixed and single. Correspondingly, at present, under various video playing scenes, the video playing is also based on single story content. In recent years, in order to improve the viewing experience of users, in the shooting and production process of some video works, a plurality of branch scenarios are shot according to different scenario trends, for example, the front is the same story line, and finally, the branch scenarios correspond to a plurality of different story ending. However, when playing the video works including a plurality of branch scenarios, how to determine the branch scenarios to be played becomes an urgent problem to be solved.
Disclosure of Invention
In order to solve the technical problem of how to determine the branching scenario to be played, the application provides a video playing method, a video playing device, an electronic device and a storage medium.
In a first aspect, a video playing method is provided, where the method includes:
when a target video is played, acquiring a switching event corresponding to the target video, a plurality of clips to be played and a time range corresponding to the plurality of clips to be played;
monitoring whether the switching event occurs or not in the process of playing the target video;
when the switching event is monitored to occur, determining time information of the switching event, and determining a target time range in which the time information is located in a plurality of time ranges;
and determining the segment to be played corresponding to the target time range as a target playing segment in the plurality of segments to be played.
In a possible embodiment, the monitoring whether the switching event occurs during the playing of the target video includes:
monitoring the playing progress of the target video in the process of playing the target video;
and when the playing progress reaches the target playing progress, determining that the switching event occurs.
In a possible embodiment, the monitoring whether the switching event occurs during the playing of the target video includes:
monitoring whether a switching instruction for indicating switching of the target video is received or not in the process of playing the target video;
and when a switching instruction for switching the target video is received, determining that the switching event occurs.
In a possible implementation manner, the obtaining a switching event corresponding to the target video, a plurality of segments to be played, and a time range corresponding to the plurality of segments to be played includes:
sending a downloading request to a server, wherein the downloading request is used for requesting to download the configuration file corresponding to the target video;
receiving a download address returned by the server based on the download request, and downloading the configuration file based on the download address;
and analyzing the configuration file to obtain a switching event corresponding to the target video, a plurality of fragments to be played and a time range corresponding to the plurality of fragments to be played.
In one possible embodiment, the method further comprises:
and playing the target playing segment.
In a second aspect, a video playing apparatus is provided, the apparatus comprising:
the device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a switching event corresponding to a target video, a plurality of fragments to be played and a time range corresponding to the plurality of fragments to be played when the target video is played;
the monitoring module is used for monitoring whether the switching event occurs or not in the process of playing the target video;
the first determining module is used for determining the time information of the switching event when the switching event is monitored to occur, and determining a target time range in which the time information is located in a plurality of time ranges;
and the second determining module is used for determining the segment to be played corresponding to the target time range as the target playing segment in the plurality of segments to be played.
In a possible implementation, the monitoring module is specifically configured to:
monitoring the playing progress of the target video in the process of playing the target video;
and when the playing progress reaches the target playing progress, determining that the switching event occurs.
In one possible embodiment, the monitoring module is further configured to:
monitoring whether a switching instruction for indicating switching of the target video is received or not in the process of playing the target video;
and when a switching instruction for switching the target video is received, determining that the switching event occurs.
In a possible implementation manner, the obtaining module is specifically configured to:
sending a downloading request to a server, wherein the downloading request is used for requesting to download the configuration file corresponding to the target video;
receiving a download address returned by the server based on the download request, and downloading the configuration file based on the download address;
and analyzing the configuration file to obtain a switching event corresponding to the target video, a plurality of fragments to be played and a time range corresponding to the plurality of fragments to be played.
In one possible embodiment, the apparatus further comprises:
and the playing module is used for playing the target playing fragment.
In a third aspect, an electronic device is provided, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of the first aspect when executing a program stored in the memory.
In a fourth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when executed by a processor, the computer program implements the method steps of any of the first aspects.
In a fifth aspect, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the video playback methods described above.
The embodiment of the application has the following beneficial effects:
the embodiment of the application provides a video playing method, a video playing device, electronic equipment and a storage medium, and the method comprises the steps of acquiring a switching event corresponding to a target video, a plurality of clips to be played and a time range corresponding to the plurality of clips to be played when the target video is played; then, monitoring whether the switching event occurs or not in the process of playing the target video; when the switching event is monitored to occur, determining time information of the switching event, and determining a target time range in which the time information is located in a plurality of time ranges; and finally, determining the clip to be played corresponding to the target time range as a target playing clip in the plurality of clips to be played. Therefore, when the video containing a plurality of branching scenarios is played, the target playing segment can be determined in a plurality of segments to be played (namely the branching scenarios) according to the time information of the switching event, so that the interest of watching the video is increased.
Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a flowchart of a video playing method according to an embodiment of the present application;
fig. 2 is a flowchart of another video playing method provided in the embodiment of the present application;
fig. 3 is a schematic structural diagram of a video playing apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Due to the fact that traditional drama-type video works such as films, television series, network movies, micro movies and the like are often single in story content, and plot content such as the beginning, the passing and the ending of a story is fixed and single. Correspondingly, at present, under various video playing scenes, the video playing is also based on single story content. In recent years, in order to improve the viewing experience of users, in the shooting and production process of some video works, a plurality of branch scenarios are shot according to different scenario trends, for example, the front is the same story line, and finally, the branch scenarios correspond to a plurality of different story ending. However, when playing the video works including a plurality of branch scenarios, how to determine the branch scenarios to be played becomes an urgent problem to be solved. Therefore, the embodiment of the application provides a video playing method.
A detailed description will be given below of a video playing method provided in an embodiment of the present application with reference to a specific implementation manner, as shown in fig. 1, the specific steps are as follows:
s101, when a target video is played, a switching event corresponding to the target video, a plurality of clips to be played and a time range corresponding to the plurality of clips to be played are obtained.
The target video refers to a video corresponding to a plurality of segments to be played at a certain node, wherein the video content in each segment to be played is different.
For example, a movie corresponds to a plurality of ends at the ending part, that is, the movie is a target video, and the video content corresponding to each end is a segment to be played.
And presetting a time range corresponding to each segment to be played. Preferably, the time range of the segment to be played may be determined according to the video content of the segment to be played. Therefore, the played video can be attached to the watching time of the user, and the watching interest is increased.
For example, there are three segments to be played corresponding to the target video, where the video content corresponding to the segment one to be played is a plot related to staying up at night, and the corresponding time range is 23:00 to 5:59 in the morning; the video content corresponding to the segment two to be played is a day work related plot, and the corresponding time range is 6: 00 to 17: 59; the video content corresponding to the segment three to be played is a related event of going to work at night, and the corresponding time range is 18: 00-22: 59.
The switching event is an event for triggering the determination of a target playing segment in a plurality of segments to be played.
In the embodiment of the application, when the target video is played, a switching event corresponding to the target video, a plurality of clips to be played, and a time range corresponding to the plurality of clips to be played can be obtained.
S102, monitoring whether the switching event occurs or not in the process of playing the target video.
In the embodiment of the application, in the process of playing the target video, whether the switching event occurs can be monitored in real time, so that whether the process of determining the target playing segment in the plurality of segments to be played is triggered or not is determined.
S103, when the switching event is monitored to occur, determining the time information of the switching event, and determining the target time range of the time information in a plurality of time ranges.
And S104, determining the clip to be played corresponding to the target time range as a target playing clip in the plurality of clips to be played.
The following description collectively describes S103-S104:
the time information is the time when the handover event occurs.
In the embodiment of the application, when the occurrence of the handover event is monitored, the time information of the occurrence of the handover event can be determined. And then, in the time ranges corresponding to the multiple clips to be played, determining the time range in which the time information is positioned, determining the time range as a target time range, and determining the clips to be played corresponding to the target time range as target playing clips.
For example, there are three to-be-played clips corresponding to the target video, wherein the time range corresponding to the to-be-played clip is 23:00 to 5:59 in the morning; the time range corresponding to the clip two to be played is 6: 00 to 17: 59; the time range corresponding to the clip three to be played is 18:00 to 22: 59. When the time information of the occurrence of the handover event is 8: when 00, determining that the time information falls in a time range corresponding to the segment II to be played is 6: 00 to 17:59, therefore, the time range corresponding to the clip two to be played is determined as the target time range, and the clip two to be played is determined as the target playing clip.
In the embodiment of the application, when a target video is played, a switching event corresponding to the target video, a plurality of segments to be played and a time range corresponding to the plurality of segments to be played are obtained; then, monitoring whether the switching event occurs or not in the process of playing the target video; when the switching event is monitored to occur, determining time information of the switching event, and determining a target time range in which the time information is located in a plurality of time ranges; and finally, determining the clip to be played corresponding to the target time range as a target playing clip in the plurality of clips to be played. Therefore, when the video containing a plurality of branching scenarios is played, the target playing segment can be determined in a plurality of segments to be played (namely the branching scenarios) according to the time information of the switching event, so that the interest of watching the video is increased.
In another embodiment of the present application, the S102 may include the following steps:
monitoring the playing progress of the target video in the process of playing the target video; and when the playing progress reaches the target playing progress, determining that the switching event occurs.
In the embodiment of the application, the progress detection device may be started when the target video is played, the progress detection device is used to detect the playing progress of the played target video in real time, and when the target video is played to the target playing progress, a switching event is generated, that is, an event for determining the target playing segment among the plurality of segments to be played is triggered.
Further, the current time when the target video is played to the target playing progress is read, and the current time is determined as the time when the switching event occurs.
In the embodiment of the application, in the process of playing the target video, the playing progress of playing the target video is monitored; and when the playing progress reaches the target playing progress, determining that the switching event occurs. Therefore, the process of determining the target playing clip in the plurality of clips to be played according to the playing progress trigger can be realized.
In another embodiment of the present application, the S102 may further include the following steps:
monitoring whether a switching instruction for indicating switching of the target video is received or not in the process of playing the target video; and when a switching instruction for switching the target video is received, determining that the switching event occurs.
And the switching instruction is used for indicating the switching target video.
In the embodiment of the application, in the process of playing the target video, whether a switching instruction for indicating switching of the target video is received or not is monitored in real time; when a switching instruction of a switching target video is received, it means that a switching event occurs. Therefore, the process of determining the target playing segment in the plurality of segments to be played according to the switching instruction can be triggered.
In another embodiment of the present application, as shown in fig. 2, the S101 may further include the following steps:
s201, sending a downloading request to a server, wherein the downloading request is used for requesting to download the configuration file corresponding to the target video.
S202, receiving a download address returned by the server based on the download request, and downloading the configuration file based on the download address.
S203, analyzing the configuration file to obtain a switching event corresponding to the target video, a plurality of segments to be played and a time range corresponding to the plurality of segments to be played.
The video playing method provided by the embodiment of the application can be applied to a playing terminal.
In the embodiment of the application, a configuration file corresponding to the target video can be preset, and the configuration file is stored in the server. The configuration file comprises a switching event corresponding to the target video, a plurality of clips to be played and a time range corresponding to the plurality of clips to be played.
When playing the target video, the playing terminal may send a download request for requesting to download a configuration file corresponding to the target video to the server, where the play request may carry a video identifier of the target video. After receiving the download request, the server may search for the corresponding configuration file based on the video identifier, and return the download address of the searched configuration file to the playing terminal. And after receiving the download address returned by the server, the playing terminal can download the configuration file based on the download address. And then analyzing the configuration file to obtain a switching event corresponding to the target video, a plurality of fragments to be played and a time range corresponding to the plurality of fragments to be played. Therefore, the configuration file can be acquired at the server side without being stored locally in the playing terminal in advance, and the local storage pressure of the playing terminal is reduced.
Optionally, a storage time may be set for the configuration file downloaded to the local, and when the storage time reaches a preset time, the configuration file is deleted. Thereby reducing the local storage pressure of the player terminal.
In yet another embodiment of the present application, the method may further comprise the steps of: and playing the target playing segment.
In an embodiment, the target playing segment may be directly played after the target playing segment is determined, so that automatic playing of the target playing segment may be realized.
In yet another embodiment, the target play segment may be played upon receiving a play instruction for instructing to play the target play segment. Therefore, the target playing clip can be played according to the instruction given by the user.
In another embodiment of the present application, before playing the target playing segment, the following steps may be further included:
and acquiring a transition video corresponding to the target playing segment, and playing the transition video.
The transition video can be a transition animation or a flash white effect and the like which are made in advance, and the transition can be more natural by playing the transition video first and then playing the target clip to be played, so that the watching experience of a user is improved.
Based on the same technical concept, an embodiment of the present application further provides a video playing apparatus, as shown in fig. 3, the apparatus includes:
an obtaining module 301, configured to obtain, when a target video is played, a switching event corresponding to the target video, multiple segments to be played, and time ranges corresponding to the multiple segments to be played;
a monitoring module 302, configured to monitor whether the switching event occurs during the process of playing the target video;
a first determining module 303, configured to determine, when it is monitored that the handover event occurs, time information of the occurrence of the handover event, and determine, in a plurality of time ranges, a target time range in which the time information is located;
a second determining module 304, configured to determine, in the multiple to-be-played segments, the to-be-played segment corresponding to the target time range as a target playing segment.
In a possible implementation, the monitoring module is specifically configured to:
monitoring the playing progress of the target video in the process of playing the target video;
and when the playing progress reaches the target playing progress, determining that the switching event occurs.
In one possible embodiment, the monitoring module is further configured to:
monitoring whether a switching instruction for indicating switching of the target video is received or not in the process of playing the target video;
and when a switching instruction for switching the target video is received, determining that the switching event occurs.
In a possible implementation manner, the obtaining module is specifically configured to:
sending a downloading request to a server, wherein the downloading request is used for requesting to download the configuration file corresponding to the target video;
receiving a download address returned by the server based on the download request, and downloading the configuration file based on the download address;
and analyzing the configuration file to obtain a switching event corresponding to the target video, a plurality of fragments to be played and a time range corresponding to the plurality of fragments to be played.
In one possible embodiment, the apparatus further comprises:
and the playing module is used for playing the target playing fragment.
In the embodiment of the application, when a target video is played, a switching event corresponding to the target video, a plurality of segments to be played and a time range corresponding to the plurality of segments to be played are obtained; then, monitoring whether the switching event occurs or not in the process of playing the target video; when the switching event is monitored to occur, determining time information of the switching event, and determining a target time range in which the time information is located in a plurality of time ranges; and finally, determining the clip to be played corresponding to the target time range as a target playing clip in the plurality of clips to be played. Therefore, when the video containing a plurality of branching scenarios is played, the target playing segment can be determined in a plurality of segments to be played (namely the branching scenarios) according to the time information of the switching event, so that the interest of watching the video is increased.
Based on the same technical concept, the embodiment of the present application further provides an electronic device, as shown in fig. 4, including a processor 111, a communication interface 112, a memory 113, and a communication bus 114, where the processor 111, the communication interface 112, and the memory 113 complete mutual communication through the communication bus 114,
a memory 113 for storing a computer program;
the processor 111, when executing the program stored in the memory 113, implements the following steps:
when a target video is played, acquiring a switching event corresponding to the target video, a plurality of fragments to be played and a time range corresponding to the plurality of fragments to be played;
monitoring whether the switching event occurs or not in the process of playing the target video;
when the switching event is monitored to occur, determining time information of the switching event, and determining a target time range in which the time information is located in a plurality of time ranges;
and determining the segment to be played corresponding to the target time range as a target playing segment in the plurality of segments to be played.
In a possible embodiment, the monitoring whether the switching event occurs during the playing of the target video includes:
monitoring the playing progress of the target video in the process of playing the target video;
and when the playing progress reaches the target playing progress, determining that the switching event occurs.
In a possible embodiment, the monitoring whether the switching event occurs during the playing of the target video includes:
monitoring whether a switching instruction for indicating switching of the target video is received or not in the process of playing the target video;
and when a switching instruction for switching the target video is received, determining that the switching event occurs.
In a possible implementation manner, the obtaining a switching event corresponding to the target video, a plurality of segments to be played, and a time range corresponding to the plurality of segments to be played includes:
sending a downloading request to a server, wherein the downloading request is used for requesting to download the configuration file corresponding to the target video;
receiving a download address returned by the server based on the download request, and downloading the configuration file based on the download address;
and analyzing the configuration file to obtain a switching event corresponding to the target video, a plurality of fragments to be played and a time range corresponding to the plurality of fragments to be played.
In one possible embodiment, the method further comprises:
and playing the target playing segment.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In another embodiment provided by the present application, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any of the above-mentioned video playing methods.
In yet another embodiment provided by the present application, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the video playback methods of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A video playback method, the method comprising:
when a target video is played, acquiring a switching event corresponding to the target video, a plurality of clips to be played and a time range corresponding to the plurality of clips to be played;
monitoring whether the switching event occurs or not in the process of playing the target video;
when the switching event is monitored to occur, determining time information of the switching event, and determining a target time range in which the time information is located in a plurality of time ranges;
and determining the segment to be played corresponding to the target time range as a target playing segment in the plurality of segments to be played.
2. The method according to claim 1, wherein the monitoring whether the switching event occurs during the playing of the target video comprises:
monitoring the playing progress of the target video in the process of playing the target video;
and when the playing progress reaches the target playing progress, determining that the switching event occurs.
3. The method of claim 1, wherein monitoring whether the switching event occurs during the playing of the target video comprises:
monitoring whether a switching instruction for indicating switching of the target video is received or not in the process of playing the target video;
and when a switching instruction for switching the target video is received, determining that the switching event occurs.
4. The method according to claim 1, wherein the obtaining of the switching event corresponding to the target video, the plurality of segments to be played, and the time ranges corresponding to the plurality of segments to be played comprises:
sending a downloading request to a server, wherein the downloading request is used for requesting to download the configuration file corresponding to the target video;
receiving a download address returned by the server based on the download request, and downloading the configuration file based on the download address;
and analyzing the configuration file to obtain a switching event corresponding to the target video, a plurality of fragments to be played and a time range corresponding to the plurality of fragments to be played.
5. The method of claim 1, further comprising:
and playing the target playing segment.
6. A video playback apparatus, comprising:
the device comprises an acquisition module, a display module and a playing module, wherein the acquisition module is used for acquiring a switching event corresponding to a target video, a plurality of fragments to be played and a time range corresponding to the plurality of fragments to be played when the target video is played;
the monitoring module is used for monitoring whether the switching event occurs or not in the process of playing the target video;
the first determining module is used for determining the time information of the switching event when the switching event is monitored to occur, and determining a target time range in which the time information is located in a plurality of time ranges;
and the second determining module is used for determining the segment to be played corresponding to the target time range as the target playing segment in the plurality of segments to be played.
7. The apparatus according to claim 6, wherein the monitoring module is specifically configured to:
monitoring the playing progress of the target video in the process of playing the target video;
and when the playing progress reaches the target playing progress, determining that the switching event occurs.
8. The apparatus of claim 6, wherein the monitoring module is further configured to:
monitoring whether a switching instruction for indicating switching of the target video is received or not in the process of playing the target video;
and when a switching instruction for switching the target video is received, determining that the switching event occurs.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 5 when executing a program stored in the memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-5.
CN202210750086.4A 2022-06-28 2022-06-28 Video playing method and device, electronic equipment and storage medium Active CN114979770B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210750086.4A CN114979770B (en) 2022-06-28 2022-06-28 Video playing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210750086.4A CN114979770B (en) 2022-06-28 2022-06-28 Video playing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114979770A true CN114979770A (en) 2022-08-30
CN114979770B CN114979770B (en) 2024-02-02

Family

ID=82968162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210750086.4A Active CN114979770B (en) 2022-06-28 2022-06-28 Video playing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114979770B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108093315A (en) * 2017-12-28 2018-05-29 优酷网络技术(北京)有限公司 Video generation method and device
CN108924644A (en) * 2018-06-20 2018-11-30 北京优酷科技有限公司 Video clip extracting method and device
CN110784752A (en) * 2019-09-27 2020-02-11 腾讯科技(深圳)有限公司 Video interaction method and device, computer equipment and storage medium
CN111031373A (en) * 2019-12-23 2020-04-17 北京百度网讯科技有限公司 Video playing method and device, electronic equipment and computer readable storage medium
CN112423133A (en) * 2019-08-23 2021-02-26 腾讯科技(深圳)有限公司 Video switching method and device, computer readable storage medium and computer equipment
CN113347498A (en) * 2021-05-28 2021-09-03 北京爱奇艺科技有限公司 Video playing method and device and computer readable storage medium
US20220014817A1 (en) * 2020-07-07 2022-01-13 JBF Interlude 2009 LTD Systems and methods for seamless audio and video endpoint transitions

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108093315A (en) * 2017-12-28 2018-05-29 优酷网络技术(北京)有限公司 Video generation method and device
CN108924644A (en) * 2018-06-20 2018-11-30 北京优酷科技有限公司 Video clip extracting method and device
CN112423133A (en) * 2019-08-23 2021-02-26 腾讯科技(深圳)有限公司 Video switching method and device, computer readable storage medium and computer equipment
CN110784752A (en) * 2019-09-27 2020-02-11 腾讯科技(深圳)有限公司 Video interaction method and device, computer equipment and storage medium
CN111031373A (en) * 2019-12-23 2020-04-17 北京百度网讯科技有限公司 Video playing method and device, electronic equipment and computer readable storage medium
US20220014817A1 (en) * 2020-07-07 2022-01-13 JBF Interlude 2009 LTD Systems and methods for seamless audio and video endpoint transitions
CN113347498A (en) * 2021-05-28 2021-09-03 北京爱奇艺科技有限公司 Video playing method and device and computer readable storage medium

Also Published As

Publication number Publication date
CN114979770B (en) 2024-02-02

Similar Documents

Publication Publication Date Title
CN108495185B (en) Video title generation method and device
CN110290419B (en) Video playing method and device and electronic equipment
US20210160577A1 (en) Method for playing video, electronic device and storage medium
CN111246302B (en) Method, device and terminal for downloading data by browser
CN110913135A (en) Video shooting method and device, electronic equipment and storage medium
CN111669622A (en) Method and device for determining default play relationship of videos and electronic equipment
CN111541927A (en) Video playing method and device
CN112584200A (en) Screen projection method and system, electronic equipment and storage medium
CN113556568B (en) Cloud application running method, system, device and storage medium
CN111050217B (en) Video playing method and device
CN110996142B (en) Video recall method and device, electronic equipment and storage medium
CN114979770A (en) Video playing method and device, electronic equipment and storage medium
CN111079061A (en) Data processing method and electronic equipment
CN113727167B (en) Video resource playing method, device, equipment and readable storage medium
CN112770176B (en) Video frame determination method and device, electronic equipment and computer readable medium
CN113923481A (en) Multimedia content playing method and device, electronic equipment and storage medium
CN111083497B (en) Video screenshot method and device
CN115103221A (en) Screen projection method and device, electronic equipment and readable storage medium
CN114827675A (en) Video data processing method and device for application program
CN110413800B (en) Method and equipment for providing novel information
CN110868643B (en) Method and device for determining video downloading progress
CN111294641B (en) Video playing method, system, device, electronic equipment and readable storage medium
CN110888690A (en) Application starting method and device, electronic equipment and storage medium
CN111711837B (en) Target video changing method and device, electronic equipment and computer readable medium
CN112291584A (en) Dynamic effect file processing method and device and electronic equipment

Legal Events

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