<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"	>
<channel>
	<title>Comments on: Easy pseudo-video streaming for DSpace repositories</title>
	<atom:link href="http://blog.stuartlewis.com/2009/05/27/easy-pseudo-video-streaming-for-dspace-repositories/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.stuartlewis.com/2009/05/27/easy-pseudo-video-streaming-for-dspace-repositories/</link>
	<description></description>
	<lastBuildDate>Fri, 05 Mar 2010 02:02:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Peter Dietz</title>
		<link>http://blog.stuartlewis.com/2009/05/27/easy-pseudo-video-streaming-for-dspace-repositories/comment-page-1/#comment-3357</link>
		<dc:creator>Peter Dietz</dc:creator>
		<pubDate>Mon, 22 Feb 2010 18:27:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stuartlewis.com/?p=317#comment-3357</guid>
		<description>Hey Stuart,

I&#039;ve added a way to preview documents. 
http://peterpants.blogspot.com/2010/02/document-preview-in-dspace-using-google.html

Generally, using a document viewer program, in my example Google Doc&#039;s Viewer really makes viewing documents easier, and since I like bells and whistles, a bit more fun.</description>
		<content:encoded><![CDATA[<p>Hey Stuart,</p>
<p>I&#8217;ve added a way to preview documents.<br />
<a href="http://peterpants.blogspot.com/2010/02/document-preview-in-dspace-using-google.html" rel="nofollow">http://peterpants.blogspot.com/2010/02/document-preview-in-dspace-using-google.html</a></p>
<p>Generally, using a document viewer program, in my example Google Doc&#8217;s Viewer really makes viewing documents easier, and since I like bells and whistles, a bit more fun.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nishad T R</title>
		<link>http://blog.stuartlewis.com/2009/05/27/easy-pseudo-video-streaming-for-dspace-repositories/comment-page-1/#comment-3281</link>
		<dc:creator>Nishad T R</dc:creator>
		<pubDate>Tue, 01 Dec 2009 19:28:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stuartlewis.com/?p=317#comment-3281</guid>
		<description>Dear Stuart,

Thanks for the idea, I just updated it for mp3, mp4 (require latest flash player = 0)
			{
				Bitstream[] bitstreams = bundles[0].getBitstreams();
				boolean found = false;
				for (Bitstream bitstream : bitstreams)
				{
					if (!found)
					{
						if (&quot;video/x-flv&quot;.equals(bitstream.getFormat().getMIMEType()))
						{
							// We found one, don&#039;t search for any more
							found = true;

							// Display the player
							HttpServletRequest request = (HttpServletRequest)pageContext.getRequest();
							String url = request.getContextPath() +
										&quot;/bitstream/&quot; + item.getHandle() + &quot;/&quot; +
										bitstream.getSequenceID() + &quot;/&quot; +
										UIUtil.encodeBitstreamName(bitstream.getName(), Constants.DEFAULT_ENCODING);
							JspWriter out = pageContext.getOut();
							out.println(&quot;\n&quot; +
										&quot;Video&quot; +
									&quot;\nvar so = new SWFObject(&#039;&quot; +
									request.getContextPath() + &quot;/player.swf&#039;,&#039;mpl&#039;,&#039;320&#039;,&#039;240&#039;,&#039;9&#039;);\n&quot; +
									&quot;so.addParam(&#039;allowscriptaccess&#039;,&#039;always&#039;);\n&quot; +
									&quot;so.addParam(&#039;allowfullscreen&#039;,&#039;true&#039;);\n&quot; +
									&quot;so.addParam(&#039;flashvars&#039;,&#039;&amp;file=&quot; + url + &quot;&amp;autostart=true&#039;);\n&quot; +
									&quot;so.write(&#039;player&#039;);\n&quot; +
									&quot;&quot;);
						}
						if (&quot;video/mp4&quot;.equals(bitstream.getFormat().getMIMEType()))
						{
							// We found one, don&#039;t search for any more
							found = true;

							// Display the player
							HttpServletRequest request = (HttpServletRequest)pageContext.getRequest();
							String url = request.getContextPath() +
										&quot;/bitstream/&quot; + item.getHandle() + &quot;/&quot; +
										bitstream.getSequenceID() + &quot;/&quot; +
										UIUtil.encodeBitstreamName(bitstream.getName(), Constants.DEFAULT_ENCODING);
							JspWriter out = pageContext.getOut();
							out.println(&quot;\n&quot; +
										&quot;Video&quot; +
									&quot;\nvar so = new SWFObject(&#039;&quot; +
									request.getContextPath() + &quot;/player.swf&#039;,&#039;mpl&#039;,&#039;320&#039;,&#039;240&#039;,&#039;9&#039;);\n&quot; +
									&quot;so.addParam(&#039;allowscriptaccess&#039;,&#039;always&#039;);\n&quot; +
									&quot;so.addParam(&#039;allowfullscreen&#039;,&#039;true&#039;);\n&quot; +
									&quot;so.addParam(&#039;flashvars&#039;,&#039;&amp;file=&quot; + url + &quot;&amp;autostart=true&#039;);\n&quot; +
									&quot;so.write(&#039;player&#039;);\n&quot; +
									&quot;&quot;);
						}
						if (&quot;video/ogg&quot;.equals(bitstream.getFormat().getMIMEType()))
						{
							// We found one, don&#039;t search for any more
							found = true;

							// Display the player
							HttpServletRequest request = (HttpServletRequest)pageContext.getRequest();
							String url = request.getContextPath() +
										&quot;/bitstream/&quot; + item.getHandle() + &quot;/&quot; +
										bitstream.getSequenceID() + &quot;/&quot; +
										UIUtil.encodeBitstreamName(bitstream.getName(), Constants.DEFAULT_ENCODING);
							JspWriter out = pageContext.getOut();
							out.println(&quot;\n&quot; +
									&quot;Your browser does not support the &lt;code&gt;video&lt;/code&gt; element.Please download &lt;a href=&quot;http://www.mozilla.com/firefox/&quot; rel=&quot;nofollow&quot;&gt;Mozilla Firefox latest version&lt;/a&gt;.\n&quot; +
									&quot;&quot;);
						}
						if (&quot;audio/mpeg&quot;.equals(bitstream.getFormat().getMIMEType()))
						{
							// We found one, don&#039;t search for any more
							found = true;

							// Display the player
							HttpServletRequest request = (HttpServletRequest)pageContext.getRequest();
							String url = request.getContextPath() +
										&quot;/bitstream/&quot; + item.getHandle() + &quot;/&quot; +
										bitstream.getSequenceID() + &quot;/&quot; +
										UIUtil.encodeBitstreamName(bitstream.getName(), Constants.DEFAULT_ENCODING);
							JspWriter out = pageContext.getOut();
							out.println(&quot;\n&quot; +
										&quot;Video&quot; +
									&quot;\nvar so = new SWFObject(&#039;&quot; +
									request.getContextPath() + &quot;/player.swf&#039;,&#039;mpl&#039;,&#039;320&#039;,&#039;20&#039;,&#039;9&#039;);\n&quot; +
									&quot;so.addParam(&#039;allowscriptaccess&#039;,&#039;always&#039;);\n&quot; +
									&quot;so.addParam(&#039;allowfullscreen&#039;,&#039;true&#039;);\n&quot; +
									&quot;so.addParam(&#039;flashvars&#039;,&#039;&amp;file=&quot; + url + &quot;&amp;autostart=true&#039;);\n&quot; +
									&quot;so.write(&#039;player&#039;);\n&quot; +
									&quot;&quot;);
						}
					}
				}
			}
		}
		catch (SQLException sqle)
		{
		// Do nothing
		}
	}

		/*
		* Added for Embeded pseudo-video streaming
		*/
		// Add &quot;showMediaPlayer();&quot; straight after the opening brace ‘{’ of &quot;void render() throws IOException&quot;


----------------------------------------------------------------</description>
		<content:encoded><![CDATA[<p>Dear Stuart,</p>
<p>Thanks for the idea, I just updated it for mp3, mp4 (require latest flash player = 0)<br />
			{<br />
				Bitstream[] bitstreams = bundles[0].getBitstreams();<br />
				boolean found = false;<br />
				for (Bitstream bitstream : bitstreams)<br />
				{<br />
					if (!found)<br />
					{<br />
						if (&#8220;video/x-flv&#8221;.equals(bitstream.getFormat().getMIMEType()))<br />
						{<br />
							// We found one, don&#8217;t search for any more<br />
							found = true;</p>
<p>							// Display the player<br />
							HttpServletRequest request = (HttpServletRequest)pageContext.getRequest();<br />
							String url = request.getContextPath() +<br />
										&#8220;/bitstream/&#8221; + item.getHandle() + &#8220;/&#8221; +<br />
										bitstream.getSequenceID() + &#8220;/&#8221; +<br />
										UIUtil.encodeBitstreamName(bitstream.getName(), Constants.DEFAULT_ENCODING);<br />
							JspWriter out = pageContext.getOut();<br />
							out.println(&#8220;\n&#8221; +<br />
										&#8220;Video&#8221; +<br />
									&#8220;\nvar so = new SWFObject(&#8216;&#8221; +<br />
									request.getContextPath() + &#8220;/player.swf&#8217;,'mpl&#8217;,'320&#8242;,&#8217;240&#8242;,&#8217;9&#8242;);\n&#8221; +<br />
									&#8220;so.addParam(&#8216;allowscriptaccess&#8217;,'always&#8217;);\n&#8221; +<br />
									&#8220;so.addParam(&#8216;allowfullscreen&#8217;,'true&#8217;);\n&#8221; +<br />
									&#8220;so.addParam(&#8216;flashvars&#8217;,'&amp;file=&#8221; + url + &#8220;&amp;autostart=true&#8217;);\n&#8221; +<br />
									&#8220;so.write(&#8216;player&#8217;);\n&#8221; +<br />
									&#8220;&#8221;);<br />
						}<br />
						if (&#8220;video/mp4&#8243;.equals(bitstream.getFormat().getMIMEType()))<br />
						{<br />
							// We found one, don&#8217;t search for any more<br />
							found = true;</p>
<p>							// Display the player<br />
							HttpServletRequest request = (HttpServletRequest)pageContext.getRequest();<br />
							String url = request.getContextPath() +<br />
										&#8220;/bitstream/&#8221; + item.getHandle() + &#8220;/&#8221; +<br />
										bitstream.getSequenceID() + &#8220;/&#8221; +<br />
										UIUtil.encodeBitstreamName(bitstream.getName(), Constants.DEFAULT_ENCODING);<br />
							JspWriter out = pageContext.getOut();<br />
							out.println(&#8220;\n&#8221; +<br />
										&#8220;Video&#8221; +<br />
									&#8220;\nvar so = new SWFObject(&#8216;&#8221; +<br />
									request.getContextPath() + &#8220;/player.swf&#8217;,'mpl&#8217;,'320&#8242;,&#8217;240&#8242;,&#8217;9&#8242;);\n&#8221; +<br />
									&#8220;so.addParam(&#8216;allowscriptaccess&#8217;,'always&#8217;);\n&#8221; +<br />
									&#8220;so.addParam(&#8216;allowfullscreen&#8217;,'true&#8217;);\n&#8221; +<br />
									&#8220;so.addParam(&#8216;flashvars&#8217;,'&amp;file=&#8221; + url + &#8220;&amp;autostart=true&#8217;);\n&#8221; +<br />
									&#8220;so.write(&#8216;player&#8217;);\n&#8221; +<br />
									&#8220;&#8221;);<br />
						}<br />
						if (&#8220;video/ogg&#8221;.equals(bitstream.getFormat().getMIMEType()))<br />
						{<br />
							// We found one, don&#8217;t search for any more<br />
							found = true;</p>
<p>							// Display the player<br />
							HttpServletRequest request = (HttpServletRequest)pageContext.getRequest();<br />
							String url = request.getContextPath() +<br />
										&#8220;/bitstream/&#8221; + item.getHandle() + &#8220;/&#8221; +<br />
										bitstream.getSequenceID() + &#8220;/&#8221; +<br />
										UIUtil.encodeBitstreamName(bitstream.getName(), Constants.DEFAULT_ENCODING);<br />
							JspWriter out = pageContext.getOut();<br />
							out.println(&#8220;\n&#8221; +<br />
									&#8220;Your browser does not support the <code>video</code> element.Please download <a href="http://www.mozilla.com/firefox/" rel="nofollow">Mozilla Firefox latest version</a>.\n&#8221; +<br />
									&#8220;&#8221;);<br />
						}<br />
						if (&#8220;audio/mpeg&#8221;.equals(bitstream.getFormat().getMIMEType()))<br />
						{<br />
							// We found one, don&#8217;t search for any more<br />
							found = true;</p>
<p>							// Display the player<br />
							HttpServletRequest request = (HttpServletRequest)pageContext.getRequest();<br />
							String url = request.getContextPath() +<br />
										&#8220;/bitstream/&#8221; + item.getHandle() + &#8220;/&#8221; +<br />
										bitstream.getSequenceID() + &#8220;/&#8221; +<br />
										UIUtil.encodeBitstreamName(bitstream.getName(), Constants.DEFAULT_ENCODING);<br />
							JspWriter out = pageContext.getOut();<br />
							out.println(&#8220;\n&#8221; +<br />
										&#8220;Video&#8221; +<br />
									&#8220;\nvar so = new SWFObject(&#8216;&#8221; +<br />
									request.getContextPath() + &#8220;/player.swf&#8217;,'mpl&#8217;,'320&#8242;,&#8217;20&#8242;,&#8217;9&#8242;);\n&#8221; +<br />
									&#8220;so.addParam(&#8216;allowscriptaccess&#8217;,'always&#8217;);\n&#8221; +<br />
									&#8220;so.addParam(&#8216;allowfullscreen&#8217;,'true&#8217;);\n&#8221; +<br />
									&#8220;so.addParam(&#8216;flashvars&#8217;,'&amp;file=&#8221; + url + &#8220;&amp;autostart=true&#8217;);\n&#8221; +<br />
									&#8220;so.write(&#8216;player&#8217;);\n&#8221; +<br />
									&#8220;&#8221;);<br />
						}<br />
					}<br />
				}<br />
			}<br />
		}<br />
		catch (SQLException sqle)<br />
		{<br />
		// Do nothing<br />
		}<br />
	}</p>
<p>		/*<br />
		* Added for Embeded pseudo-video streaming<br />
		*/<br />
		// Add &#8220;showMediaPlayer();&#8221; straight after the opening brace ‘{’ of &#8220;void render() throws IOException&#8221;</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart</title>
		<link>http://blog.stuartlewis.com/2009/05/27/easy-pseudo-video-streaming-for-dspace-repositories/comment-page-1/#comment-2930</link>
		<dc:creator>Stuart</dc:creator>
		<pubDate>Wed, 23 Sep 2009 18:52:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stuartlewis.com/?p=317#comment-2930</guid>
		<description>It quite likely is, but on the other hand there will be a whole lot of things that DSpace does much better than Greenstone. That&#039;s life I suppose. As they say, &quot;You pays your money and you takes your choice&quot;.</description>
		<content:encoded><![CDATA[<p>It quite likely is, but on the other hand there will be a whole lot of things that DSpace does much better than Greenstone. That&#8217;s life I suppose. As they say, &#8220;You pays your money and you takes your choice&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jmcollado</title>
		<link>http://blog.stuartlewis.com/2009/05/27/easy-pseudo-video-streaming-for-dspace-repositories/comment-page-1/#comment-2918</link>
		<dc:creator>jmcollado</dc:creator>
		<pubDate>Fri, 18 Sep 2009 09:24:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stuartlewis.com/?p=317#comment-2918</guid>
		<description>it´s easier with Greenstone http://greenstone.org

; )</description>
		<content:encoded><![CDATA[<p>it´s easier with Greenstone <a href="http://greenstone.org" rel="nofollow">http://greenstone.org</a></p>
<p>; )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart</title>
		<link>http://blog.stuartlewis.com/2009/05/27/easy-pseudo-video-streaming-for-dspace-repositories/comment-page-1/#comment-2884</link>
		<dc:creator>Stuart</dc:creator>
		<pubDate>Sun, 06 Sep 2009 07:50:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stuartlewis.com/?p=317#comment-2884</guid>
		<description>Hi Mars,

The structure builder might help you, alongside the importer. You could use the struct builder to make the structure, then the importer can be run multiple times - once for each hierarchical collection. See the manual (http://www.dspace.org/1_5_2Documentation/DSpace-Manual.pdf) section 9.3.

Stuart</description>
		<content:encoded><![CDATA[<p>Hi Mars,</p>
<p>The structure builder might help you, alongside the importer. You could use the struct builder to make the structure, then the importer can be run multiple times &#8211; once for each hierarchical collection. See the manual (<a href="http://www.dspace.org/1_5_2Documentation/DSpace-Manual.pdf" rel="nofollow">http://www.dspace.org/1_5_2Documentation/DSpace-Manual.pdf</a>) section 9.3.</p>
<p>Stuart</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mars</title>
		<link>http://blog.stuartlewis.com/2009/05/27/easy-pseudo-video-streaming-for-dspace-repositories/comment-page-1/#comment-2883</link>
		<dc:creator>mars</dc:creator>
		<pubDate>Sun, 06 Sep 2009 07:13:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stuartlewis.com/?p=317#comment-2883</guid>
		<description>Hi Stuart,

I have been scouring the web for a solution that will enable me to import multiple items in hierarchical file structure.

The hierarchical file structure needs to be maintained after the DSpace import process.

Do you know of any solutions that enables this?</description>
		<content:encoded><![CDATA[<p>Hi Stuart,</p>
<p>I have been scouring the web for a solution that will enable me to import multiple items in hierarchical file structure.</p>
<p>The hierarchical file structure needs to be maintained after the DSpace import process.</p>
<p>Do you know of any solutions that enables this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart</title>
		<link>http://blog.stuartlewis.com/2009/05/27/easy-pseudo-video-streaming-for-dspace-repositories/comment-page-1/#comment-2843</link>
		<dc:creator>Stuart</dc:creator>
		<pubDate>Thu, 20 Aug 2009 21:32:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stuartlewis.com/?p=317#comment-2843</guid>
		<description>Hi Hardik,

If you search for that error message in Google, there is a lot of helpful articles.

Thanks,


Stuart</description>
		<content:encoded><![CDATA[<p>Hi Hardik,</p>
<p>If you search for that error message in Google, there is a lot of helpful articles.</p>
<p>Thanks,</p>
<p>Stuart</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hardik</title>
		<link>http://blog.stuartlewis.com/2009/05/27/easy-pseudo-video-streaming-for-dspace-repositories/comment-page-1/#comment-2839</link>
		<dc:creator>Hardik</dc:creator>
		<pubDate>Thu, 20 Aug 2009 13:13:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stuartlewis.com/?p=317#comment-2839</guid>
		<description>Hi Sir,
I  have followed your steps.
It is displaying &quot;Video&quot; as output in FF 3.0 and
Error in IE as  &quot;swfobject is undefined&quot;.

I have checked 
 out.println(&quot;\n&quot;);
               
It shows /jspui/swfobject.js and at there file is located.</description>
		<content:encoded><![CDATA[<p>Hi Sir,<br />
I  have followed your steps.<br />
It is displaying &#8220;Video&#8221; as output in FF 3.0 and<br />
Error in IE as  &#8220;swfobject is undefined&#8221;.</p>
<p>I have checked<br />
 out.println(&#8220;\n&#8221;);</p>
<p>It shows /jspui/swfobject.js and at there file is located.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Montserrat</title>
		<link>http://blog.stuartlewis.com/2009/05/27/easy-pseudo-video-streaming-for-dspace-repositories/comment-page-1/#comment-2819</link>
		<dc:creator>Montserrat</dc:creator>
		<pubDate>Fri, 14 Aug 2009 08:31:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stuartlewis.com/?p=317#comment-2819</guid>
		<description>Gracias ya lo he conseguido
He guardado los archivos player.swf and swfobject.js en el directorio [dspace-source]/jsp/local.

He añadido el código en el directorio [dspace-source]/src/org/dspace/app/webui/jsptag/ItemTag.java tal como me ha indicado.

Gracias por su ayuda.

Saludos, Montse</description>
		<content:encoded><![CDATA[<p>Gracias ya lo he conseguido<br />
He guardado los archivos player.swf and swfobject.js en el directorio [dspace-source]/jsp/local.</p>
<p>He añadido el código en el directorio [dspace-source]/src/org/dspace/app/webui/jsptag/ItemTag.java tal como me ha indicado.</p>
<p>Gracias por su ayuda.</p>
<p>Saludos, Montse</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stuart</title>
		<link>http://blog.stuartlewis.com/2009/05/27/easy-pseudo-video-streaming-for-dspace-repositories/comment-page-1/#comment-2815</link>
		<dc:creator>stuart</dc:creator>
		<pubDate>Wed, 12 Aug 2009 21:13:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stuartlewis.com/?p=317#comment-2815</guid>
		<description>Buenos días, 

Los pasos deben ser muy similares, no obstante cambio la trayectoria donde usted instala el código para estar: 

Desabroche la transferencia directa, y la copia player.swf y swfobject.js en [dspace-src]/jsp/

Agregue el código siguiente a la parte inferior [dspace-src]/src/org/dspace/app/webui/jsptag/Itemtag.java (antes del &#039; final;}&#039;): 

Gracias, Stuart</description>
		<content:encoded><![CDATA[<p>Buenos días, </p>
<p>Los pasos deben ser muy similares, no obstante cambio la trayectoria donde usted instala el código para estar: </p>
<p>Desabroche la transferencia directa, y la copia player.swf y swfobject.js en [dspace-src]/jsp/</p>
<p>Agregue el código siguiente a la parte inferior [dspace-src]/src/org/dspace/app/webui/jsptag/Itemtag.java (antes del &#8216; final;}&#8217;): </p>
<p>Gracias, Stuart</p>
]]></content:encoded>
	</item>
</channel>
</rss>
