当前位置:网站首页>H5视频自动播放和循环播放
H5视频自动播放和循环播放
2022-06-26 12:40:00 【自己收藏学习】
<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:
改变视频地址
$('#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();边栏推荐
猜你喜欢

P2393 yyy loves Maths II

C# const详解:C#常量的定义和使用

Biff TwinCAT can quickly detect the physical connection and EtherCAT network through emergency scan

Processing random generation line animation

Mode pont

第01章_Linux下MySQL的安装与使用

IDC report: the AI cloud market share of Baidu AI Cloud ranks first for six consecutive times

倍福将EtherCAT模块分到多个同步单元运行--Sync Units的使用

Enjoy element mode (flyweight)
![[BSidesCF 2019]Kookie 1](/img/22/585d081668e67b8389a1b90aaebe9d.png)
[BSidesCF 2019]Kookie 1
随机推荐
Enjoy element mode (flyweight)
Processsing function random
P5733 【深基6.例1】自动修正
G - Cow Bowling
原型模式(prototype)
scrapy——爬取漫画自定义存储路径下载到本地
Electron official docs series: Best Practices
Coprime and non coprime of template problems of Chinese remainder theorem
倍福Ethercat模块网络诊断和硬件排查的基本方法
C# 结构体:定义、示例
QT . Establishment and use of pri
Summary of wechat applet test points
倍福CX5130换卡对已有的授权文件转移操作
UVa11582 [快速幂]Colossal Fibonacci Numbers!
体现技术深度(无法速成)
C - Common Subsequence
map 取值
Electron official docs series: Best Practices
To solve the difficulties of small and medium-sized enterprises, Baidu AI Cloud makes an example
10秒内完成火灾预警,百度智能云助力昆明官渡打造智慧城市新标杆