From a6d436e6320c87855ac89940bc3ac98182bc74ef Mon Sep 17 00:00:00 2001 From: Matthieu Lalonde Date: Fri, 9 Nov 2012 13:35:25 -0500 Subject: [PATCH] Player view skeletton --- resources/js/views/player.js | 103 +++++++++++++++++++++++++++++------ 1 file changed, 86 insertions(+), 17 deletions(-) diff --git a/resources/js/views/player.js b/resources/js/views/player.js index 5816f73..68ac36b 100644 --- a/resources/js/views/player.js +++ b/resources/js/views/player.js @@ -23,15 +23,24 @@ _ "use strict"; var Player = Backbone.View.extend({ - el: $("body > div.ui-layout-north") - , elViewport: null - , $elViewport: null + elViewport: null + , $elViewport: null - , playIndex: [] + , playIndex: [] - , webAudio: null + , webAudio: null - , initialize: function (options) { + , _stateRandom: null + + , _stateRepeat: null + + , _stateMute: null + + , _stateVolume: null + + , _stateAudio: null + + , initialize: function (options) { var that = this ; @@ -49,55 +58,115 @@ _ return that; } - , setPlayIndex: function (index) { + , setPlayIndex: function (index) { + var that = this + ; + + } + + , setRandomState: function (random) { + var that = this + ; + + } + + , setRepeatState: function (random) { var that = this ; } - , __buttonPlayPause: function (event) { + , __buttonPlayPause: function (event) { + var that = this + ; } - , __buttonNext: function (event) { + , __buttonNext: function (event) { + var that = this + ; } - , __buttonPrevious: function (event) { + , __buttonPrevious: function (event) { + var that = this + ; } - , __buttonVolumeUp: function (event) { + , __buttonVolumeUp: function (event) { + var that = this + ; } - , __buttonVolumeDown: function (event) { + , __buttonVolumeDown: function (event) { + var that = this + ; } - , __buttonVolumeClick: function (event) { + , __buttonVolumeClick: function (event) { + var that = this + ; } - , _createWebAudio: function () { + , _createWebAudio: function () { var that = this ; } - , __waStateChanged: function () { + , __waStateChanged: function () { var that = this ; } - , _playerEnded: function () { + , _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 ; } - , _playerLoading: function () { + , _updateViewportProgress: function (progress, time) { var that = this ;