doucang9673
doucang9673
2013-12-02 02:37

如何获取嵌入视频并将其放在iframe或popupwindow中

I have a search engine where it will display a list of URL where it will redirect you to the website, how will I only get the video?

here's the list of the example URLs

https://archive.org/details/nazi_concentration_camps

http://www.kumby.com/teekyuu-3-episode-9/

https://www.youtube.com/watch?v=fI3zBtE_S_k

Is there a code in PHP or jquery or javascript? or anything that it will only get the embed video and will display it in iframe or popupwindow or anything? fancybox?

I'm just a new programmer. So please help me. Thanks in advance :)

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

3条回答

  • dongxun1978 dongxun1978 8年前
    <iframe id="player1" src="http://www.kumby.com/teekyuu-3-episode-9/?api=1&player_id=player_1" width="500" height="500" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
    
    点赞 评论 复制链接分享
  • dongli9894 dongli9894 8年前

    you need to take videoUrl and then You will link to the iframe.

    <iframe width="560" height="315" src="//www.youtube.com/embed/fI3zBtE_S_k" frameborder="0" allowfullscreen></iframe>
    
    点赞 评论 复制链接分享
  • dougu4027 dougu4027 8年前

    Sorry ;

    <iframe id="player1" src="http://www.kumby.com/teekyuu-3-episode-9/" width="300" height="210" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
    
    点赞 评论 复制链接分享