doucheng8471 2013-02-24 01:33
浏览 34

Soundcloud仅从页面URL中嵌入检索,是否可能?

So I am able to retrieve video embeds like this:

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> 

when a user types in a simple url link of the video in a form as such as: http://stagevu.com/video/ipfmdyadiqgt, using the following code:

// 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>';
}

I am wondering for a link like this: https://soundcloud.com/darkelixir/teknian-behemoth-darkelixir

with a crazy embed like this:

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> 

how can I allow embedding via url when there is no easy to use ID system?

  • 写回答

1条回答 默认 最新

  • donglu6303 2013-03-11 09:08
    关注

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

    Check this out, its for resolving the URL!

    评论

报告相同问题?

悬赏问题

  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大