tylerdong

Results 2 comments of tylerdong

楼主你好, 谢谢这个demo。 有个问题 , 我的项目在设置图片src的时候很vue默认在前面添加了localhost:8080,这个对本地图片来说没有问题,但是如果是服务器上的图片就不行了,如下: localhost:8080http://badu.com/img/user.png/ 我看到你这个项目里也有类似的 我对比了我们两个的webpack.base.conf.js文件, { test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, loader: 'url', query: { limit: 10000, name: utils.assetsPath('img/[name].[hash:7].[ext]') } } 这一段是一样的,没看出那里有不同,我在本地也部署了你这个代码没啥问题,问一下你这里是怎么处理的呢? 希望不吝赐教

I put the track function in the callback function onloadedmetadata of video and solve this problem。liek this: this.$refs.refVideo.onloadedmetadata = e => { this.$refs.refVideo.play() this.initTracker() } initTracker() { this.context = this.$refs.refCanvas.getContext("2d")...