CN111726694B - Interactive video recovery playing method and device, electronic equipment and storage medium - Google Patents

Interactive video recovery playing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111726694B
CN111726694B CN202010622364.9A CN202010622364A CN111726694B CN 111726694 B CN111726694 B CN 111726694B CN 202010622364 A CN202010622364 A CN 202010622364A CN 111726694 B CN111726694 B CN 111726694B
Authority
CN
China
Prior art keywords
video
playing
interactive
record
time
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
CN202010622364.9A
Other languages
Chinese (zh)
Other versions
CN111726694A (en
Inventor
刘晓丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202010622364.9A priority Critical patent/CN111726694B/en
Publication of CN111726694A publication Critical patent/CN111726694A/en
Application granted granted Critical
Publication of CN111726694B publication Critical patent/CN111726694B/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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations
    • 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

Abstract

The embodiment of the invention provides a method and a device for resuming playing of an interactive video, electronic equipment and a storage medium; wherein the method comprises the following steps: receiving a video playing instruction of an interactive video sent by a user; the interactive video comprises a plurality of video clips and at least one interactive interface, the interactive interface is displayed in the playing process of the video clips, and the interactive interface is loaded through preset loading duration before being displayed; acquiring a pre-stored playing record of an interactive video, wherein the playing record of the interactive video comprises a first type playing record and a second type playing record; selecting a newly generated play record as a target record from the obtained play records of the interactive video; and playing the interactive video by using the target record. The problem that the playing of the interactive video cannot be resumed at the last playing progress can be solved by the scheme when the existing interactive video is closed in the middle of playing and the video is played again by the same user later.

Description

Interactive video recovery playing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of video playing technologies, and in particular, to a method and an apparatus for resuming playing of an interactive video, an electronic device, and a storage medium.
Background
In order to enhance the user's experience of watching a video, interactive videos, such as videos containing branching scenarios, are produced. During the playing process of the interactive video, the user can select the plot to watch based on the self position or preference. Different from the traditional method that the user passively receives the video content, when watching the video with plot branches, the user can participate and influence the plot development, and the interactive video enters different plots due to different selections, so that the content experience of the user on watching the video is greatly improved.
At present, if an interactive video is closed in the middle of playing, and then the same user plays the video again, the interactive video cannot be resumed to be played at the last playing progress, and is usually played from the beginning, which undoubtedly affects the experience of the user in watching the interactive video.
Disclosure of Invention
An object of the embodiments of the present invention is to provide a method and an apparatus for resuming playing of an interactive video, an electronic device, and a storage medium, so as to solve a problem that when an existing interactive video is closed during playing and then the same user plays the video again, the interactive video cannot resume playing at a previous playing progress. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a method for resuming playing of an interactive video, which is applied to an electronic device; the method comprises the following steps:
receiving a video playing instruction of an interactive video sent by a user; the interactive video comprises a plurality of video clips and at least one interactive interface, the interactive interface is displayed in the playing process of the video clips and is used for guiding a user to select a video plot branch, and the interactive interface is loaded through preset loading duration before being displayed;
obtaining a pre-stored playing record of the interactive video, wherein the playing record of the interactive video comprises at least one of a plurality of types of playing records, and the plurality of types of playing records comprise a first type of playing record generated based on the preset loading duration when each interactive interface of the interactive video starts playing; when the interactive video is closed in a non-interactive period of the interactive video, generating a second type of playing record based on video closing time, wherein the non-interactive period is a playing period of the interactive video except for a display period of the interactive interface;
selecting a newly generated play record as a target record from the obtained play records of the interactive video;
and playing the interactive video by using the target record.
Optionally, the generating manner of the first type play record includes:
when each interactive interface of the interactive video starts playing, generating a first type of playing record comprising the playing time corresponding to the interactive interface and the segment identifier of the video segment to which the interactive interface belongs; wherein, the playing time corresponding to the interactive interface is as follows: and subtracting the preset offset time length corresponding to the interactive interface from the playing start time of the interactive interface in the video clip to obtain the time, wherein the preset offset time length corresponding to the interactive interface is not less than the preset loading time length of the interactive interface.
Optionally, the generating and sending manner of the second type play record includes:
when the interactive video is closed in the non-interactive period of the interactive video, if the target video clip which is being played does not contain any interactive interface, a second-class play record containing the video closing time and the clip identifier of the video clip which is being played is generated; the video closing time is the current playing time of the target video clip when the interactive video is closed;
if the target video clip comprises an interactive interface, if the video closing time is detected to be positioned before the playing starting time of the interactive interface in the target video clip and the difference between the playing starting time and the video closing time is not greater than the preset loading time, generating a second-class playing record comprising the playing time corresponding to the interactive interface and the clip identifier of the target video clip; otherwise, generating a second type play record containing the video closing time and the segment identifier of the target video segment.
Optionally, the multi-category play records further include: playing records of a third type;
the third type of play record is a play record generated when any video clip except the first video clip of the interactive video starts to play.
Optionally, the generation manner of the third type of play record includes:
and when any video clip except the first video clip of the interactive video starts playing, generating a third type playing record containing the starting playing time of the video clip and the clip identifier of the video clip.
In a second aspect, an embodiment of the present invention provides a playback resuming device for an interactive video, which is applied to an electronic device; the device comprises:
the instruction receiving module is used for receiving a video playing instruction of an interactive video sent by a user; the interactive video comprises a plurality of video clips and at least one interactive interface, the interactive interface is displayed in the playing process of the video clips and is used for guiding a user to select a video plot branch, and the interactive interface is loaded through preset loading duration before being displayed;
the record acquisition module is used for acquiring a prestored playing record of the interactive video, wherein the playing record of the interactive video comprises at least one of multiple types of playing records, and the multiple types of playing records comprise a first type of playing record generated based on the preset loading duration when each interactive interface of the interactive video starts playing; when the interactive video is closed in a non-interactive period of the interactive video, generating a second type of playing record based on video closing time, wherein the non-interactive period is a playing period of the interactive video except for a display period of the interactive interface;
the record selection module is used for selecting the latest generated playing record as a target record from the acquired playing records of the interactive video;
and the video playing module is used for playing the interactive video by utilizing the target record.
Optionally, the generation manner of the first type play record includes:
when each interactive interface of the interactive video starts playing, generating a first type of playing record comprising the playing time corresponding to the interactive interface and the segment identifier of the video segment to which the interactive interface belongs; wherein, the playing time corresponding to the interactive interface is as follows: and subtracting the preset offset time length corresponding to the interactive interface from the playing start time of the interactive interface in the video clip to obtain the time, wherein the preset offset time length corresponding to the interactive interface is not less than the preset loading time length of the interactive interface.
Optionally, the generating and sending manner of the second type play record includes:
when the interactive video is closed in the non-interactive period of the interactive video, if the target video clip which is being played does not contain any interactive interface, a second-class play record containing the video closing time and the clip identifier of the video clip which is being played is generated; the video closing time is the current playing time of the target video clip when the interactive video is closed;
if the target video clip comprises an interactive interface, if the video closing time is detected to be before the playing starting time of the interactive interface in the target video clip and the difference between the playing starting time and the video closing time is not greater than the preset loading time, generating a second type playing record comprising the playing time corresponding to the interactive interface and the clip identifier of the target video clip; otherwise, generating a second type play record containing the video closing time and the segment identifier of the target video segment.
Optionally, the multi-category play records further include: playing records of a third type;
the third type of play record is a play record generated when any video clip except the first video clip of the interactive video starts to play.
Optionally, the generation manner of the third type of play record includes:
when any video segment except the first video segment of the interactive video starts to play, generating a third-class play record containing the start play time of the video segment and the segment identifier of the video segment.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
a processor configured to implement the method steps of the first aspect when executing the program stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method steps described in the first aspect are implemented.
In the scheme provided by the embodiment of the invention, according to a video playing instruction of an interactive video sent by a user, when the interactive video starts playing on an interactive interface by using a prestored interactive video, a first type of playing record is generated based on a preset loading time length, when the interactive video is closed in a non-interactive time period, a second type of playing record is generated based on a video closing time, a target record which is generated latest at a time point is selected from the first type of playing record, and the interactive video is played according to the target record. The first type of playing record and the second type of playing record provide progress recovery basis for the interactive video to be played again, so that the interactive video can be recovered and played, and the problem that the interactive video cannot be recovered and played at the last playing progress when the existing interactive video is closed in the middle of playing and the video is played again by the same user later can be solved.
In addition, by adopting the interactive video playback resuming method provided by the embodiment of the invention, after the interactive video is closed in the playing process, when the same user plays the video again, the interactive video can resume playing at the last playing progress, and the interactive video does not need to be played from the beginning, so that the user experience of watching the interactive video is effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a flowchart of a method for resuming playing of an interactive video according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a device for resuming playing of an interactive video according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an interactive interface for displaying interactive videos according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
In order to solve the problem that the existing interactive video is closed in the middle of playing and the interactive video cannot be played back at the last playing progress when the same user plays the video again later, embodiments of the present invention provide a method and an apparatus for playing back an interactive video, an electronic device, and a storage medium.
The interactive video comprises a plurality of video clips and at least one interactive interface, wherein the interactive interface is displayed in the playing process of the video clips and is used for guiding a user to select a video plot branch. For example, one form of the interactive interface display scenario branch is shown in fig. 4, in which an optional scenario one and an optional scenario two are video scenario branches displayed by the interactive video. In addition, the interactive interface can be displayed in the forms of a floating layer, a popup window, a prompt and the like. Because the interactive video is played through the user interactive selection drive, the interactive interface of the interactive video cannot be skipped in the playing process.
First, a method for resuming playing of an interactive video provided by an embodiment of the present invention is described below. Wherein the method can be applied to electronic devices. In a specific application, the electronic device may be a terminal device such as a smart phone or a personal computer, or the electronic device may also be a server corresponding to the video playing client.
An embodiment of the present invention provides a method for resuming playing of an interactive video, which, as shown in fig. 1, may include:
s101, receiving a video playing instruction of an interactive video sent by a user;
the interactive video comprises a plurality of video clips and at least one interactive interface, the interactive interface is displayed in the playing process of the video clips and is used for guiding a user to select a video plot branch, and the interactive interface is loaded through preset loading duration before being displayed;
s102, obtaining the pre-stored playing record of the interactive video,
the playing records of the interactive video comprise at least one of multiple types of playing records, wherein the multiple types of playing records comprise a first type of playing record generated based on the preset loading duration when each interactive interface of the interactive video starts to play; when the interactive video is closed in a non-interactive period of the interactive video, generating a second type of playing record based on video closing time, wherein the non-interactive period is a playing period of the interactive video except for a display period of the interactive interface;
s103, selecting the latest generated playing record as a target record from the acquired playing records of the interactive video;
and S104, playing the interactive video by using the target record.
In the scheme provided by the embodiment of the invention, according to a video playing instruction of an interactive video sent by a user, when the interactive video starts playing on an interactive interface by using a prestored interactive video, a first type of playing record is generated based on a preset loading time length, when the interactive video is closed in a non-interactive time period, a second type of playing record is generated based on a video closing time, a target record which is generated latest at a time point is selected from the first type of playing record, and the interactive video is played according to the target record. Because the first type of playing record and the second type of playing record provide progress recovery basis for the re-playing of the interactive video, the recovery playing of the interactive video can be realized, and the problem that the playing of the interactive video cannot be recovered at the last playing progress when the current interactive video is closed in the middle of playing and the video is played again by the same user later can be solved.
Referring to fig. 1, a detailed description is given of a method for resuming playing of an interactive video according to an embodiment of the present invention, as shown in fig. 1, the method may include:
s101, receiving a video playing instruction of an interactive video sent by a user.
The interactive video comprises a plurality of video clips and at least one interactive interface, the interactive interface is displayed in the playing process of the video clips and used for guiding a user to select a video plot branch, and the interactive interface is loaded through preset loading duration before being displayed.
The method for the user to send the video playing instruction of the interactive video is not limited in the embodiment of the present invention.
And S102, obtaining the pre-stored playing record of the interactive video.
The playing records of the interactive video comprise at least one of a plurality of types of playing records, wherein the plurality of types of playing records comprise a first type of playing record generated based on the preset loading time length when each interactive interface of the interactive video starts to play; and when the interactive video is closed in the non-interactive time period of the interactive video, generating a second type of playing record based on the video closing time, wherein the non-interactive time period is the playing time period of the interactive video except the display time period of the interactive interface.
It should be noted that, if the user closes the interactive video during the playing of the interactive video, in order to enable the user to resume playing at the last playing progress of the interactive video when viewing the interactive video again, a pre-stored playing record of the interactive video needs to be acquired. In addition, before the interactive interface is displayed, the interactive interface needs to be loaded first to complete the preparation processing operation of the interactive interface display, so that if the playing time for resuming the playing of the interactive video is the video closing time of the interactive video or is within the display time period of the interactive interface, the display of the interactive interface is later than the expected display time, and the interactive interface cannot be normally displayed. For the situation, in order to restore normal playing when the interactive video is played again, the first type playing record and the second type playing record for restoring playing are set in the embodiment of the present invention.
The generating method of the first type play record may include:
when each interactive interface of the interactive video starts playing, generating a first type of playing record comprising the playing time corresponding to the interactive interface and the segment identifier of the video segment to which the interactive interface belongs;
wherein, the playing time corresponding to the interactive interface is as follows: and subtracting the preset offset time length corresponding to the interactive interface from the playing start time of the interactive interface in the video clip to obtain the time, wherein the preset offset time length corresponding to the interactive interface is not less than the preset loading time length of the interactive interface.
For example, the playing start time of an interactive interface in the interactive video is 12' 40 ", and the segment identifier of the video segment to which the interactive interface belongs is ID 202001. If the preset loading time length corresponding to the interactive interface is 5s, and if the preset offset time length corresponding to the interactive interface is also 5s, the playing time corresponding to the interactive interface is 12 '35'. It should be noted that, since the predetermined offset duration corresponding to the interactive interface is not less than the predetermined loading duration of the interactive interface, if the predetermined offset duration is 6s, the playing time corresponding to the interactive interface may be 12' 34 "; if the predetermined offset time is 7s, the playing time corresponding to the interactive interface may be 12' 33 ".
By the above example, when the interactive interface starts playing, a first type play record including the playing time 12 ' 35 "(or 12 ' 34", or 12 ' 33 ") corresponding to the interactive interface and the clip identifier ID202001 of the video clip to which the interactive interface belongs may be generated.
The generating method of the second type of play record may include:
when the interactive video is closed in the non-interactive period of the interactive video, if the target video clip which is being played does not contain any interactive interface, a second-class play record containing the video closing time and the clip identifier of the video clip which is being played is generated; the video closing time is the current playing time of the target video clip when the interactive video is closed;
if the target video clip comprises an interactive interface, if the video closing time is detected to be before the playing starting time of the interactive interface in the target video clip and the difference between the playing starting time and the video closing time is not greater than the preset loading time, generating a second type playing record comprising the playing time corresponding to the interactive interface and the clip identifier of the target video clip; otherwise, generating a second type play record containing the video closing time and the segment identifier of the target video segment.
For example, the playing start time of an interactive interface in the interactive video is 12' 40 ", and the segment identifier of the video segment to which the interactive interface belongs is ID 202005. And if the preset loading time corresponding to the interactive interface is 5 s.
For one case, if the video closing time is 12 ' 36 ", that is, the video closing time is before the playing start time of the interactive interface in the target video clip, and the difference 4s between the playing start time 12 ' 40" and the video closing time 12 ' 36 "is not greater than the predetermined loading time length 5s, a second type playing record containing the playing time corresponding to the interactive interface and the clip identifier ID202005 of the target video clip is generated.
The playing time corresponding to the interactive interface is as follows: and subtracting the preset offset time length corresponding to the interactive interface from the playing start time 12 '40' of the interactive interface in the video clip to obtain the time, wherein the preset offset time length corresponding to the interactive interface is not less than the preset loading time length of the interactive interface. Because the preset loading time length corresponding to the interactive interface is 5s, if the preset offset time length corresponding to the interactive interface is also 5s, the playing time corresponding to the interactive interface is 12 '35 ", and if the preset offset time length is 6s, the playing time corresponding to the interactive interface can be 12' 34"; if the predetermined offset time is 7s, the playing time corresponding to the interactive interface may be 12' 33 ".
For another case, if the video closing time is 12 '32 ", that is, the video closing time is before the playing start time of the interactive interface in the target video clip, but the difference 8s between the playing start time 12' 40" and the video closing time 12 '32 "is greater than the predetermined loading time length 5s, a second type playing record containing the video closing time 12' 32" and the clip identification ID202005 of the target video clip is directly generated.
It can be understood that, if the target video segment being played does not include an interactive interface, there is no need to reserve a certain loading time for loading the interactive interface, in other words, the interactive interface does not affect the interactive video playback. At this time, when the interactive video is closed, the current playing time of the target video clip is used as the video closing time of the second type playing record, and the interactive video can be restored and played.
It should be noted that, if the target video segment being played includes an interactive interface and the user closes the video in the process of loading the interactive interface, when the interactive video is directly resumed in the process of loading the interactive interface, due to the fact that a certain time is not reserved for the preparation processing operation of loading the interactive interface, abnormalities such as the interactive interface being displayed later than the expected display time and the interactive interface being unable to be normally displayed occur, and the resumption of playing of the interactive video is affected. Therefore, when the user is judged to close the video in the loading process of the interactive interface, enough time is reserved for loading the interactive interface by forward adjusting the time in the playing record of the interactive video resuming playing, so that the abnormity that the interactive interface display is later than the expected display time, the interactive interface cannot be normally displayed and the like can be overcome, and the interactive video resuming playing influenced by the loading of the interactive interface is effectively avoided.
In addition, if the playing record of the interactive video is not acquired, the interactive video is considered to be played for the first time, and the playing is started from the first video clip of the interactive video.
S103, selecting the latest generated playing record as a target record from the acquired playing records of the interactive video.
The target record is determined according to the time of the generation of the playing record, and the latest generation time, namely the latest generated playing record, is used as the target record. The target record may be a first type of play record automatically generated when each interactive interface starts playing the interactive video, may also be a second type of play record generated when the user closes the interactive video, and may also be another play record generated in another manner, for example, a third type of play record automatically generated when any video clip except the first video clip of the interactive video starts playing.
And S104, playing the interactive video by using the target record.
After the target record is obtained, the interactive video can be restored and played according to the segment identification and the time in the target record.
In the scheme provided by the embodiment of the invention, according to a video playing instruction of an interactive video sent by a user, when the interactive video starts playing on an interactive interface by using a prestored interactive video, a first type of playing record is generated based on a preset loading time length, when the interactive video is closed in a non-interactive time period, a second type of playing record is generated based on a video closing time, a target record which is generated latest at a time point is selected from the first type of playing record, and the interactive video is played according to the target record. Because the first type of playing record and the second type of playing record provide progress recovery basis for the re-playing of the interactive video, the recovery playing of the interactive video can be realized, and the problem that the playing of the interactive video cannot be recovered at the last playing progress when the current interactive video is closed in the middle of playing and the video is played again by the same user later can be solved.
In addition, by adopting the interactive video playback resuming method provided by the embodiment of the invention, after the interactive video is closed in the playing process, when the same user plays the video again, the interactive video can resume playing at the last playing progress, and the interactive video does not need to be played from the beginning, so that the user experience of watching the interactive video is effectively improved.
Considering that if a certain video segment of the interactive video is played in the loading time period before the interactive interface is displayed, the interactive video is closed due to an external reason (i.e., the user does not close the interactive video, and the external power is off as desired), at this time, since the electronic device does not have time to generate the second play record, when the user plays the interactive video again, the interactive video cannot be resumed to be played at the last playing progress. Based on this idea, in the method for resuming playing of an interactive video provided in the foregoing embodiment of the present invention, the multiple types of playing records may further include: playing records of a third type;
the third type of play record is a play record generated when any video clip except the first video clip of the interactive video starts to play.
The generation manner of the third type play record may include:
when any video segment except the first video segment of the interactive video starts to play, generating a third-class play record containing the start play time of the video segment and the segment identifier of the video segment.
It should be noted that, because the third type of play record at the moment is generated when the video clip starts to play, even if the interactive video is accidentally turned off and the first type of play record and/or the second type of play record cannot be generated, the user can resume playing from the start moment of the video clip when playing the interactive video again; compared with the playing from the beginning when the third type of playing record is not generated and the interactive video is played again, the playing mode is recovered from the starting playing moment of the video clip, so that the time for the user to watch the interactive video repeatedly is reduced, and the experience of the user in watching the interactive video is improved.
In order to better understand the scheme provided by the embodiment of the present invention, the following describes the playing process of the interactive video with reference to the first playing and the non-first playing:
(1) after receiving a video playing instruction of an interactive video sent by a user, the electronic equipment acquires a pre-stored playing record of the interactive video for the user by using a video id of the interactive video and a user id of the user;
(2) if the playing record of the interactive video is not acquired, the electronic equipment indicates that the interactive video is played for the first time or the user completes the complete playing process of the interactive video last time (aiming at the situation that when the user finishes playing the interactive video, the playing record of the interactive video in the storage area is emptied), so that the electronic equipment starts playing from the initial playing time point of the first video segment of the interactive video based on the video id of the interactive video;
and in the playing process of the interactive video, the electronic equipment generates various playing records of the interactive video according to the following playing record generation mode:
when each interactive interface of the interactive video starts playing, generating a first type of playing record comprising the playing time corresponding to the interactive interface and the segment identifier of the video segment to which the interactive interface belongs;
when the interactive video is closed in a non-interactive period of the interactive video (for example, a playing period of a video clip not including an interactive interface, a period of the video clip including the interactive interface except a display period of the interactive interface), if a target video clip being played does not include any interactive interface, indicating that the video closing time is recorded in a playing record for video recovery playing, and normal display of the interactive interface is not affected, generating a second type playing record including the video closing time and a clip identifier of the video clip being played;
if the target video clip comprises an interactive interface, if the video closing time is detected to be positioned before the playing starting time of the interactive interface in the target video clip and the difference between the playing starting time and the video closing time is not greater than the preset loading time, generating a second-class playing record comprising the playing time corresponding to the interactive interface and the clip identifier of the target video clip; otherwise, generating a second type play record containing the video closing time and the segment identifier of the target video segment;
and when any video clip except the first video clip of the interactive video starts playing, generating a third type playing record containing the starting playing time of the video clip and the clip identifier of the video clip.
(3) If the electronic equipment acquires the playing record of the interactive video, the interactive video is not played for the first time and the user does not finish the complete playing of the interactive video last time, at the moment, the electronic equipment selects the latest generated playing record as a target record from the acquired playing records of the interactive video, and the interactive video is played by using the target record;
in addition, in the process of resuming playing of the interactive video, the electronic device may also generate a playing record of the current playing process of the interactive video according to the playing record generating manner, so as to be used for resuming playing of the next video.
The playing records of the interactive video comprise at least one of a first type playing record, a second type playing record and a third type playing record.
Based on the playing process, the interactive video can be restored to be played, and the problem that the interactive video cannot be restored to be played at the last playing progress when the existing interactive video is closed in the middle of playing and the video is played again by the same user can be solved; moreover, because the third play record can be generated in the video playing process, even if the interactive video cannot generate the first type play record and/or the second type play record due to unexpected closing, the user can resume playing from the start time of the video clip when playing the interactive video again.
As shown in fig. 2, corresponding to the above method embodiment, the embodiment of the present invention further provides a device for resuming playing of an interactive video, which is applied to an electronic device; the device comprises:
the instruction receiving module 201 is configured to receive a video playing instruction of an interactive video sent by a user; the interactive video comprises a plurality of video clips and at least one interactive interface, the interactive interface is displayed in the playing process of the video clips and is used for guiding a user to select a video plot branch, and the interactive interface is loaded through preset loading duration before being displayed;
a record obtaining module 202, configured to obtain a pre-stored play record of the interactive video, where the play record of the interactive video includes at least one of multiple types of play records, and the multiple types of play records include a first type of play record generated based on the predetermined loading duration when each interactive interface of the interactive video starts to be played; when the interactive video is closed in a non-interactive period of the interactive video, generating a second type of playing record based on video closing time, wherein the non-interactive period is a playing period of the interactive video except for a display period of the interactive interface;
a record selection module 203, configured to select a newly generated play record from the obtained play records of the interactive video as a target record;
and the video playing module 204 is configured to play the interactive video by using the target record.
In the scheme provided by the embodiment of the invention, according to a video playing instruction of an interactive video sent by a user, when the interactive video starts playing on an interactive interface by using a prestored interactive video, a first type of playing record is generated based on a preset loading time length, when the interactive video is closed in a non-interactive time period, a second type of playing record is generated based on a video closing time, a target record which is generated latest at a time point is selected from the first type of playing record, and the interactive video is played according to the target record. Because the first type of playing record and the second type of playing record provide progress recovery basis for the re-playing of the interactive video, the recovery playing of the interactive video can be realized, and the problem that the playing of the interactive video cannot be recovered at the last playing progress when the current interactive video is closed in the middle of playing and the video is played again by the same user later can be solved.
In addition, by adopting the interactive video playback resuming method provided by the embodiment of the invention, after the interactive video is closed in the playing process, when the same user plays the video again, the interactive video can resume playing at the last playing progress, and the interactive video does not need to be played from the beginning, so that the user experience of watching the interactive video is effectively improved.
Optionally, the generating manner of the first type play record includes:
when each interactive interface of the interactive video starts playing, generating a first type of playing record comprising the playing time corresponding to the interactive interface and the segment identifier of the video segment to which the interactive interface belongs; wherein, the playing time corresponding to the interactive interface is as follows: and subtracting the preset offset time length corresponding to the interactive interface from the playing start time of the interactive interface in the video clip to obtain the time, wherein the preset offset time length corresponding to the interactive interface is not less than the preset loading time length of the interactive interface.
Optionally, the generating and sending manner of the second type play record includes:
when the interactive video is closed in the non-interactive period of the interactive video, if the target video clip which is being played does not contain any interactive interface, a second-class play record containing the video closing time and the clip identifier of the video clip which is being played is generated; the video closing time is the current playing time of the target video clip when the interactive video is closed;
if the target video clip comprises an interactive interface, if the video closing time is detected to be positioned before the playing starting time of the interactive interface in the target video clip and the difference between the playing starting time and the video closing time is not greater than the preset loading time, generating a second-class playing record comprising the playing time corresponding to the interactive interface and the clip identifier of the target video clip; otherwise, generating a second type play record containing the video closing time and the segment identifier of the target video segment.
Optionally, the multi-category play records further include: playing records of a third type;
the third type of play record is a play record generated when any video clip except the first video clip of the interactive video starts to play.
Optionally, the generation manner of the third type of play record includes:
when any video segment except the first video segment of the interactive video starts to play, generating a third-class play record containing the start play time of the video segment and the segment identifier of the video segment.
As shown in fig. 3, the embodiment of the present invention further provides an electronic device, which includes a processor 301, a communication interface 302, a memory 303, and a communication bus 304, wherein the processor 301, the communication interface 302, and the memory 303 complete mutual communication through the communication bus 304,
a memory 303 for storing a computer program;
the processor 301 is configured to implement the method for resuming playing of the interactive video according to any of the embodiments described above when executing the program stored in the memory 303. 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 is not intended to represent only one bus or 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 (non-volatile Memory), 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, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In another embodiment of the present invention, a computer-readable storage medium is further provided, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a computer, the computer is caused to execute the method for resuming playing of an interactive video according to any one of the above embodiments.
In another embodiment of the present invention, there is also provided a computer program product including instructions, which when run on a computer, causes the computer to execute the method for resuming playing of an interactive video according to any one 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 invention 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 including one or more available media integrated servers, data centers, and the like. 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, herein, 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.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (10)

