0

したがって、次のようなビデオ埋め込みを取得できます。

iframe style='overflow: hidden; border: 0; width: 720px; height: 506px' src='http://stagevu.com/embed?
width=720&amp;height=450&amp;background=000&amp;uid=ymuqokfxatwt' scrolling='no'></iframe> 

ユーザーが次のコードを使用して、http://stagevu.com/video/ipfmdyadiqgtのような形式でビデオの単純な URL リンクを 入力すると:

// 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&amp;height=400&amp;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 を介した埋め込みを許可するにはどうすればよいですか?

4

1 に答える 1

0

http://developers.soundcloud.com/docs/api/reference#resolve

これを確認してください。URL を解決するためのものです。

于 2013-03-11T09:08:04.737 に答える