Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb who will solve this

    i am working on this but
    i post this somewhere but no one know how we can make this . its not so complicated.

    let's see if some one resolve this.


    i want to make a dynamic page, to embed multiple videos (dailymotion,youtube,etc) i want to make a page that when we put video id of the site it detects the video .
    some where i read that i can do this with api , or swfobject.js

    here is demo:

    this site has a pre-embed player here :http://veedio.info/dailymotion.php

    only what if we want to embed a video just change the id of the video in the end of the url

    http://veedio.info/dailymotion.php?url=k3g6iiAEAuyt1N3TPDF


    would you please give me the solution:

  • #2
    Regular Coder Arcticwarrio's Avatar
    Join Date
    May 2012
    Location
    UK
    Posts
    721
    Thanks
    20
    Thanked 84 Times in 84 Posts
    PHP Code:

    echo'
    <iframe width="560" height="315" src="http://www.youtube.com/embed/'
    .$_GET['url'].'" frameborder="0" allowfullscreen></iframe>'
    There are 10 types of people on CodingForums,
    Those who understand Binary and those who dont.
    Get Cloud Hosting now from only£59 / month


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •