[英]Don't want preloaded track in Soundcloud widget player
Recently I added soundcloud widget player in one of my website. 最近,我在一个网站中添加了soundcloud小部件播放器。 Now I am using the website buttons to pass the track URLs in widget.
现在,我使用网站按钮在小部件中传递跟踪URL。
What I want to do is when widget iframe is loading first time a track is needed to show the player. 我想做的是,当小部件iframe第一次加载时,需要一条轨道来显示播放器。 I just want empty player.
我只想要空球员。 Below is the iframe code:
以下是iframe代码:
<iframe id="soundcloud_widget"
src="https://w.soundcloud.com/player/?url=https://api.soundcloud.com/tracks/107739199&color=000000&inverse=false&auto_play=false&show_user=true;hide_related=true;show_comments=false;show_reposts=false;show_playcount=false;start_track=1000000"
frameborder="no" >
</iframe>
Here one have to pass the URL. 这里必须传递URL。 How can I just load an empty soundcloud widget player?
我怎样才能加载一个空的soundcloud小部件播放器?
SoundCloud Widget Player API link . SoundCloud Widget Player API链接 。
There is no 'empty' player, since it's not much use to anyone. 没有“空”播放器,因为它对任何人都没有太大用处。 If you have a particular case for something like that, why not create a placeholder image for the widget and swap it out when the right time comes?
如果您有类似这样的特殊情况,为什么不为窗口小部件创建一个占位符图像,并在适当的时候将其换出?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.