blob: 00694f8106daeac9420830f20207f50736b03660 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
/**
* Show a prompt to install WebM plugin for IE 9+
*/
( function( mw, $ ) { "use strict";
mw.EmbedPlayerIEWebMPrompt = {
// List of supported features (or lack thereof)
supports: {
'playHead':false, /* The seek slider */
'pause':true, /* Play pause button in control bar */
'stop':true, /* Does this actually do anything?? */
'fullscreen':false,
'timeDisplay':false,
'volumeControl':false
},
// Instance name:
instanceOf:'IEWebMPrompt',
/*
* Embed this "fake" player
*
* @return {String}
* embed code to link to WebM plugin download
*/
embedPlayerHTML: function() {
var pluginUrl = 'https://tools.google.com/dlpage/webmmf/',
$link;
// Overlay the video placeholder with download plugin link.
$link = $( '<a></a>' )
.attr( 'href', pluginUrl )
.attr( 'target', '_blank' )
.text( mw.msg( 'mwe-embedplayer-iewebmprompt-linktext' ) );
$( this ).append( $( '<div class="iewebm-prompt"></div>' )
.width( this.getWidth() )
.height( this.getHeight() )
.append( $( '<div></div>' ).text( mw.msg( 'mwe-embedplayer-iewebmprompt-intro' ) ) )
.append( $link )
.append( $( '<div></div>' ).text( mw.msg( 'mwe-embedplayer-iewebmprompt-outro' ) ) )
);
}
};
} )( mediaWiki, jQuery );
|