Difference between revisions of "Widget:PlayWrap"
Line 18: | Line 18: | ||
− | <div id="<!--{$id|escape:'html'|default:'wrapper'}-->" width="<!--{$width|escape:'html'|default:' | + | <div id="<!--{$id|escape:'html'|default:'wrapper'}-->" width="<!--{$width|escape:'html'|default:'450px'}-->" style="width:<!--{$width|escape:'html'|default:'450px'}-->; height:<!--{$height|escape:'html'|default:'500px'}-->;"> |
<script> | <script> | ||
var mediaElements = document.querySelectorAll('video, audio'); | var mediaElements = document.querySelectorAll('video, audio'); |
Latest revision as of 02:23, 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.
<script>
$(function(){
$('audio,video').mediaelementplayer({ loop: true, shuffle: false, playlist: true, audioHeight: 30, playlistposition: 'bottom', features: ['playlistfeature', 'prevtrack', 'playpause', 'nexttrack', 'playlist', 'current', 'progress', 'duration', 'volume'], });
}); </script>