1. A method for resuming playing of an interactive video is characterized by being applied to an electronic device; the method comprises the following steps:
receiving a video playing instruction of an interactive video sent by a user; the interactive video comprises a plurality of video clips and at least one interactive interface, the interactive interface is displayed in the playing process of the video clips and is used for guiding a user to select a video plot branch, and the interactive interface is loaded through preset loading duration before being displayed;
obtaining a pre-stored playing record of the interactive video, wherein the playing record of the interactive video comprises at least one of a plurality of types of playing records, and the plurality of types of playing records comprise a first type of playing record generated based on the preset loading duration when each interactive interface of the interactive video starts playing; when the interactive video is closed in the non-interactive time period of the interactive video, generating a second type of playing record based on video closing time, wherein the non-interactive time period is the playing time period of the interactive video except the display time period of the interactive interface;
selecting a newly generated play record as a target record from the obtained play records of the interactive video;
playing the interactive video by using the target record;
the generation mode of the first type of play record comprises the following steps:
when each interactive interface of the interactive video starts playing, generating a first type of playing record comprising the playing time corresponding to the interactive interface and the segment identifier of the video segment to which the interactive interface belongs; wherein, the playing time corresponding to the interactive interface is as follows: and subtracting the preset offset time length corresponding to the interactive interface from the playing start time of the interactive interface in the video clip to obtain the time, wherein the preset offset time length corresponding to the interactive interface is not less than the preset loading time length of the interactive interface.
2. The method of claim 1, wherein the generating of the second type of playback record comprises:
when the interactive video is closed in the non-interactive period of the interactive video, if the target video clip which is being played does not contain any interactive interface, a second-class play record containing the video closing time and the clip identifier of the video clip which is being played is generated; the video closing time is the current playing time of the target video clip when the interactive video is closed;
if the target video clip comprises an interactive interface, if the video closing time is detected to be before the playing starting time of the interactive interface in the target video clip and the difference between the playing starting time and the video closing time is not greater than the preset loading time, generating a second type playing record comprising the playing time corresponding to the interactive interface and the clip identifier of the target video clip; otherwise, generating a second type play record containing the video closing time and the segment identifier of the target video segment.
3. The method of claim 1 or 2, wherein the multi-category play records further comprise: playing records of a third type;
the third type of play record is a play record generated when any video clip except the first video clip of the interactive video starts to play.
4. The method of claim 3, wherein the third type of playback record is generated in a manner that comprises:
and when any video clip except the first video clip of the interactive video starts playing, generating a third type playing record containing the starting playing time of the video clip and the clip identifier of the video clip.
5. A recovery playing device of interactive video is characterized in that the device is applied to electronic equipment; the device comprises:
the instruction receiving module is used for receiving a video playing instruction of an interactive video sent by a user; the interactive video comprises a plurality of video clips and at least one interactive interface, the interactive interface is displayed in the playing process of the video clips and is used for guiding a user to select a video plot branch, and the interactive interface is loaded through preset loading duration before being displayed;
the record acquisition module is used for acquiring the prestored playing record of the interactive video, wherein the playing record of the interactive video comprises at least one of multiple types of playing records, and the multiple types of playing records comprise a first type of playing record generated based on the preset loading time length when each interactive interface of the interactive video starts playing; when the interactive video is closed in a non-interactive period of the interactive video, generating a second type of playing record based on video closing time, wherein the non-interactive period is a playing period of the interactive video except for a display period of the interactive interface;
the record selection module is used for selecting the latest generated playing record as a target record from the acquired playing records of the interactive video;
the video playing module is used for playing the interactive video by utilizing the target record;
the generation mode of the first type of play record comprises the following steps:
when each interactive interface of the interactive video starts playing, generating a first type of playing record comprising the playing time corresponding to the interactive interface and the segment identifier of the video segment to which the interactive interface belongs; wherein, the playing time corresponding to the interactive interface is as follows: and subtracting the preset offset time length corresponding to the interactive interface from the playing start time of the interactive interface in the video clip to obtain the time, wherein the preset offset time length corresponding to the interactive interface is not less than the preset loading time length of the interactive interface.
6. The apparatus of claim 5, wherein the generation of the second type of playback record comprises:
when the interactive video is closed in the non-interactive period of the interactive video, if the target video clip being played does not contain any interactive interface, a second-class play record containing the video closing time and the clip identifier of the video clip being played is generated; the video closing time is the current playing time of the target video clip when the interactive video is closed;
if the target video clip comprises an interactive interface, if the video closing time is detected to be before the playing starting time of the interactive interface in the target video clip and the difference between the playing starting time and the video closing time is not greater than the preset loading time, generating a second type playing record comprising the playing time corresponding to the interactive interface and the clip identifier of the target video clip; otherwise, generating a second type play record containing the video closing time and the segment identification of the target video segment.
7. The apparatus of claim 5 or 6, wherein the multi-category play records further comprise: playing records of a third type;
the third type of play record is a play record generated when any video clip except the first video clip of the interactive video starts to play.
8. The apparatus of claim 7, wherein the third type of playback record is generated in a manner that comprises:
and when any video clip except the first video clip of the interactive video starts playing, generating a third type playing record containing the starting playing time of the video clip and the clip identifier of the video clip.
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 4 when executing a program stored in the memory.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method steps of any one of claims 1 to 4.
CN202010622364.9A 2020-06-30 2020-06-30 Interactive video recovery playing method and device, electronic equipment and storage medium Active CN111726694B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010622364.9A CN111726694B (en) 2020-06-30 2020-06-30 Interactive video recovery playing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010622364.9A CN111726694B (en) 2020-06-30 2020-06-30 Interactive video recovery playing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111726694A CN111726694A (en) 2020-09-29
CN111726694B true CN111726694B (en) 2022-06-03

