      1 /** The minplayer namespace. */
      2 var minplayer = minplayer || {};
      3
      4 /** All of the template implementations */
      5 minplayer.templates = minplayer.templates || {};
      6
      7 /**
      8  * @constructor
      9  * @extends minplayer.display
     10  * @class The base template class which all templates should derive.
     11  *
     12  * @param {object} context The jQuery context.
     13  * @param {object} options This components options.
     14  */
     15 minplayer.templates.base = function(context, options) {
     16
     17   // Derive from display
     18   minplayer.display.call(this, 'template', context, options);
     19 };
     20
     21 /** Derive from minplayer.display. */
     22 minplayer.templates.base.prototype = new minplayer.display();
     23
     24 /** Reset the constructor. */
     25 minplayer.templates.base.prototype.constructor = minplayer.templates.base;
     26
     27 /**
     28  * @see minplayer.plugin#construct
     29  */
     30 minplayer.templates.base.prototype.construct = function() {
     31
     32   // Call the minplayer display constructor.
     33   minplayer.display.prototype.construct.call(this);
     34
     35   // We are now ready.
     36   this.ready();
     37 };
     38
     39 /**
     40  * @see minplayer.display#getElements
     41  * @return {object} The display elemnents for this component.
     42  */
     43 minplayer.templates.base.prototype.getElements = function() {
     44   var elements = minplayer.display.prototype.getElements.call(this);
     45   return jQuery.extend(elements, {
     46     player: null,
     47     display: null,
     48     media: null
     49   });
     50 };
     51
     52 /**
     53  * Called when the media player goes into full screen mode.
     54  *
     55  * @param {boolean} full TRUE - The player is in fullscreen, FALSE otherwise.
     56  */
     57 minplayer.templates.base.prototype.onFullScreen = function(full) {
     58 };
     59