<?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>mysrc.de &#187; Flash-Movie</title>
	<atom:link href="http://www.mysrc.de/tag/flash-movie/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysrc.de</link>
	<description>- jQuery, Mootools u.a. JS-Frameworks</description>
	<lastBuildDate>Sun, 01 Aug 2010 02:49:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>jQuery Media Plugin zum Einbinden verschiedener Mime-Types</title>
		<link>http://www.mysrc.de/jquery/jquery-media-plugin-zum-einbinden-verschiedener-mime-types/</link>
		<comments>http://www.mysrc.de/jquery/jquery-media-plugin-zum-einbinden-verschiedener-mime-types/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 14:31:45 +0000</pubDate>
		<dc:creator>Stefan Huissel</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Flash-Movie]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[sIFR]]></category>

		<guid isPermaLink="false">http://www.mysrc.de/?p=326</guid>
		<description><![CDATA[Neulich bin ich auf ein jQuery Plugin gestoßen um verschiedene Player oder Media Files ganz einfach mit jQuery einzubinden. Eine kleine Auflistung der Player: Quicktime Flash Windows Media Player Real Player Silverlight iFrame Es lassen sich damit auch direkt Dateien aufrufen, die dann mittels einem der genannten Player abgespielt werden. Vorrausgesetzt natürlich, dass das jeweilige [...]]]></description>
			<content:encoded><![CDATA[<p>Neulich bin ich auf ein jQuery Plugin gestoßen um verschiedene Player oder Media Files ganz einfach mit jQuery einzubinden. Eine kleine Auflistung der Player:</p>
<ul>
<li>Quicktime</li>
<li>Flash</li>
<li>Windows Media Player</li>
<li>Real Player</li>
<li>Silverlight</li>
<li>iFrame</li>
</ul>
<p>Es lassen sich damit auch direkt Dateien aufrufen, die dann mittels einem der genannten Player abgespielt werden. Vorrausgesetzt natürlich, dass das jeweilige Plugin des Players bereits im Browser installiert ist. Das Media Plugin besitzt ansich eine recht einfache Funktionsweise. Es ersetzt einfache a-Tags auf eine Media-File durch den für den Browser notwendigen Einbettungscode, der weitaus länger und komplexer ist.</p>
<p>Ein kleines Beispiel wie man mittels diesem Plugin eine PDF direkt auf der Website anzeigen kann:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p326code3'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p3263"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p326code3"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">//Aufruf des Media Plugins mit zwei Optionen(normalerweise innerhalb des DOM-Ready Events)</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'a.media'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">media</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>width<span style="color: #339933;">:</span><span style="color: #CC0000;">500</span><span style="color: #339933;">,</span> height<span style="color: #339933;">:</span><span style="color: #CC0000;">400</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Der HTML-Code müsste dann folgendermaßen aussehen:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p326code4'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p3264"><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code" id="p326code4"><pre class="html" style="font-family:monospace;">&lt;script type=&quot;text/javascript&quot; src=&quot;jquery.media.js&quot;&gt;&lt;/script&gt; 
&nbsp;
&lt;!-- metadata ist ebenfalls ein plugin das in diesem Beispiel zur Anzeige der Größe gebraucht wird --&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;jquery.metadata.js&quot;&gt;&lt;/script&gt; 
&nbsp;
&lt;a class=&quot;media&quot; href=&quot;guice.pdf&quot;&gt;PDF File&lt;/a&gt;</pre></td></tr></table></div>

<p>That&#8217;s it. Zu finden ist das Ganze <a href="http://www.malsup.com/jquery/media/#overview">hier..</a></p>
<h3  class="related_post_title">Ähnliche Artikel</h3><ul class="related_post"><li>23. März 2010 -- <a href="http://www.mysrc.de/jquery/praxistipp-%e2%80%93-jqtransform-bug-bei-input-in-firefox-3-5-2/" title="Praxistipp – jqTransform Bug bei input in Firefox > 3.5.2">Praxistipp – jqTransform Bug bei input in Firefox > 3.5.2</a></li><li>20. Oktober 2009 -- <a href="http://www.mysrc.de/jquery/praxistipp-jqtransform-button-width-einstellen/" title="Praxistipp: jqTransform Button width einstellen">Praxistipp: jqTransform Button width einstellen</a></li><li>16. Oktober 2009 -- <a href="http://www.mysrc.de/jquery/praxistipp-jqtransform-width-bug/" title="Praxistipp &#8211; jqTransform width bug">Praxistipp &#8211; jqTransform width bug</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.mysrc.de/jquery/jquery-media-plugin-zum-einbinden-verschiedener-mime-types/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
