如果您想要动态嵌入youtube,那么它非常容易。您只需替换嵌入代码中的视频ID即可。动态嵌入soundcloud剪辑
<iframe width="420" height="315" src="http://www.youtube.com/embed/<?=$youtubeid;?>" frameborder="0" allowfullscreen></iframe>
我很努力地用soundcloud做同样的事情。可能吗? - 嵌入代码如下:
<iframe src="http://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F57162664&show_artwork=true"></iframe>
在我看来,像你需要知道这个API代码嵌入曲目,所以你必须每次看这件事。