~zekr/zekr/zekr.karmic

« back to all changes in this revision

Viewing changes to debian/patches/10_player_js.diff

  • Committer: Mohammad Derakhshani
  • Date: 2009-11-29 05:44:17 UTC
  • Revision ID: mohammad@usahara-20091129054417-ihzb9kr02ybi1mhn
I think it compiles

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
5
 
@@ -64,14 +64,14 @@
6
 
                this.contAya = continuous;
7
 
        }
8
 
 
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;
16
 
        }
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) {
22
 
                this.index = index;
23
 
                sendEvent('playitem', this.index, this.playerId);
24
 
@@ -87,7 +87,7 @@
25
 
        if (playlist != "") {
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)
31
 
                        ayaFocusHooks = [];
32
 
                        ayaFocusHooks.push(function(o) {
33
 
@@ -127,7 +127,7 @@
34
 
                        if (player.index + 1 < ayaCount) {
35
 
                                buffer.goto(player.index + 1);
36
 
                                buffer.playPause();
37
 
-                               buffer.playPause();
38
 
+                               if (buffer.playing) buffer.playPause();
39
 
                        }
40
 
                }
41
 
        } if (tp == "time") {