|
|
|
@ -21,7 +21,11 @@ _
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
var Player = Backbone.View.extend({
|
|
|
|
|
el: $("body > div.ui-layout-north")
|
|
|
|
|
el: $("body > div.ui-layout-north")
|
|
|
|
|
|
|
|
|
|
, playIndex: []
|
|
|
|
|
|
|
|
|
|
, webAudio: null
|
|
|
|
|
|
|
|
|
|
, initialize: function (options) {
|
|
|
|
|
var that = this
|
|
|
|
@ -33,6 +37,36 @@ _
|
|
|
|
|
|
|
|
|
|
return that;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
, setPlayIndex: function (index) {
|
|
|
|
|
var that = this
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
, _createWebAudio: function () {
|
|
|
|
|
var that = this
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
, __waStateChanged: function () {
|
|
|
|
|
var that = this
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
, _playerEnded: function () {
|
|
|
|
|
var that = this
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
, _playerLoading: function () {
|
|
|
|
|
var that = this
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
return Player;
|
|
|
|
|