如何使用 Jquery 和 Hype 为 HTML5 视频创建音量滑块
当涉及到 Jquery、Javascript 等时,我是一个完全的初学者,但我已经设法在我的页面中使用 Jquery 滑块小部件。现在我想让该滑块控制视频的音量,该视频将作为动画的一部分嵌入到 Tuult Hype 中。我知道 Hype 为视频提供了一个“元素 ID”,我可以从 Hype 外部调用该 ID,但我只需要知道应该向 Jquery Slider 函数添加哪些代码以启用该视频的音量控制。 请帮忙!
I'm a complete beginner when it comes to Jquery, Javascript etc but I've managed to get a Jquery slider widget working in my page. Now I want to have that slider control the volume of a video which will be embedded as part of an animation in Tumult Hype. I know that Hype gives the video an 'element ID' that I can call from outside of Hype but I just need to know what code I should add to the Jquery Slider function to enable volume control of this video.
Please Help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我使用这个:
它假设视频元素的 ID 是 vid1。
I use this:
It assumes the ID of the video element is vid1.