<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Matt Shelton &#187; photobucket</title>
	<atom:link href="http://www.mattshelton.net/tags/photobucket/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mattshelton.net</link>
	<description>scribbling geekery, things and stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 13:38:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Inserting video content into a LiveJournal comment</title>
		<link>http://www.mattshelton.net/2009/01/16/inserting-video-content-into-a-livejournal-comment/</link>
		<comments>http://www.mattshelton.net/2009/01/16/inserting-video-content-into-a-livejournal-comment/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 13:39:33 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[blogging]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[geek life]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[LiveJournal]]></category>
		<category><![CDATA[photobucket]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://www.mattshelton.net/?p=180</guid>
		<description><![CDATA[<p>Posted in <a href="http://www.mattshelton.net/topics/blogging/" title="blogging">blogging</a><a href="http://www.mattshelton.net/topics/code/" title="code">code</a><a href="http://www.mattshelton.net/topics/geek-life/" title="geek life">geek life</a><a href="http://www.mattshelton.net/topics/how-to/" title="how-to">how-to</a></p>Yesterday I was looking for good instructions on inserting video content into a LiveJournal comment (for someone else) and couldn&#8217;t find any. So, after being successful, I felt it my geek duty to write up my directions in case, some &#8230; <a href="http://www.mattshelton.net/2009/01/16/inserting-video-content-into-a-livejournal-comment/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Yesterday I was looking for good instructions on inserting video content into a <a href="http://www.livejournal.com/">LiveJournal</a> comment (for someone else) and couldn&#8217;t find any. So, after being successful, I felt it my geek duty to write up my directions in case, some day someone else needs them. It&#8217;s a calling, I guess?</p>
<p><a rel="lightbox['20090116_ljvid']" href="http://www.mattshelton.net/wp-content/2009/01/lj-post-embed.png"><img class="alignright size-full wp-image-189" title="lj-post-embed" src="http://www.mattshelton.net/wp-content/2009/01/lj-post-embed.png" alt="lj-post-embed" width="235" height="83" /></a>LiveJournal&#8217;s post editor very easily supports inserting media content into posts. There&#8217;s a <a rel="lightbox['20090116_ljvid']" href="http://www.mattshelton.net/wp-content/2009/01/lj-post-embed-dialog.png">semi-friendly GUI</a> which lets you insert an <code>&lt;embed&gt;</code> block from any major video hosting site (e.g. youtube, photobucket, vimeo, etc.) quickly and easily. The comment editor, however, is just a textarea, so if you want any formatting you&#8217;re left to write the HTML yourself. This is no big deal for some, but even most HTML novices only know the basic five html 4.01 tags (a, img, b, i, u), which are fine for 99% of such situations.</p>
<p><em>As an aside, I would love to rid the world of the non-xhtml-compliant formatting tags, but perhaps that&#8217;s just me.</em></p>
<p><a title="Youtube object embedding dialog" rel="lightbox['20090116_ljvid']" href="http://www.mattshelton.net/wp-content/2009/01/youtube-embed.png"><img class="size-full wp-image-181 alignleft" title="youtube-embed" src="http://www.mattshelton.net/wp-content/2009/01/youtube-embed.png" alt="Youtube object embedding dialog" width="281" height="52" /></a>Posting video is a tad more work, though youtube, for instance, makes it painfully easy. They provide a handy dialog to the right of any video with all of the necessary <code>&lt;object&gt;</code> code. You can even customize the background, size, inclusion of related videos, etc. I have to hand it to the folks at <span style="text-decoration: line-through;">youtube</span>google for understanding that their videos should be able to be seen from anywhere, not just their main site.</p>
<p>Well, anyway, youtube wasn&#8217;t my problem. Photobucket was. They provide you with an <code>&lt;embed&gt;</code> link only, and while that&#8217;s fine for the LJ post editor, it&#8217;s incomplete. Here&#8217;s a few quick steps to add the code necessary to adapt what Photobucket gives you to what is needed for a video to show up in a LiveJournal comment.</p>
<p><strong>Photobucket</strong></p>
<pre class="brush: xml; title: ; notranslate">&lt;embed width=&quot;448&quot; height=&quot;361&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; src=&quot;http://i32.photobucket.com/player.swf?file=http://vid12.photobucket.com/albums/abc/UserName/Video/fileName.flv&quot;&gt;</pre>
<p><strong>Youtube</strong></p>
<pre class="brush: xml; title: ; notranslate">&lt;object width=&quot;480&quot; height=&quot;295&quot;&gt;
	&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/9hIQjrMHTv4&amp;amp;hl=en&amp;amp;fs=1&quot;&gt;&lt;/param&gt;
	&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;
	&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;
	&lt;embed src=&quot;http://www.youtube.com/v/9hIQjrMHTv4&amp;amp;hl=en&amp;amp;fs=1&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;480&quot; height=&quot;295&quot;&gt;&lt;/embed&gt;
&lt;/object&gt;</pre>
<p>Using the Youtube code as a reference, you only have to make a couple of changes:</p>
<p><strong>1.</strong> Replace the <code>&lt;embed src=""&gt;</code> code with what Photobucket provides:</p>
<pre class="brush: xml; title: ; notranslate">&lt;object width=&quot;480&quot; height=&quot;295&quot;&gt;
	&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/9hIQjrMHTv4&amp;amp;hl=en&amp;amp;fs=1&quot;&gt;&lt;/param&gt;
	&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;
	&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;
	&lt;embed src=&quot;http://i32.photobucket.com/player.swf?file=http://vid12.photobucket.com/albums/abc/UserName/Video/fileName.flv&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;480&quot; height=&quot;295&quot;&gt;&lt;/embed&gt;
&lt;/object&gt;</pre>
<p><strong>2.</strong> Your photobucket video dimensions may be different, so you&#8217;ll need to fix the height and width in both locations: the <code>&lt;object&gt;</code> tag and the <code>&lt;embed&gt;</code> tag.</p>
<pre class="brush: xml; title: ; notranslate">&lt;object width=&quot;448&quot; height=&quot;361&quot;&gt;
	&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/9hIQjrMHTv4&amp;amp;hl=en&amp;amp;fs=1&quot;&gt;&lt;/param&gt;
	&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;
	&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;
	&lt;embed src=&quot;http://i32.photobucket.com/player.swf?file=http://vid12.photobucket.com/albums/abc/UserName/Video/fileName.flv&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;448&quot; height=&quot;361&quot;&gt;&lt;/embed&gt;
&lt;/object&gt;</pre>
<p>&#8230;and that&#8217;s it. It&#8217;s not at all difficult, but if you&#8217;re someone (else) that doesn&#8217;t need or want to know the difference between an <code>&lt;object&gt;</code> tag and an <code>&lt;embed&gt;</code> tag and why you need both to properly display inline video, a couple of simple steps to make your online life easier can make all the difference.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mattshelton.net/2009/01/16/inserting-video-content-into-a-livejournal-comment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

