Template talk:Temporal Media Fragment

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

could use some help with documentation Mdale (talk) 18:30, 14 January 2011 (UTC)[reply]

Examples[edit]

I was about to add these examples to w:en:Wikipedia:Extended image syntax#Video files (Ogg), but seeing as that Wikipedia does not yet have the template, I'll dump my first attempt here.

For background, see Bugzilla:26663 (Request for selecting a portion of media for playback) and Commons:Village_pump#Temporal Media Fragment support ( selecting portions of a video stream when embedding). For Temporal Urls you must first Enable mwEmbed for the page embedding the media.

Here are two examples that should play videos starting and ending at specific times.

Starts at 21 seconds and stops at 23 seconds: Man in suit, tie and hat
Starts at 23 seconds and stops at 25 seconds: Monoplane

The wikicode needed to display the above two video embeddings is:

{| class="wikitable"
| {{Temporal_Media_Fragment
| file = First flights in aviation history.ogg
| width = 
| float = 
| start time = 21
| end time = 23
| caption = Starts at 21 seconds and stops at 23 seconds: Man in suit, tie and hat}}
|-
| {{Temporal_Media_Fragment
| file = First flights in aviation history.ogg
| width = 
| float = 
| start time = 23
| end time = 25
| caption = Starts at 23 seconds and stops at 25 seconds: Monoplane}}
|}

-84user (talk) 21:40, 16 January 2011 (UTC)[reply]

Ok, I just tested my addition above using Monobook skin on Firefox 3.6.13 on Windows Vista - I had to first save page because Wikimedia somehow prevents me from playing the videos while in preview (it also does not display the interwiki links anymore, so this may be a general problem).

I use this custom CSS and custom Javascript to avoid some of the annoyances in Commons.

The start and stop times work; the video thumbnails chosen are correct; I had to click the "Enable mwEmbed" link for each separate page that uses this feature - I suppose this will be unnecessary after the timed media handler extension is deployed?

That is correct, the mwEmbed is part of the Timed Media Handler. Right now its a gadget, some wikis turn on gadgets by default, but the ultimate goal is Timed Media Handler deployed everywhere. Mdale (talk) 17:00, 18 January 2011 (UTC)[reply]

The mwEmbed controls are uneven, in a similar way to YouTube's embedding: volume control setting is ignored after clicking the play icon, for example, I set volume to low, click play, and volume gets pushed to maximum so that I have to rush to lower the volume again; the embedded video plays a fraction of the very start of the video (at maximum volume) and then skips to the correct time. I may now experiment with some of the Betty Boop videos. -84user (talk) 22:01, 16 January 2011 (UTC)[reply]

I will try to fix the volume control issue. The fraction of the start of video is a bug in firefox buffer system of 3.5x It should not play that fragment in firefox 4. Mdale (talk) 17:00, 18 January 2011 (UTC)[reply]

Extended image syntax[edit]

Wikipedia:Extended image syntax gives the following parameters for file embedding:

[[File:Name|Type|Border|Location|Alignment|Size|link=Link|alt=Alt|Caption]]

There is also noicon for sound files and thumbtime=Time for videos.

This template does not yet support the alt parameter, should it? What about the others? -84user (talk) 22:24, 16 January 2011 (UTC)[reply]

Sure, feel free to add that to the template. Mdale (talk) 16:54, 18 January 2011 (UTC)[reply]