This blog will show you how to create your own embed code. Your code can be really simple or you can make it more in-depth. Creating your own code gives you much more freedom (and satisfaction when it works how it's supposed to) than a code generator.
This is the simplest form of an embed code:
<"embed" src="your video URL here" height="video height" width="video width"><"/embed">
You'd have to take out the "" around both embeds.
- src tells the code where to get the video (which is why you put in the video URL).
- The height and width sets the height and width of the embeded video
It's important to note that if you set the height and width bigger than the actual number of pixels, the video won't distort but there will be added space around your video.
There are also other features you can add to your code to jazz it up.
autostart This is a true/false value. It sets to auto play your video.
hidden True/false value. Hides your video.
loop True/false value. Continuously loops your video
So, for example, let's say you wanted to embed a video that autostarted and looped, and your height and width were 256 and 320, respectively. Your code would look like this:
<"embed" src="my_video_url.mp4" height="256" width=320" autostart="true" loop=true"><"/embed">
There you have it! You've just created your own embed code.
No comments:
Post a Comment