Family

ID=72571010

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010622364.9A Active CN111726694B (en) 2020-06-30 2020-06-30 Interactive video recovery playing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111726694B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110059798A1 (en) * 1997-08-22 2011-03-10 Pryor Timothy R Interactive video based games using objects sensed by tv cameras
CN108683952A (en) * 2018-05-30 2018-10-19 互影科技(北京)有限公司 Video content segments method for pushing based on interactive video and device
CN109794064A (en) * 2018-12-29 2019-05-24 腾讯科技(深圳)有限公司 Interact plot implementation method, device, terminal and storage medium
CN111031395A (en) * 2019-12-19 2020-04-17 北京奇艺世纪科技有限公司 Video playing method, device, terminal and storage medium
CN111225292A (en) * 2020-01-15 2020-06-02 北京奇艺世纪科技有限公司 Information display method and device, storage medium and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110059798A1 (en) * 1997-08-22 2011-03-10 Pryor Timothy R Interactive video based games using objects sensed by tv cameras
CN108683952A (en) * 2018-05-30 2018-10-19 互影科技(北京)有限公司 Video content segments method for pushing based on interactive video and device
CN109794064A (en) * 2018-12-29 2019-05-24 腾讯科技(深圳)有限公司 Interact plot implementation method, device, terminal and storage medium
CN111031395A (en) * 2019-12-19 2020-04-17 北京奇艺世纪科技有限公司 Video playing method, device, terminal and storage medium
CN111225292A (en) * 2020-01-15 2020-06-02 北京奇艺世纪科技有限公司 Information display method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN111726694A (en) 2020-09-29

