Widget: Plyr-1: verschil tussen versies
Uit MediaWikiGids
Regel 1: | Regel 1: | ||
<noinclude>Ontwikkeling voor HTML5 media speler op basis van '''plyr.js''' | <noinclude>Ontwikkeling voor HTML5 media speler op basis van '''plyr.js''' | ||
<pre>{{#widget:plyr-1 | <pre>{{#widget:plyr-1 | ||
− | |src_mp3= url to mp3-file | + | |src_mp3 = url to mp3-file |
+ | |src_ogg = url to ogg-file (optional) | ||
}} | }} | ||
</pre> | </pre> | ||
Regel 11: | Regel 12: | ||
<audio id="player" controls> | <audio id="player" controls> | ||
<source src="<!--{$src_mp3|validate:url}-->" type="audio/mp3" /> | <source src="<!--{$src_mp3|validate:url}-->" type="audio/mp3" /> | ||
+ | <!--{if isset($src_ogg)}--><source src="<!--{$src_ogg|validate:url}-->" type="audio/ogg" /><!--{else}--><!--{/if}--> | ||
</audio></includeonly> | </audio></includeonly> |
Versie van 4 apr 2020 om 16:20
Ontwikkeling voor HTML5 media speler op basis van plyr.js
{{#widget:plyr-1 |src_mp3 = url to mp3-file |src_ogg = url to ogg-file (optional) }}