i'm using nuxt.js . i have a tag and i want to change the src dynamically but i cannot call load() method to refresh the video and start playing .
tag :
<video ref="videoPlayer">
"change video" function in nuxt methods :
this.videoUrl = "new url";
let videoPlayer = this.$refs['videoPlayer'];
videoPlayer.load();
load() not working ! it has error . i cannot access load() method ! why ? what should i do ?
error :
cannot read property 'load' of undefined