blob: fc8dec5563b3219d84b36f4d812c0f401c0458a7 (
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
|
/*
* Simple embed object for unknown application/ogg plugin
*/
( function( mw, $ ) { "use strict";
mw.EmbedPlayerGeneric = {
// List of supported features of the generic plugin
supports: {
'playHead':false,
'pause':false,
'stop':true,
'fullscreen':false,
'timeDisplay':false,
'volumeControl':false
},
// Instance name:
instanceOf:'Generic',
/*
* Generic embed html
*
* @return {String}
* embed code for generic ogg plugin
*/
embedPlayerHTML: function() {
$( this ).html(
'<object type="application/ogg" ' +
'width="' + this.getWidth() + '" height="' + this.getHeight() + '" ' +
'data="' + this.getSrc( this.seekTimeSec ) + '"></object>'
);
}
};
} )( mediaWiki, jQuery );
|