当前位置:网站首页>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();
边栏推荐
- What are the common categories of software testing?
- Electron official docs series: Testing And Debugging
- Unit practice experiment 8 - using cmstudio to design microprogram instructions based on basic model machine (1)
- 外观模式(Facade)
- Digital signal processing -- Design of linear phase type (Ⅰ, Ⅲ) FIR filter (1)
- Learning Processing Zoog
- B - Bridging signals
- F - Charm Bracelet
- I - Dollar Dayz
- Source code learning: atomicinteger class code internal logic
猜你喜欢
System tasks (display / print class) in Verilog - $display, $write, $strobe, $monitor
Processing random generation line animation
Electron official docs series: Get Started
Summary of wechat applet test points
Bridge mode
首批通过!百度智能云曦灵平台获信通院数字人能力评测权威认证
Appearance mode (facade)
Group counting practice experiment 9 -- using cmstudio to design microprogram instructions based on segment model machine (2)
Vivado error code [drc pdcn-2721] resolution
OPLG: 新一代云原生可观测最佳实践
随机推荐
D - skiing
B - Bridging signals
G - Cow Bowling
postgis計算角度
Bridge mode
What are the common categories of software testing?
tauri vs electron
H - Sumsets POJ 2229
原型模式(prototype)
Electron official docs series: Get Started
倍福PLC基于CX5130实现数据的断电保持
postgis计算角度
8、【STM32】定时器(TIM)——中断、PWM、输入捕获实验(一文精通定时器)
倍福TwinCAT3 NCI在NC轴界面中的基本配置和测试
Electron official docs series: Examples
P5733 [deep foundation 6. example 1] automatic correction
Common creation and usage of singletons
Deep parsing MySQL binlog
Vivado error code [drc pdcn-2721] resolution
Analysis and protection of heart blood dripping vulnerability (cve-2014-0160)