Soundcloud HTML5 音量控制 [英] Soundcloud HTML5 Volume Control

查看:37
本文介绍了Soundcloud HTML5 音量控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站上有一首曲目使用了 soundcloud HTML5 播放器.我想知道是否有任何方法可以让它更安静一点,这样它在打开我的页面时不会让观众感到震惊.如果有人能引导我朝着正确的方向改变声音云上的播放器音量,我将不胜感激:D

I have a track on my website which utilizes the soundcloud HTML5 player. I was wondering if there is any way I can make it a little quieter that way it doesn't shock the viewer upon opening my page. If anyone could lead me in the right direction as to how to alter the players volume on soundcloud it would be much appreciated :D

我知道它与 javascript 有关系:setVolume(volume) 但我不熟悉 JavaScript,所以如果有人能帮助我,那就太好了.我希望音量为 50%.

I know it has something to do with javascript: setVolume(volume) but I'm not familiar with JavaScript so if someone could help me out that'd be great. I want the volume to be at 50%.

如果需要,我也可以使用 Flash Player.

If need be, i could also use the flash player.

我可以使用 HTML5 或 Flash 播放器,我只是希望有人播放时将音量设置为 50%.

I'm fine with using either HTML5 or flash player, I just want the volume to be set at 50% when someone plays it.

推荐答案

您可以使用 小部件 API

基本上,小部件通过 iframe 嵌入到您的页面中.给 iframe 一个 id,包括 API 库(上面链接),然后它真的很简单.

Basically, the widget is embedded into your page with an iframe. Give the iframe an id, include the API library (linked above) and then it's really simple.

SC.Widget('myIframeId').setVolume(50);

这篇关于Soundcloud HTML5 音量控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