Difference between revisions of "Widget:AudioPlayer"
(Created page with "<noinclude>__NOTOC__ This widget allows you to embed '''[https://github.com/etianen/html5media HTML5 Audio Media]''' on your wiki page. Created by [https://www.wikihoster.net...") |
|||
Line 9: | Line 9: | ||
== Copy to your site == | == Copy to your site == | ||
To use this widget on your site, just install [https://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy the [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as page '''{{FULLPAGENAME}}'''. | To use this widget on your site, just install [https://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy the [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as page '''{{FULLPAGENAME}}'''. | ||
− | </noinclude><includeonly><script src=" | + | </noinclude><includeonly> |
− | <script> | + | <script type="text/javascript" src="//cdn.jsdelivr.net/jwplayer/5.10/jwplayer.js"></script> |
− | + | <div id="player_1"></div> | |
− | + | <script type="text/javascript">// <![CDATA[ | |
+ | jwplayer('player_1').setup({ | ||
+ | file: "<!--{$url|validate:url}-->", | ||
+ | width: "100%", | ||
+ | height: "100%", | ||
+ | stretching: "fill", | ||
+ | flashplayer:"//cdn.jsdelivr.net/jwplayer/5.10/player.swf" | ||
}); | }); | ||
− | + | // ]]></script></audio></includeonly> | |
− |
Latest revision as of 14:32, 30 June 2019
This widget allows you to embed HTML5 Audio Media on your wiki page.
Created by Karsten Hoffmeyer.
Using this widget
For information on how to use this widget, see widget description page on MediaWikiWidgets.org.
Copy to your site
To use this widget on your site, just install MediaWiki Widgets extension and copy the full source code of this page to your wiki as page Widget:AudioPlayer.