常用video标签上传之后展示

来源:互联网 发布:python 生物信息 编辑:程序博客网 时间:2024/06/05 23:40
<video id="video"  controls loop poster="${ctx}${c.imgurl}" src="${ctx}${c.url}">

</video>

poster
是封面路径

src
是视频路径

//视频播放暂停$("#video").on("click",function(){    if(this.paused){        this.play();    }else{        this.pause();    }});

原创粉丝点击