Vue.js 未捕获的语法错误:意外标记'<';使用videojs-ffmpegjs插件和多个插件问题
我试图在videojs中使用ffmpegjs插件,但出现了错误 “未捕获的语法错误:意外标记”Vue.js 未捕获的语法错误:意外标记'<';使用videojs-ffmpegjs插件和多个插件问题,vue.js,ffmpeg,video.js,Vue.js,Ffmpeg,Video.js,我试图在videojs中使用ffmpegjs插件,但出现了错误 “未捕获的语法错误:意外标记” options: { controls: true, bigPlayButton: false, loop: false, width: 600, height: 340, fluid: false,
options: {
controls: true,
bigPlayButton: false,
loop: false,
width: 600,
height: 340,
fluid: false,
plugins: {
wavesurfer: {
backend: "WebAudio",
waveColor: "#ffffff",
backgroundColor: "#000000",
barHeight: 3,
progressColor: "white",
debug: true,
cursorWidth: 1,
displayMilliseconds: true,
hideScrollbar: true,
plugins: [
// enable microphone plugin
WaveSurfer.microphone.create({
bufferSize: 4096,
numberOfInputChannels: 1,
numberOfOutputChannels: 1,
constraints: {
video: false,
audio: true
}
})
]
},
record: {
audio: true,
video: false,
maxLength: 3600,
debug: true,
// enable ffmpeg.js plugin
convertEngine: "ffmpeg.js",
// convert recorded data to MP3
convertOptions: ["-f", "mp3", "-codec:a", "libmp3lame", "-qscale:a", "2"],
// specify output mime-type
pluginLibraryOptions: {
outputType: "audio/mpeg"
},
// use MP4 encoding worker (H.264 & AAC & MP3 encoders)
convertWorkerURL: "../../../../node_modules/ffmpeg.js/ffmpeg-worker-mp4.js"
}
}
}