当前位置:网站首页>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();边栏推荐
- Software testing - concept
- 倍福通过CTU和TON实现时间片大小和数量的控制
- Do you know the limitations of automated testing?
- 利用scrapy爬取句子迷网站优美句子存储到本地(喜欢摘抄的人有福了!)
- B - Bridging signals
- Basic principle and application routine of Beifu PLC rotary cutting
- G - Cow Bowling
- 偶言佳句,孤芳自赏
- HDU 3709 Balanced Number
- 8. [STM32] timer (TIM) -- interrupt, PWM, input capture experiment (proficient in timer)
猜你喜欢

倍福EtherCAT Xml描述文件更新和下载

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

Arcpy -- use of insertlayer() function: adding layers to map documents

Prototype

First pass! Baidu AI Cloud Xiling platform has obtained the authoritative certification of digital human ability evaluation from the Institute of information technology

橋接模式(Bridge)

First knowledge - Software Testing

Chapter 01_ Installation and use of MySQL under Linux

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

适配器模式(Adapter)
随机推荐
Uva11582 [fast power]colossal Fibonacci numbers!
B - Bridging signals
Beifu PLC realizes zero point power-off hold of absolute value encoder -- use of bias
Adapter mode
Appearance mode (facade)
Power Designer - Custom Comment button
To solve the difficulties of small and medium-sized enterprises, Baidu AI Cloud makes an example
Decorator
QT . Establishment and use of pri
D - 滑雪
Source code learning: atomicinteger class code internal logic
MySQL数据库讲解(五)
What should the software test report include? Interview must ask
Don't mess with full_ Case and parallel_ CASE
scrapy——爬取漫画自定义存储路径下载到本地
Common creation and usage of singletons
Angle de calcul POSTGIS
IDC报告:百度智能云AI Cloud市场份额连续六次第一
Explain C language 11 in detail (C language series)
Composite mode