当前位置:网站首页>H5 video automatic playback and circular playback
H5 video automatic playback and circular playback
2022-06-26 13:14:00 【Collect and learn by yourself】
<video id="audio" class="video-player" loop="loop" autoplay muted >
<source src="/static/images/h5/activity/hea/video.mp4?2" type="video/mp4">
</video>Jq:
Change video address
$('#audio').html('');
var src = "<source src=\"" + info.videoUrl + "\" type=\"video/mp4\">";
$('#audio').append(src);var video = document.getElementById("audio");
video.loop = false;
video.addEventListener('ended', function() {
video.currentTime=0.1; video.play(); }, false);
video.play();边栏推荐
猜你喜欢

Beifu PLC passes MC_ Readparameter read configuration parameters of NC axis

2. Introduction to parallel interface, protocol and related chips (8080, 8060)

Power Designer - Custom Comment button

Group counting practice experiment 9 -- using cmstudio to design microprogram instructions based on segment model machine (2)

Unit practice experiment 8 - using cmstudio to design microprogram instructions based on basic model machine (1)

Explain C language 11 in detail (C language series)

. Net Maui performance improvement

8、【STM32】定时器(TIM)——中断、PWM、输入捕获实验(一文精通定时器)

scrapy——爬取漫画自定义存储路径下载到本地

倍福通过CTU和TON实现时间片大小和数量的控制
随机推荐
C - Common Subsequence
Electron official docs series: References
偶言佳句,孤芳自赏
Explain C language 11 in detail (C language series)
Electron official docs series: Best Practices
Reflect the technical depth (unable to speed up)
Don't mess with full_ Case and parallel_ CASE
Appearance mode (facade)
Electron official docs series: Get Started
IDC report: the AI cloud market share of Baidu AI Cloud ranks first for six consecutive times
利用scrapy爬取句子迷网站优美句子存储到本地(喜欢摘抄的人有福了!)
scrapy——爬取漫画自定义存储路径下载到本地
Decorator
倍福NC轴状态转移图解析
倍福PLC实现绝对值编码器原点断电保持---bias的使用
Word document export (using fixed template)
原型模式(prototype)
适配器模式(Adapter)
桥接模式(Bridge)
Use the script to crawl the beautiful sentences of the sentence fan website and store them locally (blessed are those who like to excerpt!)