CN111698566A - 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
CN111698566A
CN111698566A CN202010502299.6A CN202010502299A CN111698566A CN 111698566 A CN111698566 A CN 111698566A CN 202010502299 A CN202010502299 A CN 202010502299A CN 111698566 A CN111698566 A CN 111698566A
Authority
CN
China
Prior art keywords
playing
video
current
interaction
target
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.)
Pending
Application number
CN202010502299.6A
Other languages
Chinese (zh)
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 CN202010502299.6A priority Critical patent/CN111698566A/en
Publication of CN111698566A publication Critical patent/CN111698566A/en
Pending legal-status Critical Current

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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • 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/485End-user interface for client configuration

Landscapes

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

Abstract

The embodiment of the invention provides a video playing method, a video playing device, electronic equipment and a storage medium, wherein the method comprises the following steps: displaying at least one corresponding interactive control in the process of playing the current video; responding to an interaction instruction of a target interaction control in the at least one interaction control, playing a target video corresponding to the target interaction control, and acquiring the playing progress of the current video; and when the target video is played, continuing to play the current video from the playing progress. By adopting the technical scheme of the invention, the user can interact with other videos through the interaction control, so that the interaction with the online videos is realized.

Description

Video 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 video playing method and apparatus, an electronic device, and a storage medium.
Background
With the development of the internet, online watching of videos becomes more and more common, generally, online videos are recorded videos, and users only need to access the internet to load and play the videos when watching the videos.
With the development of network communication technology, live video appears, and the live video has the characteristics of real time and interaction with a user in a live broadcasting process. In the related art, interaction between the recorded video and the viewer cannot be achieved, and how to enable the online video to interact with the user becomes a technical problem to be solved urgently.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a video playing method, apparatus, electronic device and storage medium that overcome or at least partially solve the above problems.
According to a first aspect of the present invention, there is provided a video playing method, the method comprising:
displaying at least one corresponding interactive control in the process of playing the current video;
responding to an interaction instruction of a target interaction control in the at least one interaction control, playing a target video corresponding to the target interaction control, and acquiring the playing progress of the current video;
and when the target video is played, continuing to play the current video from the playing progress.
Optionally, the method further comprises:
triggering a preset countdown when the at least one interactive control is displayed;
continuing to play the current video when the interaction finger of the target interaction control in the at least one interaction control is not received before the preset countdown is finished;
responding to an interaction instruction of a target interaction control in the at least one interaction control, playing a target video corresponding to the target interaction control, and recording the playing progress of the current video, wherein the playing progress comprises the following steps:
and responding to an interactive instruction of a target interactive control in the at least one interactive control before the preset countdown is finished, playing the target video, and recording the playing progress of the current video.
Optionally, the method further comprises:
when the at least one interactive control is displayed, pausing the playing of the current video and recording a first current playing time;
when the interaction finger of the target interaction control in the at least one interaction control is not received before the preset countdown is finished, continuing to play the current video, including:
when the interaction instruction of the target interaction control in the at least one interaction control is not received before the preset countdown is finished, starting to play the current video from the first current playing time;
acquiring the playing progress of the current video, including:
and taking the recorded first current playing time as the playing progress of the current video.
Optionally, in response to an interaction instruction of a target interaction control in the at least one interaction control, playing a target video corresponding to the target interaction control, and recording a playing progress of the current video, including:
in response to an interaction instruction of a target interaction control in the at least one interaction control, pausing the playing of the current video and playing the target video;
and recording a second current playing time when the current video is paused, and taking the second current playing time as the playing progress of the current video.
Optionally, in the process of playing the current video, displaying the corresponding at least one interaction control, including:
acquiring the current playing progress of the current video;
when the current playing progress meets a preset condition, displaying at least one corresponding interactive control;
wherein the preset condition comprises any one of: the current playing progress is located in a preset time offset of a preset playing progress, and the video frame corresponding to the current playing progress is the video frame corresponding to the preset playing progress.
According to a second aspect of the present invention, there is provided a video playback apparatus, the apparatus comprising:
the display module is used for displaying at least one corresponding interactive control in the process of playing the current video;
the first response module is used for responding to an interaction instruction of a target interaction control in the at least one interaction control, playing a target video corresponding to the target interaction control and acquiring the playing progress of the current video;
and the continuous playing module is used for continuously playing the current video from the playing progress when the target video is played.
Optionally, the video playing module includes:
the countdown module is used for triggering a preset countdown when the at least one interactive control is displayed;
the second response module is used for continuing to play the current video when the interaction finger of the target interaction control in the at least one interaction control is not received before the preset countdown is finished;
the first response module is used for responding to an interaction instruction of a target interaction control in the at least one interaction control before the preset countdown is finished, playing the target video and recording the playing progress of the current video.
Optionally, the apparatus further comprises:
the pause module is used for pausing the playing of the current video and recording a first current playing time when the at least one interactive control is displayed;
the first response module is configured to use the recorded first current playing time as a playing progress of the current video;
and the second response module is configured to start playing the current video from the first current playing time when the interaction instruction of the target interaction control in the at least one interaction control is not received before the preset countdown is finished.
Optionally, the first response module includes:
the pause unit is used for responding to an interaction instruction of a target interaction control in the at least one interaction control, pausing the playing of the current video and playing the target video;
and the progress recording unit is used for recording a second current playing time when the current video is paused, and taking the second current playing time as the playing progress of the current video.
Optionally, the display module comprises:
the progress acquiring unit is used for acquiring the current playing progress of the current video;
the display triggering unit is used for displaying at least one corresponding interactive control when the current playing progress meets a preset condition;
wherein the preset condition comprises any one of: the current playing progress is located in a preset time offset of a preset playing progress, and the video frame corresponding to the current playing progress is the video frame corresponding to the preset playing progress.
According to a third aspect of the present invention, there is provided an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the video playback method of the first aspect when executed.
According to a fourth aspect of the present invention, there is provided a computer readable storage medium storing a computer program for causing a processor to execute the video playback method of the first aspect.
The embodiment of the invention at least comprises the following advantages:
the embodiment of the invention can display at least one interactive control corresponding to the current video in the process of playing the current video, can respond to the interactive instruction of the target interactive control in the at least one interactive control, play the target video corresponding to the target interactive control and simultaneously acquire the playing progress of the current video; and when the target video is played, continuing to play the current video from the playing progress. The method has the advantages that at least one interactive control can be displayed in the process of playing the current video, so that the user can switch from the current video to the target video to play through the operation of the interactive control in the process of watching the video, and continue to play the interaction between the videos of the current video after the target video is played.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a video playing method according to an embodiment of the present invention;
fig. 2 is a video screen capture of a playing video in an embodiment of the present invention;
fig. 3 is a flowchart of another video playing method according to an embodiment of the present invention;
fig. 4 is a flowchart of another video playing method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a video playing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
In the related art, for recorded and broadcast online education videos, when watching the videos, a user can only acquire teaching contents played by the recorded education videos, and the user can only passively receive the contents of the teaching videos and cannot realize interaction with the teaching videos.
In view of the above, the applicant proposes an inventive concept to solve the above technical problems: and in the process of watching the online education video, the user is timely shown with the interaction control, and can respond to the interaction instruction of the target interaction control to play the target video and continue to play the current video after the target video is played. Furthermore, the interaction between the user and the online education video can be realized, and the teaching effect is improved.
Referring to fig. 1, there is shown a flow chart of a video playing method, which may be applied to a terminal in particular, which may be, but is not limited to, the following devices: mobile phones, smart televisions, computers, tablet computers, set-top boxes, and the like. Specifically, the method may include the steps of:
step S11: and displaying the corresponding at least one interactive control in the process of playing the current video.
In this embodiment, the current video may be a video that is preloaded to the terminal, and specifically may refer to a video that is recorded for a certain teaching content. The interactive control can be an interactive control which is inserted into the current video in advance, wherein different interactive controls can correspond to different videos, and a user can switch between the current video and other videos through the interactive control, so that other videos can be played through the interactive control in the process of playing the current video, and interaction in the process of watching the teaching video is achieved.
In this embodiment, in order to improve the real-time interactivity of the user during the playing process of the current video and enhance the association between the current video and other videos in content, the current video may have a plurality of specified playing time nodes, different playing time nodes may respectively correspond to a plurality of different interactive controls, different playing time nodes may also correspond to one text message, and different controls carry different control information.
The text information may be understood as a theme representing the interaction to be performed at the current playing time, and the control information corresponding to each control may represent an interaction option of the control under the interaction theme. In the process of playing the current video, at least one interactive control corresponding to a playing time node can be displayed every time a specified playing time node is played, and text information corresponding to the playing time node is displayed.
In this embodiment, when at least one interactive control is displayed, a floating layer may be created in the playing interface, so that the at least one interactive control is added to the floating layer to display the at least one interactive control in the playing interface of the current video. And when receiving a subsequent interaction instruction aiming at the target interaction control, removing the floating layer so as not to shield a video picture presented when the subsequent target video is played.
Step S12: and responding to an interactive instruction of a target interactive control in the at least one interactive control, playing a target video corresponding to the target interactive control, and acquiring the playing progress of the current video.
In this embodiment, each interactive control may be associated with one video, and different interactive controls are associated with different videos, and in specific implementation, a user may select a plurality of displayed interactive controls, and specifically, the user may select through a remote controller, a mouse, voice control software, or a touch screen. The content of the target video may be associated with the theme of the current video, that is, the video corresponding to each interactive control and the current video may be a series of videos of the same theme, which have mutual association on the content.
The target interactive control is an interactive control selected by a user, when the target interactive control is detected to be selected by the user, an interactive instruction for the target interactive control can be generated, a target video associated with the target interactive control is obtained in response to the interactive instruction, and the target video is played. In practice, the target video may be pre-stored in the terminal or may be a video obtained by the terminal from a server where the target video is located in response to the interactive instruction. In this case, the interactive instruction may carry a URL (uniform resource locator), and the background automatically requests the server for the target video at the URL address.
Step S13: and when the target video is played, continuing to play the current video from the playing progress.
In this embodiment, in the process of playing the target video, the current video may be in a state of pausing the playing, and when the target video is played, the playing progress of the current video may be obtained first, and then after the target video is played, the current video may be continuously played from the playing progress, thereby implementing the interaction between the current video and the target video.
The present embodiment is described below with a specific example:
referring to fig. 2, a video screen shot of a playing video in an embodiment of the present invention is shown, as shown in the left screen shot of fig. 2, a current video is an educational video for introducing marine animals, when the video is played for 0.05 second, text information "guess" corresponding to the time node is displayed, and how many years the life of the turtle can live at the longest ", which prompts that an interaction theme performed by the time node is interaction of the life of the turtle, and 3 different interaction controls are shown for 102 years, 152 years, and 220 years, where the 3 interaction controls are three answers to the life of the turtle respectively. When the interactive control of "102 years" is selected, a video corresponding to "102" years is played, wherein the video can be a turtle video with a service life of 102 years, so that the user can learn about the service life of a certain turtle in the recorded video. After the turtle video with the service life of 102 years is played, the current video shown in the left picture of fig. 2 is continuously played.
When the technical scheme of the embodiment is adopted, at least one interactive control can be displayed in the process of playing the current video, so that the user can switch from the current video to the target video to play through the operation on the interactive control in the process of watching the video, and continue to play the interaction between the videos of the current video after the target video is played, the real-time interaction between the user and the online video in the process of watching the current video is realized through the interaction between the videos, and the technical blank that the real-time interaction between the online video and the user cannot be realized in the related technology is filled.
Referring to fig. 3, a flowchart illustrating steps of another video playing method in this embodiment is shown, and as shown in fig. 3, the method may specifically include the following steps:
step S31: and displaying the corresponding at least one interactive control in the process of playing the current video.
In this embodiment, in the process of playing the current video, the interactive control may be at the specified playing time node, and in the specific implementation, the current playing progress of the current video may be obtained in real time in the process of playing the current video, and when the current playing progress meets the preset condition, the corresponding at least one interactive control is displayed.
Wherein the preset condition comprises any one of: the current playing progress is located in a preset time offset of a preset playing progress, and the video frame corresponding to the current playing progress is the video frame corresponding to the preset playing progress.
In one embodiment, the preset condition may be a condition that the current playing progress is within a preset time offset of the preset playing progress. The preset time offset can be represented by adopting a preset time difference, the preset playing progress can be provided in a plurality of ways, and different preset playing progresses are associated with different interaction controls.
In specific implementation, the current playing progress can refer to the current playing time, the preset playing progress can refer to the preset playing time, and when the time difference between the current playing time and the preset playing time is smaller than the preset time difference, the current playing progress can be represented to be located within the preset time offset of the preset playing progress. In this case, at least one interactive control corresponding to the preset playing progress may be displayed.
By adopting the implementation mode, the interactive control can be displayed in the time offset of the appointed playing time, so that the interaction between videos can be realized when the current video is advanced to a playing time period, and the interaction flexibility is enhanced.
In another embodiment, the preset condition may be that a video frame corresponding to the current playing progress is a video frame corresponding to the preset playing progress. The video frame may refer to a frame of video picture in the current video, and each video frame may have a frame number, so that the interactive control may be displayed when the frame number of the video frame corresponding to the current playing progress is the frame number of the specified video frame. By adopting the implementation mode, when the current video is played to one video picture, the interaction between videos can be realized, so that the impression of a user on the video picture of the current video during the interaction can be deepened, and the accurate positioning of the interaction time can be realized.
In this embodiment, when the at least one interactive control is displayed, the playing of the current video may be paused, and a first current playing time may be recorded.
That is, in this embodiment, in order to avoid video frame interference caused by continuing to play the current video when the interactive control is displayed and avoid that the user misses watching some video contents during the interaction, when the interactive control is displayed, the playing of the current video may be paused, and at the same time, the playing time of the current video when paused is recorded, where the playing time is referred to as a first current playing time.
Step S32: and triggering a preset countdown when the at least one interactive control is displayed.
In this embodiment, in order to promote the interaction efficiency of video interaction and avoid efficiently advancing the playing progress of the current video when the user does not perform video interaction, the preset countdown may be triggered when at least one interactive control is displayed. The duration of the preset countdown can be set according to requirements, video interaction is required if the user selects the interaction control in the preset countdown, and therefore the execution of the step S34 to the step S35 can be performed, otherwise, video interaction is not required if the user does not select the interaction control in the preset countdown, and the execution of the step S33 can be performed.
Step S33: and continuing to play the current video when the interaction finger of the target interaction control in the at least one interaction control is not received before the preset countdown is finished.
When the interactive instruction for operating the target interactive control is not received, the current video can be continuously played. In an embodiment, since the playing of the current video is paused when the interactive control is displayed, and the first current playing time when the playing of the current video is paused is recorded, in this case, the current video can be continuously played from the first current playing time, so as to ensure the normal watching of the original video.
Step S34: and responding to an interactive instruction of a target interactive control in the at least one interactive control before the preset countdown is finished, playing the target video, and recording the playing progress of the current video.
And before the countdown is finished, when an interactive instruction of the target interactive control is received, the target video can be obtained and played. In this step, since the playing of the current video is paused while the interactive control is displayed, and the first current playing time when the playing of the current video is paused is recorded, in this case, the recorded first current playing time may be used as the playing progress of the current video.
Step S35: and when the target video is played, continuing to play the current video from the playing progress.
Specifically, since the playing of the current video is paused when the interactive control is displayed, and the first current playing time when the playing of the current video is paused is recorded, when the playing of the current video is resumed, the current video can be continuously played from the first current playing time.
The present embodiment will be described below with reference to the example shown in fig. 2:
referring to fig. 2, the current video is an educational video for introducing marine animals, when the video is played for 0.05 second, the video prompts "guess, how many years the life of the turtle can live at the longest", at this moment, 3 interactive controls 102 years, 152 years and 220 years are displayed, the playing of the current video is suspended, the current playing time is recorded for 0.03 second, the countdown is started and is 5 seconds, and within 5 seconds, if the interactive control of 102 years is selected, the video corresponding to 102 years is played, and the video can be a turtle video with the life of 102 years, so that the learning of a certain turtle life in the recorded video is deepened for a user. After the turtle video with the life of 102 years is played, the current video shown in the left picture of fig. 2 is continuously played from 0.03 second.
When the technical scheme of the embodiment is adopted, the following advantages are achieved:
firstly, at least one interactive control can be displayed in the process of playing the current video, so that a user can switch from the current video to the target video to play through the operation of the interactive control in the process of watching the video, and the playing of the current video is resumed after the target video is played. Therefore, real-time interaction between the user and the online video in the process of watching the current video is realized through interaction between the videos, and the technical blank that real-time interaction between the online video and the user cannot be realized in the related technology is filled.
Secondly, when the interactive control is displayed, the current video is paused, so that the situation that some video contents of the current video are missed by a user in the interactive process can be avoided, the current video can be matched with the target video, and the complete playing of the video contents of the current video and the target video can be completed.
Thirdly, when the target video is played, the current video can be continuously played from the pause moment, so that the current video can be continuously played from the pause time node, the problem of repeatedly playing some video contents caused by the playing of the current video from the beginning is avoided, and the current video is completely played when the current video is interacted with the current video.
Fourthly, when the interactive control is displayed, the preset countdown is triggered, so that the interaction between the current video and the target video needs to be completed in the preset countdown, the efficiency of video interaction can be improved by setting the countdown, and the problems of low video interaction efficiency and video playing pause caused by long-term waiting for an interactive instruction are avoided.
Referring to fig. 4, a flowchart illustrating steps of another video playing method in this embodiment is shown, and as shown in fig. 4, the method may specifically include the following steps:
step S41: and displaying the corresponding at least one interactive control in the process of playing the current video.
In some embodiments, the interaction control corresponding to the current video may be included in an interaction profile associated with the current video, where the interaction profile associated with the current video may be obtained in advance, and the interaction profile may include the interaction control corresponding to the current video.
The interactive configuration file can be pre-stored in the terminal, and the interactive configuration file can be obtained from the storage space of the terminal when the current video is played. In this embodiment, a plurality of interaction controls set for the current video may be included in the interaction configuration file. In some embodiments, because several designated play time nodes may be preset in the current video, each play time node corresponds to several different interactive controls, a plurality of interactive controls in the interactive configuration file may form interactive control groups corresponding to the play time nodes one to one according to the corresponding play time nodes, and each interactive control group includes at least one interactive control.
In this case, each interactive control group may have a control group name, and the control group name may represent what kind of interaction the group of interactive controls corresponds to. Where each interactive control may have a control name. In some embodiments, each interactive control may include a starting time of occurrence in the video. Wherein, the initial appearance time of the interactive control can be set according to the content of the current video. In specific implementation, according to different application scenarios, the start time of the interactive control may be set to the time when the specified picture appears in the current video, or the start time may be set to the time when the specified video segment in the video ends.
For example, in one application scenario, where the current video is a tutorial-like video, each interactive control may be an option set according to the tutorial content. For example, the current video is a teaching video explaining addition and subtraction, according to a question "1 +2 equals to several" posed by a teacher in the teaching video of addition and subtraction, a plurality of interactive controls may be respectively set to "5", "3" and "2", and the initial playing time of the interactive controls may be set at a time after the teacher posed the question "1 +2 equals to several".
For example, in another application scenario, the current video is a documentary video, and the interactive control can be set according to the content of the documentary. For example, if the current video is a video explaining various turtles in the sea, the interactive controls may be respectively set to "tortoises", "hawksbill", and "red-headed turtles", and the initial playing time of the interactive controls may be set at the time when the specified turtles (e.g., tortoises) appear.
Specifically, the timing of displaying at least one interactive control in step S41 is similar to the process in step S31, and the related points can be referred to the description in step S31, which is not repeated herein.
Step S42: and in response to an interactive instruction of a target interactive control in the at least one interactive control, pausing the playing of the current video and playing the target video.
Step S43: and recording a second current playing time when the current video is paused, and taking the second current playing time as the playing progress of the current video.
In this embodiment, in the process from the displaying of the at least one interactive control to the receiving of the interactive instruction for the target interactive control, the playing of the current video may be maintained, so as to maintain the continuity of the video playing. In some embodiments, a countdown may also be triggered when the interactive control is displayed, so as to detect whether an interactive instruction for the target interactive control is received before the countdown is finished, and the current video may be maintained to be played before the interactive instruction for the target interactive control is received.
When an interactive instruction for the target interactive control is received, the user means to jump to the target video for playing, and at this time, the playing of the current video can be paused, and the target video is played. And meanwhile, recording the playing time of the current video when the current video is paused, wherein the playing time is called as the second current playing time of the current video.
Step S44: and when the target video is played, continuing to play the current video from the playing progress.
In this embodiment, when the target video is played, the playing of the current video may be resumed, and specifically, the current video may be continuously played from the second current playing time.
Certainly, in the case of having a countdown, if the interactive instruction of the target interactive control is not received after the countdown is finished, since the playing of the current video is maintained all the time, in this case, the continuity of the playing of the current video can be maintained.
When the technical scheme of the embodiment is adopted, the following advantages are achieved:
firstly, at least one interactive control can be displayed in the process of playing the current video, so that a user can switch from the current video to the target video to play through the operation of the interactive control in the process of watching the video, and the playing of the current video is resumed after the target video is played. Therefore, real-time interaction between the user and the online video in the process of watching the current video is realized through interaction between the videos, and the technical blank that real-time interaction between the online video and the user cannot be realized in the related technology is filled.
Secondly, in the process of displaying the interactive control until receiving the interactive instruction of the target video, the current video can be kept playing so as to keep the continuity of video playing.
Thirdly, because the interactive control is located in the interactive configuration file, the current video is associated with the interactive configuration file, in this case, one current video can be associated with a plurality of different configuration files to achieve different interactive effects with other multiple batches of videos, that is, when the interactive configuration file A is associated, at least one A-type interactive control is displayed at the A time node of the current video to further achieve interaction with the A target video, and when the interactive configuration file B is associated, at least one B-type interactive control is displayed at the B time node of the current video to further achieve interaction with the B target video, so that the flexibility of video interaction is improved.
With the above embodiment, in an application scenario in which the current video is a teaching video, the interactive control may be an answer option corresponding to a question, and in such a scenario, the interactive control may be associated with respective scores, and then, in response to an interactive instruction of a target interactive control in the at least one interactive control before the preset countdown is finished, interactive information corresponding to the target interactive control may be generated, where the interactive information may carry the score associated with the interactive control; meanwhile, corresponding non-answer information can be generated when the interaction instruction of the target interaction control in the at least one interaction control is not received before the preset countdown is finished; therefore, when the playing of the current video is finished, the generated interactive information and the unanswered information can be counted, and the counting result can be displayed.
The step of counting the generated interactive information and the unanswered information may be to count the total score in the interactive information and count the number of the unanswered information.
For example, taking fig. 2 as an example for explanation, it is assumed that there are 3 play time nodes of the current video that need to interact, and each play time node corresponds to at least one interaction control. For example, the three interactive controls shown in fig. 2 are controls corresponding to the first play time node, which are 102 years, 152 years and 220 years, respectively, where 152 years is the correct answer, a score of 10 points may be set for the interactive control, and accordingly, scores of 102 years and 220 years may be set to 0 points. If the user selects 152 years of the three interactive controls within the 5 second countdown, then the interactive information for the interactive control may be generated while the interactive control is marked as answered information. If the user does not select any one of the three answer choices within 5 seconds, the unanswered message may be generated.
When the current video playing is finished, the interactive information and the unanswered information corresponding to the 3 playing time nodes can be counted, so that the number of the unanswered questions and the total score of the answered questions can be obtained.
Of course, in some embodiments, in response to the interaction instruction of the target interaction control, the audio file corresponding to the target interaction control may also be played, and when the audio file is played, the current video is continuously played. That is, what interacts with the current video in the present application may be a video file or an audio file, and in practice, the interaction process between the current video and the audio file may refer to the description of the embodiments of the present application.
Of course, in some embodiments, when the interactive information is generated, the interactive information may also carry the time length from the display of the interactive control to the time when the interactive instruction is received, so that when the interactive information is counted, the statistical result may include the average time length of each time length, and thus the average time length spent by the user in answering may be obtained.
In these embodiments, the process of displaying the statistical result may be creating an answer statistics floating layer, adding the statistical result to the answer statistics floating layer to display the statistical result on the display interface, and removing the answer statistics floating layer after displaying the preset duration.
When the embodiment is adopted, the real-time interaction between the user and the teaching content can be realized in the video scene of the teaching class, and the interactive result after the interaction, namely the answer result, can be displayed on the display interface when the video playing is finished, namely the interaction is finished, so that the statistics is convenient.
In still other practical applications, the statistical result corresponding to the current video may also be sent to other terminals associated with the user who logs in the terminal currently and/or the teaching terminal corresponding to the current video, so that teachers at the teaching terminals and managers at other terminals may analyze the video interaction situation of the user according to the statistical result, and adjust the teaching content according to the video interaction situation.
It should be noted that: in practical applications, the video playing method may be applied to other online video scenes, for example, an online video with game properties, or any video scene in which video content can interact with a user, for example, an interactive drama, a situation drama, and the like. The embodiment of the present application does not particularly limit a specific application scenario of the video playing method.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Based on the same inventive concept, referring to fig. 5, a schematic structural diagram of a video playing apparatus is shown, where the apparatus may be applied to a terminal, so that the terminal implements the video playing method, and specifically, the apparatus may include the following modules:
a display module 501, configured to display at least one corresponding interactive control in a process of playing a current video;
a first response module 502, configured to respond to an interaction instruction of a target interaction control in the at least one interaction control, play a target video corresponding to the target interaction control, and obtain a play progress of the current video;
a resume module 503, configured to resume playing the current video from the playing progress when the target video is played.
Optionally, the apparatus may further include the following modules:
the countdown module is used for triggering a preset countdown when the at least one interactive control is displayed;
the second response module is used for continuing to play the current video when the interaction finger of the target interaction control in the at least one interaction control is not received before the preset countdown is finished;
the first response module is used for responding to an interaction instruction of a target interaction control in the at least one interaction control before the preset countdown is finished, playing the target video and recording the playing progress of the current video.
Optionally, the apparatus may further include the following modules:
the pause module is used for pausing the playing of the current video and recording a first current playing time when the at least one interactive control is displayed;
the first response module is configured to use the recorded first current playing time as a playing progress of the current video;
and the second response module is configured to start playing the current video from the first current playing time when the interaction instruction of the target interaction control in the at least one interaction control is not received before the preset countdown is finished.
Optionally, the first response module 502 may specifically include the following units:
the pause unit is used for responding to an interaction instruction of a target interaction control in the at least one interaction control, pausing the playing of the current video and playing the target video;
and the progress recording unit is used for recording a second current playing time when the current video is paused, and taking the second current playing time as the playing progress of the current video.
Optionally, the display module 501 may specifically include the following units:
the progress acquiring unit is used for acquiring the current playing progress of the current video;
the display triggering unit is used for displaying at least one corresponding interactive control when the current playing progress meets a preset condition;
wherein the preset condition comprises any one of: the current playing progress is located in a preset time offset of a preset playing progress, and the video frame corresponding to the current playing progress is the video frame corresponding to the preset playing progress.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
An embodiment of the present invention further provides an electronic device, which may include a memory, a processor, and a computer program stored in the memory and running on the processor, and when executed, the processor implements the steps in the method according to any of the above embodiments.
Embodiments of the present invention further provide a computer-readable storage medium, which stores a computer program for causing a processor to execute the steps in the method according to any of the above embodiments.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
In a typical configuration, the computer device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium. Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transmyedia), such as modulated data signals and carrier waves.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be 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 terminal 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 terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The video playing method, the video playing apparatus, the electronic device and the storage medium provided by the present invention are described in detail above, and a specific example is applied in the text to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (12)

