Commit b527a08d authored by 柳 佳乐's avatar 柳 佳乐
Browse files

视频检测提示修改

parent 459094c9
...@@ -122,7 +122,6 @@ export default { ...@@ -122,7 +122,6 @@ export default {
numiou:this.IOUValue numiou:this.IOUValue
} }
GetData("/video/detect",data).then(res=>{ GetData("/video/detect",data).then(res=>{
console.log(res)
this.videoDownloadURL = this.baseUrl +"/" + res.url this.videoDownloadURL = this.baseUrl +"/" + res.url
this.$emit("videoFrame",res,loadingInstance) this.$emit("videoFrame",res,loadingInstance)
}).catch(error=>{ }).catch(error=>{
......
...@@ -242,12 +242,12 @@ export default { ...@@ -242,12 +242,12 @@ export default {
videoEl.loop = "loop"; videoEl.loop = "loop";
videoEl.play(); videoEl.play();
// videoEl.addEventListener("loadedmetadata", (event) => { videoEl.addEventListener("loadedmetadata", (event) => {
// console.log( console.log(
// "Yay! readyState just increased to " + "Yay! readyState just increased to " +
// "HAVE_CURRENT_DATA or greater for first time.", "HAVE_CURRENT_DATA or greater for first time.",
// ); );
// }); });
console.log(videoEl.width,videoEl.height) console.log(videoEl.width,videoEl.height)
const videoRender = () => { const videoRender = () => {
window.requestAnimationFrame(videoRender); window.requestAnimationFrame(videoRender);
...@@ -267,6 +267,7 @@ export default { ...@@ -267,6 +267,7 @@ export default {
}, },
videoFrame(res,loadingInstance){ videoFrame(res,loadingInstance){
this.$message.success ("检测成功,请耐心等待视频加载")
let myCanvas = this.$refs.myCanvas let myCanvas = this.$refs.myCanvas
var ctx = myCanvas.getContext('2d') var ctx = myCanvas.getContext('2d')
var w = myCanvas.width; var w = myCanvas.width;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment