如何在不创建自定义控件的情况下控制音频/视频原始控件

发布于 2025-01-22 18:30:51 字数 327 浏览 2 评论 0原文

我想控制(播放,暂停,下载,切换全屏幕,进度栏)HTML5 < video>>/video>而无需进行自定义按钮。我不想进行自定义控件。或者,它是由自己创建自定义控件的最佳答案吗?

原因是当另一个视频正在播放或暂停时,我想切换。视频播放器在隐形区域时会暂停。

我想在javascript中控制在javascript中时,当单击原始播放/暂停按钮(如image image

I would like to control (play, pause, download, toggle full-screen, progress bar) the original controls of html5 <video></video> without making the customize button. I don't want to make custom controls. Or, is it the best answer to create custom controls by own?

The reason is I want to toggle when another video is playing or paused. The video player is paused when it is in the invisible area.

I would like to control in javaScript when click original play/pause button like image

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文