src/widgets/Title.js
author durandn
Tue, 01 Sep 2015 15:10:17 +0200
changeset 1044 d8339b45edc4
parent 1013 392ddcd212d7
child 1072 ac1eacb3aa33
permissions -rw-r--r--
Added support for defining a "time range" for a Playable to set the time boundaries of what can be played by the diffenrent players (Popcorn and HtmlPlayer for now). Added option in Segment widget to define a timerange on click.

IriSP.Widgets.Title = function(player, config) {
    IriSP.Widgets.Widget.call(this, player, config);
};

IriSP.Widgets.Title.prototype = new IriSP.Widgets.Widget();

IriSP.Widgets.Title.prototype.defaults = {
    media_title: false
};

IriSP.Widgets.Title.prototype.template =
    '<div class="Ldt-TitleWidget"><h2>{{#media_title}}{{media.title}}{{/media_title}}{{^media_title}}{{source.title}}{{/media_title}}</h2></div>';


IriSP.Widgets.Title.prototype.draw = function() {
    this.renderTemplate();
};