is it possible to change default html5 video skin/color(是否可以更改默认的 html5 视频皮肤/颜色)
问题描述
是否可以更改默认 html5 视频播放器的颜色或完整的皮肤?
Is it possible to change default html5 video player's colors or complete skin?
<video id="sampleMovie" src="HTML5Sample.mov" controls></video>
推荐答案
没有办法重新设计浏览器原生 HTML5 视频控件的外观.但是,您可以完全省略它们(通过删除 controls 属性),并使用 HTML、CSS 和 HTML 视频 API 实现您自己的控件(很好的参考 这里).
There's no way of re-skinning the browsers native HTML5 video controls. However, you can omit them completely (by removing the controls attribute), and implement your own controls using HTML, CSS and the HTML video API (good reference here).
这里有一个指南,可以帮助您入门.
There's a guide here which will get you started.
这篇关于是否可以更改默认的 html5 视频皮肤/颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:是否可以更改默认的 html5 视频皮肤/颜色


基础教程推荐
- Bokeh Div文本对齐 2022-01-01
- 在 contenteditable 中精确拖放 2022-01-01
- 检查 HTML5 拖放文件类型 2022-01-01
- Fabric JS绘制具有活动形状的多边形 2022-01-01
- npm start 错误与 create-react-app 2022-01-01
- 即使用户允许,Gmail 也会隐藏外部电子邮件图片 2022-01-01
- fetch 是否支持原生多文件上传? 2022-01-01
- 原生拖动事件后如何获取 mouseup 事件? 2022-01-01
- 如何添加到目前为止的天数? 2022-01-01
- Bootstrap 模态出现在背景下 2022-01-01