Vue-video-palyer video cannot be played

recently, the company is going to launch a live video project, which has never been done before. Vue-video-palyer is recommended after searching for it on the Internet, but the video cannot be played after downloading and running. My code is to refer to this article: https://www.jianshu.com/p/78f.... I changed the src to the local mp4,type and changed it to video/mp4. I also indicated that I couldn"t play it, and I don"t know why.

Jun.08,2022

the description of the problem is so bad that you can't help you find the reason!
in addition, the plug-in name you want to use is misspelled. Vue-Video-Player!
look at the official document example, read the official document first, and your problem will be solved. Link:
ideo-player/" rel=" nofollow noreferrer "> official document example

ideo-player" rel=" nofollow noreferrer "> github address


problem found:

references the following code in main.js:

import VideoPlayer from 'vue-video-player'

require('video.js/dist/video-js.css')
require('vue-video-player/src/custom-theme.css')

Vue.use(VideoPlayer)

then use the video-player template directly in template without import VideoPlayer from 'vue-video-player', in the component,

Menu