Website

Results 1 to 3 of 3
  1. #1
    Apprentice discodutch is offline
    MemberRank
    Feb 2015 Join Date
    17Posts

    Website

    how to make it so youtube music can be played on site automatically without seeing video?


  2. #2
    Account Upgraded | Title Enabled! asesinato is offline
    MemberRank
    Aug 2014 Join Date
    601Posts

    Re: Website

    This isn't exactly Habbo related lol but all you have to do is embed it

  3. #3
    Member Mink is offline
    MemberRank
    Jun 2011 Join Date
    55Posts

    Re: Website

    Just embed the YouTube video in an iframe and hide it, like so:
    PHP Code:
    <iframe style="display:none" id="ytplayer" type="text/html" src="http://www.youtube.com/embed/video_here?autoplay=1"/> 
    Replace "video_here" with the video you wish to play in the background.

    For example:
    PHP Code:
    <iframe style="display:none" id="ytplayer" type="text/html" src="http://www.youtube.com/embed/V8GGe6-QL_4?autoplay=1"/> 
    will play this:

    Note that a lot of songs won't work by embedding them as the record companies block the videos from being used outside of YouTube.



Advertisement