简体   繁体   English

SoundCloud小部件自定义编辑

[英]SoundCloud widget custom edit

I'm using the following code to create a custom SoundCloud player: https://github.com/soundcloud/soundcloud-custom-player 我正在使用以下代码创建自定义的SoundCloud播放器: https : //github.com/soundcloud/soundcloud-custom-player

What I have done is: http://epopengate.org/wp-content/themes/epopengate/test/examples/sc-player-standard.html 我所做的是: http : //epopengate.org/wp-content/themes/epopengate/test/examples/sc-player-standard.html

What I would like to do is have the track listing appear when the user clicks on the info button...I would like to save space and I don't really need to display what's being shown in that window anyway. 我想做的是在用户单击“信息”按钮时显示曲目列表...我想节省空间,而且我真的不需要显示该窗口中正在显示的内容。 What would I need to change in order to do that? 为此,我需要更改什么? I assume something in the JS file, but I'm not sure what to move around to make it work. 我假设在JS文件中有内容,但是我不确定该怎么做才能使其工作。

I know there is a widget that works similar here: https://soundcloud.com/pages/widgets - but it's flash based so Apple devices would not be able to use it and by creating a track listing that appears when the Info button is clicked, increases mobile compatibility by allowing the user to click because you can't hover with mobile devices. 我知道这里有一个工作原理类似的小部件: https : //soundcloud.com/pages/widgets-但它是基于Flash的,因此Apple设备将无法使用它,并创建一个在“信息”按钮为单击,通过允许用户单击(因为您无法将鼠标悬停在移动设备上)来提高移动兼容性。

Thanks, 谢谢,
Josh 乔希

You can use HTML5 widget, which is the default option for embeds from SoundCloud now – https://blog.soundcloud.com/2011/11/03/html5/ 您可以使用HTML5小部件,这是现在从SoundCloud进行嵌入的默认选项– https://blog.soundcloud.com/2011/11/03/html5/

These will work fine on iOS and Android. 这些将在iOS和Android上正常运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM