Difference between revisions of "Sandbox"

From Sugar Labs
Jump to navigation Jump to search
Line 24: Line 24:
 
== Video support in Mediawiki ==
 
== Video support in Mediawiki ==
  
These examples use the [http://www.mediawikiwidgets.org/Html5media Html5media widget]:
 
  
=== Webm ===
+
=== TimedMediaHandler ===
  
{{#widget:Html5media
+
These examples employ the [http://www.mediawiki.org/wiki/Extension:TimedMediaHandler TimedMediaHandler] extension:
|url=http://codewiz.org/pub/pictures/vacation/iguazu_itaipu_2010/itaipu/MVI_1052.webm
 
|width=640
 
|height=480
 
}}
 
  
=== AVI mpeg4 x264 ===
+
==== Matroska + WebM ====
  
{{#widget:Html5media
 
|url=http://codewiz.org/pub/pictures/vacation/japan_2009/Shinkansen/00011-x264.avi
 
|width=640
 
|height=480
 
}}
 
  
=== OGG Theora + Vorbis ===
+
Works in Chromium 18 and Firefox 9:
  
{{#widget:Html5media
+
[[File:Itaipu.webm]]
|url=http://codewiz.org/pub/pictures/vacation/japan_2009/Shinkansen/00010.ogg
 
|width=640
 
|height=480
 
}}
 
  
=== AVI mjpeg ===
 
  
{{#widget:Html5media
+
==== OGG Theora + Vorbis ====
|url=http://codewiz.org/pub/pictures/vacation/japan_2009/Shinkansen/00008-mjpeg.avi
 
|width=640
 
|height=480
 
}}
 
  
Link to the raw videos:
+
Works in Chromium 18 and Firefox 9:
 +
 
 +
[[File:Shinkansen.ogv]]
 +
 
 +
 
 +
==== MPEG-4 x264 ====
 +
 
 +
This doesn't work:
 +
 
 +
[[File:Rio_de_Janeiro.mp4]]
 +
 
 +
 
 +
[[Sandbox/OldVideoPlugins]]
 +
 
 +
 
 +
=== Links to the raw videos ===
  
 
* http://codewiz.org/pub/pictures/vacation/iguazu_itaipu_2010/itaipu/MVI_1052.webm
 
* http://codewiz.org/pub/pictures/vacation/iguazu_itaipu_2010/itaipu/MVI_1052.webm

Revision as of 18:45, 15 April 2012

This is a title

I can write whatever I like...

  • Fish
  • Meat
  • Veggies
  • Icecream
  • Foobar

Test interwiki links

The API call http://wiki.sugarlabs.org/api.php?action=query&meta=siteinfo&siprop=interwikimap dumps the set of interwiki links. Special:Interwiki provides a tool to edit them. Let's try some links.

Test Interwiki image links

Here's a screenshot from w.l.o, olpc:File:Activity_browse.jpg, with the extra params that usually cause image display.

right|400px|thumb|Browse activity

doesn't seem to work?!

The [[File:imagefile|options]] code works with the local wiki image folder. One can embed sized external images from the absolute URI, such as OLPC_wiki_logo.png or 120px-Ul_warning.png

The URI for an image can be discovered by inspecting the HTML element of an example image in the source wiki with a browser source inspector, such as, right click, Inspect Element in Firefox.

Video support in Mediawiki

TimedMediaHandler

These examples employ the TimedMediaHandler extension:

Matroska + WebM

Works in Chromium 18 and Firefox 9:


OGG Theora + Vorbis

Works in Chromium 18 and Firefox 9:


MPEG-4 x264

This doesn't work:

File:Rio de Janeiro.mp4


Sandbox/OldVideoPlugins


Links to the raw videos