Difference between revisions of "Widget:PlayWrap"
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 type="text/javascript" src="https://www.link-elearning.com/linkdl/preview/views/default/script/jquery.min.js"></script> | ||
+ | <script type="text/javascript" src="https://www.link-elearning.com:443/linkdl/script/mediaelement/mediaelement-and-player.min.js"></script> | ||
+ | <script type="text/javascript" src="https://www.link-elearning.com:443/linkdl/script/mediaelement/plugins/mep-feature-playlist.js"></script> | ||
+ | <!-- <script type="text/javascript" src="http://clubscrap.com/wp-content/plugins/rtmedia-pro/lib/playlist/mep-feature-playlist.js"></script> --> | ||
+ | <link rel="stylesheet" href="https://www.link-elearning.com:443/linkdl/script/mediaelement/linkskin/mediaelementplayer.min.css" type="text/css" media="all"> | ||
+ | <link rel="stylesheet" href="https://www.link-elearning.com:443/linkdl/script/mediaelement/plugins/mep-feature-playlist.css" type="text/css" media="all"> | ||
− | <div id="<!--{$id|escape:'html'|default:' | + | |
+ | <div id="<!--{$id|escape:'html'|default:'wrapper'}-->" width="<!--{$width|escape:'html'|default:'300px'}-->" style="width:<!--{$width|escape:'html'|default:'300px'}-->; height:<!--{$height|escape:'html'|default:'500px'}-->;"> | ||
<script> | <script> | ||
$(function(){ | $(function(){ | ||
Line 23: | Line 30: | ||
}); | }); | ||
}); | }); | ||
+ | </script> | ||
+ | <script> | ||
+ | var mediaElements = document.querySelectorAll('video, audio'); | ||
+ | for (var i = 0, total = mediaElements.length; i < total; i++) { | ||
+ | new MediaElementPlayer(mediaElements[i], { | ||
+ | features: ['prevtrack', 'playpause', 'nexttrack', 'current', 'progress', 'duration', 'volume', 'playlist', 'shuffle', 'loop', 'fullscreen'], | ||
+ | }); | ||
+ | } | ||
</script> | </script> | ||
<audio id="mejs" src="<!--{$url1|validate:url}-->" type="audio/mp3" controls="controls"></audio> | <audio id="mejs" src="<!--{$url1|validate:url}-->" type="audio/mp3" controls="controls"></audio> | ||
Line 41: | Line 56: | ||
</ul> | </ul> | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</div> | </div> | ||
</includeonly> | </includeonly> |
Revision as of 00:31, 5 July 2019
This widget allows you to embed HTML5 Video Media on your wiki page.
Created by taipan
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:PlayWrap.