CN114979770B - 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
CN114979770B
CN114979770B CN202210750086.4A CN202210750086A CN114979770B CN 114979770 B CN114979770 B CN 114979770B CN 202210750086 A CN202210750086 A CN 202210750086A CN 114979770 B CN114979770 B CN 114979770B
Authority
CN
China
Prior art keywords
playing
target
played
video
target video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210750086.4A
Other languages
Chinese (zh)
Other versions
CN114979770A (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

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, a video playing device, electronic equipment and a storage medium, and belongs to the technical field of video playing. According to the method, when the target video is played, a switching event corresponding to the target video, a plurality of fragments to be played and time ranges corresponding to the fragments to be played are acquired; monitoring whether the switching event occurs in the process of playing the target video; when the switching event is monitored, 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 to-be-played fragment corresponding to the target time range as a target play fragment in the plurality of to-be-played fragments. The method and the device can determine the fragment to be played according to the time information of the switching event, so that the interestingness of video playing is improved.

Description

Video playing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of video playing technologies, and in particular, to a video playing method, a device, an electronic apparatus, and a storage medium.
Background
Video works of traditional storylines, such as films, television dramas, network films, micro-films and the like, are often single in story content, and plot content such as the beginning, passing and ending of a story is fixed and single. Accordingly, at present, in various video playing scenes, playing is performed based on single story content. In recent years, in order to improve the viewing experience of users, some video works may capture multiple branching storylines according to different storylines in the capturing and making process, for example, the same story line is in front, and finally, multiple different story ends are corresponding. However, when playing the aforementioned video work including a plurality of branching storylines, how to determine the branching storylines to be played becomes a problem to be solved.
Disclosure of Invention
In order to solve the technical problem of how to determine the branching storyline to be played, the application provides a video playing method, a video playing device, electronic equipment and a storage medium.
In a first aspect, a video playing method is provided, the method includes:
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 fragments to be played;
monitoring whether the switching event occurs in the process of playing the target video;
when the switching event is monitored, 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 to-be-played fragment corresponding to the target time range as a target play fragment in the plurality of to-be-played fragments.
In one possible implementation manner, the monitoring whether the switching event occurs during the playing of the target video includes:
monitoring the playing progress of playing 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 implementation manner, the monitoring whether the switching event occurs during the playing of the target video includes:
in the process of playing the target video, monitoring whether a switching instruction for indicating to switch the target video is received or not;
and when a switching instruction for switching the target video is received, determining that the switching event occurs.
In one possible implementation manner, the obtaining the switching event, the plurality of segments to be played, and the time ranges corresponding to the plurality of segments to be played corresponding to the target video includes:
a downloading request is sent to a server, wherein the downloading request is used for requesting to download a 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 fragments to be played.
In one possible embodiment, the method further comprises:
and playing the target playing fragment.
In a second aspect, there is provided a video playing device, the device comprising:
the acquisition module is used for acquiring a switching event corresponding to the target video, a plurality of fragments to be played and a time range corresponding to the fragments to be played when the target video is played;
the monitoring module is used for monitoring whether the switching event occurs in the process of playing the target video;
the first determining module is used for determining time information of the switching event when the switching event is monitored, 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 to-be-played fragment corresponding to the target time range as a target play fragment in the plurality of to-be-played fragments.
In one possible embodiment, the monitoring module is specifically configured to:
monitoring the playing progress of playing 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:
in the process of playing the target video, monitoring whether a switching instruction for indicating to switch the target video is received or not;
and when a switching instruction for switching the target video is received, determining that the switching event occurs.
In one possible implementation manner, the acquiring module is specifically configured to:
a downloading request is sent to a server, wherein the downloading request is used for requesting to download a 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 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, including a processor, a communication interface, a memory, and a communication bus, where 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 aspects when executing a program stored on a memory.
In a fourth aspect, a computer-readable storage medium is provided, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of the first aspects.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform any of the video playback methods described above.
The beneficial effects of the embodiment of the application are that:
the embodiment of the application provides a video playing method, a device, electronic equipment and a storage medium, wherein when a target video is played, a switching event corresponding to the target video, a plurality of fragments to be played and time ranges corresponding to the fragments to be played are acquired; then, monitoring whether the switching event occurs in the process of playing the target video; when the switching event is monitored, 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 to-be-played fragment corresponding to the target time range as a target play fragment in the plurality of to-be-played fragments. In this way, when playing video containing a plurality of branching storylines, a target playing section can be determined in a plurality of sections to be played (i.e. branching storylines) according to the time information of the occurrence of the switching event, thereby increasing the interest of watching video.
Of course, not all of the above-described advantages need be achieved simultaneously in practicing any one of the products or methods of the present application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the 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 that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a flowchart of a video playing method provided in an embodiment of the present application;
fig. 2 is a flowchart of another video playing method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a video playing device 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
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of 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 apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present application based on the embodiments herein.
Because of the video works of the traditional scenario, such as films, television dramas, network films, micro-movies and the like, the story contents are always single, and the plot contents such as the beginning, the passing, the ending and the like of the story are all fixed single. Accordingly, at present, in various video playing scenes, playing is performed based on single story content. In recent years, in order to improve the viewing experience of users, some video works may capture multiple branching storylines according to different storylines in the capturing and making process, for example, the same story line is in front, and finally, multiple different story ends are corresponding. However, when playing the aforementioned video work including a plurality of branching storylines, how to determine the branching storylines to be played becomes a problem to be solved. Therefore, the embodiment of the application provides a video playing method.
The following will describe a video playing method provided in the embodiment of the present application in detail with reference to the specific embodiment, 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 fragments to be played and a time range corresponding to the fragments to be played are obtained.
The target video is a video corresponding to a plurality of segments to be played at a certain node, wherein the content of the video in each segment to be played is different.
For example, a movie corresponds to a plurality of outcomes at the ending portion, i.e., the movie is a target video, and the video content corresponding to each of the outcomes is a clip to be played.
And presetting a time range corresponding to each fragment to be played for each fragment to be played. Preferably, the time range of the to-be-played segment may be determined according to the video content of the to-be-played segment. Therefore, the played video can be attached to the watching time of the user, and the watching interestingness is improved.
For example, there are three segments to be played corresponding to the target video, wherein the video content corresponding to one segment to be played is a related scenario in the night, and the corresponding time range is 23:00 to 5:59 in the early morning; the video content corresponding to the second to-be-played segment is related scenario of the daytime shift, and the corresponding time range is 6:00 to 17:59; the video content corresponding to the to-be-played fragment III is related scenario of the evening going to work, and the corresponding time range is 18:00 to 22:59.
The switching event is an event for triggering the target playing fragment to be determined in the plurality of fragments to be played.
In the embodiment of the application, when the target video is played, a switching event, a plurality of segments to be played and a time range corresponding to the segments to be played corresponding to the target video can be acquired.
S102, monitoring whether the switching event occurs in the process of playing the target video.
In the embodiment of the application, during the process of playing the target video, whether the switching event occurs can be monitored in real time, so as to determine whether to trigger the process of determining the target playing segment in the multiple segments to be played.
And S103, when the occurrence of the switching event is monitored, determining time information of the occurrence of the switching event, and determining a target time range in which the time information is located in a plurality of time ranges.
S104, determining the to-be-played fragment corresponding to the target time range as a target play fragment in the plurality of to-be-played fragments.
S103 to S104 are collectively described below:
the time information refers to the time at which the switching event occurs.
In the embodiment of the application, when the occurrence of the switching event is monitored, the time information of the occurrence of the switching event can be determined. Further, in the time ranges corresponding to the plurality of clips to be played, the time range in which the time information is located is determined, the time range is determined as a target time range, and the clips to be played corresponding to the target time range are determined as target clips to be played.
For example, there are three segments to be played corresponding to the target video, wherein the time range corresponding to the first segment to be played is 23:00 to 5:59 in the morning; the corresponding time range of the second to-be-played fragment is 6:00 to 17:59; the corresponding time range of the to-be-played fragment III is 18:00 to 22:59. The time information when the switching event occurs is 8:00, determining that the time information falls in a time range corresponding to the second to-be-played fragment is 6:00 to 17:59, and thus, determining the time range corresponding to the second to-be-played fragment as the target time range, and determining the second to-be-played fragment as the target play fragment.
In the embodiment of the application, when a target video is played, a switching event corresponding to the target video, a plurality of fragments to be played and time ranges corresponding to the fragments to be played are acquired; then, monitoring whether the switching event occurs in the process of playing the target video; when the switching event is monitored, 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 to-be-played fragment corresponding to the target time range as a target play fragment in the plurality of to-be-played fragments. In this way, when playing video containing a plurality of branching storylines, a target playing section can be determined in a plurality of sections to be played (i.e. branching storylines) according to the time information of the occurrence of the switching event, thereby increasing the interest of watching video.
In yet another embodiment of the present application, the step S102 may include the following steps:
monitoring the playing progress of playing 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 this embodiment of the present application, the progress detection device may be started when the target video is played, and the progress detection device is used to detect the playing progress of the playing target video in real time, and when the target video is played to the target playing progress, a switching event occurs, that is, an event triggering to determine the target playing segment in the multiple segments to be played.
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. The process of determining the target playing fragment in the plurality of fragments to be played according to the triggering of the playing progress can be realized.
In yet another embodiment of the present application, the step S102 may further include the following steps:
in the process of playing the target video, monitoring whether a switching instruction for indicating to switch the target video is received or not; 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 to switch the target video is received or not is monitored in real time; upon receiving a switch instruction to switch the target video, it means that a switch event occurs. The process of determining the target playing fragment in the plurality of fragments to be played can be triggered according to the switching instruction.
In yet another embodiment of the present application, as shown in fig. 2, the step S101 may further include the following steps:
s201, a downloading request is sent to a server, wherein the downloading request is used for requesting to download a 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 fragments to be played and a time range corresponding to the fragments 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 may 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 fragments to be played and a time range corresponding to the fragments to be played.
When playing the target video, the playing terminal can send a downloading request for requesting to download a configuration file corresponding to the target video to the server, wherein the playing request can carry a video identifier of the target video. After receiving the download request, the server can search the corresponding configuration file based on the video identifier, and return the download address of the searched configuration file to the playing terminal. After receiving the download address returned by the server, the playing terminal can download the configuration file based on the download address. And further 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 fragments to be played. Therefore, the configuration file can be obtained at the server side without being stored 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 locally, and when the storage time reaches a preset duration, the configuration file is deleted. Thereby reducing the local storage pressure of the playback terminal.
In yet another embodiment of the present application, the method may further comprise the steps of: and playing the target playing fragment.
In an embodiment, after the target playing segment is determined, the target playing segment can be directly played, so that automatic playing of the target playing segment can be realized.
In yet another embodiment, the target play segment may be played when a play instruction for instructing to play the target play segment is received. Therefore, the target playing fragment can be played according to the instruction issued by the user.
In yet another embodiment of the present application, before playing the target playing piece, the method may further include the following steps:
and obtaining the transition video corresponding to the target playing segment, and playing the transition video.
The transition video can be a prefabricated transition animation or a flashing effect, and the transition is more natural by playing the transition video first and then playing the target to-be-played fragment, so that the user watching experience is improved.
Based on the same technical concept, the embodiment of the present application further provides a video playing device, as shown in fig. 3, where the device includes:
the obtaining module 301 is configured to obtain, 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;
the monitoring module 302 is 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 the occurrence of the switching event is detected, time information of the occurrence of the switching event, and determine, among a plurality of time ranges, a target time range in which the time information is located;
the second determining module 304 is configured to determine, among the plurality of segments to be played, a segment to be played corresponding to the target time range as a target play segment.
In one possible embodiment, the monitoring module is specifically configured to:
monitoring the playing progress of playing 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:
in the process of playing the target video, monitoring whether a switching instruction for indicating to switch the target video is received or not;
and when a switching instruction for switching the target video is received, determining that the switching event occurs.
In one possible implementation manner, the acquiring module is specifically configured to:
a downloading request is sent to a server, wherein the downloading request is used for requesting to download a 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 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 fragments to be played and time ranges corresponding to the fragments to be played are acquired; then, monitoring whether the switching event occurs in the process of playing the target video; when the switching event is monitored, 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 to-be-played fragment corresponding to the target time range as a target play fragment in the plurality of to-be-played fragments. In this way, when playing video containing a plurality of branching storylines, a target playing section can be determined in a plurality of sections to be played (i.e. branching storylines) according to the time information of the occurrence of the switching event, thereby increasing the interest of watching video.
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 perform communication with each other through the communication bus 114,
a memory 113 for storing a computer program;
the processor 111 is configured to execute a program stored in the memory 113, and implement 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 fragments to be played;
monitoring whether the switching event occurs in the process of playing the target video;
when the switching event is monitored, 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 to-be-played fragment corresponding to the target time range as a target play fragment in the plurality of to-be-played fragments.
In one possible implementation manner, the monitoring whether the switching event occurs during the playing of the target video includes:
monitoring the playing progress of playing 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 implementation manner, the monitoring whether the switching event occurs during the playing of the target video includes:
in the process of playing the target video, monitoring whether a switching instruction for indicating to switch the target video is received or not;
and when a switching instruction for switching the target video is received, determining that the switching event occurs.
In one possible implementation manner, the obtaining the switching event, the plurality of segments to be played, and the time ranges corresponding to the plurality of segments to be played corresponding to the target video includes:
a downloading request is sent to a server, wherein the downloading request is used for requesting to download a 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 fragments to be played.
In one possible embodiment, the method further comprises:
and playing the target playing fragment.
The communication bus mentioned above for the electronic devices may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include 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 aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment provided herein, there is also provided a computer readable storage medium having stored therein a computer program which when executed by a processor implements the steps of any of the video playing methods described above.
In yet another embodiment provided herein, there is also provided a computer program product containing instructions that, when run on a computer, cause the computer to perform any of the video playback methods of the above embodiments.
In the above embodiments, it may be implemented in whole or in part 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, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more 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)), etc.
It should be noted that in this document, relational terms such as "first" and "second" and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is merely a specific embodiment of the application to enable one skilled in the art to understand or practice the 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 (7)

1. A video playing method, the method comprising:
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 fragments to be played;
monitoring whether the switching event occurs in the process of playing the target video;
when the switching event is monitored, 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;
determining the to-be-played fragment corresponding to the target time range as a target play fragment in the plurality of to-be-played fragments;
wherein, in the process of playing the target video, monitoring whether the switching event occurs includes:
monitoring the playing progress of playing the target video in the process of playing the target video;
when the playing progress reaches the target playing progress, determining that the switching event occurs;
the method further comprises the steps of: playing the target playing fragment;
before playing the target playing fragment, the method further comprises the following steps: and obtaining the transition video corresponding to the target playing segment, and playing the transition video.
2. The method of claim 1, wherein monitoring whether the switching event occurs during the playing of the target video comprises:
in the process of playing the target video, monitoring whether a switching instruction for indicating to switch the target video is received or not;
and when a switching instruction for switching the target video is received, determining that the switching event occurs.
3. The method of claim 1, wherein the obtaining the switching event, the plurality of segments to be played, and the time range corresponding to the plurality of segments to be played corresponding to the target video comprises:
a downloading request is sent to a server, wherein the downloading request is used for requesting to download a 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 fragments to be played.
4. A video playback device, the device comprising:
the acquisition module is used for acquiring a switching event corresponding to the target video, a plurality of fragments to be played and a time range corresponding to the fragments to be played when the target video is played;
the monitoring module is used for monitoring whether the switching event occurs in the process of playing the target video;
the first determining module is used for determining time information of the switching event when the switching event is monitored, and determining a target time range in which the time information is located in a plurality of time ranges;
the second determining module is used for determining the to-be-played fragment corresponding to the target time range as a target play fragment in the plurality of to-be-played fragments;
wherein, the monitoring module is specifically configured to:
monitoring the playing progress of playing the target video in the process of playing the target video;
when the playing progress reaches the target playing progress, determining that the switching event occurs;
the device also comprises a playing module for: playing the target playing fragment;
the playing module is further configured to: and obtaining the transition video corresponding to the target playing segment, and playing the transition video.
5. The apparatus of claim 4, wherein the monitoring module is further configured to:
in the process of playing the target video, monitoring whether a switching instruction for indicating to switch the target video is received or not;
and when a switching instruction for switching the target video is received, determining that the switching event occurs.
6. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for carrying out the method steps of any one of claims 1-3 when executing a program stored on a memory.
7. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-3.
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 CN114979770A (en) 2022-08-30
CN114979770B true 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 (6)