Similar Documents

Publication Publication Date Title
US20210160577A1 (en) Method for playing video, electronic device and storage medium
JP5143022B2 (en) System and method for conflict resolution and management of system resources in a multimedia distribution system
CN108966012B (en) Video playing rate determining method and device and electronic equipment
US20180255359A1 (en) Method for sharing a captured video clip and electronic device
CN110062284B (en) Video playing method and device and electronic equipment
CN106998494B (en) Video recording method and related device
CN108966016B (en) Video clip rebroadcasting method and device and terminal equipment
CN108024144B (en) Video playing method, terminal and computer readable storage medium
US20180270002A1 (en) Method, server, user terminal and system for key points prompt in live broadcast
CN114647550A (en) Process control method, device, storage medium and electronic equipment
CN110933508B (en) Video playing method and device and electronic equipment
CN111726694B (en) Interactive video recovery playing method and device, electronic equipment and storage medium
CN107094268B (en) Program scheduled recording control method and device
US20190037251A1 (en) Playback apparatus, method of controlling playback apparatus, playback method and server apparatus
CN105592362B (en) Control the method and system of intelligent terminal application automatic running
CN112689165B (en) Video playing method and device
WO2016155255A1 (en) Program recording method and apparatus
CN113923481A (en) Multimedia content playing method and device, electronic equipment and storage medium
CN108881984B (en) Method and system for storing screenshot of digital television equipment
CN109302633B (en) Television program scheduled recording method and device, smart television and readable storage medium
CN103731735A (en) Method for achieving continuous online video playing in smart television and smart television
US20180192145A1 (en) Method and Apparatus for Processing IPTV Program, and IPTV System
CN111201798A (en) Server and program
CN107071504A (en) Splashette content processing method and device
CN111294641B (en) Video playing method, system, device, electronic equipment and readable 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