1. A video playback method, the method comprising:
displaying at least one corresponding interactive control in the process of playing the current video;
responding to an interaction instruction of a target interaction control in the at least one interaction control, playing a target video corresponding to the target interaction control, and acquiring the playing progress of the current video;
and when the target video is played, continuing to play the current video from the playing progress.
2. The method of claim 1, further comprising:
triggering a preset countdown when the at least one interactive control is displayed;
continuing to play the current video when the interaction finger of the target interaction control in the at least one interaction control is not received before the preset countdown is finished;
responding to an interaction instruction of a target interaction control in the at least one interaction control, playing a target video corresponding to the target interaction control, and recording the playing progress of the current video, wherein the playing progress comprises the following steps:
and responding to an interactive instruction of a target interactive control in the at least one interactive control before the preset countdown is finished, playing the target video, and recording the playing progress of the current video.
3. The method of claim 2, further comprising:
when the at least one interactive control is displayed, pausing the playing of the current video and recording a first current playing time;
when the interaction finger of the target interaction control in the at least one interaction control is not received before the preset countdown is finished, continuing to play the current video, including:
when the interaction instruction of the target interaction control in the at least one interaction control is not received before the preset countdown is finished, starting to play the current video from the first current playing time;
acquiring the playing progress of the current video, including:
and taking the recorded first current playing time as the playing progress of the current video.
4. The method of claim 1, wherein in response to an interaction instruction of a target interaction control in the at least one interaction control, playing a target video corresponding to the target interaction control, and recording a playing progress of the current video, comprises:
in response to an interaction instruction of a target interaction control in the at least one interaction control, pausing the playing of the current video and playing the target video;
and recording a second current playing time when the current video is paused, and taking the second current playing time as the playing progress of the current video.
5. The method of any one of claims 1-4, wherein displaying the corresponding at least one interactive control during the playing of the current video comprises:
acquiring the current playing progress of the current video;
when the current playing progress meets a preset condition, displaying at least one corresponding interactive control;
wherein the preset condition comprises any one of: the current playing progress is located in a preset time offset of a preset playing progress, and the video frame corresponding to the current playing progress is the video frame corresponding to the preset playing progress.
6. A video playback apparatus, comprising:
the display module is used for displaying at least one corresponding interactive control in the process of playing the current video;
the first response module is used for responding to an interaction instruction of a target interaction control in the at least one interaction control, playing a target video corresponding to the target interaction control and acquiring the playing progress of the current video;
and the continuous playing module is used for continuously playing the current video from the playing progress when the target video is played.
7. The apparatus of claim 6, further comprising:
the countdown module is used for triggering a preset countdown when the at least one interactive control is displayed;
the second response module is used for continuing to play the current video when the interaction finger of the target interaction control in the at least one interaction control is not received before the preset countdown is finished;
the first response module is used for responding to an interaction instruction of a target interaction control in the at least one interaction control before the preset countdown is finished, playing the target video and recording the playing progress of the current video.
8. The apparatus of claim 7, further comprising:
the pause module is used for pausing the playing of the current video and recording a first current playing time when the at least one interactive control is displayed;
the first response module is configured to use the recorded first current playing time as a playing progress of the current video;
and the second response module is configured to start playing the current video from the first current playing time when the interaction instruction of the target interaction control in the at least one interaction control is not received before the preset countdown is finished.
9. The apparatus of claim 6, wherein the first response module comprises:
the pause unit is used for responding to an interaction instruction of a target interaction control in the at least one interaction control, pausing the playing of the current video and playing the target video;
and the progress recording unit is used for recording a second current playing time when the current video is paused, and taking the second current playing time as the playing progress of the current video.
10. The apparatus of any one of claims 6-9, wherein the display module comprises:
the progress acquiring unit is used for acquiring the current playing progress of the current video;
the display triggering unit is used for displaying at least one corresponding interactive control when the current playing progress meets a preset condition;
wherein the preset condition comprises any one of: the current playing progress is located in a preset time offset of a preset playing progress, and the video frame corresponding to the current playing progress is the video frame corresponding to the preset playing progress.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor, when executed, implements the method of any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that it stores a computer program that causes a processor to execute the method according to any one of claims 1 to 5.
CN202010502299.6A 2020-06-04 2020-06-04 Video playing method and device, electronic equipment and storage medium Pending CN111698566A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010502299.6A CN111698566A (en) 2020-06-04 2020-06-04 Video playing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010502299.6A CN111698566A (en) 2020-06-04 2020-06-04 Video playing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111698566A true CN111698566A (en) 2020-09-22

