I FOUND OUT HOW TO ADD BG MUSIC

After 2 hours of debugging and testing with my friend, we finally found a way that we think works. 

NOTE: IF THE VIDEO IS COPYRIGHTED IT MAY NOT WORK


Html code:

<iframe width="0" height="0" src="https://www.youtube.com/embed/video link here//?start=1&;amp;;autoplay=1&;loop=1&;controls=1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="" loading="lazy">

</iframe>


How to test if the video will work

https://www.youtube.com/embed/video link here//

If you get an error then it will not work, if you can view the video then it will work.


IF THERE ARE ANY OTHER PROBLEMS THEN JUST EXPERIMENT WITH THE CODE, I HONESTLY DON'T EVEN KNOW WHY IT WORKS OR DOESN'T WORK


3 Kudos

Comments

Displaying 3 of 3 comments ( View all | Add Comment )

squirmy_self

squirmy_self's profile picture

hello! i got this working for my page but i was wondering if there's a way to adjust the volume if i don't want the player to be showing. thanks!


Report Comment



I don't know how to do that lol
Couldn't users just put their system's volume lower?

by xXn1koXx; ; Report

haha yeah that's what i just decided was best in the end

by squirmy_self; ; Report

abigail

abigail's profile picture

im gonna test it and see if it works!


Report Comment



Did it work??

by xXn1koXx; ; Report

yep!

by abigail; ; Report

spaghetticlamp

spaghetticlamp's profile picture

its not looping for me, what do i do?


Report Comment



I honestly don't know, try checking youtube's embed and taking code from there into mine.
(You could also try to find a 1 hour version or smth)

by xXn1koXx; ; Report

I honestly don't know, try checking youtube's embed and taking code from there into mine.
(You could also try to find a 1 hour version or smth)

by xXn1koXx; ; Report