1
Index: zekr-0.7.1/res/ui/js/player.js
2
===================================================================
3
--- zekr-0.7.1.orig/res/ui/js/player.js 2008-09-09 15:51:20.000000000 -0400
4
+++ zekr-0.7.1/res/ui/js/player.js 2008-09-09 15:51:49.000000000 -0400
6
this.contAya = continuous;
9
- this.setVolume = function(v) { sendEvent('volume', v); this.volume = v; }
10
- this.stop = function() { sendEvent('stop'); this.playing = false; }
11
+ this.setVolume = function(v) { sendEvent('volume', v, this.playerId); this.volume = v; }
12
+ this.stop = function() { sendEvent('stop', '', this.playerId); this.playing = false; }
13
this.playPause = function() {
14
sendEvent('playpause', '', this.playerId);
15
this.playing = !this.playing;
17
- this.next = function() { sendEvent('next'); this.playing = true; }
18
- this.prev = function() { sendEvent('prev'); this.playing = true; }
19
+ this.next = function() { sendEvent('next', '', this.playerId); this.playing = true; }
20
+ this.prev = function() { sendEvent('prev', '', this.playerId); this.playing = true; }
21
this.goto = function(index) {
23
sendEvent('playitem', this.index, this.playerId);
26
var playlistItems = $('#hiddenPlaylistItemArray').val();
27
player.setup(playlist, $('#hiddenVolume').val(), eval(playlistItems), 0, contAya, 'quranPlayer');
28
- buffer.setup(playlist, $('#hiddenVolume').val(), eval(playlistItems), 0, contAya, 'bufferPlayer', '0', '0', 'bufferBar');
29
+ buffer.setup(playlist, '0', eval(playlistItems), 0, false, 'bufferPlayer', '0', '0', 'bufferBar');
30
setTimeout(function() { // make sure that flash object is created (bug fix for IE)
32
ayaFocusHooks.push(function(o) {
34
if (player.index + 1 < ayaCount) {
35
buffer.goto(player.index + 1);
38
+ if (buffer.playing) buffer.playPause();