(video、audio)關於 Uncaught (in promise) DOMException: The play() request was interrupted by a call to

連續點擊播放按鈕的報錯問題:ide 解決思路:獲取兩次點擊的時間差,若是大於100ms就return,直接退出spa //-------------播放視頻視頻var videoPlayer = document.getElementById("videoCon"); var lastRunTime = Date.now(); var currentTime = Date.now(); var p
相關文章
相關標籤/搜索