Family

ID=72479442

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010502299.6A Pending CN111698566A (en) 2020-06-04 2020-06-04 Video playing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111698566A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113419800A (en) * 2021-06-11 2021-09-21 北京字跳网络技术有限公司 Interaction method, device, medium and electronic equipment
CN113542844A (en) * 2021-07-28 2021-10-22 北京优酷科技有限公司 Video data processing method, device and storage medium
CN113886206A (en) * 2021-09-30 2022-01-04 南京奥拓电子科技有限公司 Interactive media terminal user behavior data acquisition method and system
CN114007118A (en) * 2021-10-27 2022-02-01 腾讯科技(深圳)有限公司 Video game method, video game device, computer readable medium and electronic equipment
WO2022068478A1 (en) * 2020-09-30 2022-04-07 北京字跳网络技术有限公司 Video-based interaction and video processing methods, apparatus, device, and storage medium
CN114430494A (en) * 2020-10-29 2022-05-03 腾讯科技(深圳)有限公司 Interface display method, device, equipment and storage medium
CN114513705A (en) * 2022-02-21 2022-05-17 北京字节跳动网络技术有限公司 Video display method, device and storage medium
CN114979782A (en) * 2022-06-28 2022-08-30 北京爱奇艺科技有限公司 Video playing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107945596A (en) * 2017-12-25 2018-04-20 成都福润得科技有限责任公司 A kind of interactive teaching methods easy to teaching flexibly
CN108495194A (en) * 2018-03-21 2018-09-04 优酷网络技术(北京)有限公司 Video broadcasting method, computer storage media during answer and terminal device
US20200007926A1 (en) * 2018-06-29 2020-01-02 Baidu Online Network Technology (Beijing) Co., Ltd Method and apparatus for playing video
CN110706536A (en) * 2019-10-25 2020-01-17 北京猿力未来科技有限公司 Voice answering method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107945596A (en) * 2017-12-25 2018-04-20 成都福润得科技有限责任公司 A kind of interactive teaching methods easy to teaching flexibly
CN108495194A (en) * 2018-03-21 2018-09-04 优酷网络技术(北京)有限公司 Video broadcasting method, computer storage media during answer and terminal device
US20200007926A1 (en) * 2018-06-29 2020-01-02 Baidu Online Network Technology (Beijing) Co., Ltd Method and apparatus for playing video
CN110706536A (en) * 2019-10-25 2020-01-17 北京猿力未来科技有限公司 Voice answering method and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022068478A1 (en) * 2020-09-30 2022-04-07 北京字跳网络技术有限公司 Video-based interaction and video processing methods, apparatus, device, and storage medium
CN114430494A (en) * 2020-10-29 2022-05-03 腾讯科技(深圳)有限公司 Interface display method, device, equipment and storage medium
CN114430494B (en) * 2020-10-29 2024-04-09 腾讯科技(深圳)有限公司 Interface display method, device, equipment and storage medium
CN113419800A (en) * 2021-06-11 2021-09-21 北京字跳网络技术有限公司 Interaction method, device, medium and electronic equipment
CN113542844A (en) * 2021-07-28 2021-10-22 北京优酷科技有限公司 Video data processing method, device and storage medium
CN113886206A (en) * 2021-09-30 2022-01-04 南京奥拓电子科技有限公司 Interactive media terminal user behavior data acquisition method and system
CN113886206B (en) * 2021-09-30 2023-11-03 南京奥拓电子科技有限公司 Method and system for collecting behavior data of interactive media terminal user
CN114007118A (en) * 2021-10-27 2022-02-01 腾讯科技(深圳)有限公司 Video game method, video game device, computer readable medium and electronic equipment
CN114513705A (en) * 2022-02-21 2022-05-17 北京字节跳动网络技术有限公司 Video display method, device and storage medium
CN114979782A (en) * 2022-06-28 2022-08-30 北京爱奇艺科技有限公司 Video playing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111698566A (en) Video playing method and device, electronic equipment and storage medium
CN106227335B (en) Interactive learning method for preview lecture and video course and application learning client
CN111225225B (en) Live broadcast playback method, device, terminal and storage medium
CN111541947A (en) Teaching video processing method, device and system
CN111654754A (en) Video playing method and device, electronic equipment and readable storage medium
KR101375119B1 (en) Virtual interview mothod and mobile device readable recording medium for executing application recorded the method
CN105721947A (en) Method for providing target multi-user interaction video and server
Kleftodimos et al. Augmenting educational videos with interactive exercises and knowledge testing games
US11247101B2 (en) Methods and systems for facilitating the memorization of exercise routines to users
CN113038185A (en) Bullet screen processing method and device
CN112954426B (en) Video playing method, electronic equipment and storage medium
KR20170066920A (en) Mobile-based virtual interview method and system
CN109040797B (en) Internet teaching recording and broadcasting system and method
Kleftodimos et al. Edutainment and practice in video-based learning: enriching educational videos with interactive activities and games
Alexandros et al. A framework for recording, monitoring and analyzing learner behavior while watching and interacting with online educational videos
CN108449646B (en) Method, equipment and medium for establishing social relationship through barrage
CN112216311A (en) Online classroom reappearing method, system, equipment and medium
CN113283246B (en) Visual interaction method, device, equipment and storage medium
CN112712738B (en) Student display processing method and device and electronic device
CN113645470A (en) Video playing method and device and computer storage medium
KR20220086298A (en) Method for recognizing learn-concentration, and apparatus and program implementing the same
CN113554904A (en) Intelligent processing method and system for multi-mode collaborative education
CN112653931A (en) Control method and device for resource information playing, storage medium and electronic equipment
CN116320517B (en) Learning track merging method and device and electronic equipment
KR20200089417A (en) Method and apparatus of providing learning content based on moving pictures enabling interaction with users

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200922