From e271feeb70fa7a9f42fd7f2d89e21159ebf6d3cc Mon Sep 17 00:00:00 2001 From: Jonathan Kolyer Date: Sat, 8 Mar 2014 23:59:56 +0000 Subject: [PATCH] VRFS-1333 addPlayablePlay integration --- web/app/assets/javascripts/jquery.listenRecording.js | 2 +- web/app/assets/javascripts/jquery.listenbroadcast.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app/assets/javascripts/jquery.listenRecording.js b/web/app/assets/javascripts/jquery.listenRecording.js index e88f72636..d508b9707 100644 --- a/web/app/assets/javascripts/jquery.listenRecording.js +++ b/web/app/assets/javascripts/jquery.listenRecording.js @@ -77,7 +77,7 @@ if(lastTime > -1) {audioDomElement.currentTime = lastTime;} audioDomElement.play(); isPlaying = true; - context.JK.Rest().addPlayablePlay(recordingId, 'JamRuby::Recording', claimedRecordingId, context.JK.currentUserId); + rest.addPlayablePlay(recordingId, 'JamRuby::Recording', claimedRecordingId, context.JK.currentUserId); }) } diff --git a/web/app/assets/javascripts/jquery.listenbroadcast.js b/web/app/assets/javascripts/jquery.listenbroadcast.js index e04a099d2..9576f886d 100644 --- a/web/app/assets/javascripts/jquery.listenbroadcast.js +++ b/web/app/assets/javascripts/jquery.listenbroadcast.js @@ -92,6 +92,7 @@ // keep this after transition, because any transition clears this timer waitForBufferingTimeout = setTimeout(noBuffer, WAIT_FOR_BUFFER_TIMEOUT); + rest.addPlayablePlay(musicSessionId, 'JamRuby::MusicSessionHistory', null, context.JK.currentUserId); } }) }