Disclosure of Invention
The invention provides a web technology-based on-line on-demand micro-class video dotting playing method, aiming at the defects of lack of interaction and good user experience in the existing micro-class video on-demand function, the invention adopts a dotting technical comment and can play back the dotting playing solution.
In order to achieve the purpose, the invention adopts the following technical scheme:
a web technology-based on-line on-demand micro-class video dotting playing method comprises the following steps:
(1) receiving a micro-class video uploaded by a user, and storing a server hard disk and a database;
(2) the player plays the video;
(3) receiving a user dotting instruction, and returning to the dotting time;
(4) the server receives comment data and dotting time submitted by a user and stores the comment data and the dotting time into a database;
(5) forming a section screenshot according to the dotting time, and storing the screenshot file in a server hard disk;
(6) acquiring the storage position and format information of the screenshot file, and storing the information in a database;
(7) refreshing the designated area of the interface, and displaying newly added dotting related data;
(8) the system receives a dotting comment reply submitted by a user and stores the dotting comment reply in a database;
(9) refreshing the designated area of the interface, displaying the newly added comment response, and forming interaction among users.
In the step (1), the micro-class video files uploaded by the user are received and stored in the server hard disk, and meanwhile, the attributes of the micro-class video form data and are stored in a corresponding data table of the database.
In the step (2), the player is a video player supporting a video dotting function.
In the step (3), the event is clicked through a button on the player, the instruction sent by the user is received, the instruction is transmitted to the player through the method and the interface provided by the player, and the playing time point of the micro-class video when the instruction is given is returned.
In the step (4), the dotting time and the content of the dotting comments created by the user are submitted to the server side in a post mode for processing through the ajax technology, and the data are formed and then stored into the corresponding data table in the database.
In the step (5), ffmepg.exe is called, a video screenshot of the micro-class video at the time point is intercepted, the video screenshot is stored in a server hard disk, and data are formed and stored in a corresponding data table in a database.
Ffmpeg is an open source computer program that can be used to record, convert digital audio, video, and convert them into streams. LGPL or GPL licenses are used. It provides a complete solution to recording, converting and streaming audio and video, developed and released by the MPlayer.
In the step (7), the designated area of the interface UI is refreshed, the latest created dotting time, dotting slices and dotting comment contents are displayed, and a click event is added to the dotting slices.
In the step (8), after the user establishes a new dotting, the user performs corresponding operations of commenting and note recording on the content of the micro-class video at the moment in the corresponding column of the page, and when the user browses the micro-class video again, the user can visually see the dotting comment information which the user has already made, and the micro-class video is played back and watched by using the existing time point.
The invention has the beneficial effects that:
(1) through improving the player, the user can make a point to the little class video through the button on the page at any time at the in-process of little class video broadcast, and the system will record the concrete time of little class video broadcast this moment after making a point to record the database, meanwhile, the system backstage can snatch the little class video screenshot this moment according to the time of making a point that records in the database, form more audio-visual little class video section.
(2) After establishing a new dotting, a user can correspondingly comment on the content of the micro-class video at the moment in a corresponding column of a page, record notes and other operations, and when browsing the micro-class video again, the user can visually see the information such as the dotting comments and the like which have been made by the user, and can use the existing time point to play back and watch the micro-class video.
(3) In addition, when a user browses a micro-class video, the user can also see other users' comments on the micro-class video, and through the function, different users can conduct discussion and communication aiming at the same micro-class video, so that the interaction between the user and the system and between the user and the user is enhanced, and the use experience of the platform is improved.
The specific implementation mode is as follows:
the invention is further described with reference to the following figures and examples.
As shown in fig. 1, a web technology-based on-line on-demand micro-lesson video dotting playing method includes the following steps:
(1) the system platform receives a micro-course video file uploaded by a user and stores the micro-course video file into a server hard disk; and the attribute of the micro-course video forms data and stores the data into a corresponding data table of the database.
(2) And playing the micro-class video by adopting a video player supporting the video dotting function.
(3) When the micro-class video is played, the instruction sent by the user is received by clicking the event through the button, the instruction is transmitted to the player through the method and the interface provided by the player, and the playing time point of the micro-class video when the instruction is given is returned.
(4) The platform provides a corresponding interface UI to receive the comments and the like written by the user aiming at the micro-course video content at the time point created in the third step.
(5) And through the ajax technology, contents such as dotting time, dotting comments and the like created by a user are submitted to a server side in a post mode for processing, and data are formed and then stored into a corresponding data table in a database.
(6) And calling ffmepg.exe according to the time point data acquired by the server, intercepting the video screenshot of the micro-course video at the time point, storing the video screenshot into a server hard disk, and forming corresponding data tables of which the data are stored in a database.
(7) And after all data and files are processed, refreshing a designated area of the UI, displaying the latest created dotting time, dotting slices, dotting comments and other contents, and adding a clicking event to the dotting slices.
(8) When the micro-class video is played, a user instruction is received through a click event of a dotting slice, the instruction is transmitted to the player through a method and an interface provided by the player, and the player processes dotting time data attached to the instruction, so that the video jumps to a time point of the slice to be played again.
(9) The platform provides a corresponding interface UI to receive the contents of comments, replies and the like written by the user aiming at each dotting record, stores the contents into a database by using the ajax technology, and then forms the interaction between the users on the page by refreshing the designated area of the interface.
Although the embodiments of the present invention have been described with reference to the accompanying drawings, it is not intended to limit the scope of the present invention, and it should be understood by those skilled in the art that various modifications and variations can be made without inventive efforts by those skilled in the art based on the technical solution of the present invention.