Cannot get the duration of video in vue

clipboard.png

as shown in the figure above, after a get request in vue is completed, modify the url, of the video and then cannot get the corresponding duration attribute. After changing the src, use video.load () . No, ask for the help of God T.T

.
Aug.18,2021

setTimeout give a time such as 500ms to try


video has not been rendered, you can take a look at the vue lifecycle

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e50f59-45111.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e50f59-45111.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?