1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

177 lines
2.3 KiB

/*jslint laxbreak:true */
/*jslint laxcomma:true */
/*jslint loopfunc:true */
/*jslint strict:true */
/*jslint browser:true */
/*jslint devel:true */
define([
"underscore"
, "jquery"
, "backbone"
, "text!../../templates/player/layout.html"
, "text!../../templates/player/player-status.html"
]
, function (
_
, $
, Backbone
, tmplPlayerLayout
, tmplPlayerStatus
) {
"use strict";
var Player = Backbone.View.extend({
elViewport: null
, $elViewport: null
, playIndex: []
, webAudio: null
, _stateRandom: null
, _stateRepeat: null
, _stateMute: null
, _stateVolume: null
, _stateAudio: null
, initialize: function (options) {
var that = this
;
Player.__super__.initialize.apply(that);
that.$el.html(tmplPlayerLayout);
that.elViewport = document.createElement("div");
that.$elViewport = $(that.elViewport);
that.$elViewport.html(_.template(tmplPlayerStatus)({}));
that.$el.append(that.elViewport);
return that;
}
, setPlayIndex: function (index) {
var that = this
;
}
, setRandomState: function (random) {
var that = this
;
}
, setRepeatState: function (random) {
var that = this
;
}
, __buttonPlayPause: function (event) {
var that = this
;
}
, __buttonNext: function (event) {
var that = this
;
}
, __buttonPrevious: function (event) {
var that = this
;
}
, __buttonVolumeUp: function (event) {
var that = this
;
}
, __buttonVolumeDown: function (event) {
var that = this
;
}
, __buttonVolumeClick: function (event) {
var that = this
;
}
, _createWebAudio: function () {
var that = this
;
}
, __waStateChanged: function () {
var that = this
;
}
, _playerEnded: function () {
var that = this
;
}
, _playerLoading: function () {
var that = this
;
}
, _playNext: function () {
}
, _playPrevious: function () {
}
, _playerPause: function () {
}
, _playerStop: function () {
}
, _playerStart: function () {
}
, _setVolume: function (volume) {
}
, _setViewport: function (item) {
var that = this
;
}
, _updateViewportProgress: function (progress, time) {
var that = this
;
}
});
return Player;
});