* 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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220014817A1 (en) * 2020-07-07 2022-01-13 JBF Interlude 2009 LTD Systems and methods for seamless audio and video endpoint transitions

Patent Citations (6)

* 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
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
CN114979770A (en) 2022-08-30

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
CN108966016B (en) Video clip rebroadcasting method and device and terminal equipment
CN112837088B (en) Advertisement putting method, advertisement putting device, advertisement putting medium and electronic equipment
CN109698979B (en) Video playing method and device and electronic equipment
CN104768066A (en) Data downloading method and device and terminal
CN108322805B (en) HBBTV display processing method and device
CN111107438A (en) Video loading method and device and electronic equipment
CN111541927A (en) Video playing method and device
CN111131812A (en) Broadcast time testing method and device and computer readable storage medium
CN114979770B (en) Video playing method and device, electronic equipment and storage medium
CN111726694B (en) Interactive video recovery playing method and device, electronic equipment and storage medium
CN112770176B (en) Video frame determination method and device, electronic equipment and computer readable medium
CN113727167B (en) Video resource playing method, device, equipment and readable storage medium
CN113573114B (en) Screen projection method and device, electronic equipment and storage medium
CN111083497B (en) Video screenshot method and device
CN111526385B (en) Video processing method and device, electronic equipment and storage medium
CN114827675A (en) Video data processing method and device for application program
CN113923481A (en) Multimedia content playing method and device, electronic equipment and storage medium
CN111294641B (en) Video playing method, system, device, electronic equipment and readable storage medium
CN111711837B (en) Target video changing method and device, electronic equipment and computer readable medium
CN113473247A (en) Video playing request processing method, device and system and electronic equipment
CN110868643A (en) Method and device for determining video downloading progress
CN114827665B (en) Video analysis method, device, equipment and storage medium

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