« Widget:Html5media » : différence entre les versions

De Remix Biens Communs
Aller à :navigation, rechercher
(Page créée avec « {{Widget |description=Allows you to add a HTML5 Media player. |author=Taipan |provider=etianen |providerurl=https://github.com/etianen/html5media |status=active |security=... »)
 
Aucun résumé des modifications
 
(6 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
{{Widget
<noinclude>__NOTOC__
|description=Allows you to add a HTML5 Media player.
This widget allows you to embed '''[https://github.com/etianen/html5media HTML5 Video Media]''' on your wiki page.
|author=Taipan
|provider=etianen
|providerurl=https://github.com/etianen/html5media
|status=active
|security=unknown
|addedon=4/30/2010
}}
This widget allows you to add [https://github.com/etianen/html5media HTML5 Media] to your wiki page.


To insert this widget, use the following code:
Created by [https://www.mediawikiwidgets.org/User:Taipan taipan]


<nowiki>{{#widget:</nowiki>{{PAGENAME}}<nowiki>
== Using this widget ==
|url=http://pornel.net/Performance.ogg
For information on how to use this widget, see [https://www.mediawikiwidgets.org/Html5media widget description page on MediaWikiWidgets.org].
|width=640
|height=360
}}</nowiki>


== Parameters ==
== Copy to your site ==
* '''url''' - URL of the video
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}}'''.
* '''width''', '''height''' - dimensions (optional, 425x355 default)
</noinclude><includeonly><script src="//api.html5media.info/1.2.2/html5media.min.js"></script><video src="<!--{$url|validate:url}-->" width="<!--{$width|default:425|validate:int|escape:'html'}-->" height="<!--{$height|default:355|validate:int|escape:'html'}-->"
 
controls preload></video></includeonly>
== HTML4media script ==
For information on the html5media script used by this widget, see [http://etianen.github.com/html5media/ The html5media project page]
 
== Sample result ==
{{#widget:Html5media
|url=http://pornel.net/Performance.ogg
|width=640
|height=360
}}
 
[[Category:Video Widget]]
{{Comments}}

Dernière version du 24 février 2017 à 16:40

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:Html5media.