Adventures Embed
Aug. 14th, 2015 05:42 pmI discovered by blocking Shockwave Flash — which I highly recommend you also block* — that, when I embedded videos using the LiveJournal video template, the video playback employed Shockwave Flash (it wasn't part of the visible code, so I didn't know). If you've got an old CPU, this may have caused your computer to labor. In any event, blocking is easy (see footnote). So is unblocking: all you have to do is click on the red icon the blocker provides, and the video that's blocked comes into view. But from now on, I'll use something other than the lj template when I can. [UPDATE: And the unblocker has now long since stopped working.]
This is the lj template, which works for YouTube but I'm not sure about anything else:
<lj-template name="video">URL</lj-template>
For example, here's DJ Leandro's "Montagem das Antigas, Volt Mix":
<lj-template name="video">http://www.youtube.com/watch?v=Oj7T71vH-mo</lj-template>
[Error: unknown template video]
Note that, when using the lj template, if the url begins with "https://" as YouTube's do, you have to get rid of the "s" for the embed to work. [Also note, many years later, that it doesn't work anymore.] But I'm recommending you not use the template, given the Shockwave Flash. And when you're not using the lj template, you don't have to eliminate the s. And if you still like the lj template's ratio, I've worked out that it's approximately 428 width, 335 height. So you can just take a video site's embed code and insert those numbers. Here they are with the YouTube code (DJ Battery Brain's "808 Volt"):
( More vids and stuff )
So, you can use that as a model and plug in the appropriate video. But since it too uses the slow-loading, high bandwidth Shockwave Flash, you might want to use a newer Dailymotion code instead (though for all I know it also uses Shockwave Flash [EDIT: indeed, it does]). This is the one for Wonder Girls' live "Rewind" (x307uyf):
<iframe frameborder="0" width="428" height="345" src="//www.dailymotion.com/embed/video/x307uyf" allowfullscreen></iframe>
( Yet more vids )
( Wonder Girls )
( The disappearing k-pop tag )
( Footnotes )
This is the lj template, which works for YouTube but I'm not sure about anything else:
<lj-template name="video">URL</lj-template>
For example, here's DJ Leandro's "Montagem das Antigas, Volt Mix":
<lj-template name="video">http://www.youtube.com/watch?v=Oj7T71vH-mo</lj-template>
[Error: unknown template video]
Note that, when using the lj template, if the url begins with "https://" as YouTube's do, you have to get rid of the "s" for the embed to work. [Also note, many years later, that it doesn't work anymore.] But I'm recommending you not use the template, given the Shockwave Flash. And when you're not using the lj template, you don't have to eliminate the s. And if you still like the lj template's ratio, I've worked out that it's approximately 428 width, 335 height. So you can just take a video site's embed code and insert those numbers. Here they are with the YouTube code (DJ Battery Brain's "808 Volt"):
( More vids and stuff )
So, you can use that as a model and plug in the appropriate video. But since it too uses the slow-loading, high bandwidth Shockwave Flash, you might want to use a newer Dailymotion code instead (though for all I know it also uses Shockwave Flash [EDIT: indeed, it does]). This is the one for Wonder Girls' live "Rewind" (x307uyf):
<iframe frameborder="0" width="428" height="345" src="//www.dailymotion.com/embed/video/x307uyf" allowfullscreen></iframe>
( Yet more vids )
( Wonder Girls )
( The disappearing k-pop tag )
( Footnotes )