当前位置:网站首页>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();边栏推荐
- B - Bridging signals
- G - Cow Bowling
- To solve the difficulties of small and medium-sized enterprises, Baidu AI Cloud makes an example
- postgis 地理化函数
- Electron official docs series: Get Started
- 享元模式(Flyweight)
- 5月产品升级观察站
- UVA5009 Error Curves三分
- 倍福通过CTU和TON实现时间片大小和数量的控制
- Beifu PLC passes MC_ Readparameter read configuration parameters of NC axis
猜你喜欢

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

Fire warning is completed within 10 seconds, and Baidu AI Cloud helps Kunming Guandu build a new benchmark of smart city

2、并行接口、协议和相关芯片介绍(8080、8060)

Opencv high speed download

Prototype

倍福PLC选型--如何看电机是多圈绝对值还是单圈绝对值编码器

Electron official docs series: Processes in Electron
What should the software test report include? Interview must ask

Machine learning notes - seasonality of time series

8、【STM32】定时器(TIM)——中断、PWM、输入捕获实验(一文精通定时器)
随机推荐
POJ 3070 Fibonacci
Accumulation of interview questions
Electron official docs series: References
Learning Processing Zoog
Electron official docs series: Examples
Analysis and protection of heart blood dripping vulnerability (cve-2014-0160)
sql 将数据表b字段值赋值到数据表a中某一列
Angle de calcul POSTGIS
tauri vs electron
Digital signal processing -- Design of linear phase type (Ⅰ, Ⅲ) FIR filter (1)
5月产品升级观察站
Software testing - concept
倍福TwinCAT3实现CSV、TXT文件读写操作
G - Cow Bowling
Electron official docs series: Contributing
Map value
C structure: definition and example
Design of four kinds of linear phase FIR filters -- complete set of Matlab source code
Hdu1724[Simpson formula for integral]ellipse
Do you know the limitations of automated testing?