所以我能够检索这样的视频嵌入:
iframe style='overflow: hidden; border: 0; width: 720px; height: 506px' src='http://stagevu.com/embed?
width=720&height=450&background=000&uid=ymuqokfxatwt' scrolling='no'></iframe>
当用户以如下形式输入视频的简单网址链接时: http://stagevu.com/video/ipfmdyadiqgt,使用以下代码:
// code to display StageVu
if (preg_match("/http:\/\/stagevu.com\/video\/([a-z]*)/i", $url, $matches)) {
return '<iframe style="overflow: hidden; border: 0; width: 700px; height: 400px"
src="http://stagevu.com/embed?width=700&height=400&background=000& amp;uid='
.$matches[1]. '" scrolling="no">'.
'</iframe>';
}
我想知道这样的链接:https://soundcloud.com/darkelixir/teknian-behemoth-darkelixir
像这样疯狂的嵌入:
iframe width="100%" height="166" scrolling="no" frameborder="no"
src="https://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F80432122">
</iframe>
如果没有易于使用的ID系统,如何允许通过url嵌入?