Results 1 to 3 of 3

Thread: Code for playing YouTube through your own domain, without the distractions

  1. #1
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,318
    Thanks
    30
    Thanked 136 Times in 131 Posts
    Blog Entries
    29

    Default Code for playing YouTube through your own domain, without the distractions

    Putting this code on a page of your site allows you to play YouTube videos without the distractions around them (and without the ads) THROUGH YOUR OWN DOMAIN.

    You'll have a page that dynamically adapts to the video url you put in the address bar. The '? button' on your page will tell you how the url should look like.

    It will also tell you how you can turn your page into a data base for YouTube videos (without the distractions, because the videos are played through your domain). In that case you don't put video urls in the address bar yourself, but let links do the job.

    It's recommended to name your page 'index.html' and to put it in a separate folder, but this is not a requirement.

    The video urls accept a parameter info=..., which allows you to provide info about the videos at the top of the page. Other features include a stop button, a replay button that can be used even if the videos is still playing, a share button and parameters for playlists and chopping the videos.

    DEMO:
    Your own page will serve as a demo. Just copy the code above, paste it into your page and click on the '? button' for info. For people who cannot create their own page I've created http://mesdomaines.nu/cleantube.

  2. #2
    Join Date
    May 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    There was nothing in the demo link?

  3. #3
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,318
    Thanks
    30
    Thanked 136 Times in 131 Posts
    Blog Entries
    29

    Default

    Right, there's nothing in the demo link because you are supposed to do something first. Click on '?' at the top of the demo to see what you can / should do. For instance, you could put this in the address bar:
    http://mesdomaines.nu/cleantube?v=ROVy9PC8_8A?start=20&end=70
    That will display a YouTube video (without the distractions) through http://mesdomaines.nu/cleantube. (In this case, the video starts at 20 secs and stops at 70 secs). But http://mesdomaines.nu/cleantube allows you to do a lot of other things. Read the instructions by clicking on '?'.

Similar Threads

  1. Playing 'watch_popup videos' using the YouTube Api for embedding videos
    By molendijk in forum Submit a DHTML or CSS code
    Replies: 1
    Last Post: 06-21-2013, 03:18 PM
  2. Executing code after a youtube video has finished
    By molendijk in forum Looking for such a script or service
    Replies: 2
    Last Post: 05-01-2013, 03:20 PM
  3. Using thumbnails for playing multiple YouTube videos
    By molendijk in forum Submit a DHTML or CSS code
    Replies: 2
    Last Post: 03-20-2013, 11:04 PM
  4. Loading YouTube videos using the most recent YouTube embed code
    By molendijk in forum Submit a DHTML or CSS code
    Replies: 11
    Last Post: 05-28-2012, 11:04 PM
  5. make only one youtube video playing
    By bd0 in forum Flash
    Replies: 3
    Last Post: 06-27-2008, 02:23 AM

Bookmarks

Posting Permissions

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