|
|
@ -10,6 +10,7 @@ define([
|
|
|
|
, "backbone"
|
|
|
|
, "backbone"
|
|
|
|
|
|
|
|
|
|
|
|
, "text!../../templates/player/layout.html"
|
|
|
|
, "text!../../templates/player/layout.html"
|
|
|
|
|
|
|
|
, "text!../../templates/player/player-status.html"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
, function (
|
|
|
|
, function (
|
|
|
|
_
|
|
|
|
_
|
|
|
@ -17,6 +18,7 @@ _
|
|
|
|
, Backbone
|
|
|
|
, Backbone
|
|
|
|
|
|
|
|
|
|
|
|
, tmplPlayerLayout
|
|
|
|
, tmplPlayerLayout
|
|
|
|
|
|
|
|
, tmplPlayerStatus
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
"use strict";
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
|
@ -35,6 +37,8 @@ _
|
|
|
|
|
|
|
|
|
|
|
|
that.$el.html(tmplPlayerLayout);
|
|
|
|
that.$el.html(tmplPlayerLayout);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
that.$el.find("div:last").html(_.template(tmplPlayerStatus)({}));
|
|
|
|
|
|
|
|
|
|
|
|
return that;
|
|
|
|
return that;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -44,6 +48,30 @@ _
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
, __buttonPlayPause: function (event) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
, __buttonNext: function (event) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
, __buttonPrevious: function (event) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
, __buttonVolumeUp: function (event) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
, __buttonVolumeDown: function (event) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
, __buttonVolumeClick: function (event) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
, _createWebAudio: function () {
|
|
|
|
, _createWebAudio: function () {
|
|
|
|
var that = this
|
|
|
|
var that = this
|
|
|
|
;
|
|
|
|
;
|
|
|
|