最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

html video 循環(huán)播放(連續(xù)播放)

2023-02-14 21:05 作者:_天天寫代碼_  | 我要投稿

這個是vue的寫法,基本一致,添加兩個監(jiān)聽器,在數(shù)據(jù)準備好的時候再調(diào)用play 這樣就不會被瀏覽器卡住了

We fixed this problem by registering a?loadeddata?event listener on the video element that we were trying to play, then?load()ing the video, and finally?play()ing it inside the event handler:

const playVideo = (video) => { ?video.addEventListener('loadeddata', () => { ? ?video.play(); ?}); ?video.load();


html video 循環(huán)播放(連續(xù)播放)的評論 (共 條)

分享到微博請遵守國家法律
新宾| 连平县| 大理市| 临泉县| 玛沁县| 泾阳县| 交城县| 南和县| 姜堰市| 永登县| 旅游| 新晃| 永福县| 邛崃市| 白玉县| 贵州省| 兴仁县| 六盘水市| 黔西县| 安丘市| 焦作市| 汨罗市| 汕尾市| 洞口县| 泰安市| 淮北市| 康平县| 阜平县| 庆阳市| 葵青区| 深泽县| 伊通| 长兴县| 上饶县| 嘉黎县| 郓城县| 龙井市| 久治县| 长宁县| 虎林市| 嵩明县|