How to get BGM on SpaceHey to play at specific moment from YouTube videos!
...and how to get YT videos to play BGM on your page too, I guess, lol
makes it easier than editing a video yourself to post unlisten on YouTube and now you can just use a video incase the song doesn't start at the begining of the video ya know..?
<iframe width="0" height="0" src="https://www.youtube.com/embed/INSERT/?start=NUMBER&;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>
<iframe width="0" height="0" src="https://www.youtube.com/embed/INSERT/?start=NUMBER&;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>
Copy and Paste this!^^^
Then where it says INSERT replace that with the last letters after the /
when sharing the link of video on YouTube
Ex: https://youtu.be/iUuafesulN8
Insert only the iUuafesulN8 part!
Make sure only to get the letters at the end and not the extra /
Every YouTube video has this so they're easy to grab directly from the link or just cut out the extra junk if you're on a phone. But if you're on a phone I don't reccommend that for SpaceHey tbh......
Then if you want it to play at a specific part replace NUMBER with the timestamp!
<iframe width="0" height="0" src="https://www.youtube.com/embed/INSERT/start=NUMBER
&;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>
KEEP IN MIND!!!
The timestamp needs to be a single number! If your timestamp is at 10 seconds, replace the hastag with 10
If your timestamp is at 1:20 then you're gonna write 80, for total seconds, not minutes ect.
Okay! Cool!
Now let's try what we learned in action!
Soooo that let's use:
08 - Your Vibe - R4 / Ridge Racer Type 4 / Direct Audio
on YouTube
So then it would look like this, right..?
<iframe width="0" height="0" src="https://www.youtube.com/embed/za5f50e7-j0/?start=132&;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>
Here's another Example
<iframe width="0" height="0" src="https://www.youtube.com/embed/o7fgFaXKVa0/?start=112&;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>
Hopefully you get the idea by now!
If you just want it to start at the begining, you can just change the number to 0
I would keep doing it this way that way you can just plop in different video links and timestamps if you want, so for good measure just keep it on hand!
It takes a little trial and error but so you don't screw up your page I IMPLORE you to use this website for testing code for SpaceHey!
https://heroin-bob.github.io/SpaceHeyLayoutEditor/
Use this site to test ANY code you wanna use for your profile!
You can test code and update it in real time to check to see if code will do what you want to or not/if it'll even work,lol
MUCH faster than updating your profile A MILLION TIMES AND CHECKING OVER AND OVER.
Not to mention your profile potientally getting screwed up!
I use it all the time and I also keep multiple Txt (text) files in a folder with code to copy and paste stuff like this!
Remember! It's all trial and error, don't get discouraged! Now that you have a safe template to test code, keep all your stuff in one place that's safe. Let's be real, a lotta people don't remember half this code by heart, most of it is copy&pasting/trial and error.
Personally I like using F12 and clicking on other people's profile seein' how their stuff works or messing with the layouts they got on here. Anyways, I hope this helped out! GO NUTS!
Comments
Displaying 1 of 1 comments ( View all | Add Comment )
Ratatachetford
USING NOW! OMG thank you this was so helpful!
Report Comment
Awesome! Glad to have helped! :D
by ottomoth; ; Report