summaryrefslogtreecommitdiff
path: root/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/mw.EmbedPlayerGeneric.js
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/mw.EmbedPlayerGeneric.js')
-rw-r--r--extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/mw.EmbedPlayerGeneric.js36
1 files changed, 36 insertions, 0 deletions
diff --git a/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/mw.EmbedPlayerGeneric.js b/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/mw.EmbedPlayerGeneric.js
new file mode 100644
index 00000000..fc8dec55
--- /dev/null
+++ b/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/mw.EmbedPlayerGeneric.js
@@ -0,0 +1,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 );