Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Website

Newbie Spellweaver
Joined
Feb 28, 2015
Messages
17
Reaction score
0
how to make it so youtube music can be played on site automatically without seeing video?
 
Master Summoner
Joined
Aug 5, 2014
Messages
597
Reaction score
199
This isn't exactly Habbo related lol but all you have to do is embed it
 
Upvote 0
Newbie Spellweaver
Joined
Jun 25, 2011
Messages
49
Reaction score
17
Just embed the YouTube video in an iframe and hide it, like so:
PHP:
<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:
<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.
 
Upvote 0
Back
Top