Hey, so most of the video player code ppl have been posting to add to your spaceHey haven't been working for me so I just made my own.
Features:
- Auto Play
- Loop (i cannot get the loop to work for some reason...)
- Video part will be invisible, so only the audio will play
- Custom Video Start Time
CODE:
<iframe width="0" height="0" src="https://www.youtube.com/embed/VIDEO_ID?&playlist=VIDEO_ID&autoplay=1&loop=1&start=0" frameborder="0" allow="autoplay;">
</iframe>
HOW TO ADD TO YOUR PAGE
You can copy and paste this directly into your About Me, but make sure you replace VIDEO_ID with your own first.
In order to find the video ID, first find the YouTube video you want to add, then click the share button. There is an option called Embed, click it (it will have an icon that looks like <>).
Then copy the part of the link that comes after embed/ and before the ?
For example, you would copy the bolded part if you were using this link:
https://www.youtube.com/embed/rOH3R_BRpek?si=yLdEaxwbqIg5rQJl
Just replace VIDEO_ID with the actual video ID and you're set!
MODIFYING THE CODE
Here's how you can make some simple changes to the code to suite your needs:
NO LOOP (broken, so no loop anyway)
- Change the value of loop=1 to loop=0 OR delete &loop=1
VIEW VIDEO
- If you want to also see the video, simply change the width and height of the frame;
- width="560" height="315"
- These are YouTube's default width and height, but you can change them to suit your needs.
CHANGE VIDEO START TIME
- To change the time stamp at which your video starts, just change the start value from zero to the time stamp you wish to change it to IN SECONDS. If you want your video to start at the 2 minute mark, that would be 120 seconds, so you would type 120.
- Ex. &start="67"
- This would start the video at 1 minute and 7 seconds.
*Note: If you want to add a custom end time, you can add &end="TIME_IN_SECONDS" in the same place as the start code.
I'm sorry for any typos, I wrote this at 5am.
If you have any trouble with the code, I can try to help but know that I'm a busy person with my own life. It might take me a while to get back to people.
Don't worry about crediting me. This is really simple code to where crediting feels a little silly. Copy, paste, and share at your own desires.
Comments
Displaying 0 of 0 comments ( View all | Add Comment )