The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Auto-play Youtube Videos

View previous topic View next topic Go down

Auto-play Youtube Videos

Post by Frank_Wx on October 3rd 2014, 5:53 am

Hello,

Just wondering how do I Autoplay a Youtube video? Also, is there a way to hide the video as well? Basically when I create a new thread I would like background music and this seems like an easier way than trying to work with coding.

Thanks!

Frank_Wx
Forumember

Male Posts : 75
Reputation : 1
Language : english

http://www.njstrongweatherforum.com/

Back to top Go down

Re: Auto-play Youtube Videos

Post by _Twisted_Mods_ on October 3rd 2014, 11:20 am

loading a video takes alot of data for people on mobile or slow connection so i would suggest just going with a sound file


to do this

Admin Panel - Display - templates - General

edit overall_header

right under <head> add


Code:
<embed src="http://a.tumblr.com/tumblr_lr9um3PbFW1qj8eino1.mp3" autostart="true" loop="true"
width="2" height="0">
</embed>

just replace the link to mp3 with whatever u want

and if you really want to use a youtube video

do same thing just use this code

Code:
<embed width="0" height="0"
src="http://www.youtube.com/v/XGSy3_Czz8k?autoplay=1">
</embed>

make sure you leave the "?autoplay=1" on the end of the link when you change it


Last edited by thetwistedkilla on October 3rd 2014, 11:31 am; edited 1 time in total (Reason for editing : added utube code)

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Re: Auto-play Youtube Videos

Post by Frank_Wx on October 6th 2014, 3:09 am

Thank you, but wouldnt your suggestion add sound throughout the entire forum? I just want it inside a specific thread.

Frank_Wx
Forumember

Male Posts : 75
Reputation : 1
Language : english

http://www.njstrongweatherforum.com/

Back to top Go down

Re: Auto-play Youtube Videos

Post by _Twisted_Mods_ on October 6th 2014, 4:22 am

well u can make a post with those codes as long as ur forum allows html

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum