如果您想要動態嵌入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代碼嵌入曲目,所以你必須每次看這件事。