如何嵌入 Soundcloud 曲目
正如倾斜所暗示的那样,我试图找出如何嵌入 soundcloud 文件,以及如何轻松更改嵌入的声音。
我有一个网站,目前可以让用户编写一个故事,然后将图像或视频附加到它。对于视频,我使用 vimeo 和 youtube。用户所做的就是复制并粘贴视频的网址,然后我有一个 php 脚本来完成其余的工作...
我需要同样的 Soundcloud...
请帮助,因为这是我需要跨越的最后一个障碍完成我的项目
As the tilt suggests, Im trying to figure out how to embed a soundcloud file, and how can i change which sound is embed easily..
I have a site that at the moment, lets users write a story then attach an image or video to it. for the video, i use vimeo and youtube. All the user does is copy and past the url for the video and then i have a php script that does the rest....
I need the same for Soundcloud...
Please Help, as this is the last hurdle i need to cross to finish my project
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
SoundCloud 上的每个曲目的左上角都有一个“共享”链接。单击它会显示一个嵌入代码,您可以使用该代码将其嵌入到不同的站点上。如果您愿意,您甚至可以自定义它的外观。在他们的小部件页面上提供了更多信息。
您还可以使用 embed.ly 之类的服务,这将有助于抽象所有对象的数据嵌入。
动态更改曲目必须使用 JavaScript 来完成。
On each track on SoundCloud there is a 'Share' link in the top left. Clicking it reveals a embed code which you can use to embed it on a different site. If you want you can even customize how it looks. There is some more information available on their widgets page.
You could also use a service like embed.ly that would help abstract the embeding of the data for all of your objects.
Changing the tracks on the fly would have to be done using JavaScript.