From 3562e762efb605254bed8300974d19f8c5fc0df4 Mon Sep 17 00:00:00 2001 From: Matthieu Lalonde Date: Fri, 9 Nov 2012 13:38:41 -0500 Subject: [PATCH] Player view skeletton --- resources/js/views/player.js | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/resources/js/views/player.js b/resources/js/views/player.js index 68ac36b..b70cba0 100644 --- a/resources/js/views/player.js +++ b/resources/js/views/player.js @@ -28,6 +28,8 @@ _ , playIndex: [] + , playCursor: 0 + , webAudio: null , _stateRandom: null @@ -44,6 +46,30 @@ _ var that = this ; + _.bindAll(this + , "setPlayIndex" + , "setRandomState" + , "setRepeatState" + , "__buttonPlayPause" + , "__buttonNext" + , "__buttonPrevious" + , "__buttonVolumeUp" + , "__buttonVolumeDown" + , "__buttonVolumeClick" + , "_createWebAudio" + , "__waStateChanged" + , "_playerEnded" + , "_playerLoading" + , "_playNext" + , "_playPrevious" + , "_playerPause" + , "_playerStop" + , "_playerStart" + , "_setVolume" + , "_setViewport" + , "_updateViewportProgress" + ); + Player.__super__.initialize.apply(that); that.$el.html(tmplPlayerLayout); @@ -137,26 +163,38 @@ _ } , _playNext: function () { + var that = this + ; } , _playPrevious: function () { + var that = this + ; } , _playerPause: function () { + var that = this + ; } , _playerStop: function () { + var that = this + ; } , _playerStart: function () { + var that = this + ; } , _setVolume: function (volume) { + var that = this + ; }