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
Comments
Displaying 6 of 6 comments ( View all | Add Comment )
siobhan 0A0
do you know if this works still? ive tried a few different videos and i cant get them to play. maybe im just doing it wrong tho. i didnt try messing with the code because im not very tech savvy lol..xp
whats the video you're trying to use??? I think it still works but im not sure cause im using firefox rn and i think firefox has it disabled
by xXn1koXx; ; Report
or do you already have it added to your profile ?
by xXn1koXx; ; Report
wait something odd is going on with it cause when i went onto your profile for the first time, music was playing but now that i re-entered it theres no more music.... ill try look into it and see if theres anything i can do
by xXn1koXx; ; Report
ℳaxina༊·˚
MY LIFESAVERRRRRR THX XDDDD
⋆ ˚。⋆୨୧˚ ABRA ˚୨୧⋆。˚ ⋆
omg thank you so much, when i tried doing it on my own it only played the music while editing the blog
this works perfectly!! tysm
no problem!! :-)
Does it loop though ?
by xXn1koXx; ; Report
its been a while so i want to make sure that this still works cause i use a slightly different version on my website now i think
by xXn1koXx; ; Report
im not sure if it loops, the first time i used it i used an hour long youtube video, and the second time i never stayed on the page long enough for the song to end
by ⋆ ˚。⋆୨୧˚ ABRA ˚୨୧⋆。˚ ⋆; ; Report
oh, fair enough then xD
by xXn1koXx; ; Report
squirmy_self
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!
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
im gonna test it and see if it works!
Did it work??
by xXn1koXx; ; Report
yep!
by abigail; ; Report
spaghetticlamp
its not looping for me, what do i do?
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