The invention is applied to the technical field of
Html5, and provides a teaching video compressing method, a teaching video playing method, a teaching video compressing device and a teaching video playing device. The teaching video compressing method comprises the following steps: obtaining an event generated by an
input device on a
drawing board of a teaching video in an
Html5 webpage; recording a rendering space of the event on the
drawing board, and establishing a corresponding relation between the event and the rendering space to generate a rendering table; recording an action content of the event to generate action content data; obtaining an event category and
time information of the event; according to the action content data, the event category and the
time information of the event, generating a video code of the event; and uploading the video code of the event and the rendering table to a
server. The teaching video compressing method, the teaching video playing method, the teaching video compressing device and the teaching video plying device disclosed by the invention have the following beneficial effects: 1) the
compression ratio is high, and the storage space and the
transmission bandwidth are saved; 2) the definition is high, and on the basis of the high
compression ratio, the
video based on Canvas can reproduce high-definition action playback of a vector, thereby improving the playing effect; and 3) a text in the video has replicability and derivability so as to carry out semantic analysis on the video.